Why is it working?

Jun 7, 2019 11:26 AM

me irl

Programmer: My code doesn’t always work, but when it does... I don’t know why.

programmer

memes

comic

funny

programming

Why's he just sitting there? Can't he do something else productive while it compiles? /bittermolecularbiologist

6 years ago | Likes 1 Dislikes 0

What about the TESTS???

6 years ago | Likes 1 Dislikes 0

how long does it take to compile a program?

6 years ago | Likes 1 Dislikes 0

Compiling is similar to Lotto Tickets. A lot of wishing followed by disappointment, losing time/money, then foolishly rinse n repeat.

6 years ago | Likes 1 Dislikes 0

99 bugs in the code of the lines, 99 bugs in the code, fix em all, compile it again, 108 bug of code in the lines!

6 years ago | Likes 1 Dislikes 0

...Segmentation Fault

6 years ago | Likes 1 Dislikes 0

"If it compiles, ship it." is my motto.

6 years ago | Likes 1 Dislikes 0

I never struggle with compile times.

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 1 Dislikes 0

Why doesn’t this work? This shouldn’t work. Why did that work?

6 years ago | Likes 1 Dislikes 0

F5 -> Runtime error: Can't write to 0x7FFFFFFF

6 years ago | Likes 1 Dislikes 0

That's why you don't watch it build.

6 years ago | Likes 9 Dislikes 0

If it works and you don't know why...you're not a programmer

6 years ago | Likes 3 Dislikes 5

Agreed.

6 years ago | Likes 1 Dislikes 0

But are you a software developer?

6 years ago | Likes 1 Dislikes 0

I'm sure you've never ever used an abstracting library, then. Or used C standard I/O instead of writing your own I/O.

6 years ago | Likes 1 Dislikes 0

I am a prog rammer. I ram progs.

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 5 Dislikes 0

VBE?

6 years ago | Likes 1 Dislikes 0

I never touch the stuff.

6 years ago | Likes 1 Dislikes 0

Use an interpreted language.

6 years ago | Likes 3 Dislikes 0

or precompiled hears.galaxybrain.jpg

6 years ago | Likes 1 Dislikes 0

headers, even

6 years ago | Likes 1 Dislikes 0

I thought virgin blood was what kept the code running.

6 years ago | Likes 2 Dislikes 0

The two states of programming; 1) it doesn't work and I don't know why 2) it works and I don't know why.

6 years ago | Likes 30 Dislikes 0

Compiling time is nap time.

6 years ago | Likes 1 Dislikes 0

Oh... Microsoft changed something and my program now immediately breaks on run with an overly generic error... Yay.

6 years ago | Likes 3 Dislikes 0

I still remember the days when compiling took hours instead of seconds.

6 years ago | Likes 2 Dislikes 0

Build chromium/a mozilla product on a laptop; still does.

6 years ago | Likes 1 Dislikes 0

*On a non-gaming laptop at least.

6 years ago | Likes 1 Dislikes 0

//don't know what this does but removing it breaks everything. Not sure how it works either. DO NOT TOUCH

6 years ago | Likes 112 Dislikes 0

Puts code on file A, call on file B: Works. Moves code to file B for clarity: Entire code breaks, thunderclaps and eartquakes. Death is here

6 years ago | Likes 1 Dislikes 0

for me a lot of //this seemed like a good idea but apparently breaks the game, don't uncomment

6 years ago | Likes 12 Dislikes 0

Line number based programming seems horrifying

6 years ago | Likes 4 Dislikes 1

20 goto 10

6 years ago | Likes 3 Dislikes 0

Print: "My friend dan is gaaaaay"

6 years ago | Likes 2 Dislikes 1

As someone who has a modicum of assembly experience it is fine if you want to do something simple. But anything complicated? F that.

6 years ago | Likes 4 Dislikes 0

It's like, I accidentally glued a hammer to the table leg, but you can't take it off without pulling the leg off as well, ruining the table.

6 years ago | Likes 7 Dislikes 0

v Alright......time to test it

6 years ago | Likes 64 Dislikes 0

...In production.

6 years ago | Likes 10 Dislikes 0

On Thursday/Friday

6 years ago | Likes 4 Dislikes 0

what is compiling? running the code?

6 years ago | Likes 1 Dislikes 0

Making it so the code can be run and checking syntax errors. IIRC.

6 years ago | Likes 1 Dislikes 0

Close, It's translation of code from human readable format to a computer runnable one. "Syntax check" only if the compiler can't understand

6 years ago | Likes 1 Dislikes 0

