Wednesday, February 25, 2009

Does the number of lines of code a good measure of a programmer's productivity?

The main concern being brought in is whether then number of lines of code being made by a programmer is the correct method of measuring his productivity. And as a reply, I truly think not. Although there's definitely some relation with productivity and lines of code, but it's far from direct thus source lines of code is the poorest and most ineffective way of measuring one’s productivity.

In Wikipedia, programming productivity is defined as a variety of software development issues and methodologies affecting the quantity and quality of code produced by an individual or team. From this definition alone I can adhere that my opinion is well justified since number of lines only refers on quantity and does not directly relate to quality of coding or work done.

Source lines of code (SLOC) is useless if we use this software metric in programmers doing the same design but different languages since different languages can produce different numbers of lines of code for implementation of the same design. If a same program is to be done in Java and C++, it can be foreseen that Java programmers can create lesser lines of codes than C++ programmers since it has more built in functions and classes than C++ (or vice versa depending on the program to be done). From this example, we can say that even if the quantity of code is lesser but if the quality is the same therefore the programmer is still productive.

Source lines of code (SLOC) is also rendered ineffective when the code is still not complied, tested or implemented, simply stated “Productivity in lines of code cannot be measured until implementation begins.” Why? Basically because a programmer could write hundreds SLOC but then if it is wrong then should one still consider that as productive? This situation is analogous to a question “Would you measure a chef on the volume of spaghetti used per day?” Clearly not.

Furthermore, if one keeps using SLOC as software metric to measure a programmer’s productivity, a programmer may just type away or just may structure code to meet productivity goals. Which in reality it refers that no serious work is done.

From my experience, the trend nowadays is to make your source line of code shorter but still keeping up with the quality of the program. Shorter and more concise programs make it easier for programmers to debug and manage their programs. The best programmer is generally the one who takes the most code away, not the one who adds the most code. A measure of when a product is stabilizing is when it "turns the hump" from growing to shrinking code size.

Tuesday, February 24, 2009

Registered Nurse na Sila.!!!


(Pic above: Kyle (my cousin) and Cristal (my ate))

Just want to share to you the happiness that me and the rest of the Hernandez family is feeling at this moment as three of my cousins namely, Kyle, Nick and Richard and my ate Cristal passed the Nursing Licensure Exam at their first take. A shoutout to Jake, my ate's boyfriend, whom we also consider as a part of th family also passed.

As my aunt would describe it, "It was a success". A lot of things have happened to our family last year and we were wondering if that would affect their performance in the exams and we only hoped that God will guide them in this undertaking and fortunately God was kind to our family.

To the now registered nurses of our family, I wish that you keep up all the good work you have been exerting lately since upon passing this exam means more and tougher things are to come to your lives and career. "Paburger naman kayo dyan"

Wednesday, February 18, 2009

Facebook mishap


Last February 16,2009, a news leaked that a popular social networking site, Facebook, stated in their terms of service that if you want to be a member of this site then all your pictures, files and personal information that you will post in the site will be legally in their disposal.

The TOS says the following:
"You hereby grant Facebook an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense) to (a) use, copy, publish, stream, store, retain, publicly perform or display, transmit, scan, reformat, modify, edit, frame, translate, excerpt, adapt, create derivative works and distribute (through multiple tiers), any User Content you (i) Post on or in connection with the Facebook Service or the promotion thereof subject only to your privacy settings or (ii) enable a user to Post, including by offering a Share Link on your website and (b) to use your name, likeness and image for any purpose, including commercial or advertising, each of (a) and (b) on or in connection with the Facebook Service or the promotion thereof."

English translation: "All your stuff will be theirs and at their disposal anytime, anywhere with or without your permission"

People joining such sites never really read the the terms of service that the site offers that is why this information was discovered just recently. Some members of the said site and even non-members are now actually thinking of (or is already) boycotting Facebook.

Howerver, the folks over at Facebook are now working quickly with their legal team to fix their "terms of service"

The following message is the greeting when you now login to Facebook:

Terms of Use Update

Over the past few days, we have received a lot of good feedback about the new terms we posted two weeks ago. Because of this response, we have decided to return to our previous Terms of Use while we resolve the issues that people have raised.


All is well, for now.

Lesson learned: Next time read out the Terms of Service of the site you want to join.. you'll never know what they might want in return.

Source