PHP: iterators
G'day:I'm now at the pub (see "PHP: generators"), and have just started my third Guinness. I've not yet worked out what this does to my writing style, so that could be a good or a bad thing. [shrug]:...
View ArticlePHP: a fractal of [etc]... yeah, I'm now getting where you're coming from
G'day:Null.CFML has had a spotted history with the concept of null, and this has been very embarrassing and bloody inconvenient to boot. Fortunately it's finally getting there though (more in Railo...
View ArticleOK, there's a precedent contradicting my PHP "Null" gripe from the other day
G'day:What would I do without my guardian angel Sean? ;-)Over the weekend I wrote an article "PHP: a fractal of [etc]... yeah, I'm now getting where you're coming from", which I - in passing - derided...
View ArticlePHP: more boolean / null confusion (and perhaps not entirely on my part)
G'day:I'm so very confused.What do you make of this code?<?php// false.php$testResultString = "isset: as string: [%s]; as binary: [%b]; null: [%b]; type: [%s]; null equiv: [%b]<br>";$does =...
View ArticleAdobe: stop closing ColdFusion bugs you haven't dealt with
G'day:I've had a frickin' gutsful of Adobe's amateurish and disrespectful approach to dealing with bugs in the bug tracker. I spotted yet another "closed, not enough time" issue today. One which hit me...
View ArticlePHP: another generator example: primes
G'day:Duncan has mused me again. He's reworking his Project Euler exercises that he'd previously done in CFML, and is now implementing in PHP. In yesterday's exercise he was looking at prime numbers:...
View ArticleLooking at PHP's OOP from a CFMLer's perspective: object serialisation
G'day:This continues my series which is thusfar:Looking at PHP's OOP from a CFMLer's perspective: classes, objects, propertiesLooking at PHP's OOP from a CFMLer's perspective: inheritance, static &...
View ArticlePHP: significant oversight in the implementation of array_reduce() (and I...
G'day: I was fishing around in Stack Overflow this morning for a quick PHP exercise to do before getting out of bed (there's some imagery for you), seeking coffee, and getting on with the day.I found...
View ArticlePHP: looking at some interesting "unexpected" behaviour with references
G'day:A week or so ago I was fascinated by this Stack Overflow question: "How to changing value in $array2 without referring $array1?". It offers this code:// baseline.php$array1 = array(1,20);$x =...
View ArticleBallot stuffing: vote for Railo
G'day:No, I'm really notĀ advocating ballot-stuffing. However someone's creating a poll to get Railo added to Bitnami's stack. This would improve Railo and CFML's market penetration, so it has to be a...
View ArticleNano-optimsation of looping code. Fascinating but pointless
G'day:It's PHP, Railo and ColdFusion today. A few days ago I was researching my "PHP: looking at some interesting "unexpected" behaviour with references" article which related to a StackOverflow...
View ArticleComments in code: avoid if possible
G'day:This came up in a code review yesterday... I thought I had already written about it, but cannae find the article anywhere so perhaps I imagined it. On the other hand I apologise if I have already...
View ArticleGood work, CFML community
G'day:A few days ago I knocked out a quick article about the Bitnami contest that Railo is a participant in: "Ballot stuffing: vote for Railo".At the time Railo was on the first page of participants,...
View ArticlePHP: include paths are relative to the current working directory
G'day:This one had me confused for a day or so last week. It seems the relative paths in include / require calls in PHP are relative to the current working directory, not the file the include statement...
View ArticlePHP: include paths... it gets worse...
G'day:This follows on from my article from an hour or so ago "PHP: include paths are relative to the current working directory". The situation there was daft but at least had a precedent in other...
View ArticleThe received wisdom of TDD and private methods
G'day:As you might know, I've recently taken on a different role as a PHP developer. My employer are shifting our code base from CFML to PHP for various reasons ("So long, and thanks for all the CF")....
View ArticleProposed TDD logic flow
G'day:I've been really busy this week, and haven't been able to discover much interesting about either PHP or CFML or anything, hence being quite quiet. I'll admit this is very much a filler article,...
View ArticlePHP: Inspired by Duncan: palindromes via generators
G'day:My mate Dunc is making a habit of being my museĀ @ the moment. I guess it's cos we're both learning PHP at the same time, and he's blogging about it as well. This morning he has a new article...
View ArticleCFML: emulating generators with closure
G'day:Half way through my other article this morning ("PHP: Inspired by Duncan: palindromes via generators"), I was thinking how cool generators are, and how it sucks CFML doesn't have them (go vote,...
View ArticleThe received wisdom of TDD [etc]: Sean's feedback
G'day:During the week I solicited feedback on my assessment of "The received wisdom of TDD and private methods". I got a small amount of good, usefull feedback, but not as much as I was hoping...
View Article