PlaneShift

Fan Area => The Hydlaa Plaza => Topic started by: zaphar on November 12, 2003, 03:44:43 pm

Title: Poll: for programmers out there.
Post by: zaphar on November 12, 2003, 03:44:43 pm
when learning a new language what is the first app/prog you do in it.

Personally I alwayst program an implementation of Conway\'s game of Life.

I am curious what do the rest of you do? \"hello world\"? or something more challenging?
Title:
Post by: lynx_lupo on November 12, 2003, 03:54:36 pm
I learn by practice, so the first thing I do, is the first thing I can\'t.  :D
Title:
Post by: Jedi on November 12, 2003, 04:02:36 pm
Long live the \"Hello World\"! :D
Title:
Post by: acraig on November 12, 2003, 05:52:56 pm
Every single program I start, starts with \"hello world\".  I do this for a couple of reasons.

1) It makes sure that my build/development environment is working correctly

2) Gives me a base to work with.  Working from something that you know works is much better then typing a whole mess of code and having none of it work.
Title:
Post by: sashok on November 12, 2003, 06:06:24 pm
nah, not everyone.  My first program was \"what\'s up world!\", now, don\'t confuse the style with \"hello world!\" please
Title:
Post by: Drachion on November 12, 2003, 07:34:18 pm
my first programm is displayed underneath this post, and unfortunatly it still isn\'t working i keep on pressing the make slaves button i have but it just won\'t do it i can\'t get any slaves by that.

can a dev look at it :D that would really fix things ( i prommise i will spare your soul )
Title:
Post by: zaphar on November 12, 2003, 07:48:20 pm
Quote
Originally posted by Drachion
my first programm is displayed underneath this post, and unfortunatly it still isn\'t working i keep on pressing the make slaves button i have but it just won\'t do it i can\'t get any slaves by that.

can a dev look at it :D that would really fix things ( i prommise i will spare your soul )


hmm the pseudocode looks alright but I would say its probably because the datatype allpowerfull isn\'t implemented

:-)
Title:
Post by: Axsyrus on November 12, 2003, 07:58:19 pm
lol, i just use: Hello, World!
then i start learning the input commands etc.
most of the time i just make a simple quiz.. to test the input, output and if commands.
Title:
Post by: Vengeance on November 12, 2003, 08:33:51 pm
Hello, World! definitely.  :-)
Title:
Post by: elscouta on November 12, 2003, 08:39:17 pm
\'Bonjour Monde\' for me ;)
Title:
Post by: Jessyn on November 12, 2003, 11:19:29 pm
hello world, immediately followed by the matrix screensaver(with test based graphics, none o that fancy stuff for me)

Jessyn
Title:
Post by: Wedge on November 12, 2003, 11:47:33 pm
Pong!  And if you can\'t make pong with that language?  Then who needs it?  If you can\'t use it to make games it\'s worthless!
Title:
Post by: Xandria on November 13, 2003, 04:22:33 am
Heh, hello world, probably.

Although I found \"the game of life\" quite fun, both programming it and staring at the screen for hours watching all the little cells live and die...
Title:
Post by: Dameon on November 13, 2003, 04:50:52 am
I always start by making a simple 3 question game... testing out  if statements. The first question is always trivia... a 1. 2. or 3. type deal. Second question is math. I have the user enter 2 numbers, then have him give the sum of those two numbers. If he answers it correctly, then we go on to the third. If not, the program ends. The last one is to test characters. I write a word problem and set the answer as a constant. If he ansers correctly, he wins. Just another if statement but I try to make this one loop if it is wrong character.

Code: [Select]

//Psuedocode ex:


var answer, num1, num2, num3 as integer;

write.newline \"A person has how many feet?\"
write.newline \"1.  2 feet\"
write.newline \"2.  5 feet\"
write.newline \"3.  102 feet\"

read answer

if answer = 1 then
   write.newline \"Correct! Next question\"
   ...
   ...
   ...


So on and so fourth.
Title:
Post by: Savion on November 13, 2003, 04:56:11 am
Savion thinks that is way too much work and does a \"Hello world\" app.
Title:
Post by: Xandria on November 13, 2003, 07:23:49 am
I guessed option 3, am I right?  :D

*Xandria slaps himself for such a stupid post*

OUCH!!!

*Xandria slaps himself back for slapping him*

HEY, CUT IT OUT!!!

*Continuous slappage ensues, and once the room stops spinning and his ears stop ringing, he gets back to posting*

Dameon may seem to some of you to be putting a lot of effort into his first app, but his idea actually covers most of the basic user I/O that would you would need to know to start writing a program in the language.  Great work!  :)
Title:
Post by: Axsyrus on November 13, 2003, 09:02:13 pm
oh, i forgot my favorite program

Loop Command
a++
print \"a\"
Loop

i love staring at all those little numbers flying by ^^
Title:
Post by: elscouta on November 13, 2003, 09:19:05 pm
while(1) {
 fork();
}

simple, funny. And a good way to gain time if you don\'t want to code. :P
Title:
Post by: CadRipper on November 13, 2003, 11:36:07 pm
When I\'m learning a new language it\'s usually because I need it for a specific application (I don\'t have enough time on my hands anymore to learn them just for the pleasure  :P ). So I\'m first trying to build a small module which includes the potential problems I think I\'ll encounter with the new language for that application.

That forces me to ask the main questions directly. Then when I\'ve toyed enough and feel ready, I start again from scratch.
Title:
Post by: gogg on November 16, 2003, 07:56:29 pm
http://www.jinxhackwear.com/scripts/details.asp?affid=-1&productID=142

I thought it was hilarious.