I am feeling
The current mood of sweetperceptions at www.imood.com
right now.
Home  Email  Rss  PHP  Ruby

Measuring it up

 November 15th, 2008

There are different ways to start your application out right. Some work on TDD methods, some equip their teams with good QAs, the others rely on extremely efficient project management and strong system administration. But the building of a good rails application does not only depend on code alone and its processes…

Read the rest of this entry

Quick fixing Blackbook gem for Gmail

 November 14th, 2008

The blackbook gem, though not really maintained well right now has still been a good solution for my needs in networking stuffs. Although, recently pointed out by Marco Fang was some trouble with Gmail changing the way data is retrieved via the API.

Previously, a query for contacts via..

Read the rest of this entry

To run RubyRun

 October 11th, 2008

I’m excited to have found RubyRun! I’ve just got the gem, but haven’t really fiddled with it. I’m gonna have it tested soon. I’ve heard about NewRelic and other stuffs too, but this one is new. We used to work with just bleakhouse, and I’ve tried dike. They are both hard to use and takes a lot of analysis to extract good info from it.

Read the rest of this entry

Rails addressbook importer

 October 3rd, 2008

I’ve been a developer for almost 10years now, yet I haven’t done any implementation of an address book importer. Well, this is the first time. smile

Since I started using symfony, I started to love its framework. Later on, I moved to using Ruby on Rails. Ever since, I loved working on Rails, and see myself wanting to create more Rails applications that would be better and more beautiful each time. That is why I always welcome the things I don’t know. I want to spend more time learning than simply perfecting what I already know.

Enter Rails address book importer.

Read the rest of this entry

Meaningful 404s and 500s

 July 6th, 2008

My site is still young and contents aren't that many right now, but what I really enjoy doing is making all the pages look better and be more usable. One thing that I recently gave thought on were my error pages.

I tried to advertently access a missing page, and I was greeted with my old one liner text and a suggestion to visit my blog. At the bottom of it was my twitter feed. It had the same layout as the rest of my site's pages and had the usual links on the right side. Funny though, when you access this missing page, it did take the usual loading time only to be displayed with such a page. And so I thought it needed a revamp.

Read the rest of this entry

Programming in Ruby on Rails introduced me to agile software development. I have been used to development in the traditionally confusing and dirty process of coding system. Agile development is different.

In the good old waterfall model, there is a strict flow of activities and process that is followed in the exact manner as they are described. What I really liked about agile method is that its ability to be adaptive, thereby allowing more programmer sanity. As defined by Wikipedia,

Some of the principles behind the Agile Manifesto are:

* Customer satisfaction by rapid, continuous delivery of useful software
* Working software is delivered frequently (weeks rather than months)
* Working software is the principal measure of progress
* Even late changes in requirements are welcomed
* Close, daily cooperation between business people and developers
* Face-to-face conversation is the best form of communication (Co-location)
* Projects are built around motivated individuals, who should be trusted
* Continuous attention to technical excellence and good design
* Simplicity
* Self-organizing teams
* Regular adaptation to changing circumstances
Read the rest of this entry

Writing good code

 June 13th, 2008

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

I’m just a new user of Mephisto, and I find that its a mature blogging platform (that still has a lot to improve though). I’m liking it already, but I feel that there aren’t much resources available for the Mephisto users. I had a hard time finding a theme that suits my taste, and so I decided to use my own.

As I was writing my own layout, I had to look at liquid markup and quickly breeze through it so that I could go on with fixing my blog. To my surprise, even the Google Group for Liquid were not so kind enough to post answers to those questions related to “using helper methods in liquid layouts/template”.

Its sad that I had to work on it on my own. And now that I finally learned how to do it, I’m sharing it with you.

Read the rest of this entry

One sweet day is coming!  I'm so happy and excited.. and so is my honey.  smile  Its a road to forever happiness and we'd like to share it with you.  Things are still cooking up, but we're excited to let you know.  Watch out for eleven8...


comments Comments »
nakakainis talaga maging empleyado lang12:02 PM pipilitin kang gawin lahat kahit na sa tingin mo mali12:02 PM sa tingin ko ito talaga problema ko ever since the world began12:02 PM ayokong gawin yung sa tingin ko eh mali12:03 PM pero kahit mali sa iba at tama para sa akin gagawin ko12:03 PM pero yun naman...


comments Comments »
Seriously, I like it when people give words of wisdom, or even share their own joys and/or sorrows.  Even those people who leave good thoughts and advices are alright.  Its okay.  But if you don't tell me who you are or if that I find that you picked my blog...


comments Comments »
Its a wonderful feeling that you are loved, and yes, its even better when you have someone to love.  In tagalog.. "kay sarap nang may minamahal.."  smile  Yep, its really great when everything seems perfect.. but then you get to ask yourself why on earth should you deserve this?  Is...


comments Comments »
If you haven't read Jules Verne's Journey to the Center of the Earth and weren't even able to watch the movie Journey to the Center of the Earth, then I hope you'll find it intriguing to watch the movie or buy the book after I relate our experience.I love Jules...


comments Comments »
Inspiration is nothing compared to Action itself.. I think so, I believe so..We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action.--Frank Tibolt [From MockObjects.com]&nb...


comments Comments »
I'm not a US citizen, in fact, I've never been there.  I'm not a politician or a political analyst/thinker.  But I do know a good person when I see one.  We all do right?  If I can vote for a US Presidency candidate, I'd pitch my vote for Barack Obama.Not...


comments Comments »
[video align='align-left']http://www.youtube.com/watch?v=rafEFSXVtuw[/video]While on the way home, as usual, I had to compete with a lot of people going to Quiapo.  I got a little pissed off because the drivers feel like once they have the "Derecho" sign boards they automatically upgrade their fare to 30 bucks!  They still pass by...


comments Comments »
I'm out of my league.  Hell, I didn't even know why I was there.  I knew I wanted to come because I wanted to try new things!  I don't really like gambling, and was quite hesitant to come, yet I wanted to learn how to play poker.  smile  My honey...


comments Comments »
Two days ago, my youngest sister was suddenly in the mood to watch Kill Bill again.  Well, since none at home had any violent reactions, we watched Volume 1 at around 8pm.  Supposedly, my honey and I were to discuss something very important that night, but then we opted to...


comments Comments »
  • Coderkitty:: Quick fixing Blackbook gem for Gmail: The blackbook gem, though not real.. http://tinyurl.com/5tuz8.. 2008-11-18
  • Sweetperceptions:: Almost there: One sweet day is coming!  I'm so happy an.. http://tinyurl.com/5wu3a.. 2008-11-17
  • Anti burn out = day off! 2008-11-17
  • i can only be stubborn because i have ideals and personal standards. 2008-11-16
  • working in a company means you'll do ALL of what they say. Most of the time its painful and annoying when its something you don't want. 2008-11-16
  • i just don't like being lied to. i can take a bitter truth but not a beautiful lie 2008-11-14
  • how could "a moment" take so long as 2 hours? especially if you say you're sleepy 2008-11-14
  • woohoo.. i'm happy for this weekend. smile 2008-11-14