jump to navigation

January 2: A Programmer’s Challenge Sunday 1/2/11

Posted by smcgamer in Archive, Post-A-Day 2011, Programming.
Tags:
trackback

Sunday, January 2, 2010.  There are 363 days remaining.  Today is the first Sunday in 2011.

You see, my brother and I are hobbyist programmers.  I’ve made a few neat (but usually unneeded) applications in Visual Basic 2005, and 2008.  My brother, on the other hand, prefers C and other C-like languages.

That leads us to New Year’s Eve.  I created a programmer’s challenge to write a program that would print the contents of a text file to a command line in the least lines possible.  There were to be two rounds to this challenge.

I chose to use Visual Basic 2008 on Windows; my brother chose C on Arch Linux.

Screenshot of a typical Visual Basic function,...

Image via Wikipedia

First round results are in:

  • My program is eleven lines long.
  • His program is twenty-three lines long, and doesn’t work correctly yet.

Looking back, however, it may not have been fair for me to choose VB 2008.  However, we still have the second round.

Code will be posted at the end of the second round.

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: