Mar. 25th, 2011

torkell: (Default)

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!

May 2025

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 6th, 2025 12:39 pm
Powered by Dreamwidth Studios