First of the two posts I mentioned last time: a review of Koding, the cloud service + Chrome app. What is it? The short answer is that it’s an IDE. But that really doesn’t do this thing justice at all. You can’t actually do anything offline, really, besides fiddle with some very basic settings. That’s because you don’t work on files locally, you spin up a VM (hosted on Amazon) and the IDE connects directly to it for file editing, terminal, etc. All VMs also come with a public URL for you to plug into any browser to run your app if it has a web interface. Who is it for?…
While I generally like having no set topic for this blog due to the freedom it gives me over what and when to write, it also means there’s pretty much no chance of regularity to my posts. As you may have noticed, I haven’t posted anything on here for a while and it’s not because I’m incredibly busy – I just haven’t felt the urge to write about anything recently. Well, that changes today. The other day I came across a project called Remonit which is aiming to be the go-to tool for geek-types wanting to have real-time, web-accessible stats on pretty much anything on their devices – from netbooks to…
I’ve got a few things to cover in this post, all relating to developing web thingies, that I’ve come to realise in the past few weeks. 1. Codeivate I recently discovered a service called Codeivate which basically has a bunch of plugins for popular editors/IDEs which track your activity and report the details back to their system. This lets you see the types of files you work on and how long you spend typing at once, which can give you some pretty great insights into your focus levels and typical workflow. It also awards you EXP against each file type which level up, and contributes to your overall level – so you feel an…
If you a) haven’t read the precursor to this post, and/or b) don’t know about OO property visibility, you should start off by reading this piece of literary genius. Following on from my last post, it turns out that even after making a magical function to expose inaccessible properties of an object the empty() function will still return false. Even if isset() is returning true for you in the code, it apparently returns false when empty() calls it unless you have the magical __isset() in your class – even with the magical __get() already there. All of the sense has been made. Not.
So PHP has some pretty helpful native functions like isset() and empty() which can be used to check if a variable exists and if it has a value, respectively. For those of you who don’t know, if you try to use the value of a variable that, for some reason, doesn’t exist at that point in the code your users will see a lovely error right on the page. Say if you have optional fields on a form, you can use isset($_POST[‘my_optional_field_1’]) before trying to get it’s value – because if the field was empty on form submission then my_optional_field_1 won’t be in the $_POST variable and you’ll generate an…
Hover over the links in my posts, sometimes I put extra info, trivia or "jokes" in the title text!
The views expressed in the articles and pages of this site are my own and it shouldn't be assumed that they are representative of any organisations I am a part of.
Also, my rants contain a lot of bad language so if you're offended by that kind of thing turn back now.
Tweety TweetsMy Tweets