Appreciating Rails - Part 1.2 : Model Callbacks

The part where we complete the other model callbacks using meta programming to reduce the amount of similar looking code. Ruby has a very nice define_method method, which allows us to dynamically define methods. Using that, we can rewrite : def before_save_callbacks @_before_saves end def after_save…

Appreciating Rails - Part 1.1 : Model Callbacks

I've used Ruby on Rails for 3 years now, and I've dug into the code base once in a while, either to just find out how something works, or to figure out some issues. But I don't think I've completely understood why a particular feature was built the way it…

Stop, just f'kin stop!

"Stop, Just F'kin Stop", that's what I say to myself every time I have an idea and my hand reaches for the keyboard to start building it. Problem I'm not sure if all developers have this problem. For me, its the knee-jerk reaction. 'Have an idea, will build' The fact…

Kickstart Android Development

I'm starting to learn android development, so hopefully there will be more posts here on things I learn along the way. Lucky to have a friend who is a really good android developer, so can get my questions answered immediately :) Setup When you google Android development on Mac you'll see…

How to (or not to) discuss (startup) ideas

If you are sharing your idea, try to divorce your idea from your ego, when listening to feedback. When someone is all excited and starts explaining to you their idea, don't immediately reply, 'but, there's an app does that already' Carefully listen to the idea completely, before giving feedback in…

3 reasons why the IceBucketChallenge succeeded

The IceBucketChallenge recently crossed $100M in funds raised. Just makes me wonder, how exactly was this cause able to raise these funds, given that most of the people who donated have no direct to ALS, or had not heard of it before the IBC campaign. There are definitely some things…