Generators in Python are incredibly powerful yet often hard to understand. In this guide we'll cover generators in depth.
Code is poetry -- one line at a time.
Naming things is hard. "There are only two hard problems in Computer Science: cache invalidation and naming things." — Phil Karlton Truer words were never spoken.
jQuery is a powerful tool for front-end developers, but it does not alleviate the responsibility of ensuring your code is efficient.
Note (11/24/15)Although this guide is still somewhat applicable, there is a better way of doing things. Docker has since fixed a lot of issues with docker-compose and docker-machine.
At howchoo, our code is on private Github repos. We've recently started using pull requests to submit new changes to the code base.
In this guide, I'll provide sample code for animating scroll in jQuery, and for those looking for more I'll break down each component.
I find Vim to be very useful in my daily development activities. I was delighted to learn that you can have your own key mappings in Vim. It is documented very well in the vim help section.
Much of what you need to do with Python can be done using built-in containers like dict, list, set, and tuple. But these aren't always the most optimal.
How many times have you been put into situations where you had to update somebody else's code. If you are part of a development team my guess is more often than you would like.
You may not need to deal with fractions often, but when you do Python's Fraction class comes to the rescue.
Bourbon is a library of Sass mixins. It provides a lot of functionality while keeping your css slim. Assuming you're using a standard rails installation, Sass will already be installed and working.
Ruby on Rails is one of the most popular web development frameworks, and Heroku has become a popular place to quickly deploy applications - and both for very good reason.
There are two kinds of loops in Python. In this guide we'll cover both the "for" loop and the "while" loop. We'll also cover how to control these loops by continuing and breaking out.
This guide provides an overview of Python map function. Python 2 and Python 3 have subtle differences in implementation, but they are generally used in the same way.
The solution is simple using the extended slice operator. "some string"[::-1] will print the string in reverse resulting in "gnirts emos" . This guide provides an explanation of how this works.
List comprehension is a beautiful way to simplify code. According to the python documentation, "list comprehensions provide a concise way to create lists."
Enabling short open tags gives you access to opening your PHP script with "" as a replacement for "". These are very handy if you are used mixed HTML and PHP.