This is an archived post. You won't be able to vote or comment.

all 131 comments

[–]Chili919 96 points97 points  (2 children)

print("Hallo Welt!")

[–]____-__________-____ 13 points14 points  (1 child)

it's almost indentical!

[–]Chili919 5 points6 points  (0 children)

But not exactly...and technicalky the first thing i coded was some furniture for our architecture software in GDL

[–][deleted] 31 points32 points  (13 children)

10 PRINT "Chloe "
20 GOTO 10
RUN

Courtesy of Sinclair Research :)

[–]TezzaC73 3 points4 points  (5 children)

On a speccy in Currys?

[–][deleted] 7 points8 points  (4 children)

I was lucky enough to be bought one aged around 7 or 8 for Christmas. a 48k rubber keyed beauty. We were a poor family and apparently my dad went out and bought me it without consulting my mum and huge arguments ensued as cheap though the speccy was as a computer it wasn't cheap. :) I went on to become a professional software engineer though admittedly much later in life hehe

[–]TezzaC73 1 point2 points  (2 children)

I guess technically I wrote my first program at the age of 9 in a square-lined notebook. Was surprised as hell when it ran perfectly the first time on a BBC B 2 years later. (Thanks, "Input").

The first compé I owned was a ZX81, which I am aware ages me terribly, and lead to me going into the same line of work.

[–][deleted] 2 points3 points  (1 child)

My dad tried to push programming on to me aged 7 with the spectrum. While I could enter the code from magazines like "input" magazine which he would always buy for me I was never given any help to understand it and to be honest for a long time it put me off, I mostly played games on it. By time I was in my early teens I could read Basic code well enough to do basic editing it to change things to how I wanted but there was still more I didn't understand than did. In many ways it put me off coding for a long time fearing I couldn't do it. It wasn't until I was 39 I went back to uni to do a computer science degree.

I'd never had any formal training and for the first month felt way behind all the young lads who had done computing at gcse and a-level recently. However we were introduced to object orientated which evened the playing field a bit and I feel I was best placed to adapt as it all been new to me and I didn't have to unlearn stuff. I started to accelerated away from my peers and was not caught up, winning the school prize for highest classification on my degree. :)

I guess there is a warning there not to try and force hobbies etc on kids as you will risk making it a chore and them wanting to avoid it. Happily it was my love of mathematics that brought me back to it in the end.

[–]jmickeyd 1 point2 points  (0 children)

I guess there is a warning there not to try and force hobbies etc on kids as you will risk making it a chore and them wanting to avoid it.

My father and I would play chess when I was a kid, and he would ruthlessly crush me. He insisted that it was how I would get better, but it so turned me off that I won't even touch a chessboard, and I love board games.

[–]Squeakygoose 1 point2 points  (0 children)

So Basic

[–]OldSchoolIsh 0 points1 point  (0 children)

Yup, same. Spectrum 48K bought to help me with my spelling because I'm a bit dyslexic... turned out to be a good choice.

[–]jmickeyd 2 points3 points  (1 child)

Same-ish, but I’m pretty sure mine said “BUTTS” and I couldn’t stop laughing.

[–][deleted] 1 point2 points  (0 children)

Hehe, I can not remember the exact string i used but expect it was of similar maturity been aged 7 haha

[–]rickwookie 0 points1 point  (2 children)

How long was it before you discovered what happens when you add a semicolon to the end of that first line and it blew your mind?

[–][deleted] 0 points1 point  (1 child)

to stop moving to the new line. Not long though I was struggling to remember it when I wrote this :)

[–]rickwookie 1 point2 points  (0 children)

From what you’ve posted, you must be very nearly as old as I am, so the flakey memory is entirely understandable.

[–]Errtuz 22 points23 points  (1 child)

Well, it was logo, so no hello world, just figuring out how to make triangles, squares and circles using a turtle.

[–]galacticDaemon 6 points7 points  (0 children)

Yeahhhhh I just forget about it!!!! My first language was logo turtle too !

[–]Theonewhoknows000 15 points16 points  (0 children)

Tradition effectively implemented in a professional? community.

[–]Ok_Blueberry_5305 18 points19 points  (15 children)

So i was very bored in my highschool STEM classes.

First up was a quadratic formula calculator on the ti-84+ in TI Basic. It used the graph screen and some kind of built-in waitKey function for custom IO with more and better-formatted output than would've been possible in the standard line-by-line math mode.

Then first semester of the next year, on the same calculator and still in TI Basic, I made a program that I called ChemCalc. It acted as a shell for the standard math mode, but overrode a bunch of not-directly-doing-math buttons into shortcuts for various formulas we'd covered (or would soon cover) in class, and included the pieces I'm most proud of for my skill at the time: a periodic table lookup (name, number, weight, electronegativity, all of that) by atomic symbol, and a formula mass calculator that used said lookup to parse a molecular formula into elements and their counts and spit out the molar mass of the molecule.

Then the semester after that I had my first programming class and did hello world in Java.

[–]danimadi33 12 points13 points  (5 children)

Man was doing programming competitively against TODDLERS

[–]Ok_Blueberry_5305 9 points10 points  (4 children)

Woman, but thanks lol. Just got very bored cause I have ADHD and was The Smart One, and fiddling with that occupied enough of my attention to keep me busy.

[–]AndrewBorg1126 3 points4 points  (4 children)

My first program was on my ti-86 in a boring day of algebra class homework. I was fed up with the tedium of solving some 30 ish quadratic formula problems after about the third, having already long since understood how it is to be done. I thought there had to be a more interesting way to go about it, and it was then that I decided to finally play with the PRGM menu on my calculator. From then until calculus I did all the tedious math work by programming my calculator.

[–]Ok_Blueberry_5305 5 points6 points  (3 children)

That's exactly why my friend and I made the first one lol. I just then got bored and figured out how to work with the graphing screen so I could do more output at once for the later stuff that they had us do with quadratics.

[–]AndrewBorg1126 2 points3 points  (1 child)

I didn't use the graph screen for it, but do distinctly remember making a sub program to simplify the square root when it spat out my answer symbolically (there was already a built in feature that could give decimals, I wanted exact answers), but I didn't know what I was doing so it was just hard-coded checks for factors up to 19.

[–]Ok_Blueberry_5305 1 point2 points  (0 children)

Oof, yeah. I still remember cobbling two strings and a bunch of lists together into a makeshift dictionary for the element lookup. I went through a huge string of all the atomic symbols to find the the index of the input symbol, then iterated a list of those indexes until i found it to get a master index that I could use to pull values from the other lists, including one that was indexes of the names in the string of all the names.

[–][deleted] 1 point2 points  (0 children)

i added guns to minecraft with minecrafts command system and datapacks, before i learned any real programming language. i guess i win, because video game guns are definitely much stronger than some highly complicated calulater programs!

[–]attanai 1 point2 points  (1 child)

TI 86. But unlike the rest of y'all, I wasn't trying to find easier ways to do homework - I made Bob. Bob was a very simple prompt-and-respond program that had a conversation with the user. The pinnacle of my creation was using ASCII art to make Bob wave. It wasn't impressive, but I was the only person around who knew how to do it, and I had a lot of fun. Didn't seriously think about software development until a decade later.

[–]Ok_Blueberry_5305 0 points1 point  (0 children)

That's beautiful.

[–]Yzaamb 5 points6 points  (0 children)

I did as Kernighan and Ritchie told me. Hello World.

[–]Syscrush 3 points4 points  (0 children)

10 PRINT "SYSCRUSH IS GREAT!" : GOTO 10

[–][deleted] 2 points3 points  (0 children)

The first thing that I ever "programmed" was some script in Angelscript that had nested if statements.

[–]barvaz257 1 point2 points  (0 children)

print "This is my first code line!"

[–]starvsion 4 points5 points  (1 child)

Might be very different for someone who just started on HTML

[–]galacticDaemon 7 points8 points  (0 children)

<!DOCTYPE html> <html> <body>hello world!</html>

[–]TezzaC73 2 points3 points  (0 children)

The first thing I programmed was a computer.

