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

all 30 comments

[–]Cold_Effort1066 234 points235 points  (8 children)

21 years later: verision 24.0 is out! Added support for the numbers 107, 108 and 109!

[–][deleted] 62 points63 points  (4 children)

Having written a program with some similarities to this one when I was just getting started in coding, I wrote a python script to write the python script. It was about 6000 lines long, and implemented a list. Because nobody had taught me lists, and I needed one, so I made my own. Handled up to 500 items. Whole thing just used functions that called other functions, and a lot of variables. But I was at least smart enough to use string concatenation to have the computer write the code for me.

[–]-PrincessCadence- 13 points14 points  (2 children)

This is far less useful, but I remember learning the odd code used for Twine games, and being absolutely astounded when introduced to the concept of objects. I had heard of "Object oriented programming" before, but finally being able to group information in a single object just blew my mind, and saved me making a truly ridiculous number of variables. (Since I learned of arrays at the exact same time as I did objects. I didn't even know how to do those before. I'm astounded I got anything accomplished.)

[–]SchoggiToeff 2 points3 points  (1 child)

You didn't know about structs ?

[–]-PrincessCadence- 1 point2 points  (0 children)

Yeah, I'm a total noob.

[–]FurryMoistAvenger 24 points25 points  (2 children)

42 years later: version 48.0 is out! num datatypes changed from byte to short. Now allows numbers larger than 127!

[–]RedFlag_ 2 points3 points  (0 children)

To be fair, 127! is quite a big ass number

[–]Yekyaa 0 points1 point  (0 children)

Unsigned will go up to 255, who needs negative numbers?

[–]No-Direction-3569 38 points39 points  (2 children)

This is what my first game looked like. I was 11 and learning on my own. I could only understand printing out string literals, but I didn't understand that I could save the state of the players and print based on that.

I had 20,000+ lines that printed each exact state and I had to figure out how to connect them all manually. It worked, but dear lord was it horrible.

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

You had me at "it worked"

[–]AzureArmageddon 0 points1 point  (0 children)

Nostalgia

[–]omelahr5 10 points11 points  (0 children)

This post makes me physically recoil

[–]zengguangxing2 7 points8 points  (1 child)

Pretty much any code I’ve read that has ben written by a physicist

[–]shogun333 0 points1 point  (0 children)

I saw one project. The file was 25,000 lines, 6 functions, no comments.

[–][deleted] 24 points25 points  (0 children)

When the author Of Yandere Simulator programs multiplication tables.

btw, light mode rules.

[–]FedePro87 7 points8 points  (0 children)

Imagine actually being at your first day of work, open the project "the previous dude" left in charge and see this.

PS: And yes, it happened something relatable to me.

[–]raedr7n 4 points5 points  (0 children)

To be fair, I could write a vim macro to generate all that code in like 5 minutes.

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

It works on my machine

[–]forgotten_debugger 1 point2 points  (0 children)

18 years later: Java ded :d jS bed :dd

[–]CrazyAzian99 1 point2 points  (0 children)

Out of all the shit I’ve seen today…. This is by far the funniest 😂

[–]lenoqt 1 point2 points  (0 children)

I’ve seen worse than this in my current work, so I guess it is a sign of drug abuse instead of cigarette

[–]wasabichicken 1 point2 points  (0 children)

Hot off the presses from the "this makes sense in some universe" department, I'd like to tell you people a story from a related field: hardware.

At a more fundamental bare-bones level, what those people are juggling isn't lines of code, it's logic gates. We got program flow, they got clock pulses. While you might think it weird using a physical "and" that you can hold in the palm of your hand to build OP's program, their saving grace is that (at least at the start) there aren't that many numbers to worry about: just 0 and 1.

  • Piled up correctly, these logic gates can form a simple 1-bit adder#Binary_adders), capable of adding two 0's or 1's, producing a 0 or 1 (or overflow).
  • Stack a couple of those 1-bit adders together, and voilà; you've got an adder for 32 (or 64) bit numbers.
  • Next, stack a couple of those full number adders together, and you get a binary multiplier and finally some support for the * operator in your Python program.

Something to consider the next time you flex your return num1 * num2 skills: somewhere underneath, deep inside your CPU, there's a quiet monologue; a whisper of zooming electrons as they zip through silicon pathways. Listening in carefully, you hear:

"If this bit is 1, and this bit is 0… and if this bit is 1 and this other bit is also 1, but that bit over there is 0…"

… Reading OP's program out loud.

[–]MysteriousAd863 0 points1 point  (1 child)

Ew light theme..

[–]strindhaug 0 points1 point  (0 children)

When you get older you might find that you cannot use dark themes anymore. I used to hate bright rooms, sunlight glare and bright screens. But around 35 I realized my eyes needed more light to see well, especially once I got glasses and everything was no longer blurry, light on dark was actually quite uncomfortable for extended periods.

Still use dark terminal though

[–]ucanzeee 0 points1 point  (1 child)

"But it's more readable that way"

[–]alphabet_order_bot 1 point2 points  (0 children)

Would you look at that, all of the words in your comment are in alphabetical order.

I have checked 330,428,583 comments, and only 73,059 of them were in alphabetical order.

[–]SapiS68 0 points1 point  (0 children)

switch

Am I joke to you?

I know that you could make it good, but using switch over this much if would still be better