The type I wanna be

I have been misled by my understanding of a "Hacker". I've always thought and believed that "hacking" is a selfish act.. an act of abusing intellectual ability.

My misconception

When I was young, back then, CDs were burned at the highest speed of 32x.. my CDROM can only read those burned up to 16x. It was a terrifying fact that I cannot buy the high end CDs because of financial limitations. I had to stick by the 'old' CDs that were sold at a cheaper cost because they had to get rid of the 'slow' CDs. I end up scavenging those CDs that nobody would even like. I take whatever interests me. Sometimes its frustrating to find the ebook CD you want burned at a higher speed I cannot read. At worst, the seller doesn't even know the speed used for burning and sell out a copy that I cannot even use. But there is one though that I wanted and was burned at a lower speed.. it was a "Hacking Tools" CD.

This was one of my favorite CDs. I learned that the CD I bought won't teach me anything about 'good' pride. By good, I mean the pride that you get from giving your projects a good thought, ample time of planning and rigorous code development. It taught me about 'bad' pride. It showed me a lot of 'instant gratification' coding. I'd like to call these tricks and 'hacks'.

With this, it kinda stuck in my head that 'hacking' is a negative term. I have confused the "Masters" with the "Crashers".

Read the rest of this entry

Category: Coding Tags:  0 Comments »

Writing good code

It has long been a debate on how to describe 'good code'. What are the criteria for declaring a code to be good, neat, and dry?

My advocacy is to promote writing good quality code. It is by painstaking practice and tons of reading that I get to exercise this advocacy. It is but a long journey, but little steps lead you to understanding and qualifying a code to be of high quality. So what are my benchmarks?

  • Long codes are less readable and more likely to fail.

Ruby scripts are far smaller and more compact in size compared to Java codes or C++ codes. Trust me, I've seen some and comparing them to Ruby, reading Java codes or C++ codes that are not mine would take me a longer time for understanding (even if docs and other help materials are present). Ruby has good metaprogamming (that sometimes gets abused because of monkey patching) and produce straightforward codes. Each line would end up more like real English sentences.

If you write ruby codes that take up to more than twenty lines.. hmm.. well, its doomed to fail, for sure. smile Refactor and review!

  • Codes that don't look anything like its API source is really smelly.

APIs are there for you to use as a general sitemap. It is your guide to efficiently write code with ease. Usually, APIs are well documented and even provide examples or snippets of codes to demonstrate its use. The lines of codes involved may also be present for you to inspect its process and even predict if it will pass your expectations.

Read the rest of this entry

Category: Coding, Ruby and/or Rails Tags: 
Hi, I've been busy you know. wink If you don't know yet, this site and my blog codes are hosted in . I recently moved to Git and found that they have support for private Git repositories. Below are details of my last git push.

Maricris S. Nonato on 14 Feb
Commit: 48fe3652ffb644af13f4a5651f9d80474b09f622

Adding new ad image for Pledgie campaign - campaign image for coderkitty fundraising
  • favorited a lol 'Harry's tuxedo seemed a bit snug...' http://twlol.com/tw/..?a3294720768 #lol #ichc 2010-03-21
  • favorited a lol 'Invisible bike hits invisible scooter!' http://twlol.com/tw/..?a3302849280 #lol #ichc 2010-03-21
  • just updated "The world should know" post. 2010-03-21
  • Reggie: the doble-kara singer contestant in Pilipinas Got Talent, you are awesome! smile 2010-03-20
  • dear mama, i would give you anything you ask, do anything for you, as long as you make me cups of hot tea everyday. smile #fb 2010-03-20
  • LivingLife :: The Space Between: Ambient music takes me to a point of silence and peace inside my head.  Someti... http://bit.ly/cg52Sj.. #fb 2010-03-20
  • false hopes. 2010-03-20
  • @AdeMagnaye ahahaha. that just made me laugh tongue 2010-03-20
  • i miss JP sad :( :( 2010-03-19
  • frustration on books/ebooks and ereaders kicking in.. sigh. got to get my mind off them for now 2010-03-19
  • i am worth more than how you see me. my faith and belief in it is greater today than yesterday #fb 2010-03-19
  • nice.. http://bit.ly/dAr1Co.. 2010-03-19
  • There can be no happiness if the things we believe in are different from the things we do. - Freya Stark #fb 2010-03-15
  • LivingLife :: My first cabby receipt: Today seems a normal day.  I have good vibes for today.  smile  At first I f... http://bit.ly/cAZJiL.. #fb 2010-03-15
  • would you believe that Filipinos "trust" Lea Salonga second to Rosa Rosal (in Reader's Digests' Who do you trust poll)? weird. 2010-03-12
  • have you seen a chinese owl? i can't get this image out of my head: http://bit.ly/czilyD.. 2010-03-12