Learn Enough Python to Be Dangerous is now available! Learn the Python interpreter, shell scripting, testing and test-driven development, package creation, beginning web development, and Python tools for data science.
We are pleased to announce that Learn Enough has accepted an acquisition offer from a private equity firm run by entrepreneur and longtime Ruby on Rails community member Jonathan Siegel. As part of this, Learn Enough is teaming up to offer an accredited degree in computer science through recently founded Hamming College.
As legendary Apple cofounder Steve Jobs once said: Real artists ship. What he meant was that, as tempting as it is to privately polish in perpetuity, makers must ship their work—that is, actually finish it and get it out into the world. This can be scary, because shipping means exposing your work not only to fans but also to critics. “What if people don’t like what I’ve made?” Real artists ship.
This post is about the power of scripting, which refers to the creation of programs (known as scripts) that are generally shorter and simpler than full-size applications while still being highly useful. The most common kind of script is a shell script, which is typically run at the command line. The specific example we’ll be looking at is an only slightly simplified version of a script that I use all the time, often multiple times per day. It’s called deploy, and its purpose is to deploy a wide variety of different project types using a method appropriate to each type.
Feb 10, 2021
Working with any popular programming framework today typically means using an object-relational mapping (ORM) library like Rails’ Active Record to interact with the database. ORM systems are a definite plus for developer productivity and general happiness. They also allow a programmer to get by with a little bit less knowledge (sometimes a whole lot less) about what’s happening in between their code and the database. But that convenience comes with some pitfalls, including the common N+1 query problem. What does that mean? Read on to find out!
One of the topics covered by the Ruby on Rails Tutorial is sending email with Rails. It can be difficult to find up-to-date resources on this subject, which is part of why I added a couple of chapters on it starting in the 4th edition of the tutorial.For reasons described in the post, I’ve now updated the main chapter on sending email to make it 100% free.