20 year old code

>20 year old code
>//temp hack will rework later

Attached: 1512360917260.jpg (199x155, 11K)

>not rewriting your programs every year

Attached: 1523590200844.jpg (582x449, 60K)

>// what the fuck

Attached: FB_IMG_1490097864678.jpg (256x256, 5K)

Literally me at work recently. I’m having to add a couple of features to some code written in 1998. This will be a temporary solution and I hope I have time to redo it from scratch soon. Most likely some other graduate will have to keep fixing the existing code 20 years from now.

// TODO: Fixme

Attached: 1524259793625.jpg (2448x3264, 1.7M)

// temporarily disabled
/*
...
*/

>shit we need to cycle through memory with dynamic sizes and we don't have a free processor to do it
>uhhh we can use the processor in the keyboard to do it lmao
still can't believe this actually happened

I object that being part of our shared reality.

no idea what you just said
i'm talking about the A20 gate

this can't be a real thing r-right?

Holy fuck, based.

cute baka, i am saving

basically the entire reason it was necessary was because programmers wanted to cycle through memory for memory seeking purposes
thing is though with the newer models of computers, you'd get a memory overflow because the size of RAM expanded in the newer model of the computer

thing is, that code for cycling can't be "updated", you'd force tons of companies to update code and it'd be bad for business, companies wouldn't want to move to a newer model if it came with "problems"

so they literally just decided to attach a separate processor (the keyboard controller) to handle this exact process and completely override it
meaning if a program tries to cycle through ram using whatever nonstandard code they have, it overrides it and runs its own cycle
using any other processor would bog down other processes

Save it, it's all yours my friend :)

//do not touch

>runtime error in that "do not touch" area

-...
-//stop reverting this you fucks, it breaks builds
-...

//figure out why this works

Holy shit when did this happen?

back when the AT chipset came out
ibm needed a quick way to support what is now called the a20 line, so they put it in the keyboard controller

They removed the A20 line just a few years ago I think.

//call 1234567 for a good time cash only

Attached: 84a[1].png (600x722, 720K)

//TODO: rewrite all of this

>call instruction at that address
>F0 0F C7 C8
This was not a good time.

>open notes on project
>^F "fuck"
>4 matches
>3 are "fuck it"
>1 is "DON'T TOUCH THIS FUCKING FUNCTION"
I managed to actually fix up that function too

Attached: coding_in_Lua_part_2.png (142x75, 901)

//tester function, do not use
(is used repeatedly in the code)

you see this a lot because people that're unwilling to do it seldom manage to finish anything or get it out the door.