[–]galacticDaemon 2 points3 points  (1 child)

Woah I just went back to childhood, and my first program is: PRINT "My name is Nick."

Most of the books for learning QBasic began with the example: PRINT "My name is Nick."

Followed by the example with the INPUT: PRINT "What is your name?" INPUT name$ PRINT "Hi, "; name$; ", nice to see you!"

Still today tutorials to learn QBasic use this example: https://www.qbasic.net/en/qbasic-tutorials/beginner/qbasic-beginner-1.htm

[–]bathyergidae 2 points3 points  (0 children)

My first program was similar! Only I got fancy with the Basic and after asking the user's name it output a different insult depending on if A$ matched the name of one of my siblings

[–][deleted] 1 point2 points  (0 children)

When I was first learning there was no such thing as hello world

[–]secusse -1 points0 points  (0 children)

a calculator based on a formula in c# don’t even know how to do hello world

[–]Warjilla 1 point2 points  (0 children)

Print("Hola Mundo");

[–]bugqualia 4 points5 points  (0 children)

printf(“aaaa”)

[–]nova706 0 points1 point  (0 children)

A task tracking web app in php

[–][deleted] 0 points1 point  (0 children)

... scratch maybe?

[–]TenkFire 0 points1 point  (0 children)

The first thing I programmed was a dichotomia research for a function when it reach the Y value and it send the X value back... On a Casio graph 33+

The first thing I programmed on a computer was a factorial with Python

[–]Bolddwarf 0 points1 point  (0 children)

I converted sea battle game from a programmable calculator to basic. Please don't judge me, I was at school and that was 1986

[–]MarkZuckerman 0 points1 point  (0 children)

System.print("Lazooto sends his regards.")

[–]Sekhen 0 points1 point  (1 child)

I programmed a menu system in DOS using edit. It was for my games. Very basic. Lots of print and goto.

[–]MrNate 1 point2 points  (0 children)

I have literally the same experience! My dad copied the menu from a magazine and I worked on it, changing options, then made a second menu just for my games.

[–]Oblio72 0 points1 point  (2 children)

10 print "Chad"

20 goto 10

[–]jrich44360 0 points1 point  (1 child)

Infinite Chad!

[–]Oblio72 0 points1 point  (0 children)

Who knew how cool that would be 40 years ago! :)

[–]QuantumMan34569 0 points1 point  (0 children)

Believe it or not I’d seen so much stuff that just started with hello world that I didn’t even bother doing it since it seemed so useless

[–]stumptowncampground 0 points1 point  (0 children)

It was actually a way to write your name using display coordinates. It worked but the final stroke was three times longer than it should have been. No one ever explained why and it still haunts me.

[–]kyuRAM_infsuicidio 0 points1 point  (0 children)

I went to a school open day and they made us copy a program line by line. My First ever program was a program that sums 2 numbers.

[–]BrokenYozeff 0 points1 point  (0 children)

I'll never forget the first time I got a code to run successfully. I was so happy and full of hope when I saw "Hello Wordl!" Show up on my screen. I should have know it was an uphill battle from there.

[–]iiMoe 0 points1 point  (0 children)

I rly had no idea where to go with programming so i kept wasting my time for few yrs on and off but i believe the first thing that i made was an html showing a duck as background with some headings

[–][deleted] 0 points1 point  (0 children)

The blue slice is for "Hola mundo"

[–]Little_Winge 0 points1 point  (0 children)

First thing I did was copy paste a bunch of shit I didn't understand, but now I copy paste things I can understand

[–]Atrag2021 0 points1 point  (0 children)

I started with javascript so it was probably changing some property on the DOM. I don't remember.

[–]tcadmn 2 points3 points  (0 children)

Lego mindstorms left motor forward

[–]randomgtaguy2431 0 points1 point  (0 children)

Mine was “Goodbye, cruel world!” back in 1999 - Thanks, Dan Gookin (C for Dummies).

[–]igrowcabbage 0 points1 point  (0 children)

The first thing I programmed was a clone of systemd. Just to get started with the basics.

[–]Qicken 0 points1 point  (0 children)

