Code Monkeyism

Programming is hard by Stephan Schmidt

Remembering Tada-List in 579 lines of code - not impressed

Tada-List was written in 579 lines of Rails code. Jeff of Coding Horror writes “[...], I agree with Joseph: it’s an impressive achievement, [...]“. I’m not impressed. If you write a framework for a narrow group of applications, it should be easy to write a small target application with a few lines of code. And they don’t count HTML.Top this: a game written in ZERO lines of code.

Most code is hidden in the framework. Taking it to the extreme, with XL/R and concept programming I could write TaDa List in one line of code:

tada-list

The issue remains. It’s the same with encryption. There is a message and a key. How much information is in the key and the message? If the key is “Hello World” then the message can just be “1″. If the key is “1″ then the message needs to be “Hello World”. How much code is in the framework and the application?

That aside. My biggest achivement in small code size was a 1024 bytes (the boot sector size of an Amiga) boot selector menu with color bars. Impressive if you consider we had to put all the menu text into those 1024 bytes.

About the author: Stephan Schmidt is currently a team manager at ImmobilienScout24 in Berlin. Stephan has been working as a head of development and CTO. He has used a lot of different technologies in the last 20 years including Java, Rails and Python. Stephans main field of interest is maintainablity and productivity in software development. Want to know more? All views are only his own.

If you did like this article but you don't want to subscribe to new articles with your reader, you can follow me on Twitter or subscribe to new posts with your email:

Comments

morten wilken

hehe i too have written a bootblock util on Amiga. A menu with options for turning on/off extra ram, extra diskdrive, a rudimentary virus checker, pal/ntsc switch and a menu in 1024 bytes… those were the days!

newton/rebels

stephan

Hehe. Those were the days!

DragonLord/Traveller

Leave a Reply