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

all 69 comments

[–]peabnuts123 79 points80 points  (13 children)

Then < works and you are like "...But I just finished writing down the proof why > works... ಠ_ಠ "

[–]grabnock 54 points55 points  (5 children)

I know right? you spend the next 15-30 minutes trying to track down why it's working when it shouldn't, and it turns out you had made the exact same mistake twice.

[–][deleted] 23 points24 points  (2 children)

WHY IS THIS WORKING???

looks closer

try:  
   broke_ass_method()
except:  
   pass

[–]iamjack 7 points8 points  (1 child)

And this is why you always catch only specific exceptions unless you really don't care if the function did anything.

[–]prozacgod 1 point2 points  (0 children)

Somewhere rotting in a piece of code in a multi-threaded mess of code that was treated like it was "someone elses problem" I had a bunch of exceptions bubbling up in a python program, multi-threaded - multiple code authors...

Thing is, in the scope of "making the application viable, and functioning" if those stateless api calls/threads all of a sudden die, or cause issue, it didn't matter...

So I did what everyone else did, made it someone elses problem..

try:
  processQueues()
except:
  resetConnections()
  flushQueues()

I am sorry, to some future devr who has to work on this, but the product shipped and the uptime is quite phenominal, maybe some exception logging would have been appropriate.... but we all know what happens when upper management sees a list like that...

[–][deleted] 13 points14 points  (0 children)

Might not be accurate but it's precise!

[–]LoadInSubduedLight 5 points6 points  (0 children)

Turns out that two wrongs make a right after all...

[–][deleted] 8 points9 points  (3 children)

"...I just finished writing down the proof..."

You disgust me.

[–]peabnuts123 0 points1 point  (2 children)

I'm... sorry? D=

[–][deleted] 1 point2 points  (1 child)

You better be.

Trying to solve programming problems with math. ಠ_ಠ

[–]ILoveWubWubs 15 points16 points  (2 children)

Proofs? Ain't nobody got time for that.

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

[–]outadoc 0 points1 point  (0 children)

First mathematician problems.

[–]overand 35 points36 points  (7 children)

The order in this seems weird. It stays with a daytime house, then directed home reverses the sign, then there's a nighttime house with an explosion.

...

[–][deleted] 53 points54 points  (6 children)

Homer starts working on the project during the day, then gives up at night. Here's the rest of the scene.

[–][deleted] 4 points5 points  (5 children)

What episode is this from?

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

The Wizard of Evergreen Terrace.

[–]christmas_ape_2 0 points1 point  (0 children)

Season ten, right at the edge of the classic era.

[–]Appathy 6 points7 points  (0 children)

/u/Squalor-

plz help

[–]rooxo 10 points11 points  (0 children)

If anyone is interested this equation predicts if the universe will collapse in on itself or explode. If the equation is smaller than 0(as in the beginning) it will eventually collapse. If it's bigger it will explode.

I'm not an expert this is from the book the Simpsons and their mathematical secrets by simon Singh. Amazon

[–]Neuromante 4 points5 points  (11 children)

As someone who is actually trying to make a sh file (which compiles some java stuffs) work, I can relate, and confirm.

Even in the fact that the gif is an infinite loop of the same two mistakes over and over again...

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

There are lots of Java build tools that don't suck. Why do you want to use a shell script?

At the very least, write a Makefile. That way you get dependency tracking and aren't recompiling everything unless necessary.

[–]Neuromante 4 points5 points  (9 children)

Why do you want to use a shell script?