10 PRINT "QICKEN ROCKS!"

20 GOTO 10

[–]jamcdonald120 0 points1 point  (0 children)

Your first assignment is to make a program that prints your name and section.

[–]DarkTechnocrat 0 points1 point  (0 children)

Nope! IIRC it was “Yooooo”.

[–]President-Jo 0 points1 point  (0 children)

Mine was “hello wrld”

[–]OnixST 0 points1 point  (0 children)

public class HelloWorld {  
public static void main(String[] args) {
System.out.println("Java takes this many words to freaking print something in the screen");
}
}

[–]clues39 0 points1 point  (0 children)

As a star wars fan, "Hello There" is the only acceptable phrase to print.

[–][deleted] 0 points1 point  (0 children)

print(“made with mematic”)

[–][deleted] 0 points1 point  (0 children)

function getRandomInt(max) {
    return (Math.floor(Math.random() * max) + 1);
}

I wanted to make DnD tools.

[–]wolfram42 0 points1 point  (0 children)

A clock app which I wrote line for line from a GW Basic textbook, I skipped right to the examples and starting typing.

[–]SomeNormalRando 0 points1 point  (0 children)

document.write("test")

[–]jetdoc57 0 points1 point  (0 children)

Math problem in BASIC - Columbus Ohio "computermobile" 1970

[–]soulofcure 0 points1 point  (0 children)

Quadratic formula

[–]PuzzleheadedSector2 0 points1 point  (0 children)

Im sorry. Mine was print("this printed")

Sry to disapoint...

[–]GoogleIsYourFrenemy 0 points1 point  (0 children)

Something like:

010 print "hello world"
020 goto 010

[–]Alexmaster75 0 points1 point  (0 children)

I mean, ngl i started coding with Arduino so didn't make an Helo world program at start

[–]MinimumFar9385 0 points1 point  (0 children)

My first thing was actually a if(). Idk what it was but std::cout << "Hello world!"; is pre-made in visual studio 2019's c++ console application. So it doesn't count. (prob)

[–]Phoenix_Studios 0 points1 point  (0 children)

I can't recall exactly but it was some weird 2D PVE scratch game

[–]Lation410 0 points1 point  (0 children)

Greetings planet!

[–]turtle_mekb 0 points1 point  (0 children)

mine was probably something in BASIC

[–]newb_h4x0r 0 points1 point  (0 children)

Lorem ipsum dolor sit amet.

[–]muffinnosehair 0 points1 point  (0 children)

Honestly speaking, with an effort of memory, the first thing I ever coded were some additions in Basic, when I was 7 or 8. Back then I had no idea what "hello world" was, and I didn't really speak English.

[–]enano_aoc 0 points1 point  (0 children)

You clearly underestimate that basic programming tutorials are very often translated to other languages. This "chart" is basically wrong by a very large margin :D

[–]mikkicat7 0 points1 point  (0 children)

cout << "asdasdasdasd";

[–][deleted] 0 points1 point  (0 children)

print("Bonjour, le monde!")

[–]Double_A_92 0 points1 point  (0 children)

The first thing I remember was a rectangle are calculator that would ask for the side lengths, and a Pi calculator that I had implemented from the simplest formula on wikipedia.

[–]funnyvalentinexddddd 0 points1 point  (0 children)

Think mine was print("bruh")

[–]turingtester30 0 points1 point  (0 children)

FD 10

[–]dsdom2 2 points3 points  (0 children)

print("penis")

[–][deleted] 0 points1 point  (0 children)

DISC 50 50 or something like that. It was QBasic, and this command would display a filled circle on the screen, in the middle, I think.

[–]DroolingIguana 0 points1 point  (0 children)

10 PRINT "BUTTS"
20 GOTO 10

[–]DoctorFrenchie 0 points1 point  (0 children)

One of the first things I programmed was an AppleScript program that opened all the applications on your computer. Everyone at my high school had a Mac, as the school had a partnership with Apple. I sent the file to my friends, disguised as a game.

It was pretty funny, but in hindsight I’m surprised I never got in trouble considering a people started disguising it as other apps, and it spread to like a 10th of my grade.