Computers run on binary called opcodes. This is processor specific and hard to deal with so higher level languages like C exist. A compiler

6 years ago | Likes 2 Dislikes 0

Takes your code and among other things, converts it into instructions that your processor can actually understand

6 years ago | Likes 2 Dislikes 0

I think this answer might be too complex for someone who has to ask what compiling is XD. try "converts code into computer instructions"

6 years ago | Likes 4 Dislikes 0

doesn't that happen automatically when you run the code?

6 years ago | Likes 1 Dislikes 0

You have to compile before you can run it. Unless its an interpretated language

6 years ago | Likes 1 Dislikes 0

I fix one bug and then... well you know when you step on a pregnant spider? Yeah I get a million baby spiders, what's a bug again?

6 years ago | Likes 1 Dislikes 0

Ok, can I just vent for a second? I was working on a code in Matlab recently and couldn’t figure out why I was getting the wrong numbers.1/2

6 years ago | Likes 1 Dislikes 0

It turns out that an “i” which was supposed to be an imaginary number identifier was being treated as a variable. 2/2

6 years ago | Likes 1 Dislikes 0

How tf am I supposed to identify that as the issue

6 years ago | Likes 1 Dislikes 0

From a programmer: compiling is the easy part. Now comes testing. Good luck.

6 years ago | Likes 376 Dislikes 1

Our application will be tested next week, I found so many errors building the app..

6 years ago | Likes 1 Dislikes 0

*sends app to QA without testing it*

6 years ago | Likes 1 Dislikes 0

Just because it compiles doesnt mean it works. Similar to writing an essay. Just because its grammatically correct doesnt mean its any good.

6 years ago | Likes 2 Dislikes 0

I get scared when my first attempt compiles with no errors. Means the problem(s) are more hidden.

6 years ago | Likes 7 Dislikes 0

6 years ago | Likes 3 Dislikes 0

Pshh that's easy too. Just think about all the problem your application could have ahead of time, put them in a table, fill in the methods 1

6 years ago | Likes 1 Dislikes 0

You will use to test against them, meticulously go down the list and perform said methodology several times, tada, your app is still buggy

6 years ago | Likes 1 Dislikes 0

I've been a programmer for over 20 years. I spend the majority of my time debugging, not actually programming (or testing, hahahaha)

6 years ago | Likes 1 Dislikes 0

let me hit you with that runtime error:

6 years ago | Likes 11 Dislikes 0

And static code analysis

6 years ago | Likes 1 Dislikes 0

Survive that, and documentation will take most of your will to live. QA then take what's left

6 years ago | Likes 1 Dislikes 0

wht about optimizing and refactoring the whole thing?

6 years ago | Likes 55 Dislikes 0

Bethesda: "What's that now?"

6 years ago | Likes 8 Dislikes 0

That too.

6 years ago | Likes 2 Dislikes 0

6 years ago | Likes 3 Dislikes 0

Ain't nobody got time for that...with all these deadlines

6 years ago | Likes 30 Dislikes 0

And no budget...

6 years ago | Likes 1 Dislikes 0

Because everyone is working on the problems that come from unoptimized code in dire need of refactoring

6 years ago | Likes 14 Dislikes 0

No argument there. Getting business side to understand that is such a friggin battle

6 years ago | Likes 6 Dislikes 0

Bethesda in a nutshell.

6 years ago | Likes 13 Dislikes 0

I have made a multimillion dollar aircraft training system yell "PENIS" repeatedly while hard locked. It only happened once, then worked ok.

6 years ago | Likes 4 Dislikes 0

The system was set to afterburner volume, so that shit ECHOED.

6 years ago | Likes 3 Dislikes 0

Bethesda: What is this "testing"?

6 years ago | Likes 18 Dislikes 0

EA: How about you pay us to be allowed to do the testing?

6 years ago | Likes 3 Dislikes 0

IMO, Bethesda is what happens when you insist on proper grammar but don't care about syntax. Then you publish but don't proofread the story.

6 years ago | Likes 1 Dislikes 0

That's another word for "Modders will take care of it" -right?

6 years ago | Likes 3 Dislikes 0

I took some classes in college as a game designer. I would create code and confuse my professor because it would work, be shorter than he

6 years ago | Likes 2 Dislikes 2

Had expected the actual "answer" to be and we both knew i had no clue what inwas doing 99% of the time. But hey it always worked

6 years ago | Likes 2 Dislikes 2

6 years ago | Likes 1 Dislikes 0

I was a designer and I just worked from my notes in class. But I understand numbers really well.

6 years ago | Likes 1 Dislikes 0

6 years ago | Likes 2 Dislikes 0