This week I learned that GitHub wasn't requiring 2FA yet (but will soon), and the moon may need its own timezones (to the dismay of devs everywhere).
Ruby gives you 12 ways to do anything. Erlang makes it tough to find one. Awhile back, I was trying to add time to an existing DateTime value, but I couldn't find a function (such as in the Calendar module) that allowed me to manipulate a DateTime value directly. Here's how I ended up doing it.
Handling date and times is a thorn in every experienced developer's side. If you haven't had the pleasure yet, you will. ;) Coming off a week of standardizing some datetimes across an Erlang app, here's a few personal thoughts.
Some issues transcend programming language, equally tripping up developers across the board... * Regular expressions (try validating an email address... [https://stackoverflow.com/q/201323/301857]) * SQL injection [https://www.owasp.org/index.php/SQL_Injection] (NEVER run a user's input through your database without sanitizing it) * Using floating types for