On Mon, Mar 31, 2014 at 4:05 PM, Robert Sosinski < [email protected]> wrote:
Thanks for the feedback, will definitely make these changes. Regarding the > "scheduler service" how would I use that? The reason why I did the > Tread.sleep is just to slow things down a bit, definitely would not use it > in production. > Even if you would comment it that way, people would see it and think it's OK; that's real life ;-) context.system.scheduler.scheduleOnce(1 second, self, "some-message") Then handle "some-message" (or better use case objects instead of string) in the behavior. Heiko > > Thanks again, > > On Monday, March 31, 2014 8:57:14 AM UTC-4, Heiko Seeberger wrote: > >> Nice! Thanks for putting it together. >> >> Some comments: >> >> - Don't ever block inside an actor: Don't use `Thread.sleep`, but >> better show the scheduler service >> - It's better to not use `actorOf(Props[SomeActor])`, but >> `actorOf(Props(new SomeActor))` instead, because the latter is refactoring >> safe and performs better (no reflection) >> - Inside of an actor, access the actor system via `context.system`, >> not `HowdyAkka.system.shutdown` >> - You might want to use `system.awaitTermination()` at the end of >> your `App` >> - If you want to teach Scala, follow the Scala Style Guide, i.e. >> write `system.shutdown()` with parentheses >> >> Thanks >> Heiko >> >> On Mon, Mar 31, 2014 at 1:56 PM, Robert Sosinski >> <[email protected]>wrote: >> >>> Hello Fellow Akka Users, >>> >>> Just wanted to share a new tutorial about how to get started with Akka. >>> I’m sure everyone here is familiar with the basics; but it might help >>> those who are getting started to compile their first Akka app. >>> >>> *http://www.reactive.io/tips/2014/03/28/getting-started-with-actor-based-programming-using-scala-and-akka/ >>> <http://www.reactive.io/tips/2014/03/28/getting-started-with-actor-based-programming-using-scala-and-akka/>* >>> >>> Feel free to chime in with your comments. Hope it helps to get more >>> developers onto Akka ;) >>> >>> Thanks, and happy concurrent programming! >>> >>> -Robert >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/ >>> current/additional/faq.html >>> >>>>>>>>>> Search the archives: https://groups.google.com/ >>> group/akka-user >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Akka User List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> >> Heiko Seeberger >> Twitter: @hseeberger >> Blog: blog.heikoseeberger.name >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Heiko Seeberger Twitter: @hseeberger Blog: blog.heikoseeberger.name -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
