Monthly Archives: March 2012

Christian Java: A Lesson On Temptation

Today, with the help of Java, we take a light hearted look at an important topic pertaining to our religious faith in Christ: Temptation. No need to talk much, the code speaks for itself.

Christian frank = Christians.findByFirstAndLast("Frank", "Adams");
List<Temptation> temptations = Devil.getTempations();

boolean succeeded = false;

for(Tempation t: tempations) {
    succeeded = t.tryOn( frank );

    if( succeeded ) {
         Devil.celebrate();
    }
}

if( succeeded == false ) {
    MaturityLevel maturityLevel = frank.getMaturityLevel();

    if( maturityLevel.getDescription().equals("baby") ) {
        Devil.setNextTrialFor(frank, Period.getInstance("D3") ); // next 3 days
    }

    else if( maturityLevel.getDescription().equals("adult") ) {
        Devil.setNextTrailFor(frank, Period.getInstance("I60") ); // next 60 seconds. We need to try harder
    }
}

That’s all class. Anyone wanna do that code in Javascript? Might provide a bit more syntactic sugar :). Have a blessed day!!!

L & F Concept. Can This Be Done In Java Today?

Windows 8 Desktop UI Concept

I came across an awesome UI Concept for what could have been the desktop UI for Windows 8 yesterday whiles reading around on the Windows 8 blog. I immediately fell in love with the UI and personally WISHED this is what Microsoft should have come up with along side Metro as an upgrade to the Windows Desktop Experience.

After drooling over the UI for God knows how long and reading up on the comments, I asked myself, “How easily can such a UI be created for a Java Desktop (Swing/JavaFX) Application?”

I’ve taken the time to look around the Internet for Look and Feels for Java that come anywhere near this UI Concept and I have not found any as yet. I tried playing around briefly myself and realized the concept can be achieved but requires a bit of hard work (what doesn’t).

All in all I think the UI Concept is just the bomb, and personally I would be glad if Synthetica or Substance L&F had such a theme. It would be serious hit in my opinion.

Let me know in the comments what you think about this UI concept as well as the potential for coming up with something this stunning for a Java Swing/JavaFX application today.

Quick Impressions on Windows 8 Beta (Consumer Preview)

Impressions on Windows 8 Beta (Consumer Preview): Not sure if it is because I have a lack of desktop applications and don’t want to install them at this point, or that Microsoft have done their work well, but I seem to spend (want to spend) more time in the Metro Interface than the Desktop when in that mode. But once out of Metro and back in Desktop, I just don’t want to go back, but the bloody start screen always gets me back there. Metro seems to be serious waste of screen real estate when using a Laptop, because there is little reason to have all that free space, when icons, buttons or screen elements could be put there.

Metro IE 10 is good and works as good as my trusty Opera, so once in Metro world, going back to Desktop just to have Opera feels disconcerting.

Metro is a bit boring. Full screen all the time with slow(er) internet connectivity and the nonsensical requirement to login (Windows Live) to almost every app on the system is just annoying.

The App Store is pretty neat. I found a nice WordPress App to install and it works pretty well.

Windows 8 Consumer Preview is looking solid, but I wish my recommendations from my Wishlist article could have been implemented. Jumping between worlds is still not that fun in the long run. I’m going to install more desktop applications, e.g. Netbeans and SVN Tools, to see how productivity feels like with all the current changes.