Versioning your API is very important as it allows you to scope implementations to a specific number in case you want to change the way things are done later down the line.
In Rails you can easily get an array of full error messages from a model.
Woah, the JS world is moving so fast. Just yesterday I was replacing my jQuery $('#time') with document.getElementById('time') calls. I was certain I was Web 3.0!
$('#time')
document.getElementById('time')
When a new user signs up to your website, you may want to generate an initial profile picture for them using their initials.
Here’s a quick tip for those times when you’re querying Ecto data in iex.
You’re running a query in your terminal using iex -S mix, and the data you’re getting back is truncated at the end.
iex -S mix
%MyApp.Accounts.User…
Protecting your user’s data is very important and it’s tricky to keep track of who can do what within a complex system.
Before Pundit I would write before_filters and while it worked, it lead to some confusion as to where my permission…
Everyone has been in this situation at least once.
You’re relaxing, enjoying a nice afternoon working on a feature and suddenly you start seeing a bunch of traffic China doing all sorts of interesting things…