Waiting for Docker in a Shell Script
Last updated 31 August 2016
Peter shows how to write a script that starts a docker container and then executes commands that assume that docker container is up and running.
Thoughts about the internet, on the internet
Last updated 31 August 2016
Peter shows how to write a script that starts a docker container and then executes commands that assume that docker container is up and running.
Last updated 24 August 2016
Fat models, skinny controllers is out of fashion in the rails world in favor of many smaller use case classes, but fat models don't happen all at once. Peter shows how to trim the fat out of your models step by step.
Last updated 17 August 2016
Like many rails devs, Peter has been exploring elixir and the phoenix framework. Here, he explains how to set the current user in a way that is easier to test.
Last updated 10 August 2016
Locking is one of the most powerful tools in a developers chest to ensure data consistency, but it the documentation can be confusing. Peter guides you through how to use it properly with examples.
Last updated 03 August 2016
With so many websites in the world, it's amazing how many don't sell you on why you should use them. Peter reminds us of why it's important and how to do it.
Last updated 27 July 2016
It's easy to search and change a string in javascript, but it can be confusing to change text on a whole html page without affecting any bound javascript or non-text html.
Last updated 20 July 2016
When moving from toy apps with fake data to production apps with real data that can't be lost, it can be hard to know how to adjust your database schema. Peter explains a few simple steps to make it happen seamlessly.
Last updated 13 July 2016
There are a lot of shortcuts to understanding include and extend in ruby, but it can help to really understand how it all works. Peter explains.
Last updated 06 July 2016
What you name a class makes a big difference in how people will add methods to it in the future.
Last updated 29 June 2016
So much of programming is learning the jargon programmers use. Learn what an N+1 query is, how to identify them in your code, and how to avoid generating them.