These are chat archives for petabridge/akka-bootcamp

18th
May 2015
varghesep
@varghesep
May 18 2015 02:19
@skotzko I added some code in the same question in SO at http://stackoverflow.com/questions/30287258/akka-net-and-deathwatchnotification
Garrard Kitchen
@garrardkitchen
May 18 2015 08:17
@thomaslazar Thank you
Thomas Lazar
@thomaslazar
May 18 2015 08:19
@garrardkitchen no problem. sorry for not at-mentioning you though. mostly using this gitter thing through the irc relay... that thing's not that reliable though
Garrard Kitchen
@garrardkitchen
May 18 2015 08:21
@thomaslazar Yesterday was my first time for gitter. Finding it a little busy! Maybe private chat's is the way to go?!
Thomas Lazar
@thomaslazar
May 18 2015 08:23
well for general questions with immediate-er answers gitter is best. i just started using akka.net myself
Garrard Kitchen
@garrardkitchen
May 18 2015 08:24
@thomaslazar Makes sense and me too.
Thomas Lazar
@thomaslazar
May 18 2015 08:26
i ended up not waiting for the emails and just going through the bootcamp on the github repo.
Thomas Lazar
@thomaslazar
May 18 2015 08:42
@Aaronontheweb @skotzko does your sites blog has an rss feed? i can`t find any at first glance
Aaron Stannard
@Aaronontheweb
May 18 2015 16:07
Thomas Lazar
@thomaslazar
May 18 2015 17:59
@aaronontheweb thanks.
nickheppleston
@nickheppleston
May 18 2015 22:06
Hi guys, in Unit 1 - Lesson 4, Actors are created within the props lambda as follows: ^^ Props tailCoordinatorProps = Props.Create(() => new TailCoordinatorActor()); ^^ I thought using new to create actors was a bad thing, or this ok when creating through props?
Aaron Stannard
@Aaronontheweb
May 18 2015 23:19
@nickheppleston using new to create Props is a bad thing
and ditto with creating actors that way too
but in this case what we're really doing is using that lambda syntax to create an Expression that the Props class will use to unpack all of the constructor arguments it needs to use each time it creates a TailCoordinatorActor
which has the added benefit of giving us compile-time checking
so this is just the recommended syntax for creating Props - that code is just an expression. It doesn't actually create an actor instance until you pass the Props object into an ActorOf method
Andrew Skotzko
@skotzko
May 18 2015 23:35
@nickheppleston that’s a good question, thank you for asking it! I have nothing to add to @Aaronontheweb’s answer, but just wanted to say thx for asking. The key guideline to remember is never to just straight “new up” an actor class outside of props. but when it’s inside the Props expression, it’s okay for exactly the reasons just described