Archive for November, 2009


November 17, 2009 Leave a comment

After wasting an hour reading Abstruse Goose, I have come to the conclusion that no webcomic is worth reading unless you have to look something up at least once every twenty strips.

Categories: Humor

Rampant Innumeracy

November 17, 2009 1 comment
Categories: Humor, Math

Objective-C is the Coolest Language

November 10, 2009 2 comments

At least according to Numb3rs. After I saw another Objective-C reference, I figured that the writers must have something for Objective-C. Maybe one of the math consultants does Objective-C. But I think a very likely reason is that Objective-C just looks cool. It’s not my favorite language (I don’t even like it that much), but I definitely can’t argue with the fact that, if you don’t know what is going on, it looks freakin’ cool. You use brackets for method calls. Come on. How can you not love that? And the unnecessarily long method names that are supposed to make the language easier to read but really don’t. Those are just great. (I couldn’t find any good pictures, but check out this video.) Compare that to, say, Lisp.Lisp

Yaaawwwnn. Too many parentheses. But Objective-C has a real “hacker” feel to it.

(P.S. The actual coolest language is Scala.)

The Best BF Program I’ve Ever Written

November 9, 2009 6 comments

I wrote a BF program which calculates every prime number from 2 to 100. This is it:


Since I’m using a slow Python interpreter, it takes a long time to finish. But it still works.

Ruby versus Python

November 7, 2009 2 comments

I have some experience programming in both Ruby and Python, and have long wondered which is superior. Many people love Python, and many others love Ruby. Both of them, in my opinion, are at the pinnacle of easy-to-use languages; they are both dynamically typed, multi-paradigm languages. Here is a comparison of the details, with the winner in bold.
Read more…

Java Virtual Machine

November 5, 2009 1 comment

The Java Virtual Machine (JVM) allows a compiled Java program to run on any platform. That sounds pretty cool, right? You don’t have to worry about the fact that different platforms use different assemblers, because it runs on a virtual machine. But it’s pretty fast. Not as fast as a purely compiled language, but a lot faster than an interpreted language such as Python. Isn’t that a great idea?

But you know what would be even better? If everyone just used the same platform. (Preferably the one that I am currently using.)

Ruby’s Loops

November 3, 2009 5 comments

The Ruby programming language has many ways to do what you want. For example, it has no fewer than nine types of loops. Here I have each loop, and how you would express it in C. For some of these, I made up the names. And sometimes I called them loops when they are actually iterators. But I can do that if I want to.
Read more…