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] The best code in the world!

Author
Message
gene
17
Years of Service
User Offline
Joined: 16th Jan 2007
Location:
Posted: 17th Jan 2007 02:43
Very simple 1 line, ultra fast speed!

What do you think?

Game Maker Gene Topsites
Add your site today, it is totally free advertising for your site.Gmgene Topsites
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 17th Jan 2007 13:04
It doesn't compile lamer

Heavy on the Magick
geecee3
20
Years of Service
User Offline
Joined: 25th Feb 2004
Location: edinburgh.scotland.
Posted: 17th Jan 2007 13:09
it was fast to type, but thats about it, don't strain yourself gene, you might write something usefull and semi decent :p

napoleon.

Ohd Chinese Ploverb say : Wise Eskimo, not eat yerrow snow.
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 17th Jan 2007 13:27
How about



It's faster

Eddie Gordo
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 17th Jan 2007 13:47


~Cyrano De Bergerac~
Jess T
Retired Moderator
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 17th Jan 2007 13:48 Edited at: 17th Jan 2007 13:48
gene,

Wow... If you hadn't already posted it, I would have said:
"Gimme Da Codez!"

[EDIT]
I can't get it to compile, anyone got an exe I can run!?
I NEED THIS!
[/EDIT]

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 17th Jan 2007 16:51
Quote: "How about"

Nope, the syntax is wrong. You have to get the syntax right:



Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 17th Jan 2007 18:09
You damn ****** its



I have no soul.. I nobody.. I have no heart.. I have felt in the darkness.. Im the darkness.. Whatever..
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 17th Jan 2007 23:49
That's C++ code. Not DBP code. It wouldnt compile in C++ anyways, you need the "main" entry point.

at least:


Would give the "great" noobs something to think about.

Please state what language this was actually meant for, please. I know this was just a joke, but you will get flamed pretty badly (Not from me, i'm not like that).

-db


Code Dragon
17
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 19th Jan 2007 03:13 Edited at: 19th Jan 2007 03:16
Is this a joke, because it DOES compile. I am 100% serious! I know it has a wrong syntax, but CodeSurge even highlights it as a remark. It doesn't do that in the default IDE but compiles in both! Look at the attached pic if you don't believe me. No I did not cut and paste!

Quote: "Gimme teh code!"

Thank you for not flooding the forums with posts like this.

Attachments

Login to view attachments
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 19th Jan 2007 04:07 Edited at: 19th Jan 2007 04:08
Huh.

TESTED:
Does not do so for me. It highlights it, but it just sits there for a while, until I got bored and close the program.

-db


Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 19th Jan 2007 06:24
CodeSurge uses // as a comment, and just like the default IDE, it uses the same compiler and therefor
compiles. It does for me too

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 19th Jan 2007 06:58 Edited at: 19th Jan 2007 06:58
Quote: "same compiler"

(Sarcastically)No! DBP IDEs use their own compiler, duh!(End of sarcasm)

-db


TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 20th Jan 2007 02:28
Quote: "CodeSurge uses // as a comment, and just like the default IDE, it uses the same compiler and therefor compiles. It does for me too"


My IDE for DBC also compiles it, but it's nothing to do with the compiler and all to do with the IDE pre-parsing the contents of the editor window.

// is a comment in Delph/Pascal and many Delphi programmers automatically (and accidentally) type // at the start of Rem lines when using DB.

I added this so I could use // for Rems in DB and when I run/compile DB code the IDE scans for and replaces all //'s with the word 'Rem' before sending it to the compiler.

Incidentally, my IDE also does the same with { and } which I find easier to use than RemStart and RemEnd...

More to the point, surely this isn't really in the spirit of what 20 liners are all about...

TDK_Man

Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Jan 2007 21:03
It compiled for me...

Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Jan 2007 10:25
The DBPro compiler itself does *not* support // as a comment.

Only ` and remstart/end are valid comments.

The fact you can use // is because the IDE converts it to a ` at run-time, probably because GuyS was a Delphi coder, and that is how he liked doing his comments.

Heavy on the Magick
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 22nd Jan 2007 13:54
Hehe, you're wrong, Rich. The DBP compiler actually DOES support // as a comment. I think I would know as my IDE doesn't do anything special to // comments. I believe Lee added this sometime around update 6.0, but it may have even been there before. However, it doesn't support /* and */ for comment blocks.

Good performance is better than a good excuse.
CodeSurge -- DBP Editor for serious programmers.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Jan 2007 14:48
Quote: "The DBP compiler actually DOES support // as a comment. I think I would know as my IDE doesn't do anything special to // comments. I believe Lee added this sometime around update 6.0, but it may have even been there before. However, it doesn't support /* and */ for comment blocks."


Agreed. It was added because of foreign keyboards not having the ` key readily available (had to push like 2 whole buttons ) and remstart etc was too long to type. I think it was French Keyboards 0_o

x1b
19
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 22nd Jan 2007 16:47
I talked John into integrating //c style comments into Synergy. It's just a personal preferance. I find it cleaner and less of an eyesore than rem, remstart remend.

Kieran
17
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 22nd Jan 2007 21:52
i find ` easier than // actually.... i used // in gamemaker 6.1 for a while but that got lame... DBpro is better

anyway this must be the best code i've ever seen



isn't it so great!!! (sarcasm)

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 23rd Jan 2007 01:29 Edited at: 23rd Jan 2007 01:31
Quote: "I talked John into integrating //c style comments into Synergy. It's just a personal preferance. I find it cleaner and less of an eyesore than rem, remstart remend."

I'm not sure I follow, x1b. If DBP already supports // comments, did he change the way that they are parsed?


Come see the WIP!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 23rd Jan 2007 02:20
He talked John into supporting it before Lee added the support I think. Also like Blue IDE doesn't support it even though the compiler does. I get tons of errors when trying to use // with Blue IDE. Plus I think Synergy supports the /* and */ block comments. Or at least one of the betas did it seems. I'll try it when I get home.

Login to post a reply

Server time is: 2024-04-25 20:08:31
Your offset time is: 2024-04-25 20:08:31