Pausable Actors using Stash 06 Jan 2014

import akka.actor.{Actor, Stash} class MyActor extends Actor with Stash { def receive = accepting def accepting: Receive = { case Do => // Do logic here case Wait => context.become(waiting) } def waiting: Receive = { case Do => stash() case Resume => unstashAll() context.become(accepting) } } object MyActor { case object Do case object Wait case object Resume } You should use Stash, if you want your actor to go “offline” for sometime, may be because a necessary external resource is down, like a database for example. However while the actor is offline, it should remember all the messages that it couldn’t handle right now, hoping it can recover soon, and handle those messages.

...
Classification of type systems 07 Jul 2012
How to classify the type system of programming langugaes, what is the difference between typesystems of Java, Javascript and Python?
What is the difference between Strong typed languages and statically typed languages? ...
Structure & Interpretation of Computer Programs 02 Jan 2015

This course is about the art of programming, how to think and write beautiful, readable code. This course is not about Javascript details, we are only using Javascript to demonstrate programming concepts that can be applied using other languages too.

...
Playing with Scala futures 13 May 2013
A fast intro to Scala and Play, to prepare the audience for a live demo of a Play Application using Futures to get weather data from Yahoo in a non blocking way, then display to the user the results. The code is available here https://github.com/tabdulradi/weather ...
Introducion to Python 02 Jun 2012
A quick tour in Python world. First by By comparing Java code, and the equivalent Python side by side, Second by listing some cool features in Python, finally by listing downs and ups of Python in usage; when to use python and when not. ...
Python Course for Developers, October 2011 21 Dec 2011

I’ve just finished my Python course, I was very glad to convert .Net developers into opensource world, they seemed to like Python, Thanks to Allah :).
We covered the basics of python, and it’s good practices, conventions and of course Magic. I gave them an fast introduction to  Django, as they were interested in Web Development .
God bless Open Source, God bless Egypt :).

...