Design Pattern: Chain of Responsibility

In my original Tetris code base, I started out with a simple RotationController class. As I recall, this was a trivial class with a single shape. However, as more shapes were added, it quickly became unwieldy. Looking back at this code, I want to cringe at my lack of discipline in following proper design principles. On […]

Java-based Tetris Game

I’ve been planning to write some tutorials on design patterns. I just need to find some time and my day job at the corporate world has kept me busy. I plan to use this code base from a java tetris application I wrote a while back. I’ve done some clean ups – who’s not embarrassed […]

Gradle Plug-in: WSDL to Java Code Generation

It didn’t take long for me to fall in love with Gradle. Once I was introduced to it, I never looked back. It was the same with Ant as I transitioned from Make. But, Gradle is different. I always felt building was necessary evil. It was often done way after first code was ever written. […]

Fluent Interface by Example

Chances are you have seen Fluent Interface in action. I’ve seen it without realizing what they were until I stumbled across Martin Fowler’s blog. The aim is simple – to provide for a more readable code. SharePoint API Several years ago, I wrote a SharePoint API in Java to interact with its List Soap Service. […]

Application Health Monitor

I’ve been meaning to contribute to open source for some time. I really didn’t have anything particularly in mind to what I wanted to publish. However, I’ve been dealing with varying degree of integration complexity to some of my application environments at the office. Inevitably, someone would scratch their head for several minutes trying to figure […]

That’s Groovy!

Ask me a month ago regarding my choice of scripting language, my answer would have been Perl or, if it’s a trivial use case, Bash. That’s no longer the case. Now, I am eager to flex my Groovy knowledge. Why Groovy? Consider the use case of executing a system command and redirecting the output to […]

iOS App Development Tutorial Part VII: In-App Web Browsing

Having a list of article isn’t enough, we need to allow users to click through to the actual article. It’s also not a good user experience to have each article open in safari. We want to provide the ability to view the article within our app. Apple UIKit makes this extremely easy by providing a […]

iOS App Development Tutorial Part VI: Storyboarding

This tutorial, up until now, focused on the non-visual aspect of development, or as I would call it, the plumbing. It’s now time to put the visuals aspects using some of these plumbing we’ve built onto our storyboard. Storyboard is a feature built into Xcode that represents the screens in an app and the transitions between […]

iOS App Development Tutorial Part V: Persisting RSS content

Up to previous entry, we’ve successfully connected to DZone RSS Feed and parsed its XML. Given we’re working with mobile devices that could be disconnected from the internet, we want to persist the parsed RSS XML. This is helpful as it allows our app to display the most recently downloaded content when there’s no internet […]

iOS App Development Tutorial Part IV: Parsing RSS XML

In previous tutorial, we learn to make a call to a website and download its content. Since we are dealing with RSS, we need to be able to parse the resulting XML data. Here’s an example article from DZone article at the time of writing this blog. <item> <title>In case of emergency, System.exit</title> <link>http://feeds.dzone.com/~r/dzone/frontpage/~3/iD_9xik5E6E/in_case_of_emergency_systemexit.html</link> <description>Article […]