Virtus is a popular Ruby gem described as attributes on steroids for plain old Ruby objects. I saw it being used in many API based applications so when I was building API for my app I chose the virtus too
Starting out with a software project, authentication is usually quite a simple problem to solve. You simply create a users table in the database, collect users’ usernames and passwords, and authenticate users against it
I have been coding in Ruby for last 6 years and it is my strongest language by far. However, as I was preparing to interview at top tech companies, I faced a big question - which programming language should I use?
Yes, for most projects you should write automated tests. You should if you value your time anyway. Much better to catch a bug locally from the tests than getting a call at 2:00 in the morning and fix it then
I was debugging Mechanize the other day, and thought it would be handy to have a graph of objects in memory and they’re relationship with each other. So I put together a simple script that outputs a Graphviz file illustrating what the object points to