Things I Learnt Yesterday

<<< Previous Entry: Given it up for lent | This Month's entries | Next Entry: Forward Slash Design >>

When trying to write code for a website, it's a good idea not to name all your variables exactly the same thing, they don't like it and get all cantankerous. It's also a good idea not to call the same variable different things, it then gets cantakerous, and all it's friends get jealous. Actually it's best not to call them at all, as they may get offended. Instead leave them in a corner and ignore them, they'll just die at the end of the ?> anyway. Using $_GET, $_POST, $_COOKIE and $_PLEASEPLEASEPLEASEWORK seem to help somewhat. Variables seem to still have some respect for them, unlike those cursed auto_globals. Whoever thought they were a good idea to have on by default was one crazy person. That's like filling a country with hundreds of dangerous animals by default and then asking someone to pick up their babies and poke them with a stick for fun.

It's also not a good idea to ever hit the ' key without first triple checking whether or not you really, really have to. It's not that the ' key isn't a nice key, it is. It's very helpful, however that's probably where the problem lies. In an attempt to overcome the stubborness of its variable friends it becomes far to helpful. Even the trusty semi-colon won't shut it up properly. It's like one of those hostesses (never hosts) who, to make up for the fact that her child are being surly and making evil eyes at you, plies you with so much cake and tea that you start to swell outward like Violet Beauregarde (without the purpleness though).

Now all I need to do is rename everything else (and everything else will love that), delete all the cookies that have been set and pat myself heartedly on the back knowing a good job has been done by all concerned. Hooray!

Right Now

(t) Ruth
(book) God Of The Valley


Your Comments

David

Find post with refernce to Charlie and the Chocolate Factory

only another 3 to go on my blog view to do list. thanks sparticus

nosila

cantankerous is such a cool word :D

Mr.Moony

What an Awsome Design.

I salute you


About, Navigation, And Other Details

This is a website by Mark Walley. If you want to find out more or get in touch, that'd be nice.

Getting around this website can be a tad confusing. If you're looking to explore the better stuff of what I've written then this navigation should help you. If you're after a specific post then searching or looking through the archives chronologically may help.

Things I Found Interesting

People I Generally Find Interesting

Last Words

This site tries its best to be accessible for everyone. Atom, and RSS feeds are available. All content licensed through a creative commons licence. I may have stolen ideas off you when you weren't looking, but it was almost certainly an accident. As with all claims of originality and ownership Psalm 24 v1 applies.