Ask coding questions

← Back to all posts
4
What's the funniest mistake you've ever seen (or made!) in a line of code?
katyadee (813)

I'm talking rolling on the floor laughing bad. Like, one of those "I can't breathe" kind of laughter moments.

Show me your best...or worst!

Commentshotnewtop
6
EchoCoding (242)

My worst coding error would probably have to be making a 300+ line program and running it, just to see that my indentation was wrong. Mind you, there were a plethora of indentations :(

1
katyadee (813)

@EchoCoding Uh oh. how long did it take to fix?

3
ryanhcode (84)

Coding an entire python project in a JavaScript REPL and spending hours trying to figure out why I was getting syntax errors.

2
Imanoob_coder (2)

I was writing an essay for school in a python ide and ran from habit and didnt know why it gve me syntax errors

2
JustARatherRidi (185)

This.

public boolean checkSomething() {
  if (testSomething() != false ? true : false) {
    return true;
  } else {
    return false;
  }
}
1
MATTHEWBECHTEL (121)

Umm..... Let me think. I um... I don’t know XD. Anyone here know a funny mistake I asked about? Or just wandering through my repls?

1
mwilki7 (111)

defining a struct that's dependent on another before defining the original struct in C++

typedef struct POINT
{
	float x, y;
        ...
	void   operator+=(const VECTOR v)...
        ...
}POINT;
typedef struct VECTOR
{
	float x, y;
	...
}VECTOR;
#endif

gave me terrible unhelpful linker errors that took hours to figure out

and of course, the classic missing semi-colon error

1
Steven_The_GuyT (197)

I haven't had any super funny mistakes, but I'll get back to you (after I purposefully code some errors)

Anyways, I would really want to see what the repl community can come up with!