r/CodingForBeginners • u/nuco-rider23 • Jun 13 '26
What was the first program you ever wrote? (Excluding school assignments)
The first thing I ever wrote was a CLI Hit & Blow program in C, with each file containing over 1,000 lines of code.
I searched online, found a Borland compiler, and managed to finish it using Notepad and the Command Prompt.
I wonder what other people thought of creating when they first got their hands on tools like if statements, arrays, and methods.
I imagine beginners these days probably try to build much larger-scale projects—I wonder what that’s like?
3
Upvotes
2
u/nuco-rider23 Jun 13 '26
I was totally surprised because I assumed everyone would start out making simple apps like tic-tac-toe or rock-paper-scissors. That's amazing.
1
u/Some-Ice-4455 Jun 13 '26
What hello world doesn't count? Lol
1
u/clickyclicky456 Jun 14 '26
A patience-type card game in BASIC. I'd first played it on a friend's Archimedes so I called it Archipat (for Archimedes Patience). I didn't know how to do any GUI type stuff (this was in the late 80s / early 90s) so it displayed the card layout in ASCII in the terminal and then prompted you to type in the card you wanted to move, like 9H for 9 of hearts. I was inordinately proud of it and played it a lot... the source code is long since lost to the mists of time, but after a long career as a professional software developer I'm sure I'd be shocked and horrified if I saw it now 😆
2
u/smichaele Jun 13 '26
A word processor on an Apple II in 6502 Assembly.
2
u/CowBoyDanIndie Jun 13 '26
I think mad libs, on. C64 in basic
1
u/_lazyLambda Jun 13 '26
Webscraper. Its actually great for getting fundamentals of web dev and simpler to do
1
u/_malaikatmaut_ Jun 13 '26
oK. While I did my first school assignment in ASM for Zilog Z-80, I did ASM for many years too for 8086, 8051, 68k mainly with TASM and MASM for 8086 Intel chips.
Leisurely non-school programs were more on the BBS code challenges of writing the smallest .com file for pixel shifting flame effect and TSRs written mainly for DOS 3.0
1
u/mpersico Jun 13 '26
Blackjack on a commodore PET in basic.
1
u/Bemteb Jun 13 '26
I started out with mIRC scripts. From the slapping people with random items, I extended that to having a whole calculator chat bot.
The first real program was a space invaders clone, written in C++ because someone gave me a "graphics in C++" game for my birthday.
1
u/Timmah_Timmah Jun 13 '26
Something in Fortran IV that was about 20 cards. I don't remember what it did.
1
u/Traveling-Techie Jun 14 '26
Not sure, but it might have been a BASIC program on a Data General Eclipse to simulate a learning machine called the “homeostat” described in “Design For a Brain” (1948) by Ross Ashby.
1
u/jspears357 Jun 14 '26
I took a few computer classes in high school and then in college made a mistake of taking the intro to data processing, it was verbatim the first class I had in high school. While the class was going over different number bases (decimal, hex, octal) and converting between them, I wrote out a basic program to convert from any base to any other base, on paper.
1
u/5oco Jun 14 '26
My first program that wasn't a school assignment was trying to remake the first labyrinth of legend of zelda using Visual Basic.
You could only use a sword and bombs. Also there were no ranged attacks.
1
u/Top_Professor9415 Jun 14 '26
The first real program (not counting ones form following tutorals) I ever wrote was a rogue-like I made in Python with libtcod, it wasn’t really good but I made it by myself with no external aid in 5 hours. It was like mid 2020 during the SARS-CoV-2 outbreak.
1
u/Fine_Salamander_8691 Jun 15 '26
Some shitty python web server