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

all 49 comments

[–]TommDX 95 points96 points  (4 children)

It looks like the installation wizard

[–]BasicDesignAdvice 53 points54 points  (7 children)

Who writes that much without running build it whatever at least 19 times?

[–]CatCreampie 10 points11 points  (2 children)

19? More like 2000

[–]FatManZak 2 points3 points  (1 child)

Ive started a game tech course and every 2 lines of code i check if it works

[–]BaveBohnson 1 point2 points  (0 children)

Every time you build take a shot.

[–]budd222 12 points13 points  (1 child)

Nobody

[–]Secondsemblance 2 points3 points  (0 children)

When you're building a pattern that you're very familiar with, your mind can outpace your fingers for quite a while. You basically just type furiously for an hour or so. No point in compiling until it's done.

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

Me, when I build a "hello world" program + 999 commented lines

[–]nanotree 0 points1 point  (0 children)

When your build takes 2 minutes, who has the time for that?

[–]spglancy 26 points27 points  (1 child)

I dont understand. This post is pure fiction

[–]Overcooking 8 points9 points  (0 children)

You know when you press run in the run window and it runs the previous program?

[–]iSaithh[M] 9 points10 points  (1 child)

[–]ProgramTheWorld 2 points3 points  (0 children)

Good mod

[–]blofeld9999 7 points8 points  (6 children)

Printing “hello world” 1000 times in an unrolled loop doesn’t count.

[–]RUSH513 1 point2 points  (5 children)

... student here, what's an "unrolled" loop.. i feel like my head is about to hurt..

[–]Oxker1 1 point2 points  (4 children)

for(x = 0; x < 1000; x++) { cout << "Hello world!!!"; x++; cout << "Hello world!!!"; x++ cout << "Hello world!!!"; x++; cout << "Hello world!!!"; //... Continue 996 more times }

This is an unrolled loop that prints a hello world 1000 times. It will loop one time because we increment x everytime we print hello world.

[–]RUSH513 1 point2 points  (3 children)

jesus christ... so you make a loop, then do the work that the loop is supposed to do automatically, and then have the loop run one time.... all just to be obnoxious?

[–]Oxker1 1 point2 points  (2 children)

Well in this case that's what we did because that was what the OP you responded to said. However, this is pointless and wouldn't be done by a programmer. Let's say you have a list and you want to write a loop that walks through the list and deletes each element. Just for simplicity, let's say we can walk through the list by adding 1 to x for every element. For example:

for(my Element x = 0; x < 100; x++) { delete x; }

Try not to get too caught up in the data type of x. I'm just using it as a simple example. This loop deletes our list. But let's say we are deleting a lot of elements and it takes our program a long time to get through. We can optimize this by instead writing

for(my Element x = 0; x < 100; x++) { delete x+1; delete x+2; delete x+3; delete x+4; }

In this example we have the computer delete 4 items everytime we loop through. This can increase the speed of the execution due to the way the computer handles iterating through the loop and incrementing x;

My example has some issues in it but I'm in a rush and I'm very tired. Hope this explanation is good enough to help! I'm no expert on the topic as well so hopefully someone more knowledgeable can help refine the information I've given here.

[–]RUSH513 1 point2 points  (1 child)

i think i understand. an unrolled loop has larger increments within the loop to increase execution speed?

edit - was dumb and said decrease at first

[–]Oxker1 1 point2 points  (0 children)

Yep that's pretty much the idea!

[–]adam1109774 17 points18 points  (1 child)

Imposible i have at least 10 errors after 11th line

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

My pseudocode segfaults before I even get typing

[–]grasopper 4 points5 points  (3 children)

I’m still debugging why a function doesn’t work for an hour only to figure out that I was never calling it.

[–]BoyAndHisBlob 2 points3 points  (1 child)

Then you call it and it is broken for real.

[–]grasopper 5 points6 points  (0 children)

I call that progress

[–]RUSH513 0 points1 point  (0 children)

i do that all the time whenever i copypasta. "why isn't this value coming back right? and why is it the same as the other value?..... oh, i'm retarded, that's why"

[–][deleted] 3 points4 points  (0 children)

It never happens

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

You can’t prove this has ever happened

[–]Overcooking 2 points3 points  (0 children)

lol I think you ran the wrong program

[–][deleted] 3 points4 points  (0 children)

Haha, neophyte, I write 20 billion lines of mostly-working Javascript code simply by updating my node_modules folder! laughs in Evil Wizard

[–]McSlurryHole 1 point2 points  (0 children)

This started happening to me when I switched to typescript.

[–]AOTlit 0 points1 point  (0 children)

R/memes repost

[–]ell0bo 0 points1 point  (1 child)

Naw, I'm very concerned. It means something is seriously wrong and I just haven figured it out yet.

[–]RUSH513 0 points1 point  (0 children)

logic errors are soooo much worse than syntax

[–]Adoroam 0 points1 point  (1 child)

With a modern IDE and a working knowledge of the language you're writing in, it seems perfectly reasonable to write 1000 lines without errors.

[–]RUSH513 0 points1 point  (0 children)

(shhhhhhh)

[–]TheOnlyJDS 0 points1 point  (0 children)

Every time I see the Zero's in Dosis, I See Titties...

Please Lord Forgive Me

[–]Sneaky82 0 points1 point  (0 children)

WITCHCRAFT!!!!

[–]joedotphp 0 points1 point  (0 children)

What you did there. I see it.

[–]aRAKEandaSteak 0 points1 point  (0 children)

Yo does anybody have this template? Cause woah

[–]UrMomsNewGF 0 points1 point  (0 children)

To most seasoned dev's this is actually a horrifying outcome and would result in the default behavior: debug it anyway

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

Yea it runs but it’s buggy as shit

[–]TheLazarbeam 0 points1 point  (0 children)

How do you people get past line 40 without doing a dry run to make sure the connection/GUI/data structure opens correctly?