Programming

Python Functional Tools

Auteur: 
Jean-Lou Dupont

I got the chance to come by a pretty cool project recently: Python Moka.  It consists of functional programming friendly implementations of standard Python dictionary and list classes.  Then it struck me:  wouldn't be nice to have Erlang-ish pattern matching functionality to Python?

So I crafted a small Python package scratching an itch I have had for way too long:  function dispatching based on pattern matching.  For those interested, here are the relevant links:

EC2 architecture notes

Auteur: 
Jean-Lou Dupont

I've updated the home page of Systemical: you'll find a bunch of useful links to documents:

Experiment in the small

Auteur: 
Louis-Philippe Huberdeau

Technology move fast. Every week there are new frameworks and libraries. In the past years, it seems like data stores have been appearing at an even faster rate. Each of them claims to be a revolution. Those that have been around for a while know that revolutions don’t happen that often. Those claims set expectations very high.

Blocks

Auteur: 
Jason Lotito
  1. Do one thing.
  2. Do it well.
  3. Keep it concise.
  4. Use only what is given.

Today we continue from Comments and explore how to refactor out code from blocks.  In Comments, we learned to extract code out into it’s own method whenever we use a comment to describe a block of code.  Today, we are going to look at how to do the same thing with blocks.
A block of code is any code that exists within a if, a loop, or a switch statement.

Comments

Auteur: 
Jason Lotito

I once posted  “comments indicate future refactoring.” I want to reaffirm my belief in that, and clearly explain. In order to fully appreciate this, let’s lay down some fundamental beliefs. These are beliefs I have built on experience, and later, I’ll apply them to more general fundamental beliefs like SOLID, but for now, these are simple rules I feel are good to follow.

Syndiquer le contenu