Friday, February 18, 2011

Some lessons learned from FYP progress ...

As there are very wise programming sifu (Me? ) said to me when I am seeking enlightenment :
"It is much lot easier to program than to develop the software"

Yes, it is true, as long as you had some logical thinking and know some of commonly used programmming syntax such as do-while, if-else loop and etc... You are pretty on rock solid path to programming kingdom because you program to test a functionality of that programming language such as do a conversion , simple calculator and bla bla ....

But when you are on DEVELOPING software, hehe ... that is totally different story.
That are many things to do, man . I am dead seriously. There are new features to add, documentation to add ,testing the new features, testing for backward compability,  stress test some more and bug fixing some more ..... (more or less like what a real programmer do but for free :( and relegates copyright of your software to your damn university)

Amongst these thing, I thought testing the software is NOT that important until ...
See the comics for more information

And ladies and gentlemen,  that is why I RE-learn an very important proverbs
"A stitch in time saves nine"


A true story . . . and luckily my supervisor didn't choke on his nasi lemak :) 


Therefore when you notice an early bug in software, get on your fast feet and rectify the bugs before it get worse and worse .... it happens to me =_= very very sweat ....  but thanks to Bugzilla and the "long winded comments" on the bugs report, I manage to quash tens on the average 10 (if lucky, more than 100) on an single afternoon and evening without (hopefully) introduces new bugs.

From this experiences, I learn top 5 (Finger Tips)  important things in developing a software

1. Just because you know something doesn't means that you SHOULD put it in programs


Stick to the working objective and avoid on adding extra features (maybe unnecessary)  that you THINK that you SHOULD. More is not always meant is necessarily better

More complexity doesn't always meant better (No offense to that software, just show my points) 


As in short, keep it simple as program below (for example) 


2. Don't keep adding new features until to a point it becomes a BLOAT-ware rather than a SOFT-ware


You still remember when once upon a time when Adobe Reader ~ 8 MB. Now ? Latest version, I think it approaches 50 MB when it is just a damn PDF reader. Compared to Foxit (Which I am currently using, it is 7MB in file size) :P. Not forgetting to mention that there are way too many gaping 0 day security loopholes for Adobe Reader. In short, what I am trying to say that, don't keep on adding new features (like me had done) but instead refactor your code design decision and reevaluate the existing code to make it more efficiency and also add some readability to the code.

(For me too slim is just as bad as too bloated [As applies to girls also : P ])


3.Validate your every freaking input for every freaking variable


Validate your input means correctly formatting the input from the user so that the program will operate based on user input
Example when you request for name, you should type etc: Xu Whai Tuck and not the your IC Card etc: 09009-09090909-090909
In Java , fortunately there is error handling exception, thank goodness for that . Phew . . .



4. Comment wisely on your code


It is easy for a programmer to forget the code that they themself had written especially like on unearthly hour, 2 am last Monday. Hence, a very good comment is a best documentation itself. To show you what is good commenting, I "leaked" bits of my comment

//This part A4 dumps the packets captured to folder SAVED inside same directory as the program

// C7 : Display the graph - Total Bandwidth Logged
//Error : Still got some http parser not shown correctly

//Part B5: This part used to migrate data to MYSQL  
//Error: Cannot linking it to localhost
//Fixed : Setting up localhost and open port forward 3838

Of course there are bad comments :(
(True life example when I first write it)

//Please orz dont touch this part

//You touch, you die
(Literally)

//Broken , get back to this later

which offer more ? ? ? to yourself when you get back to this part again


Just for fun :P
The full comment is 
"// Unimap Noob Programmer in the making" 


5 I LEARN IT IN HARD WAY: TESTING YOUR DAMN SOFTWARES EACH TIME FOR NEW FEATURES


Nothing beats a wide eyes and jaw dropped user  (read : ಠДಠ )when you ship your product to customers (in my case my supervisor) a buggy ridden software. I learn an important things is that the more bugs you catch before you present it, the more damage control you have later. How I test the software? I test at every possible angle of (stupid and damn noob) user would try to broke the software in many ways. :[ and takes most of my sanity away . . .



This cute baby cat which I named it : Cold Chinese Teh a.k.a Sh'ng Kat Teh always tried to sneak into the server rack in Seberang Ramai Networking Lab. :( (It always miao miao miao for help after it get stucked, haiz). 


Okay, sign out to bug buster some more . :)

Thursday, February 10, 2011

Pokemon Hunter


Head: Debrained Pikachu Noggin x1, TM 24 x1
Chest: Voltorb Shrapnel x 8, Flaaffy Sinew x1
Arms: Electivire Fluff x12, Charged Bits x4
Waist: Starched Raikou Scalp x1, Pointy Jowls x1
Legs: Manectric Skull x2, Frizzy Ankle Slices x2
Lance: Zapdos Beak x1, Borked Magneton x5, Vire Wire x3

Points: +25 Choosing Pwr, -5 PETA Favor


Tuesday, February 8, 2011

An early Valentine romantic poem

Today is about exactly 1 week to Valentine's day and for you mushy guy who loves to recite mushy poem, here's a stuffs for you .... and that is if your girlfriend is still into Pokemon :)

Charmender are red
Squirtles are blue


and bla bla bla ....

Monday, February 7, 2011

How To Gear Up A Hero and a Heroine in most RPG . . .

After playing too much of RPG games in this CNY especially the low resource requirement game named TorchLight , I can deduce it pretty well from how  a hero and heroine should be geared .



And I stumble upon this very cute comics on the view how a hero and heroine should be geared. :P


Ok, now it's almost time to "gear" up to finish some of my unfinished reports and refining my FYP prototyp . Adieos !!!

Women From Around The World

After a "researcher" who had too much free times in his hands, he superimposed all the portrait pictures of women from across the globes. :) You might said that most of them are beauty in their own way

If you find the pics is bit wee small to be view, double click it ! :D

Friday, February 4, 2011

Robot in Bunny Suit

A little post related to this Rabbit Chinese New Year . . .

What if you found a cute fluffy bunny on the roadside with a broken back ?

For me, I applied the superb engineering skill ( I think it is more better than doctor prescribed !)

Simple, attach a toy car/tractor and some pillow to its belly to become a robo- bunny !

Well, it may not hop around very much but at least it learns how to crawl with 2 front legs and move around in about  3 - 4 weeks.

Edit: The vet approved of this methodology :) 


Btw, check the title ! Robot in Bunny Suit :P 

Thursday, February 3, 2011

Another random post to read ? Come !

Related Posts with Thumbnails