Sabtu, 29 Juni 2013

Thought About Anarchist Soccer Fans

In the present time, there are a clash between two Indonesian soccer fans, The Jak Mania from Persija and Viking from Persib. The match between Persija and Persib at Persija's home is cancelled due to a fight between both fans. Not pleased with The Jak Mania's action, The Viking throws rock to every Jakarta plated car that went to Bandung. Until right now, there are one life casualty. 

After that incident comes into media attention, my friends at Facebook start posting a lot about the clash incident. Most of them are complaining, accusing that the viking has no other jobs to do, they sinned. Some of them called Viking stupid and crazy. Most of them do not understand why The Viking could go to that extreme.

I, myself, have a different point of view. I do understand why they could do such extreme violence actions for sports. My friends and I were studied in one of the best college at Indonesia. We are well educated throughout our life. Nurtured by good and understanding parents. We live in prosper and healthy environment. We can "easily" knows whats good and wrong. We can control ourselves better. Meanwhile, most of The Viking came from the street. They are not well educated. They strive badly just to get food and home. Their parents are not give them much attention. The live in a wild and unhealthy environment. The best entertainment they had is Soccer. Imagine that you had one thing that you like the most, then some people disrupts it. It's simple.

This why I want to strive in the field of education. :D. Education is the key to Indonesia's future. 

Selasa, 11 Juni 2013

First Project Using Unit Testing

Alright, if every applications I've developed until now is not using unit testing, this is the first project I developed using unit testing. It's like an enlightenment. I just realize that unit testing is very important. At the very first time I use unit testing, I cannot get away from it. Unit testing is provided for people who do not like to test their apps manually. I am one of them.

I developed mainly web application. For me, the most boring thing in the development time is to try to open every page in my application and try every possible scenario. With using unit testing, I can set up a mock environment for testing purposes automatically. Every function or method can be tested automatically. I don't have to use the function to test the correctness of the function.

I know it was tiring to write code for unit testing, but trust me, it will be more tiring to test every possible scenario manually. Not only reducing amount of work to test, but my app have less bugs than ever. Unit testing find bugs before you know it. :D

Sabtu, 08 Juni 2013

Forget is Not an Excuse

Recently, I find my friends told me like this "sorry, I forgot about that" or many another variations of apologizing statement for their lateness. It is just like at the court. The safest answer in the court for politician is "I forgot". Just do not do it if you do not want to be like that. 

The logic is really simple. If you forgot about a thing, it means that thing is not that important for you. One day, I tried to ask some help to my friend to take my belongings because she is at the place where I left my belonging. After several hours, she said "sorry, I forgot". I know the feeling when my friend said that statement. Until now, "forgot" is one of my forbidden words for me. It was a really bad word like "whatever". Logically if you thing something is important to you, you will always remember it or maybe set a reminder for it or you become so excited so that you cannot sleep. 

It's just not fun when someone tells to us that "I forgot" because it means we are not important. So, treat every single little request with enthusiasm. It will show that you care for them. :D

Kamis, 06 Juni 2013

Why Do We Use Web Framework?

A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. It is a normal thing to hear that one or another framework is used to make web application nowadays. There are a lot of framework even just for one language. For example, Python has pylon, cherrypy, and Django. PHP has kohana, yii, codeigniter, and cakePHP. All framework has is advantages and drawbacks. But, what is the essential reason to use a web framework?

The first reason that become the most important reason to use a web framework is that by using a framework, it will reduce a huge amount of development time. Yes, by using a framework, CPU and Memory loads will increase, but hardware is cheap compared to developer cost. Yes, we can make good application without framework, but it would definitely harder and cost more.

The second reason is that almost all web frameworks are opensource. This is the reason why we should always use frameworks. It do not cost a single penny except the bandwidth you used to download the framework. Besides reducing development time, it would reduce development cost by using open source software that has production quality.  Imagine a world that framework is a paid license. It would be not fun anymore.

The last reason to use a web framework is that, you will write code on the shoulder of giants. Popular framework like yii or Django, has been "touch" by the hands of professional, experts, and a lot of other developers. Their code will definitely significantly better than only one or two people that write the code. Their code has been tested, reviewed, and gone into production numerous times. 

So, in short, by using web framework, it will reduce development time, development cost, and better software quality. I personally like Django and Rails. For PHP, I want to try yii2 after its BETA release. Thank you.