Welcome to Marc’s PyCon 2012 Notes’s documentation!¶
Notes taken by Marc Abramowitz for PyCon 2012. Available on GitHub at http://github.com/msabramo/pycon2012-notes
Contents:
- Stop Mocking, Start Testing by Augie Fackler and Nathaniel Manista from Google Code
- Fast test, slow test by Gary Bernhardt from destroyallsoftware.com
- Speedily Practical Large-Scale Tests with Erik Rose from Votizen
- Fake It Til You Make It: Unit Testing Patterns With Mocks And Fakes by Brian K. Jones
- Your Speaker
- What’s covered
- What’s not covered
- What is a “unit test”?
- When it is no longer a unit test?
- What is it then?
- What is “coverage”?
- Use coverage.py
- Speaking of nosetests
- Why unit tests?
- Unit tests aren’t enough
- Mock is cool. Use it.
- Diagram
- More testable code
- Practical patterns Part 1: A datetime abstraction library
- Practical patterns Part 2: A REST client module
- Other tricks
- We’ve covered
- Questions?
- Throwing Together Distributed Services With Gevent (Ginkgo) by Jeff Lindsay from Twilio
- Django Templating: More Than Just Blocks by Christine Cheung
- Django Forms Deep Dive - Nathan R. Yergler from EventBrite
- Testing and Django by Carl Meyer
- RESTful APIs with Tastypie by Daniel Lindsley
- Build reliable, traceable, distributed systems with ZeroMQ (ZeroRPC) by Jérôme Petazzoni from dotCloud
- Python, Linkers, and Virtual Memory by Brandon Rhodes
- Scalability at YouTube by J.J. Behrens and Mike Solomon of Google
- web2py: ideas we stole and ideas we had by Massimo Di Pierro of DePaul University
- IPython: Python at your fingertips by Fernando Pérez, Min Ragan-Kelley, Brian E. Granger, Thomas Kluyver
- Apache Cassandra and Python
- Why are you here?
- What am I going to talk about?
- What am I not going to talk about?
- Where can I get the slides?
- What is Apache Cassandra (Buzz Word description)?
- What is Apache Cassandra?
- Basic structure of data in Cassandra
- Multi-level Dictionary
- Well, really an ordered dictionary
- Where do I get it?
- How do I run it?
- Setup up tips for local instances
- Server is running, what now?
- Connect from Python
- Thrift (don’t use it)
- Pycassa
- Connect
- Open Column Family
- Write
- Read
- Delete
- Batch
- Batch (streaming)
- Batch (Multi-CF)
- Batch Read
- Column Slice
- Types
- Column Family Map
- Write
- Read/Delete
- Timestamps/consistency
- Indexing
- Indexing Links
- Native Indexes
- Add index
- Native indexes
- Rolling your own
- Questions
- Practicing Continuous Deployment by David Cramer of DISQUS