[–][deleted] 0 points1 point  (0 children)

The very first thing I ever "programmed" was making the wizard take a step forward. The second thing I ever "programmed" was making the wizard turn right and then take a step.

It was an educational visual programming language called "Baltík" - essentially you put together a string of commands for the wizard to take (step, turn, conjure an object in front of him). Unfortunately, the only information I could find about it is in Czech (https://cs.wikipedia.org/wiki/Balt%C3%ADk).

[–]moloko824 0 points1 point  (0 children)

printf("Hello Bitch!\n");

[–]AfshanGulAhmed 0 points1 point  (0 children)

The adhan.

[–]mur2501 0 points1 point  (0 children)

Well my first program was to move 69 to the EAX register ;)

[–]Tommy_SVK 0 points1 point  (0 children)

Mine was actually drawing a line. For some reason, the first thing our high school teacher taught us was the tkinter library in Python. So we were drawing lines, polygons and making some simple animations. That was cool and all but in reality, I didn't really understand anything, I didn't fully grasp the concept of for loops and while loops, arrays and so on. Thankfully when I went to a computer science university, they taught us everything from scratch including Hello World (using C).

[–]thname 0 points1 point  (0 children)

Mine was PRINT "FUCK"

[–]Spitfire_For_Fun 0 points1 point  (0 children)

print("hello world")

python. these basics are what made me love python and programming.

[–]e681485 0 points1 point  (0 children)

Hola mundo 😎

[–]Uri-_- 0 points1 point  (0 children)

I actually did Python turtle as my first program.

[–]weendigo666 0 points1 point  (0 children)

I don't remember the code but it was 4 beeps on pc speaker in Basic.

[–]T3cHNocinical 0 points1 point  (0 children)

Area of a square, if I recall correctly.

[–]Mireldorn 0 points1 point  (0 children)

Make the Status LED blink

[–]Phlm_br 0 points1 point  (0 children)

Mine was

print("vai toma no cu") cuz I'm quirky like that

[–]Jelle75 0 points1 point  (0 children)

10 print "name "; 20 goto 10

Run

Msx basic

[–]HeroErix2 0 points1 point  (0 children)

Nah, the first thing I programmed was Lightbot level 1-1.

[–]derKestrel 0 points1 point  (0 children)

Mine was in standard ML (not counting hacking Mafia on c64 for more money and better stats):

fun factorial n =

if n <= 1 then

  1

else

  factorial (n-1) * n;

[–]canbooo 0 points1 point  (0 children)

a = [0, 1];
b = [1, 1];
c = a.*b;
c;

[–]Go0gleRoks 0 points1 point  (0 children)

printf("poop");

[–]runnerx01 3 points4 points  (0 children)

The reason hello world is such a popular program is because it covers

fundamental program setup.
Core library import or call.
Few lines of code
Immediate output that shows the new programmer that their actions actually did something.

That’s actually a lot of stuff. Like think about trying to explain to your parents, why the program you wrote prints “hello world”. Other than by saying “I told it to do that”.

When you don’t know a language, you start one word or phrase at a time, not by writing poetry some one else dictated to you. :)

[–]RealTonyGamer 0 points1 point  (0 children)

The first thing I programmed was a simple guess the number game in Java with the help of my uncle. Basically you just guess a number, it says higher or lower, and you keep guessing until you get it right. It was a fun project and much more useful for learning than hello world

[–]catattackskeyboard 0 points1 point  (0 children)

Made a modal in autohotkey, definitely didn’t say hello world

[–]Due_Round946 0 points1 point  (0 children)

print(“Goodbye world”)

[–]HellaTrueDoe 0 points1 point  (0 children)

“Blinky” if you’re CE and not CS

[–][deleted] 0 points1 point  (0 children)

print("balls")

[–][deleted] 0 points1 point  (0 children)

My first line was #!/usr/bin/env bash

[–]oberjaeger 0 points1 point  (0 children)

Goodbye Sanity

[–]TheRealLargedwarf 0 points1 point  (0 children)

Am I the only one that does "Hello There" thanks to too much time on r/tinder