PHP: adolescent weirdness with arrays
G'day:This was put on my radar the other day, by Alexander Lisachenko:Oh, fuck, #php#wtfhttps://t.co/zCmSONtSS2— Alexander Lisachenko (@lisachenko) December 13, 2016Well put. The code concerned is...
View ArticleThat new Star Wars movie
G'day:If you need to be told that an article entitled "That new Star Wars movie" is perhaps going to discuss that new Star Wars movie, and intrinsically that's going to include details of the plot...
View ArticlePHP: using SoapClient to consume a SOAP web service
G'day:Yeah, OK, just don't ask why I'm needing to consume SOAP web services. It's Adobe's fault. Not because of ColdFusion for a change, but because an app they offer which only exposes its API via...
View Article20162017
G'day:Update, 2017-01-01:I've tweaked this slightly today to... erm... strengthen some of the language, and add back in a coupla passages that for some reason got scuppered in the self-imposed...
View ArticlePHP: looking at the Chain of Responsibility pattern
G'day:We're working on a proof of concept for some stuff at work at the moment, and I've been put on a code review of the first round of the code. Part of the code is dealing with conditionally getting...
View ArticlePHP: looking into usage of the ::class constant
G'day:There's not much to this article. It's arisen from the fact there's a paucity of docs on this subject on the PHP website, and they're quite hard to google for (given Google still insists on...
View ArticleSurvey: CFML usage and migration strategies
G'day:This comes off the back of a few unrelated discussions I've had recently about people having moved on from CFML, and there being a reasonable desire to encourage and facilitate other people to do...
View ArticleTesting: Too much detail, Cameron?
G'day:Just really quickly here. Here's a question I posted on the Testing sub-channel of the #CFML Slack channel: Question: I have a function which is basically a cron job which gets stuff from one...
View ArticlePHP: 2000 words on elseif (and PHPMD)
G'day:This is another one that just lives up to the definitive notion of a blog: a web log; a log of what I'm doing. But, like... web-based. A blog. What I basically mean is that I'm not sure I'm...
View ArticleIncredibly: a reader asks me for help with PHP & Nginx
G'day:Jesus fuck, you lot. Don't ask me shit about systems support / server application config / all that godawful shit that should be consigned to the Systems Support Team (sorry to my mates in this...
View ArticleSurvey results: we've been stitched-up by freeonlinesurveys.com
G'day:Today my task was to try to work out how to present the results to my "CFML usage and migration strategies" survey. I'd waited a bit as the submissions were a bit slow to come in, but I've now...
View ArticleT&Cs located! partial correction on the freeonlinesurveys.com stitch-up
G'day:This is a continuation of the situation I detailed in my weekend article "Survey results: we've been stitched-up by freeonlinesurveys.com". To recap: on Saturday I was gonna start feeding back on...
View ArticleEmail sent to Bristol Trading Standards office re freeonlinesurveys.com
G'day:Here's the email I sent to the Trading Standards office in Bristol, where ProblemFree Ltd, owner of freeonlinesurveys.com are based.Hi there:I've recently had dealings with a Bristol-based online...
View ArticleI'm a dick: part 4: why I'm a dick
G'day:Sigh.So other the page few days I've posted these articles:I'm a dick: part 1 Survey results: we've been stitched-up by freeonlinesurveys.comI'm a dick: part 2 T&Cs located! partial...
View ArticleSurvey results: most useful response first
G'day:I've got the results in from that survey, and started looking through them last night. I haven't really organised anything yet, so nothing useful to report, but this response stood out. The...
View ArticlePHP: accessing an undefined array element yields a notice. Or does it? WTF, PHP?
G'day:So we encountered this today:<?php$array = [1, 2, 3];var_dump($array['id']); // this yields a warningvar_dump($array[0]['id']); // none of these...
View ArticleTDD: still testing too much
G'day:A while back I wrote this article - Maintaining untested code, and mocking too much when backfilling test (with JavaScript & Jasmine) - wherein my colleague pulled me up for testing too much...
View ArticlePHP: more array dereferencing weirdness
G'day:(Firstly: I hasten to add that the "weirdness" is "weird to me". It might be completely predictable to everyone else in the PHP world).This is a follow-on from my earlier article "PHP: accessing...
View ArticlePHPUnit: setMethods and how I've been writing too much code
G'day:Seems our technical architect is becoming my PHP muse. Good on ya, Pete.Anyway, he just sent out what I thought was a controversial email in which he said (paraphrase) "we're calling setMethods...
View ArticleCFML: that survey... sit. rep.
G'day:A coupla people have asked me what's happening with my feedback from that survey you all did for me (Survey: CFML usage and migration strategies).I have to simply apologise for the delay. I...
View Article