35
drdanz
7y

Just found this while trying to understand some code:

```
bool ok = true;
if(ok) {
// lots of code here
} else {
// even more code here
}
```

I thought this was worth my first rant...

Comments
  • 5
    Makes perfect sense sometimes if you have to debug sth.
    But nothing you should push to a public repo..
  • 2
    Welcome to devRant!
  • 7
    @Emphiliis that's production code that was written 10 years ago and that nobody ever had the courage to touch...
  • 3
    @maltedMilk I'm definitely the last one...
  • 2
    At least it wasn't:
    If (ok == true){

    }Else if (ok ==false){

    }
  • 5
    @gitpush could have been even worse

    If (ok = = true) {
    } else if (ok == false) {
    } else {
    }
Add Comment