We'll cover examples with Flask, Django, Rails, Node and Phoenix. The strategy is the same for any app.| From Development to Production on Nick Janetakis
Reflecting on two years of tech exploration, I’m now focused on creating simple, niche products and overcoming decision paralysis.| Petros Amoiridis
I wanted to compile an ultimate list of Ruby resources, books, courses, people to follow, etc... This list contains resources I have used over the years while learning and writing Ruby (on Rails) professionally. My goal is to keep this list up to…| Leigh Halliday's RSS Feed
Controllers can get out of control. Their job should generally be quite simple. In an MVC framework such as Rails, they should have the job of knowing how to work with the Model in order to get what is needed for the View. In other words, they…| Leigh Halliday's RSS Feed
Typically in Rails apps we use rake tasks as a way to interact with our application through the command line. We're all familiar with running code like rake db:migrate , or custom rake tasks that we create ourselves. There is another way to create…| Leigh Halliday's RSS Feed
In this article we are going to look at method_missing and respond_to_missing? in order to see what they do and how they can be used. We're going to re-create the StringInquirer class in Ruby on Rails as a way to demonstrate what is happening…| Leigh Halliday's RSS Feed
Race conditions A race condition or race hazard is the behavior of an electronic, software or other system where the output is dependent on the sequence or timing of other uncontrollable events. It becomes a bug when events do not happen in the order…| Leigh Halliday's RSS Feed
How to ensure your values are unique It's often the case that you want to ensure that you've got uniqueness in your data. You only want an email address to be used once... otherwise what would happen when that person tries to log in? Which user…| Leigh Halliday's RSS Feed
Can you do this integration? Is what I was asked. Oh no... it's in SOAP? Instantly all the time I spent working with SOAP APIs in PHP flashed before my eyes, bringing back memories I would have rather left in the past. What is SOAP? SOAP, originally…| Leigh Halliday's RSS Feed
Situation Maybe you originally wrote some code for a Rails project that you're trying to use in another framework, in an automation script, or in a Gem that you're extracting out of your project. Have you ever run into an error saying something along…| Leigh Halliday's RSS Feed
What are tree structures used for? Tree structures are needed any time you want to insert a hierarchy into your data. It's when you want to store relationships between data of the same type, vertically. Think of categories, org charts, and family…| Leigh Halliday's RSS Feed
Hi, Leigh, are you busy? The website is no longer responding... can you investigate? A phone call nobody really likes to receive on a Saturday. We launched a new website on Friday and it appeared to be working great! Little did we know that our…| Leigh Halliday's RSS Feed
Why does this site have I18n? It's a good question because my content is only available in English (perhaps I should write some articles in Spanish??). The answer is that the code for this site powers my wife's blog too, who does in fact write…| Leigh Halliday's RSS Feed
Using Angular in Rails App Single Page Applications (SPA) aren’t incredibly new any more, but there are a lot of people with Rails applications using a more traditional server-side Rails approach to the website’s architecture. So what happens when…| Leigh Halliday's RSS Feed
Our Goal In this article I'd like to discuss how to implement user authentication into this blog. In this article about modelling the data for our blog we talked about wanting to keep track of Authors, and that they would be stored in the User…| Leigh Halliday's RSS Feed
Background At FlipGive we use RSpec to handle all of our testing. Over the years we've built up quite a few tests... last count there are 2130 of them, which take 3 minutes and 20 seconds to run. Not the fastest test suite in the world, but…| Leigh Halliday's RSS Feed
Today's Goal: Creating an Admin Section This website, along with most of the other ones I create end up having an admin section; a place where data can be created and managed. It's only accessible to registered users (or possibly a subset of those…| Leigh Halliday's RSS Feed
What is PgHero? PgHero is a gem written by Andrew Kane for getting quick insights into how your Postgres database is performing and where there is room for improvement. It provides a quick overall status of your database, a look at the queries…| Leigh Halliday's RSS Feed
Deciding What Models are Needed In my last article in this series, getting started with ruby on rails , we worked through getting Rails installed and creating a new application, with some initial gems being chosen and installed. Now we're ready to…| Leigh Halliday's RSS Feed
Git Init The first thing I do when starting a new project is to create a new git repository. GitHub is great if you don't mind the code being public, or you don't mind paying to have a private repository. There is another option available called…| Leigh Halliday's RSS Feed
What is a Mail Interceptor? When using ActionMailer in Rails, there is a way to hook into the outbound message after you call the "deliver" method, but before it is actually sent to the delivery agents. You can think of these interceptors a little…| Leigh Halliday's RSS Feed
When building a RESTful API in Rails, there are many different options and gems you can use to format your JSON responses. This isn't a post about how to build an API, but rather about some of the different popular options on how to define and…| Leigh Halliday's RSS Feed
Block based configuration is a pattern you see quite a bit when using ruby. When I look at this website itself, there are 3 different gems that I am configuring using this approach. I think it provides a clean and encapsulated interface for…| Leigh Halliday's RSS Feed
Barby is a great gem for when you have to generate a barcode or QR code. You can choose to output it as any number of barcode types or as a QR code. This example will use a QR code but I have successfully used the Code128 barcode which is fairly…| Leigh Halliday's RSS Feed
Goal If you're planning to take over the world (or a smaller but no less noble task of taking over Canada), you'll either need to convince…| www.leighhalliday.com