Whats the first line of code that you ever wrote?
Asked by
mirza (
5057)
September 11th, 2007
mine was “me.close” in visual basics
Observing members:
0
Composing members:
0
20 Answers
Something in Applesoft BASIC.
10 PRINT “ANDREW IS THE BEST!!!”
20 GOTO 10
first line of code ever ” <html> ”
first line of a real language ” cout<<“Hello, World!”<<endl;
Something like the others:
10 ECHO “Hello”
10 GOTO 10
first line would have been something like
#include print.lib;
Private Sub Form_Click()
Beep
Exit
End Sub
Visual Basic 6
That was really newbie-ish.
Something in the line of..
10 Begin
20 Print “Hello world”
30 End
I really have no idea… :P
How come you guys all still remember?
I think most of us know what our first language was and the first thing you learn in most languages is how to print something to the screen.
Well, I would say because we are some serious nerds here.
I don’t think there was even a screen that us peons could use; maybe there were screens at the compiling lab? Fortran of 1967 used a typewriter thing that punched cards and printed what was on the card on the top edge. We prayed as we walked across campus on a rainy or humid day that the cards didn’t absorb moisture, for if they did, they would not feed into the “monster” and no printout would result. I remember wrapping the cards in Saran wrap and aluminum foil to protect our 100 line programs. Ah, a dim memory…...
Definitely <html> and some basic Pascal stuff I learned at school. But I never really finished that course :o)
I really don’t remember, since I was 4 and it was a Commodore 64.
Probably something like
10 PRINT “News from my house”
along with updates on the health and well being of my various stuffed animals, and some complaints about how it’s raining so I can’t go swing.
On my TI/99–4A (which booted instantly into BASIC when you turned it on), I first wrote (probably):
print "Hello"
My first line of JavaScript (the language that has most fueled my career), my first line (of non-cut-and-paste code) was (again, probably):
alert("Hello");
html code count?? lol I don’t actually remember anyway
PRINT “ENTER PASSWORD”; pass
1 FORMAT (I, I3)
(1969 Fortran on the IBM 360/50)
000100 IDENTIFICATION DIVISION.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.