The Story

Your Environment is The One Who Built You Up

I was researching my target university. One thing that I did was watching the commencement event and listen to the speeches by the president and honorable alumni. It was very interesting to watch the event, and I gained lot of information about the culture in the university. I learned interesting knowledge from one of the speech: Your environment is the one who built you up The speaker said that the...

When I Need Words

Writing Statement of Purpose is the hardest thing you will ever do in your life. That’s for my case, though. I need words! It is hard to combine those words into a strong and extraordinary essay. Well, basically what happened to me is just myself being perfectionist and my mind just wandering around without even start to type any single word. And which is why Mr. Ruli Manurung, my beloved...

Being Away from Social Media (Day 3: The Reason)

I promised myself after my 25th birthday, I have to start reducing my activity in social media. So today is the 3rd day of my fasting, and with this post (and some future posts) will talk about how is it like doing fasting of Social Media 😛 Background Story I did a lot activities on my Facebook page, especially when I want to express myself about recent issues. I also...

(Almost) Seamlessly Integrate Android Layout XML to Code Behind Reference

It’s been a while since my last post. With this post, I would like to share a little bit of my toolkit which I use extensively on my Android project. 🙂 Overview So basically, when you are developing apps for Android, you use Android XML file to define the User Interface (UI) layout structure, then you code using Java for the implementation. Basically they resembles the .NET WPF/Silverlight’s XAML development,...

Marathon Coding

I love doing what I may call marathon coding: Code one functionality you are going to implement from start to end. If the functionality means that you have to create a very big class from start to end, then do it. DO NOT debug or try to run the program before the functionality you desired is exactly implemented. The threshold is that your program will be able to produce the...

Ambiguous Result

Another quo-de for today. You can see how ambiguous this function call protected void onPostExecute(RefreshTaskResult<ActionResult<SquadInfoShort>> result) { // Check result if(result.getResult().getResult()) { } } What result?

Using Generics in an Ugly Way

Previously I was talking about generics. You can see how I do with generics to the confusing level: new AsyncTask<Void, Void, RefreshTaskResult<ActionResult<List<SquadInfoShort>>>>() { protected RefreshTaskResult<ActionResult<List<SquadInfoShort>>> doInBackground(Void… params) { try { ActionResult<List<SquadInfoShort>> result = client.getSquadList(); return new RefreshTaskResult<ActionResult<List<SquadInfoShort>>>(result); } catch (Exception e) { // Catch any exception return new RefreshTaskResult<ActionResult<List<SquadInfoShort>>>(e); } } }.execute(); See how many < > to feast your eyes.

Generics in WCF REST JSON Communication

Overview So I got a task in designing a scalable and modular Service Oriented application using JSON and WCF. I am designing a web service using WCF. The communication between the web service and the client will be using JSON. While the server is using .NET Framework, the client is using Android Java. I aim to design the service as modular as possible. For every web service request from the client,...