This is a Game of Life implementation written in Erlang. Each cell is handled by a single process and each process talks to nearby cells via message passing to figure out state. At the end of the simulation the cells send their final state back to the root node i.e. the process that spawned them. I tried to stick with Erlang conventions for recursion and whatnot, but there are some rough edges, aesthetically speaking around the array handling. Still it works, as far as I can tell.
I'm Mustafa Paksoy and I write code for a living. I post assorted items of interest here. You can contact me via email.
I also take pictures, dabble in Twitter and occasionally put projects on GitHub.
See[Mike]Code is a nifty tool for conducting remote programming interviews. One of the comments on the site bemoans the potential downsides of asking real programming questions during interviews:
The problem is often with the interview questions, for example:
“Write a loop that counts from 1 to 10” or “What’s the number after F in hexadecimal?”
As a web developer who has 5 years experience and build a number of large web applications for satisfied clients, I have never had to do anything with hex and simply would not know the answer in an interview.
However if I needed to do it in a job I would reference the API’s and be able to answer this in less than 2 minutes….
— ProgrammerJ
I don’t doubt that the commenter is a successful web developer, but no amount of API documentation would fix not knowing what hex notation is. Some basic computer science knowledge is required to capably consume technical documentation.
-
-
-
Using Dropbox as a Git repository
So last month I wrote a bit about setting up your own personal Git repositories on a Linux box, and how to use...
-
Me: “Alright, I want you to go ahead and drag that file to your desktop.”
Client: “Pff. I don’t have a desktop, I have a laptop!” -
“If a worker labors under the threat of force or of need, or a student produces on demand, we may admire what they do, but despise what they are.”
-
How To Tell if Different Kinds Of Fruit Are Ripe
It seems like everyone these days has some kind of quick tip for gauging the ripeness of fruit.
Still, billions of shoppers every day find themselves in the produce aisle, ears pressed to cassava melons, grinning like idiots.
-
Client: “I need your agency to develop a robust morale-boosting program for the top 100 ‘leaders’ in our region during our annual team building...
-
EZ-Laminator450 Users Manual: Frequently Asked Questions
FAQ
Is this the same type of laminator they have at high schools?
Yes! Your I.D. card...