Functional and concurrent languages were pretty much all the rage in 2009. I’ve been looking a little at languages, and Clojure seems pretty cool, as does Erlang. These languages make my brain hurt seeing as I’ve really only ever worked with C syntax languages, but it could be a good learning experience.
I had some experience with some basic AI this year, and did some work with genetic algorithms, but I don’t feel like it really gave me much more insight into developing intelligent software.
OGRE is the rendering engine to watch next year with the announcement of iPhone support, MIT license, and the release of Torchlight, . Not sure what my actual plans would be, but I’d like to actually build something this time around. Even if it’s just a simple tech demo.
Yeah, I’ve started a lot, and finished pretty much nothing this year. With 3 or 4 apps already on the go, I think I should probably get around to finishing something soon.
This entry was written by , posted on December 30, 2009 at 10:13 am, filed under Uncategorized. Leave a comment or view the discussion at the permalink.
A friend at work put together our 2nd annual Christmas coding contest. The goal was to print out a tree that would scale by n, and was sort of inspired by another well known holiday coding challenge, only we made it a little more fun by adding some considerable complexity by adding slashes on either side of the tree to fill out the shape, and a pipe and ^ for the bottom and top.
Turns out I won despite some other brilliant entries. My secret sauce was the use of nested ternary operators, and pretty much makes the code unreadable. I’m posting the example in case anyone is interested in running it and seeing if they can improve/learn from it. Might also be worth noting that you should turn php notices off, and give $n an unsigned int value (for best results).
The code:
<?$a=str_repeat;for($t=$n+1;$t--;)echo$a(' ',$t?$t-1:$n-1).($t?$t==$n?"^":"/".$a('*',($p+=1*2)-1)."\\":'|')."\n";
This entry was written by , posted on December 23, 2009 at 10:20 pm, filed under Uncategorized. Leave a comment or view the discussion at the permalink.