Noted over on Sara Golemon’s blog today. Can we expect this sort of thing to be in future PHP code?

var_dump(¼, ½ ¾);
// float(0.25)
// float(0.5)
// float(0.75)

var_dump(1 ≤ 2, 2 ≯ 3, 5 ≠ 6);
// bool(true)
// bool(true)
// bool(true)

var_dump(3 × 4, 15 ÷ 5);
// int(12)
// int(3)

var_dump(1 « 3);
// int(8)

/* Your font may be too small,
 * but that's a skull and crossbones */
☠('aka die/exit');

Well, no, not really – she implemented it just for fun, but it’s an interesting idea, and face it – who doesn’t want to be able to use all the keys on the Space Cadet Keyboard?… Read the rest

Sometimes you really do feel like you’re missing out by not going to events like this 😀

And sod it, Michael Schwern’s talk about improving as a programmer definitely sounded interesting.

Oh well. There’s always next year, and downloading slides and reading the blog entries and watching the videos on youtube…. but they’re just not the same really.… Read the rest

Over on Diamond Notes, a somewhat skeptical take on the recent Postgres benchmarks news. Can’t say I agree with it, and I did comment on it, but something did go click for me while thinking about it, hence this entry. See, the problem isn’t just performance. MySQL just doesn’t do the right thing.

I mean, I can understand the principle of implementing the smallest featureset you think a user would need and then optimising the bejaysus out of it – Epiphany would be a better browser than Firefox for 90% of the time for me because of that approach (it’s just Epiphany’s way of doing bookmarks that gets in the way) because Epiphany is always faster and less of a memory hog than Firefox since it doesn’t try to do everything.… Read the rest

I guess there’s irony in this, but less than a fortnight after submitting some code to mantisBT, I’m now trying to update a perl migration script (m2bz, by Julian Mehnle) to handle a migration from Mantis 1.0.3 to Bugzilla 3.0 (currently it works from Mantis 0.17.5 to Bugzilla 2.16.3).

I know, it’s no great hunk of coding, but I thought it was worth a grin.… Read the rest

Hmmm. One of the fun things when a client specifies W3C html compliance as a requirement is that you can spend a surprising amount of time picking just what W3C standard they want you to comply with in the first place. And now it seems that there’ll be another one to choose from. HTML 5 has just been revived as a standard in development, as a reaction to CSS and XHTML.… Read the rest

Hmmm. First PHP application programmers start GoPHP5.org, then the php core team announces the EOL for PHP4, then namespaces get added into PHP6, and now Xdebug 2.0 is finally released. It’s not quite the precambrian, but it’s definitely been a busy few days!

Xdebug, for those of you who prefer to debug PHP code using echo and var_dump(), is a bloody lovely zend extension for php that lets you get proper debugging information for when stuff goes pear-shaped (excuse the pun).… Read the rest

Spotted over on SysAdmin’s Diary, a reference to an article in Network World Asia entitled 12 IT skills that employers can’t say no to.
It’s an… interesting list:

  • Machine learning
  • Mobilizing applications
  • Wireless networking
  • Human-computer interface
  • Project management
  • General networking skills
  • Network convergence technicians
  • Open-source programming
  • Business intelligence systems
  • Embedded security
  • Digital home technology integration
  • .Net, C #, C ++, Java — with an edge

Good grief.… Read the rest

Matthew Mullenweg isn’t terribly impressed with GoPHP5 or the php-internals people on the whole topic of dropping PHP4 and moving on to PHP5 and PHP6. Now, given that Matt’s the guy who founded WordPress, I reckon his opinion’s worth listening to, and given how much time I spend using vim, LaTeX and mutt, I know where he’s coming from; but he’s wrong in this instance, or at least, he’s looking at it the wrong way.… Read the rest

For a long time now, most who’ve used both have felt that Postgres was a better database than MySQL, myself included. But until now, the stick that MySQL keep beating Postgres over the head with was performance. MySQL might be a toy database (okay, it’s moving away from that these days, but only in the last few versions and that’s not really enough dev time to be stable enough for critical stuff), but it was fast on cheap hardware, and for pragmatic web development, that meant it beat out Postgres every day of the week.… Read the rest

Got to hand it to the internals people, when an idea’s a good one, they run with it. First the announcement that namespaces are now officially a part of the development trunk for PHP, then this:

PHP 4 end of life announcement
[13-Jul-2007]

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4.

Read the rest