Ultra Fail. Two years, two servers, worst uptime ever. Running my website on my own linux box via dsl is more reliable. Ditching them for linode.com. Migrating the final site tonight before I cancel. Honestly the worst hosting ever — they were great at first but they’re too big now. I hop on their live chat every day to tell them my server’s down again. Literally. Every. Day. Skip it and pay for linode or slicehost — it’s worth the extra 10 bucks a month.
Monthly Archive for September, 2008
Finally, we have a functional build of BM out on the App Store. I have no earthly clue why Drew and I never ran into the odd primary key bug prior to the release of 1.0. Bleh. Download the update and revise your review, por favor.
So I’ve moved my blog and other sites over to linode.com in hope of finding the holy grail (uptime/reliability). Let me know if I screwed anything up — older wordpress posts might be jacked (odd characters and missing pictures) up but it is what it is.
So I’ve heard it or read it at least 5 times in the past few days: everyone hates the ternary operator. Why? What’d it ever do to you? Wait wait, what’s the ternary operator? Srsly? You’re on my blog and you don’t know what it is? Ok, so normally one writes a conditional like this:
if (someCondition equals some value) {
do stuff;
} else
{
do other stuff;
}
Lots of code for not so much of anything else (outside of readability). Ok, so for those cases where the stuff and other stuff are single lines or some other simple deal (e.g. returning a boolean or integer value), the ternary operator is great. Take a look:
(someCondition equals some value) ? do stuff : do other stuff;
Look at how nice and neat that is — how’s it difficult to read? What if you want to set a value?
x = (someCondition equals some value) ? true : false;
So if someCondition equals some value, x is set to true, otherwise it’s set to false. Nothing difficult or complicated about it. There’s nothing hard to read about it either, imo. Having said all of this, don’t go doing something stupid like this (because it IS hard to read):
(someCondition equals some value and another Condition equals some value or .............. and ............. yada yada more conditions and stuff that eventually evaluates to a boolean) ? do a ton of stuff : do some other ton other stuff;
Bad. Skip it, keep things simple, and go with the regular conditional syntax. Trust me, other people will look at your code and some might even want to slap you for it. Anyway, don’t hate on the ternary operator. If it’s not your style, that’s fine, but you should know that it’s very useful and saves some typing. If people didn’t hate it so much, it would have saved me this blog post..but then again that would have been sort of boring.
So I’ve been using a combination of command line + eclipse/subsclipse/subversive and my basic satisfaction has fallen someplace between meh and screw this. The other day, someone showed me a promising beta app called Versions. It’s free (at the moment anyway), and it works great, although it doesn’t yet have some features. What it does have, works really well plus it’s easy to use and fast. Two thumbs up from AMDev.