Thomas (boggyb) wrote,
Thomas
boggyb

  • Mood:

A collection of mini-rants today, from a couple of hours spent hacking together a bit of PHP:

  1. Which numpty decided that the default behaviour of a switch statement should be to fall through. It's almost never what you want!
  2. In the same theme, which numpty decided to make assignment and equality use different operators, to make assignment single-equals, and to not have any kind of warning if you use single-equals in an if statement.
  3. Why does PHP not have a usable variable type for dates? Even classic VB has one!
Tags: rant
Subscribe

  • New shiny toy!

    The Nyx replacement build has been in the planning for a long time. It was originally pencilled in for late 2019, and looking at my notes would have…

  • Achievement unlocked: jump-starting my car!

    Headed out to sainsbury's just now - or tried to, only to discover that my car's battery had run down over the past week and just did not want to…

  • Pancakes!

    Since people have been prodding me for an update, here's a pancake-themed one (as everyone's blogging about pancakes today!). Unlike in the linked…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments