r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

6.9k

u/that_one_mister_user Jul 20 '18

The sad thing is that this works some of the time.

2.2k

u/atomicspace Jul 20 '18

it’s a dark art.

12

u/sbowesuk Jul 20 '18

Like banging a temperamental TV.

3

u/[deleted] Jul 20 '18

Programming is a path that many consider... unnatural.

3

u/JC12231 Jul 20 '18

Did you ever hear the Glory of Darth Codius the Recompiled?

→ More replies (125)

457

u/Kidiri90 Jul 20 '18
if(DateTime.Now.Milliseconds%2==0)
{
    throw new Exception("lol screw you:);
}

154

u/plexxonic Jul 20 '18

I need to hide this in commits.

94

u/[deleted] Jul 20 '18

Hide it in a third party library that you snuck back into Artifactory.

0

u/[deleted] Jul 20 '18

[deleted]

→ More replies (20)

25

u/WiseassWolfOfYoitsu Jul 20 '18

Although it's a bit aggressive. %2 would be 50% of the time, which would be fairly easy to solve. Also just in one place. I prefer:

#define true (rand() % 10000 == 0)

→ More replies (3)

20

u/[deleted] Jul 20 '18

Wouldn't the stacktrace lead you exactly to this? Meaning it would be confusing/amusing once?

24

u/DoctorWaluigiTime Jul 20 '18

Technically, currently as-written, it wouldn't compile!

→ More replies (1)
→ More replies (3)

6

u/I_am_the_inchworm Jul 20 '18

Next level:

Import the string from a project-external resource, don't want a simple project-wide search to show it.

→ More replies (1)

75

u/BuiAce Jul 20 '18

Race conditions most likely

11

u/MrGreggle Jul 20 '18

Could be some type of cache.

12

u/[deleted] Jul 20 '18

#ThreadlocksMatter

0

u/[deleted] Jul 20 '18

[deleted]

13

u/voicesinmyhand Jul 20 '18

Clearly the solution is to get more SJW folk into programming then. That'll fix it!

64

u/[deleted] Jul 20 '18

Visual Studio really loves to just not compile at random. There's these really fun times when I have to find the right combination of building, cleaning, restarting VS and clearing directories for a project to work.

13

u/MooseHeckler Jul 20 '18

Microsoft is the best.

18

u/TheGreatWheel Jul 20 '18

Man, I despise Microsoft but I’ll never say a word against VS. Best IDE ever.

→ More replies (9)
→ More replies (4)

32

u/Swannyj95 Jul 20 '18

Hahhaa

Fake laughter hiding real tears

52

u/xyz_0 Jul 20 '18

I saw this while building my project for the fourth time. Guess I should change something

34

u/barsoap Jul 20 '18

Yes. Your build system. The most likely cause of any trouble there is untracked dependencies. IMO shake rules supreme but there's other contenders and YMMV, in any case it's a good thing to have it on your comparison list as it can do many things naturally that others struggle with, especially when it comes to tracking generated dependencies.

And for the love of computing, don't use make recursively. That's harmful.

→ More replies (1)

17

u/[deleted] Jul 20 '18

this is normal in machine learning

25

u/[deleted] Jul 20 '18

Kind of makes more sense in ML though. Depending on your sampling method the model should change slightly between runs.

For "normal" linear code I swear there's ghosts stuck in my kernel. I can't tell you how many times i've reverted back to an old branch and have my "broken" code suddenly work.

→ More replies (1)

14

u/corner-case Jul 20 '18

Make clean

22

u/dododindon Jul 20 '18

Which proves that this "testing" fad is not reliable enough for real business.

11

u/rangeDSP Jul 20 '18

If your testing can't catch errors like these it implies that at least one of the following is truel:

  1. The tests are badly written

  2. The code isn't easily testable

  3. if(2==true), then there are messy dependency issues in the code

8

u/_Fibbles_ Jul 20 '18 edited Jul 20 '18

Sometimes code is not easily testable because it's non deterministic by design. That's got nothing to do with messy dependencies.

I think we can all agree tests are necessary and helpful but sometimes the fervour of the "everything must be unit tested" brigade makes me feel like they're either:

0. Fresh out of university and don't know any better.

  1. High up enough in the management chain that they don't write code anymore and don't have to deal with the challenges of what they're asking for.

→ More replies (5)
→ More replies (10)
→ More replies (1)

15

u/[deleted] Jul 20 '18

Sounds like you are a JVM developer. Only RTE I have had that's been non-deterministic.

TBF this is mainly when working in Groovy/Grails

36

u/[deleted] Jul 20 '18

I totally came in here to say "You've never developed an Android app before, have you?"

Build > fail Build > fail Clean > success Build > fail Rebuild (clean and build) > pass

(╯°□°)╯︵ ┻━┻

14

u/bbqburner Jul 20 '18

Gradle build + Proguard + Instant Run = Doing the Schrodinger's

It totally compiles. Unit tests passed. Then run in on a real machine and suddenly God looks at you and simply gave his nasty smile.

10

u/SirButcher Jul 20 '18

And then modify something in the Gradle and you have to close, open, close and open the android studio again, restarting the PC, reinstalling the OS, deleting the project, rewriting it and it still can't create the DataBinding. Then, when you just given up and looked for a new profession it suddenly starting to work.

7

u/Pzychotix Jul 20 '18

I literally just had a coworker run into the issue of build working, clean and build working, but if you click rebuild, it fails. Whyyyy.

→ More replies (1)

5

u/_realitycheck_ Jul 20 '18

I am currently making a game for Android in C++ in VS2018. And by the Force, this happens every 3rd compile. I degraded my coding practices from: write-compile-test to write-write-write-compile-failed-clean-compile-failed-clean-compile-test.

Feels good to know this happens in Native Android development.

→ More replies (2)

10

u/Astrokiwi Jul 20 '18

Sometimes it's things like uninitialized variables in C, where the behaviour of the code depends on what happened to be in some arbitrary point in memory before the program ran.

Or it could be a race condition that only happens when two processors just happen to open the same cell of the same array (of a billion cells) at the same time.

→ More replies (4)

6

u/mekk11 Jul 20 '18

And if it does, you've got yourself into a "look for the race condition" :(

6

u/RedditorFor8Years Jul 20 '18

I've read that sometimes cosmic rays make it past earth's magnetic shield and to the surface. Whenever this happens, I am convinced some particle from supernova traveled millions of lightyears to break my code and watch me tear my hair out.

3

u/batman1177 Jul 20 '18

Don't you just hate it when magnetic resonance from a solar flare causes one bit to flip?

→ More replies (1)

6

u/[deleted] Jul 20 '18

I've had NetBeans display an error for a block of code (particularly the instance of a class and its passing arguments), refusing to compile it. I then cut the code, saved the project, pasted the code back in its previous place, where it then showed no errors and proceeded to compile with the program functioning fine.

Chalked it off as a bug in the IDE.

6

u/egotisticalnoob Jul 20 '18

and then you spend the next three hours trying to figure out why it didn't work the first time...

3

u/BabblingDruid Jul 20 '18

It's always a caching issue. It drives me crazy at work.

3

u/[deleted] Jul 20 '18

And then you realize that something is way off.

2

u/matwithonet13 Jul 20 '18

Especially with Erlang.

2

u/Brekster Jul 20 '18

Some IDEs are incredibly buggy.

→ More replies (2)

2

u/Yourtime Jul 20 '18

If that happens, I am even more scared, something has access, it should not

2

u/[deleted] Jul 20 '18

Came here to say this. The fact that it actually works sometimes is the reason we all keep re-running. What’s more frustrating than trying to debug a problem only to find out it was caused by some weird state you got into in development that is legitimately fixed by a refresh?

2

u/Console-DOT-N00b Jul 20 '18

It's both the best and worst outcome....

2

u/JeryCrate Jul 20 '18

But 99% of the time you get that really loud ding of failure and an error code.

2

u/blahblah_95 Jul 20 '18

Works every time 60% of the times.

→ More replies (63)

2.0k

u/Daposto Jul 20 '18 edited Jul 20 '18

Let's remove some enters and spaces in the code to make it cleaner and run it again, did it often haha.

949

u/Docaroo Jul 20 '18

It's like the compiler doesn't approve of your shitty-ass looking code formatting and doesn't take you seriously.

Clean it up and make it pretty and it believes your code is more credible now!

11

u/Glass_Veins Jul 20 '18

I just encountered a bug that caused a test to fail if I normalised the line endings in the test suite. This was VB. Somehow it caused a multi-line SQL string to be misinterpreted even though it looked identical (just CRLF to LF). I no longer trust these whitespace languages, lol

17

u/[deleted] Jul 20 '18

or, be lazy and (automatically) go fmt your code. especially if you're a spaces bastard.

→ More replies (4)

6

u/JamminJames921 Jul 20 '18

Lol, like my LaTeX-made essays. Shitty content but beautiful formatting, 20/20

→ More replies (3)

85

u/crono1224 Jul 20 '18

Or the reverse of it not running after you remove some white space. Turns out that was load bearing white space.

14

u/[deleted] Jul 20 '18

Load bearing white space - classic 😂

8

u/verascity Jul 20 '18

There are some quality puns happening in this thread.

17

u/[deleted] Jul 20 '18

Is it still white space if you use a dark background? philosoraptor.png

6

u/[deleted] Jul 20 '18

Sometimes you find your problem doing this. Not the worst way to debug

→ More replies (1)

3

u/Fluffcake Jul 20 '18

You never know. At least in js there are a few cases where ASI will fuck you if your code is formatted silly.

→ More replies (9)

830

u/[deleted] Jul 20 '18

It works... better send this shit in before i test it and it doesn't work again

148

u/Guntor Jul 20 '18

Fuck

70

u/arizoma Jul 20 '18

Yeah this one is too real.

26

u/Siarl_ Jul 20 '18

I did this and the rc got trough testing. After release there were quite a few customers with issues. Never again

13

u/Holden_Makock Jul 20 '18

As a developer, ones it passes through testing it is no longer your problem. Let the tester sweat over it with clients.

You have the typical "Closing.can't reproduce" or "Can't reproduce,closing"

→ More replies (1)

11

u/ryantwopointo Jul 20 '18

It’s bad science not to try and duplicate a failure.

0

u/[deleted] Jul 20 '18

[deleted]

14

u/Scaldiron Jul 20 '18

That's evil man...pure evil...

→ More replies (1)

456

u/Rocketghostrider Jul 20 '18

No idea why it works...

No idea why it doesn't work..

117

u/ahhhhhhhhyeah Jul 20 '18

No idea what you're doing...

65

u/TheHellStorm Jul 20 '18

No idea what I am doing either...

45

u/ginyuforce Jul 20 '18

The dreaded feeling of existential crisis during debugging

38

u/BagelJaengi Jul 20 '18

When you stare into the error log, the error log stares into you.

→ More replies (2)
→ More replies (3)
→ More replies (1)

9

u/_Fibbles_ Jul 20 '18

u/Rocketghostrider is an infinite number of monkeys, confirmed.

26

u/mpa92643 Jul 20 '18

The dreaded semicolon after an if statement has probably cost me days of productivity.

18

u/has_all_the_fun Jul 20 '18

For me it's a trailing comma in Python.

For example you have:

{
    'foo': 'bar',
}

And then you think "maybe I don't need a dict here let me just inline it as a variable:

foo = 'bar',

Then the whole world stops making sense.

515

u/taeratrin Jul 20 '18

Sometimes you need to see the error occur in real-time again. That's my defense.

249

u/[deleted] Jul 20 '18

Too often

Encounters error

Stops debugging, returns to code

After a moment of thinking, realizes the lack of collected data, and starts debugging again to check out the same error

17

u/[deleted] Jul 20 '18

Pretty much every time.

17

u/[deleted] Jul 20 '18

The error isn't there anymore.

The error continues to appear once in a blue moon for years and nobody knows why

24

u/[deleted] Jul 20 '18

My defense is I make sure I actually built/ran it properly. You don't want to go start changing things until you are 100% sure the error is real and not left over because you forgot to save a file or an ide (NetBeans...) didn't want to clean out the old built folder.

10

u/Exit42 Jul 20 '18

mvn clean purge nuke install

21

u/corner-case Jul 20 '18

Gamma testing FTW.

20

u/[deleted] Jul 20 '18

Fix one bug, cause 3 more.

Can't cause 3 more if you don't fix the first one. taps head

3

u/Stegaosaurus Jul 20 '18

You underestimate my power.

→ More replies (1)

4

u/Octopuns Jul 20 '18

That's a pretty good defense. That's exactly what I do.

  • Code doesn't work.

  • Run it again multiple times to investigate possible causes. (If relevant, try it with different input to see if it occurs 100% of the time).

  • Once you have an idea of what it could be, return to the code.

I feel like jumping back into the code the instant you see something not work is the worst thing to do.

213

u/rogeris Jul 20 '18

"Maybe my recent changes didn't save"

We all know they did.

37

u/enoua5 Jul 20 '18

There's been times where I've been ferociously attacking a block of code, trying to get it to work... And then realizing that I was running an old version of the executable.

9

u/Tech_Itch Jul 20 '18

Especially as we saved multiple times just to "make sure it stuck".

I got my first computer in the mid-80s. Worked two decades in everything IT related from tech support and sysadmining to database programming, web development and even industrial automation.

Still can't stop doing that shit, even though it makes zero sense.

5

u/Steampunkery Jul 20 '18

Whenever I copy paste something, I always smash the keys a few times just to be sure

→ More replies (1)

6

u/KoreanBard Jul 20 '18

I always compile twice. Just in case...

→ More replies (2)

4

u/[deleted] Jul 20 '18

That said, I do frequently run my tests from the wrong workspace and get stuck wondering why none of my code changes are doing anything.

2

u/[deleted] Jul 20 '18

Aaah, you must use Unity3D too.

2

u/Squickworth Jul 21 '18

:w !runScript again. Just in case.

0

u/[deleted] Jul 20 '18

[deleted]

19

u/Jazzinarium Jul 20 '18

This is why I love Android Studio, there is no "just run it", it builds every time.

462

u/thegreathero Jul 20 '18

Have you tried changing to dark theme?

→ More replies (22)

136

u/TheSinnohScrolls Jul 20 '18

We all know that we actually delete/add a few line breaks, remove a comment or add spaces between expressions “just in case”

3

u/instilledbee Jul 21 '18

No joke, this was how we resolved build problems in my previous job. The compiler didn't want to create a new executable unless we added line breaks or comments to trigger a change.

2

u/PeachyKeenest Jul 20 '18

I add spaces/line breaks. Readability for more bugs at the every least.

0

u/[deleted] Jul 20 '18

[deleted]

35

u/EatsonlyPasta Jul 20 '18

I had the same thing happen last week and I no joke thought I was losing my fucking mind.

14

u/voicesinmyhand Jul 20 '18

Oh good it isn't just me.

24

u/EatsonlyPasta Jul 20 '18

I didn't figure out what it was until this thread. It just magically worked when I redid some lines and didn't know why.

I test it now and I'm like... son. of. a. bitch.

→ More replies (1)
→ More replies (2)

47

u/[deleted] Jul 20 '18

But it works sometimes, and that’s when you should be scared.

210

u/DoctorAcula_42 Jul 20 '18

It's honestly more frustrating when it starts working. Like the god of programming has been toying with you this whole time, and now he's decided to make it spontaneously work to really twist the knife and cut your thin tether to sanity.

108

u/[deleted] Jul 20 '18

When its not working I can change something and test to see if the change fixed it. If it starts working spontaneously I'll never be 100% convinced the problem is fixed.

47

u/RandyHoward Jul 20 '18

100% of the time I'm gonna blame it on the cache if anybody asks.

→ More replies (1)

32

u/voicesinmyhand Jul 20 '18

It works! Submit it for advanced testing!

<test results come back, all is good>

Update the known good baseline!

<two days later...>

Shit! Nothing works now, and I'm pretty sure all I changed was a comment that had "teh" instead of "the". How the hell did this happen!?!

<reverts to known good baseline>

Shit! It still doesn't work!

<70 hours of testing/debugging later>

What the hell!?! Both versions work now?!???

2

u/the_one_true_bool Jul 20 '18

We had a really annoying bug at a previous company I worked at. The software was a huge cluster-fuck in general, but on top of that it was a multi-threading nightmare. We had an issue where about once a day the users would experience a spectacular unhandled exception crash where they could potentially lose a lot of changes. It would pop up at seemingly completely random intervals not driven by any particular action by the users, but usually about once/twice a day. Of course this company had terrible logging so going through log files basically told us nothing.

What was super annoying is that it never crashed when we had the program running in a debugger, so it was difficult to tell exactly what was causing the crash. At least in a debugger it will break somewhere and give you some context, but not in this case. We had people running the program in a debugger for days and it never once crashed.

→ More replies (1)

44

u/mrtibbles32 Jul 20 '18

runs code again

different runtime error

runs code again

doesn't even compile

runs code again

works with no errors

Ah, ok, cool.

runs code again

doesn't even compile

13

u/Holden_Makock Jul 20 '18

works with no errors

That is why you submit your code at this stage.

39

u/[deleted] Jul 20 '18

Yo be fair, rerunning it is a perfectly acceptable thing to do. Sometimes your compiler will bug out. It was written by programmers too, so there are bound to be problems.

38

u/ASovietSpy Jul 20 '18 edited Jul 20 '18

The fact that their could be bugs in a compiler is something I never really thought of before and it is a terrifying thought.

3

u/PeachyKeenest Jul 20 '18

Fuck. :( Can confirm. I deal with a lot of frameworks that are still buggy. Some issues I thought were mine were actually the framework. Thought I was truly just that crappy.

The complier potentially having the issue would piss me off incredibly bad. lol

0

u/[deleted] Jul 20 '18

[deleted]

→ More replies (2)

105

u/williamMchugh Jul 20 '18

The real reason it didn’t work for em is because he is using a light theme.

8

u/ObiWan-K Jul 20 '18

Why is the dark theme not default

28

u/bap710 Jul 20 '18

I once had to debug some code (back in ancient times, AKA 1990 or thereabouts) that worked fine 99% of the time but would crash randomly.

I eventually discovered a pattern. It would only crash between 10:00 and 1:00. On Wednesday’s. In September.

Hint: the code was written in C.

7

u/Finianb1 Jul 20 '18

What? Why?

26

u/Din182 Jul 20 '18

It looks like a buffer overflow. C is notorious for them. September is the month with the longest name, Wednesday is the day with the longest name, and 10-1 are the times of the day with the most digits. Presumably, when converting the current time into a human-readable format, the array he was storing it in was one character too short to fit all that information in. Thus, the buffer overflowed an overwrote something important, causing it to crash.

8

u/Finianb1 Jul 20 '18
if datetime.now() % 1000 == 0:
     raise Exception('rekt')
→ More replies (1)

2

u/PeachyKeenest Jul 20 '18

I always looks for patterns when it seems random as shit. I usually find something, but that one is fantastically terrible.

I'm so sorry. :(

4

u/bap710 Jul 20 '18

The longest weekday name fully spelled out. The longest month name fully spelled out. And a 4-digit time.

The person who originally wrote this code included a buffer to populate with the current date & time. (It printed out reports). But the size of the buffer he allocated was one character too small, so when the date & time reached the maximum possible string length it overflowed the buffer by one character.

22

u/Gigi9715 Jul 20 '18

I feel personally attacked

21

u/[deleted] Jul 20 '18

Or when I download an example file and it runs, but I write my own file copying the example line for line and it won't compile.

58

u/Miklelottesen Jul 20 '18

Actually, I'd say it's better to make sure that the error is consistent, before attempting a bug fix that might make the problem even worse if that happens to be the case.

2

u/PeachyKeenest Jul 20 '18

Consistent would be nice. Sometimes you don't even get that.

16

u/blackmist Jul 20 '18

Run, fail, run, fail, same place every time, reproducible, good, step through code, no error, run again in real time, no error.

Sadly mark bug as fixed and move on.

16

u/sloth_sloth666 Jul 20 '18

Relating so bad to this right now. Code that takes a string argument says "TypeError expected byte-like object, not str"

So covert it to bytes "expected str, not bytes"

Just sitting here clicking run hoping it works

2

u/PeachyKeenest Jul 20 '18

Error is bsing you. It's a different issue altogether probably. I hate it when error logs are giving me things that don't even make sense.

This falls into that category.

13

u/IskaneOnReddit Jul 20 '18

Well with LaTex you have to compile it twice.

13

u/Zifnab_palmesano Jul 20 '18

Or three times is you have bibliography...

3

u/DrSandbags Jul 20 '18

My first thought was to Ctrl-F for a comment about LaTeX. Sometimes just have to delete those aux files and retry.

34

u/Steve1717 Jul 20 '18

Did you try turning it off and back on?

6

u/ifewalter001 Jul 20 '18

Did you try “Invalidate Cache and restart”?

5

u/citewiki Jul 20 '18

Did you try a clean rebuild?

29

u/Dave_Daff Jul 20 '18

OP doesn't do parallel programming

9

u/Mcdonst Jul 20 '18

Anyone else notice the MATLAB ide?

→ More replies (1)

8

u/Atriux Jul 20 '18

The sequel: My code finally runs, let’s run it 20 more times just to prove it runs.

0

u/[deleted] Jul 20 '18

[deleted]

→ More replies (1)

7

u/BakedBeans543 Jul 20 '18

When it works the first time but only the first time

7

u/littlepanda888 Jul 20 '18

Alternatively,

My code works

Let's change nothing and run it again

everything breaks

6

u/serial_crusher Jul 20 '18

Just ask your coworker to watch you reproduce the bug.

→ More replies (1)

5

u/saltypepper128 Jul 20 '18

8% of the time it works every time

4

u/topredditbot Jul 20 '18

Hey /u/kajri,

This is now the top post on reddit. It will be recorded at /r/topofreddit with all the other top posts.

4

u/thedracle Jul 20 '18

This is sort of the equivalent to "Did you try shutting it down and turning it back on again " regarding the OS itself.

3

u/egrocket Jul 20 '18

Obviously it’s a hardware problem

3

u/alexeiz Jul 20 '18

Just rebuild it a couple of times.

→ More replies (1)

3

u/jaywastaken Jul 20 '18

Shit, now it's working.

3

u/The_Alex_ Jul 20 '18

Surely it is the compiler that is mistaken! I shall give it a chance to correct itself. .

3

u/GirishPai Jul 20 '18

I work in VoIP and this shit is common. Sometimes we do have to make more than one attempt to get accurate results :p

3

u/rubdos Jul 20 '18

Upvotes are coming in. Let's change nothing and post it again.

3

u/Dsquadcreeper Jul 20 '18

I am a very amateur (I mean very, python in the terminal level amateur) programmer, yet I can relate. The funny thing is that this worked.

3

u/[deleted] Jul 20 '18

Maybe it'll compile better this time

3

u/[deleted] Jul 20 '18

Valid method. Race conditions exist. The output of the program should not vary between runs, so let's try it again…and again…and again…

3

u/boredtodeath Jul 20 '18

There was an engineer, manager and programmer driving down a steep mountain road. The brakes failed and the car careened down the road out of control. Half way down the driver managed to stop the car by running it against the embankment narrowing avoiding going over a cliff. They all got out, shaken by their narrow escape from death, but otherwise unharmed. The manager said "To fix this problem we need to organize a committee, have meetings, and through a process of continuous improvement, develop a solution." The engineer said "No that would take too long, and besides that method never worked before. I have my trusty pen knife here and will take apart the brake system, isolate the problem and correct it." The programmer said "I think you're both wrong! I think we should all push the car back up the hill and see if it happens again."

2

u/DCSkarsgard Jul 20 '18

Debugging really does need a course of it's own.

2

u/Endovelico Jul 20 '18

This will work literally 50% of the Time

2

u/GeryGreyhound Jul 20 '18

So true in Python when I change nothing in code but 4 spaces and one tab to 8 spaces or 2 tabs

2

u/randomaccount12389 Jul 20 '18

Still doesnt work... but now the error is completely different.

2

u/oppopswoft Jul 20 '18

Is this weird? I’ll walk through the code a few more times to attempt to recreate the problem and see if I can figure out exactly where it fails before walking through it step by step

2

u/Pretendosaurus Jul 20 '18

This logic stems from years of seeing OS issues being fixed by simply restarting the computer.

2

u/ShoggothEyes Jul 20 '18

The definition of insanity is trying something twice and giving up.

2

u/EnchanterIOSvk Jul 20 '18

And if it doesn't, then u need to run it few more times, just in case. Around 10 is a healthy number before looking for a normal solution...

2

u/deeteeohbee Jul 20 '18

Let's change nothing and post it again.

3

u/FutureDomi Jul 20 '18

The 50th repost. please stop it.

2

u/LuckyKangaroo Jul 20 '18

And here I thought that I am the only one who does it...

0

u/[deleted] Jul 20 '18

[deleted]

→ More replies (1)

2

u/[deleted] Jul 20 '18

This sub is fucking garbage.

1

u/Onikouzou Jul 20 '18

I work in Powershell. This is what solves most of my issues.

1

u/sblinn Jul 20 '18

Latest error: "TypeError: can't compare offset-naive and offset-aware datetimes".

I'll run it just one more time just to be sure...

1

u/MChainsaw Jul 20 '18

I'm sometimes a bit paranoid in the opposite direction. I will write functioning code, then add some comments, then think "but what if my comments somehow messed up the code!?" so I have to run it again every time I add a comment to make sure it still works. Although I suppose that's not entirely nonsensical since there's always the chance you accidentally comment something out or make some other accidental change while writing the comments, so it might not be a bad practice.

2

u/verascity Jul 20 '18

Nah, I think that's a good idea.

1

u/GoddamUrSoulEdHarley Jul 20 '18

Clean and rebuild

1

u/krngd2 Jul 20 '18

It working for Ionic shit

2

u/Pepa489 Jul 20 '18

I love those random ionic shitty errors. I must restart the dev webserver every time when this happens

1

u/Auxx Jul 20 '18

Well, that works when using live reload while working on front end...

1

u/UserAlreadyNotTaken Jul 20 '18

The funniest thing is that not only the thing in the image, but also most of the ones in the comments, I actually do, typically thinking that I'm being dumb while doing them. I'm happy to see I'm not the only one.

1

u/Pepa489 Jul 20 '18

The worst think is that it can sometimes work.. .

1

u/verascity Jul 20 '18

Sometimes I get a flash of anger/indignation on the rare occasion I'm REALLY VERY SURE I did the thing correctly. "Wait, what? No. Surely that can't be right. RUN IT AGAIN."

1

u/[deleted] Jul 20 '18

"...must be the compiler"

1

u/RubblePile Jul 20 '18

That clean build tho

1

u/mattew777 Jul 20 '18

That is the action of the lazy optimist.

1

u/the-shit-poster Jul 20 '18

Hmmm, that’s weird, it shouldn’t be working...what the hell???

1

u/[deleted] Jul 20 '18

Try closing and re-opening your solution!

1

u/QrilleK Jul 20 '18

I swear, I've done this in VS and it has worked a couple of times

1

u/pewpewlightningbolts Jul 20 '18

Did this just a few minutes ago when showing something to my boss. He looked at me like I was stupid but hey it worked.

1

u/MiaMiaPP Jul 20 '18

Sometimes your code works and you have no idea how either.

1

u/Christian1111111111 Jul 20 '18

sh*t why is this so true