Skip to content Skip to sidebar Skip to footer
Showing posts with the label Language Agnostic

Clean And Type-safe State Machine Implementation In A Statically Typed Language?

I implemented a simple state machine in Python: import time def a(): print 'a()' r… Read more Clean And Type-safe State Machine Implementation In A Statically Typed Language?

Python Threads - Critical Section

What is the 'critical section' of a thread (in Python)? A thread enters the critical secti… Read more Python Threads - Critical Section

Uses Of Self Referencing Lists

I know it is possible to create a self referencing list in languages like Python: >>> my_l… Read more Uses Of Self Referencing Lists

Where In Class Hierarchy Should Instance Methods Be Written?

Here's a part of a class 'hierarchy' that I use for a simulation model (my code is in P… Read more Where In Class Hierarchy Should Instance Methods Be Written?