Things I wish I knew when starting with Python

Last year, after getting a promotion, I found myself suddenly in charge of a lot more back end python code. As someone who had almost exclusively worked in the front end (except for some PHP when dealing with Drupal or WordPress) this was new territory for me.

I’ve decided to jot down a few things that I’ve learned that I hope will help folks in a similar position. This is by no means for anyone with even intermediate python knowledge. I’m sure a lot of this will seem super obvious to a lot of folks.

But, if you’re like me and have spent most of your time in the front end, I hope this will orient you a bit.

Read MoreLeave a comment

Leading Ampersands for modifiers in Sass: An anti-pattern

For several years now, I’ve been loving a Sass authoring pattern that looks like this:

.class-name {
  ...
  &--modifier {
  // styles
  }
}

Which would compile to:

.class-name { ... }
.class-name--modifier { // styles }

This was great! I loved it because:

  • It was terse
  • It compiled to single class selectors, which kept specificity at bay

Read More1 Comment