Skip to content

random-code-generation/notes-on-coding-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Overview

Content related to coding practice with a focus on Python.

Python Lore

PEP8 -- Style Guide for Python Code

PEP20 -- The Zen of Python (a.k.a. import this)

Videos: Idiomatic Python

The "Writing Idiomatic Python" Video Series by Jeff Knupp

Transforming Code into Beautiful, Idiomatic Python by Raymond Hettinger (Python core developer) [slides]

  • 03:04 -- Looping over a range of functions
  • 04:47 -- Looping over a collection
  • 05:28 -- Looping backwards
  • 06:51 -- Looping over a collection of indicies
  • 07:36 -- Looping over two collections
  • 09:42 -- Looping in sorted order
  • 10:04 -- Custom sort order
  • 12:27 -- Call a function until a sentinel value
  • 15:52 -- Distinguishing multiple exit points in loops
  • 19:18 -- Looping over dictionary keys
  • 21:10 -- Looping over dictionary keys and values
  • 21:52 -- Construct a dictionary from pairs
  • 23:15 -- Counting with dictionaries
  • 25:30 -- Grouping with dictionaries
  • 27:57 -- Is a dictionary pop() atomic?
  • 29:12 -- Linking dictionaries
  • 31:10 -- Clarify function calls with keyword arguments
  • 32:17 -- Clarify multiple return values with named tuples
  • 33:13 -- Unpacking sequences
  • 33:01 -- Updating multiple state variables
  • 36:15 -- Simultaneous state updates
  • 38:24 -- Concatenating strings
  • 38:41 -- Updating sequences
  • 39:57 -- Using decorators to factor-out administrative logic
  • 40:24 -- Caching decorator
  • 41:19 -- Factor-out temporary contexts for decimal
  • 42:01 -- How to open and close files
  • 42:25 -- How to use locks
  • 43:10 -- Factor-out temporary contexts
  • 44:56 -- Context manager: redirect_stdout()
  • 46:04 -- Concise expressive one-liners

Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015 by Raymond Hettinger

git

A Visual Git Reference

Testing

pytest - rapid and simple testing with Python in PyCon 2012

pytest - rapid and simple testing with Python in EuroPython 2013

Improving automated testing with py.test in PyCon 2014

Introduction to pytest in EuroPython 2014

Introduction to py.test fixtures in Python-FOSDEM 2014

Advanced Uses of py.test Fixtures in EuroPython 2014

Why I use py.test and maybe you should too in PyCon Australia 2013

Funcargs and other fun with pytest in PyCon Australia 2012

Infrastructure as Code

Getting Started with Puppet - PuppetConf 2013

Stop Hiring Devops Experts (And Start Growing Them) - PuppetConf 2013 Keynote

Getting Started with Puppet - Chad Metcalf

Intro to puppet ( slides + install screencast ) on Amazon EC2

Continuous delivery of Puppet based infrastructure - Puppet Camp New York City 2014

Continuous Delivery of Puppet-Based Infrastructure - Sam Kottler, Digital Ocean Puppet (Vimeo repost) in Puppet Camp New York City 2014

PuPHPet and Digital Ocean (for PHP but something to learn from...)

Linux Puppet (Playlist)

Automatic Configuration of Your Cloud with Puppet

Getting Started (PuppetConf 2013)

What Is This Continuous Delivery Thing Anyway? - PuppetConf 2013

Misc Stuff

Flask

Flask Workshop - PyCon 2015 by Miguel Grinberg [slides]

AngularJS

Introduction to Angular.js in 50 Examples (part 1)

Introduction to Angular.js in 50 Examples (part 2)

System Administration

Bash Introduction

About

Notes on Coding Practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors