A couple facts about three cool technologies node.js is a powerful way of writing backend code in JavaScript; why JavaScript? Because you have the kind of problem that benefits from asynchronous code (the average web app) and you like using the same brain for backend and frontend work mongoDB is an awesome NoSQL data store [...]
Appcelerator Titanium might’ve made it to my toolbox
Last time I played around with Appcelerator Titanium I didn’t get a chance to really put it through its paces. Mostly because I wasn’t getting anywhere … I remember spending hours, even days, just figuring out how to get a Hello World to run in a simulator. Yesterday was my lucky day! Not only did I [...]
This Haskell is wrong. Why?
The problem I’m trying to solve is the simple but lovely euler 62. The cube, 41063625 (3453), can be permuted to produce two other cubes: 56623104 (3843) and 66430125 (4053). In fact, 41063625 is the smallest cube which has exactly three permutations of its digits which are also cube. Find the smallest cube for which [...]
Collatz, Haskell and Memoization
After an awesome longboarding session yesterday afternoon I decided to play around with infinite sequences in Haskell – it’s supposed to be one of the more (most?) powerful features of Haskell – because it’s a lazy language apparently. My first impulse of creating a primes generator was nipped in the bud by a long page [...]
A message from your future self
About two weeks ago I watched a TED talk on the battle between one’s present and future self. The idea being that a lot of our problems can be summed up to this: Your present self is here, he wants cool things, your future self is greatly affected by these decisions, but he can’t do [...]
Sabbatical week day 3: Raining datatypes
I’m taking a sabbatical week over the holidays. This week’s posts will serve as a sort of report of what I got up to the previous day instead of the usual schedule – wish me luck that I achieve even half of what I’d like to. As I sit here slowly sipping on my tea [...]
Learning me a Haskell
A couple of days ago I decided that doing my graduation thesis on a topic that, when suggested, brought a sparkle to my mentor’s eye and made him suggest I might want to think about picking a co-mentor just wasn’t hard enough – so I decided to do the whole thing in Haskell. I want [...]
The problem with threads
This morning there was a link going around listing the 15 papers you should read to understand node.js’s background. A large portion of the list is devoted to the comparison of thread- and event- based models of execution. Since I hear a lot about event loops being better than threads, I read The problem with [...]
Why programmers work at night
A popular saying goes that Programmers are machines that turn caffeine into code. And sure enough, ask a random programmer when they do their best work and there’s a high chance they will admit to a lot of late nights. Some earlier, some later. A popular trend is to get up at 4am and get [...]
Javascript’s lack of strftime
You know that one piece of shitty code that always makes you cringe? Something along the lines of months = ['Jan', 'Feb' ....]; dateString = date.day()+’ ‘+months[date.month()]; Yeah that piece of code. Let’s talk about that. It sucks. There is a special circle of hell for people who do it and yet JavaScript developers are forced [...]
