Hot Apps Top Mover: Death By Caffeine

1 BY cyikeda

Oh developers, we love you. The WORLD loves you for the seemingly tireless efforts you put forth into delivering new toys to tinker with and creative ways to make whatever platform you develop for that much more relevant and useful. But all of that toiling into the wee hours of the night doesn’t come without a cost, and often leads to heavy caffeine consumption to make up for the late night sessions. We all know caffeine is ‘bad’ for us, but what does that mean? Well, here’s an app that makes it dead simple (pun intended).

Death By Caffeine lets us know exactly how many of our favorite drinks it would take to bring about …well, death by caffeine. The app is simple and some of the implementation details are why it has climbed the HotApps Leaderboard.

When you are entering your weight, the number lock is automatically enabled.

I love this, and wish more developers took notice of that little time saving detail. Code-level, this can be achieved by including a modifierState, set to value of Mojo.Widget.numLock in the set of attributes used in the instantiation of the textField widget, as shown in the example below.

this.controller.setupWidget("textFieldId",
    this.attributes = {
        modifierState: Mojo.Widget.numLock,
        enterSubmits: false,
        focus: true
    },
    this.model = {
        value: "",
        disabled: false
    }
);

(There is also an option to have the text in the textField widget default to caps lock instead of numbers, by setting your modifierState attribute to Mojo.Widget.capsLock)

You enter your weight (and from the screenshots – when you notice the entered weight you will see WHY it is Coke ZERO and not plain Coke), note the units you are reporting in, and hit the aptly-named “Kill Me” button.

Simple, clean, fun.  Now to find 436 Coke Zeros…

What features have you run into in an application that gave you an “ah ha” moment? Let us know if you have either run into this in a webOS application, or of course if you have written this yourself, let us know!. And if you’re close to submitting your app, do it now! You can still benefit from our Hot Apps promo; Fast Movers have shown that you can get in the money within a week.

Comment (1)