With JWTs, you can save it in sessions or cookies without worrying about it being manipulated by the user or another third party, thanks to it being signed by the server and secret key
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?
Have you ever worked in a web application with many custom user interface (UI) components? How were they structured? I will share some tips and tricks on how to organize them in a RoR application.
Six weeks ago, I launched my website Key Values on Hacker News and got a glimpse into what Hacker News readers value most when looking for an engineering job
No, that’s not a typo. The fear and stress were gut-wrenching. I couldn’t think of anything else, it was all-consuming. There was no way to relax, to get my mind off of it
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