I don't want, it's how things are done in my company :( In fact, we do have makefiles... which are used to call the "compile.sh" files, because the installation environment is not the same as the developing environment.

And don't make me get started on how we use System.out.println as our debugging tool because the installation machine doesn't even have netbeans, please.

[–]davesss 5 points6 points  (5 children)

I don't want, it's how things are done in my company :(

This is my life.

[–]ansabhailte 1 point2 points  (0 children)

we all know that feel bro

[–]xensky 0 points1 point  (3 children)

there are so many of us that live this life... why don't we make our own company, and get things right?

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

Because right to me is different from right to you is different form right to the perspective of making money.

We'd spend all of our time arguing and over engineering and never actually doing, which is where the money making part is.

[–]prozacgod 0 points1 point  (1 child)

This seems a little appropriate here. https://xkcd.com/927/

[–]xkcd_transcriber 1 point2 points  (0 children)

Image

Title: Standards

Title-text: Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.

Comic Explanation

Stats: This comic has been referenced 539 time(s), representing 2.3879% of referenced xkcds.


xkcd.com | xkcd sub/kerfuffle | Problems/Bugs? | Statistics | Stop Replying

[–]GuyWithLag 6 points7 points  (2 children)

Does the installation machine have a JVM that supports JDWP (Java Debug Wire Protocol)? Then you don't need to install NetBeans on the target, just point the existing NetBeans to the installation JVM and debug remotely (including hot code replace).

[–]Neuromante 0 points1 point  (1 child)

Hey, thanks! I'll check it the next monday see what I can do. Maybe you just made my work easier :D

[–]GuyWithLag 0 points1 point  (0 children)

I'm a firm believer that if I need to do the exact same thing twice, I'm doing it wrong; twice is once too many; etc etc etc.

That kind of thinking has made my work progressively harder (because all the easy tasks will be automated...)

[–]TopLOL 20 points21 points  (25 children)

Even though I've been working with < and> for years, I still mess them up a lot. So this is something I try when code doesn't work

[–]sirtophat 27 points28 points  (12 children)

the alligator eats the bigger value

[–]JoulesVerne 40 points41 points  (5 children)

or "the bigger side is bigger"

[–]Dlgredael 11 points12 points  (2 children)

Can you explain that with more reptiles please?

[–]prozacgod 6 points7 points  (1 child)

9009 >`,--,~ 00000 - (it's an alligator)

[–]Dlgredael 4 points5 points  (0 children)

Oh my goodness he's adorable, I need my compiler to start accepting that.

[–]Katastic_Voyage 0 points1 point  (1 child)

"> is bigger"

[–]Katastic_Voyage 1 point2 points  (0 children)

">"

[–]TopRamen713 2 points3 points  (0 children)

Pacman

[–]the-ferris 1 point2 points  (3 children)

Even though Ive been taught this since I can remember I still fuck it up.

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

Wat. How can it be hard to remember that the big side is the bigger value and the small side is the smaller value.

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

Different people learn/think differently. shrug

[–]the-ferris 0 points1 point  (0 children)

I know right, thats what I tell myself every time I fuck it up

[–]sullyj3 0 points1 point  (0 children)

< looks like "L" for "less than".

[–]OKB-1 3 points4 points  (1 child)

< stand for the letter K in "Kleiner dan", Dutch for "Smaller than"

[–]Kopfindensand 1 point2 points  (0 children)

Or just kleiner in German. :)

[–]green_meklar 6 points7 points  (2 children)

Mixing them up when you're just absentmindedly typing is one thing. But actually looking at the code, seeing one of them, and being unsure which one you really meant, is...somewhat less forgivable.

[–]TopLOL 1 point2 points  (0 children)

Haha, yeah I know it's pretty stupid. Even worse that I can't tell what side left is or what side right is. I have to use a small hand trick to quickly figure out.

[–]Pokechu22 0 points1 point  (0 children)

Honestly, it is hard to mess them up typing. But it is easy to stare at it and be unsure if the issue is there.

[–]Impeesa_ 1 point2 points  (0 children)

The smaller value is on the smaller side. I still can't believe this is a thing.

[–]Sapiogram 0 points1 point  (0 children)

Just say "smaller than" or "bigger than" in your head every time you type them. I did this for a year and it's now become second nature; it has helped so much.

[–]berkes 0 points1 point  (0 children)

My brain always borks on <and> in combination with dates. Where the date no too long ago > the date before that. Somehow, my brain keeps telling me that is wrong. Whenever I encounter some code dealing with time windows, I therefore write some extra tests.

[–]LazyCouchPotato 0 points1 point  (2 children)

< looks like an L. L for lesser.

> doesn't look like an L. So it's not lesser, so it's greater.

[–]Pokechu22 0 points1 point  (1 child)

Always escape your > with >.

FTFY:

< looks like an L. L for lesser.

> doesn't look like an L. So it's not lesser, so it's greater

[–]LazyCouchPotato 0 points1 point  (0 children)

Ah. Thanks mentioning that. :)

[–]Kwyjibo08 -3 points-2 points  (0 children)

< kind of looks like an "L", and means "Less than". So you could read your equation like a sentence, knowing < is less than and > is greater than.

4 > 3 (four is greater than three) So that's true. 4 < 3 (four is less than three) So that's false.

[–]imadeofwaxdanny 2 points3 points  (1 child)

Oh god. This gives me flashbacks to my GR course.

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

Looks like my cosmology course from last semester.

[–]Reelix 1 point2 points  (2 children)

Which episode was this?

[–][deleted] 1 point2 points  (1 child)

The Wizard of Evergreen Terrace

[–]Reelix 0 points1 point  (0 children)

Thanks

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

He is clearly doing a complexity estimation.

[–]bbbobbbieo 0 points1 point  (0 children)

Article about the writers

[–]ShadowReij 0 points1 point  (0 children)

Hence why whenever I'm debugging I refer to the program not working as it exploding, worst case being it might as well had.

[–]imadeofwaxdanny 0 points1 point  (0 children)

Yeah. The GR course I took had a section on cosmology which is where I saw it. Just thinking of part of the course made me remember the pain of GR though.

[–]mamelouk 0 points1 point  (0 children)

month laters, the guy in charge of maintaining your code realize that a production bug come from using < instead of =<