if (boolValue == true) ...
I know it works, but just kill me now.

  • 1
    This bothers me too.
  • 5
    if ($something == $something_else) {
    return true;
    } else {
    return false;
    It will piss me off a little until my last breath
  • 1
    Verbosity never hurt anyone. ;)
  • 0
    @JakeHL I suppose you're right. Unless someone has a reason verbosity is bad. Lol
  • 1
    I mean, extreme Verbosity to the point of inefficiency might be a reason, but op's post isn't too bad :)
  • 2
    It's redundant, uncalled for, and offends me.
  • 2
    @drndavi definitely the most common example from my experience. it makes it harder to read, particularly when you are looking at a 1000 lines of php spaghetti code with just about everything in the global namespace...

    of course there's also this gem:

    if(a) {}
    elseif (b) {}
    else {
  • 0
    @drndavi Or worse:
    return $something == $somethingElse ? true : false;

    I see this in many places... :/
  • 1
    @JakeHL I'm up for verbosity as far as it removes the need for comments, any other than that is too much :D
Add Comment