Python Generators Part II - Under the hood

The main concept that has helped me grasp and use generators is the idea that a generator is an iterable function. I’m going to poke around briefly in the repl to show what methods are available to generators, and how Python uses them.

Read More

Rank Yourself! A Better Metric for Expertise

I’ve ranked my expertise a lot since getting into programming, conversationally, occupationally, and maybe even recreationally once I started to get into the habit. The job postings I see have level requirements: “Senior”, “Advanced”, or “Intermediate”. I hear about “Senior” vs “Junior” devs (and sometimes “Intermediate” here too). I get asked to rank myself, “Beginner”, “Intermediate”, “Advanced.” Or sometimes it’s “1-5”, or in a recent interview, “1-10”. I have opinions about this.

Read More

Python Generators

When I first heard about generators, it was in context of Python2, and the difference between range and xrange, xrange being a generator function. In Python3, I learned, the original range was removed, and xrange was renamed range. If you look up generators in Python, I can almost guarantee this will be the example you’ll see.

Read More

I Will Return

We had a two-week break at RC after my last post. I started working through Eloquent JavaScript over the break. Since returning, a handful of things have discouraged me from writing more blog posts.

Read More

Python List Comprehension

List comprehensions are a quick, easy way to create lists in Python. They offer a short, readable alternative to creating and editing lists using the lambda function and/or for-loops, and they’re considered a more Pythonic way to create and combine the functional methods filter(), map().

Read More

The Map Method

The map() method is a way to apply the effect of a function on every element in an iterable. It iterates over the iterable, and passes each element in turn into the function you provide it. Each of these return values are appended to a (new) list, which map() returns.

Read More

The Filter Method

The filter() method is a way to filter through an iterable, using a boolean function as a sieve. It constructs a new iterable, filled with the elements from the original iterable that pass the criterion of your boolean function.

Read More

Python's Iterables and Iterators

Python has iterables and iterators, both of which are invoked during iteration (or while iterating). This is one of those things that is confusing until it isn’t, and there isn’t a great way to narrow that gap.

Read More

Setting Up Learn.co on Ubuntu

When I first started on Learn.co, I was on Windows, and I used the Nitrous IDE, and they walk you through the set-up. I then used my girlfriend’s iMac, and the set-up was easy, and again they walk you through it.

Read More

Sublime Text 2 On Ubuntu

Note: I was getting this annoying error which seems to happen because I am on Ubuntu 14.04. Apparently upgrading to Sublime Text 3 will fix it. I am now in the process of installing and setting up ST3. I’ll post about that I’m sure.

Read More