PHP Weather Layout Changer

Sep 26, 2009 18:34

Hi all ( Read more... )

Leave a comment

notagod September 26 2009, 20:11:14 UTC
(Jokingly) Dare we trust someone who can't close his quotes?

Reply

notagod September 26 2009, 20:12:20 UTC
Dare we trust someone who assumes genders? *laughs*

Reply

andy September 26 2009, 20:44:45 UTC
There's maybe a language barrier involved, but I didn't spot any gender assumptions in there. The choosing of if statements over switch or associative array still made me smile though.

THAT SAID, I think that this idea is neat enough not to care about implementation details like that. I believe in the good intent of the post author, and I wouldn't want him/her to be disappointed by picking in comments like this.

Reply

notagod September 26 2009, 20:49:24 UTC
I was being self-deprecating on the second. See my choice of "he", then have a look at the OP's journal.

Reply

andy September 26 2009, 20:51:39 UTC
Ah, got it now. Thanks for clarifying! :D

Reply

theaeblackthorn September 26 2009, 20:45:56 UTC
It's what we get for breaking our keyboard and resorting to our backup one. Fear not, the code was typed up before!

And more importantly, it's currently running my lj's layout. :)

Reply

notagod September 26 2009, 20:48:32 UTC
*nods* definately very nice work :) I have no host to run it myself, but from a quick look I was quite impressed :)

Reply

theaeblackthorn September 26 2009, 20:50:51 UTC
A friend kindly let me host it on hers, I'll agree my execution may not be the most elegant, but it spooks people who visit my lj well enough, so I'm happy :)

Reply

notagod September 26 2009, 20:56:56 UTC
Actually I disagree. I could sight read it, and I don't do php. It's commented enough to grok the ideas of the routine, and it's instantly sight readable. Two very key features in good code. Means that later maintenance is easy and achievable, and that's something that you learn from experience is a really really really good thing :) Smart's no good if you can't understand it in 6 mths time.

Reply

theaeblackthorn September 26 2009, 21:06:06 UTC
Indeed, good documentation is vital for later code maintenance. The amount of times recently I've had bugs for areas and found the code to just be unreadable is ridiculous.

Generally I work with Java, not PHP hence my PHP isn't the best, it's more a hobby than a job :)

Reply


Leave a comment

Up