Author Topic: Poll: for programmers out there.  (Read 1546 times)

zaphar

  • Hydlaa Citizen
  • *
  • Posts: 259
    • View Profile
Poll: for programmers out there.
« 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?
*Zaphar grins roguishly as he exits the post


lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #1 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
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Jedi

  • Hydlaa Citizen
  • *
  • Posts: 335
    • View Profile
(No subject)
« Reply #2 on: November 12, 2003, 04:02:36 pm »
Long live the \"Hello World\"! :D

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #3 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.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

sashok

  • Hydlaa Citizen
  • *
  • Posts: 448
    • View Profile
(No subject)
« Reply #4 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

Drachion

  • Hydlaa Resident
  • *
  • Posts: 126
    • View Profile
(No subject)
« Reply #5 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 )
Dim  Drachion as  allpowerfull
Dim  ForumUsers as  Mortals
If  Drachion=Mortal then  ForumUsers=Death else  ForumUsers=Slaves end if

zaphar

  • Hydlaa Citizen
  • *
  • Posts: 259
    • View Profile
(No subject)
« Reply #6 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

:-)
*Zaphar grins roguishly as he exits the post


Axsyrus

  • Veteran
  • *
  • Posts: 1119
    • View Profile
(No subject)
« Reply #7 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.

Axsyrus the Azure - Ruler of the Winds
Member of The Arcane Order\'s Council

Vengeance

  • Veteran
  • *
  • Posts: 1452
    • View Profile
(No subject)
« Reply #8 on: November 12, 2003, 08:33:51 pm »
Hello, World! definitely.  :-)

elscouta

  • Hydlaa Notable
  • *
  • Posts: 897
    • View Profile
(No subject)
« Reply #9 on: November 12, 2003, 08:39:17 pm »
\'Bonjour Monde\' for me ;)
High Loremaster of the Arcane Order.

Jessyn

  • Hydlaa Citizen
  • *
  • Posts: 249
    • View Profile
(No subject)
« Reply #10 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
Most things in life operate, not on reality, but the perception of reality.  

Wedge

  • Hydlaa Notable
  • *
  • Posts: 619
    • View Profile
(No subject)
« Reply #11 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!
Ninjas have feelings too.  Mostly they feel like dancing.



Xandria

  • Hydlaa Citizen
  • *
  • Posts: 453
    • View Profile
(No subject)
« Reply #12 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...

How I set my timezone:

ln -sf /usr/share/zoneinfo/Antarctica/Davis /etc/localtime

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
(No subject)
« Reply #13 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.

Savion

  • Hydlaa Notable
  • *
  • Posts: 537
    • View Profile
(No subject)
« Reply #14 on: November 13, 2003, 04:56:11 am »
Savion thinks that is way too much work and does a \"Hello world\" app.