Validating Stateful Objects In Rails

Let’s talk about state. Or actually, let’s not talk about state. I think we have talked enough about state. Let me just say that it’s very easy to think use state as a solution in OO programming. Especially when Rails give you tools such as enum.

There is a trap though. Things can become very messy, very quick. I have seen this in code bases I inherited as well as ones I helped create. While working at a project with a colleague we ran into state and wanted to curtail the increasing amount of code it started to bleed.

read more...

Asking Questions

The right question

Asking a good question does take more consideration than you would initially think. I have worked in various IT support roles where I had to both answer questions as well ask questions to other specialists. I know what it's like for both sides of the question. It is important to provide brief, yet detailed and only relevant information, while making sure you aren't omitting anything helpful. It can be important to provide environment variables when they are relevant, but they should be very succinct.

When it comes to asking questions about code, I understand it is important to reduce the amount of example code to a minimum and use easy to understand, general variables and names. This is what I took away from the presented article.

read more...

Site Evaluation

Nine weeks of blogging

One of the things DBC taught me is to get into the habit of blogging regularly. While the topics weren't something I would choose to blog about this process has been educative to me. In the cultural blog assignments I considered things I had not considered before. In the technical blogging I realized how blogging really helps solidify the topics I chose.

I have to admit that when I blogged I always picked the topic I felt most unfamiliar with, so I had to learn about it before and while I blogged about it. This is an efficient way of both increasing and sharing my knowledge.

read more...

Conflict

I would like to invite you to do an image search on Google for conflict. There are two things that I noticed: Almost all of them feature people in traditional office wear and exactly all of them look ridiculous. The only exception is the image with...

read more...

Values

When I think of my happiest, proudest and most satisfying moments, which values come to mind?

Achievement, Adventure, Community, Compassion, Cooperation, Decisiveness, Effectiveness, Freedom, Friendships, Growth, Helping other people, Honesty, Insight...

read more...