Why I Unfollow 156 Twitter Friends

From all of social media platform that I’ve tried until today, Twitter is my most favourite. Why? It is simply because Twitter can give me a lot of information that I need in a simple way. They can give us an interesting experience to share information and to receive them, as well. This is a platform that allows me to quickly find some interesting information based on what I’m interested in.

But now, do all of my followings / friends still give what I need? Are they still relevant to what I’m interested in today?

The first time I joined twitter, it was only for fun, nothing so serious back then. Now, it has changed. Twitter have become as a self branding tool for me. It is also a news source to me.

The way how I use Twitter now is tightly related to what I’m interested in now. I expect them to share things that related to software engineerings, startups, product development, user experiences, chelsea fc, my music preferences, or any general news around me. That is why, it’s important for me to ask myself, whether my followings are still relevant with those things or not.
Continue reading “Why I Unfollow 156 Twitter Friends”

What “4 Rules of Simple Design” Means to Me

About two years ago, my interest mostly focus on how to write a well performed code. I was enjoying it, I had a lot of research about it, and I love talking about it with people. Every time I wrote a code, I just jumped in to the code and type everything. “Yeaaah! I’ll write some freaking fast codes.”, that was what I thought. However, at one stage, I felt there was something missing in what I did. Something was wrong with the way I did my job (read: hobby).

The problem was I didn’t feel that I was confident with my code.

I was progressively better in writing well performed code, but it was linear with the bug amounts. How foolish I was, pushing some buggy codes to the production. What the hell!?

My habit also brought another problem. By jumping directly to the code and typed everything, made the codebase getting dirty, difficult to read, and hard to maintain. It took me a longer time to ship small feature, mostly because there are a lot of code duplications, it is unreadable, and super complicated. So what should I do?

I needed something that really could help me getting through with my confidence with my own code. Something that could help me writing a better and readable code. I just couldn’t do it myself, I needed someone to teach and guide me about it.

Continue reading “What “4 Rules of Simple Design” Means to Me”

My Experience with exists?, any?, and present?

A few weeks ago, I encountered a problem, which I think, really really weird!

How weird was that?

So, I have some tables with one to many relationship, let’s say table articles has many images and images has many image_sizes (the tables are different with the actual case). The system has a job that executes codes fetching Article load it eagerly with Image and ImageSize. We thought it was safe, since there were no complicated process at all. Just load at print it!

After a while, booooom! We had 500 in production……. Continue reading “My Experience with exists?, any?, and present?

Raw Insert Query with ActiveRecord

These past days have taken me to a place that I need to learn more about executing a raw query, without relying on generated active record object (existing model classes).

Last week, I wrote a lib, that I think, required me to wrote it with custom or raw query. My research was filled with these kind of results


I used it actually. But, until I find it hard to produce a query string that free from SQL injection. Anyone knows how to do it? Continue reading “Raw Insert Query with ActiveRecord”

Understanding Ruby Comparison and Control Flow Operators

This afternoon, I had a chance to discuss about something with my pair about the difference between comparison operators and control flow operators in Ruby. Yes! What is the actual difference between && || operators and “and” “or” operators?

I started Ruby around 4 years ago and I wrote a code like this

if (a == true and b == true)
  # my code

And I swear I won’t do that again! Continue reading “Understanding Ruby Comparison and Control Flow Operators”