Written content to help you along your web development journey, without forgetting to have some fun along the way.
Logging output during ruby processes is hugely beneficial for gaining insight into running code.
Long-running processes can appear to hang when you aren't given feedback. So let's give some feedback.
It can take some tricky logic to transform unpredictable characters into a URL-friendly string. But with Rails, you don't need to worry about.
Ruby is fun to write, and it's pretty easy to use Ruby to perform ad hoc services for you. Here are a few approaches.
There are many tools for searching and replacing, but most don't support changing multiple lines in one process.
No need to mess with Apache or Nginx to run a web server on your local machine. Just use this node command.
No need to mess with Apache or Nginx to run a web server on your local machine. Just use this ruby command.
Typically your application's stylesheet bundle contains several rules your site doesn't need. Here's how to use PurgeCSS to remove those unused styles when you're working on a Jekyll site.
When you don't want to perform an action until the browser has downloaded all appropriate images.
It's far too easy to let your JS code pollute the global namespace. Here are two methods for keeping your code local.