Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / [LOCKED] I think 20 lines is a joke

Author
Message
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 3rd Mar 2008 05:19
I know this will probably make alot of people mad or upset. But 20 lines, lets get real.
A line is:

print "hi"
print "you"

not

print "hi" : print "you"

So what is before 2 lines is now "1" line. I dont think because you can cram a bunch of commands on a line makes it legitimate.

The rule should be 20 lines = 20 commands.

Thats what I think. (besides it makes the code unreadable)
jinzai
17
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 3rd Mar 2008 08:17
I would agree, except that it does force you to think about program logic, and it also will teach you about program logic. C programmers do this sort of obfuscation all the time; it is extremely annoying and utterly unmaintainable.

Your proposed method would lead to apps that aren't as 'cute' as the ones here.

Do what I do...leave this forum to those that enjoy the challenge.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 4th Mar 2008 01:53
I've argued against the 20 line board before.
compressing your code to 20 lines gives no benefit whatsoever, all it accomplishes is making your programs impossible to follow.
It encourages the kind of geeky bragging similar to achieving 100% game completion on GTA etc., it's pointless and immature.
Bad habits to give a newbie.

Mark1Up
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 4th Mar 2008 16:50
It might make more sense to have a 2K (i.e. 2048 chars) challenge so you could use readable formating and still see what could be accomplished with a relatively small amount of code.

-Mark
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Mar 2008 17:17
It's only a bit of fun - and no-one has to post an entry if they don't want to.

Like jinzai says, we don't even have to visit this board if we don't agree with the rules.

Your points are not annoying. Posting entries on a 20 line challenge board which are greater than 20 lines - now that is annoying...

TDK_Man

Login to post a reply

Server time is: 2024-03-28 21:48:45
Your offset time is: 2024-03-28 21:48:45