PlaneShift
Fan Area => The Hydlaa Plaza => Topic started 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?
-
I learn by practice, so the first thing I do, is the first thing I can\'t. :D
-
Long live the \"Hello World\"! :D
-
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.
-
nah, not everyone. My first program was \"what\'s up world!\", now, don\'t confuse the style with \"hello world!\" please
-
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 )
-
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
:-)
-
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.
-
Hello, World! definitely. :-)
-
\'Bonjour Monde\' for me ;)
-
hello world, immediately followed by the matrix screensaver(with test based graphics, none o that fancy stuff for me)
Jessyn
-
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!
-
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...
-
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.
//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.
-
Savion thinks that is way too much work and does a \"Hello world\" app.
-
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! :)
-
oh, i forgot my favorite program
Loop Command
a++
print \"a\"
Loop
i love staring at all those little numbers flying by ^^
-
while(1) {
fork();
}
simple, funny. And a good way to gain time if you don\'t want to code. :P
-
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.
-
http://www.jinxhackwear.com/scripts/details.asp?affid=-1&productID=142
I thought it was hilarious.