As you probably know, git is a popular version control software used in projects across the globe. One of the major features and one that distinguishes it from other tools is it’s branching mechanism. The code is usually tracked via commits and grouped by branches in git.

As the branches are lightweight and disposable it’s very easy to get cluttered when many people are working on a project or if there are many branches. And so, as anything with software, naming a git branch will itself need a standard convention to be followed in a project to keep it organized and sane. There are many naming formats out there and several project-specific ones I’ve worked with.

Read more

This is a follow-up post to my previous article on how to implement passwordless authentication in rails in sitepoint. It basically talks about how to implement login with just rails model, controller and a login token.

Recently I received an requirement to build a Password-less authentication system for a client project and while I wanted to do the way I have written in the article, I was looking out for if any viable options are out there since it’s been 3 years. And there is one. I stumbled across passwordless by mikker. It’s basically a gem that you can add it to your Rails project and get the password-less authentication system enabled.

Barring couple of hiccups I faced (project specific requirements, the PRs were promptly addressed), the gem works neatly as advertised. I’ve used it for the project and it’s running smoothly in production now.

That’s why this entry. I wanted to share the gem because it’s a nice solution for something I advertise a lot(get rid of those passwords!).

Recently I was debugging a code on Intelllex API and thought I’d share.

We have a product called Stacks, where users can save links, searches and files to it, which helps them with organizing their legal research. Our stack is Rails on the API side and Angular on the client side.

We use counter culture gem to cache the counts of things that are saved to stacks by users and we also have the ability where users can save and move stuff from one stack to multiple stacks.

Read more

Coursera just launched an Algorithms specialization with courses previously from Algorithm Design and Analysis course and with some new assignments. This is a four course specialization with each course spanning 4 weeks.

I’m going to finish this specialization and planning to log my progress throughout here. It’ll basically contain my perspective on the course and my learnings throughout.

I’ll be taking this course as a beginner since my Algorithms knowledge is quite rusty since I’ve learned them during my Diploma and Bachelor’s degree. So, the take on the course would be from my point of view inline with my experience.

Along with the coursera course, I’ll also be taking supplemental learnings from MIT OCW on mathematics and a reboot on Data structures from geeksforgeeks.

Wish me luck :)

I have recently published an article that explains how to build an authentication system in Rails API using only JWT.

Hope you like it.

Sitepoint Link