Write Code as if People Will Read It

“Oh I’ll just write this little script to do. Nobody will ever see it”. I have heard many programmers say that exact sentence. And inevitably someone at some point will see the hacked together script that you never meant for public consumption.

I want to propose a challenge to everyone. Write code as if everyone in the world will see it. Here are a few things you can do to complete this challenge. Continue reading Write Code as if People Will Read It

Ready Set Sprint – DjangoCon 2011 Sprints

As the conference wraps up the sprints get started. For those that don’t know what a software sprint is:

sprint is a get-together of people involved in a project to give a focused development on the project. Sprints are typically two to seven days long. Sprints have become popular events among some Open Source projects. [wikipedia]

DjangoCon 2011 Sprints are being held at Urban Airship in Downtown Portland. So far I’m really impressed with their space. It’s an open style concept with a warehouse feel. The people here have been really nice to host over 100 developers, and the sponsors have even catered it.

This year a number of teams have gotten together and are sprinting on different Django related projects. While all of them sounded great I decided to dive into Django’s open tickets to see how I can help.

While I’ve only been here a couple of hours I’ve closed one ticket as invalid and added a patch (and documents) to another.

It definitely doesn’t take a lot of work to look into Trac. Finding something you can work on is a little more difficult but even adding extra documentation or reviewing tickets can help out the core developers and make Django a better place.

DjangoCon 2011 – Making interactive maps for the web

For the last regular talk of DjangoCon US 2011 we’ll be hearing from Zain Memon on “Making interactive maps for the web”.

When tasked with displaying geo-data, most developers decide to put some big red markers on an embeddable Google Map and call it a day. If you’re interested in creating maps that are more beautiful, more interactive, and more usable, this talk is for you.

Updates Below:
Continue reading DjangoCon 2011 – Making interactive maps for the web

DjangoCon 2011 – Y’all Wanna Scrape with Us? Content Ain’t a Thing : Web Scraping With Our Favorite Python Libraries

The great talks keep on rolling in with day 3 representing. The next talk is entitled “Y’all Wanna Scrape with Us? Content Ain’t a Thing : Web Scraping With Our Favorite Python Libraries” by Katharine Jarmul.

Love or hate them, the top python scraping libraries have some hidden gems and tricks that you can use to enhance, update and diversify your Django models. This talk will teach you more advanced techniques to aggregate content from RSS feeds, Twitter, Tumblr and normal old web sites for your Django projects.

Updates Below:
Continue reading DjangoCon 2011 – Y’all Wanna Scrape with Us? Content Ain’t a Thing : Web Scraping With Our Favorite Python Libraries

DjangoCon 2011 – Deployment, Daemons and Datacenters

Following a great talk on Security in Django we now have “Deployment, Daemons and Datacenters” by Andrew Godwin. This talk will go into the deployment strategies at ep.io.

A tour through the systems that power ep.io, the Python hosting platform, from the array of daemons powering the system, to how redundancy is set up, and also covering general best practices for hosting Django sites yourself.

Updates Below:
Continue reading DjangoCon 2011 – Deployment, Daemons and Datacenters

DjangoCon 2011 – Advanced security topics

After a great lunch at the food trucks we’re starting off with a talk on “Advanced Security Topcis” by Paul McMillan. I’ve been excited for this talk for a while, it looks like it’s going to be great.

An in-depth look (with demonstrations) at the how and why of several advanced security topics. Discussion of ways to improve security of the framework moving forward.

You’ll be able to find the slides at http://subversivecode.com/talks/djangocon-us-2011 once they’re up.

Updates Below:
Continue reading DjangoCon 2011 – Advanced security topics

DjangoCon 2011 – Advanced Django Form Usage

An experience talk from Daniel Greenfeld and Miguel Araujo

Django forms are really powerful but there are edge cases that can cause a bit of anguish. This talk will go over how to handle many common solutions not currently described in the core documentation. It will also cover some useful third-party libraries and will end with clarifications about what the state of form features will be in Django 1.4.

Updates below:
Continue reading DjangoCon 2011 – Advanced Django Form Usage

DjangoCon 2011 – Building APIs in Django with Tastypie

Building APIs in Django with Tastypie by Issac Kelly

Tastypie is one of a couple of frameworks for building APIs with Django. Issac will go over some of the reasons you might pick Tastypie, and how to implement a Tastypie on top of an existing Django project.

Updates Below:
Continue reading DjangoCon 2011 – Building APIs in Django with Tastypie

DjangoCon 2011 – Real world Django deployment using Chef

After another great lunch (I din’t blog about it this time) we’ll be starting off the afternoons with Noah Kantrowitz and his talk on “Real world Django deployment using Chef”

Chef, a configuration management tool, is increasingly popular in the Django community. Many people have yet to take the plunge, and are still managing production systems exclusively through tools like Fabric or Buildout. In this talk I will quickly show the basics of building Chef recipes, both in general and a tour of the Django-and-Python-specific tools available. I will then walk through a suite of cookbooks built to deploy Packaginator as a production site in the cloud. If suitable wireless is available, I would like to do a live demonstration at the end, bringing up a new site from scratch.

You can find the slides for this presentation at http://www.slideshare.net/coderanger/real-world-django-deployment-using-chef

Updates Below:
Continue reading DjangoCon 2011 – Real world Django deployment using Chef

DjangoCon 2011 – RESTful APIs: Promises & Lies

After a slow set of lightning talks and an amazing Keynote from Brad Fitzpatrick the first talk of day 2 is about to start. This talk is delivered by Tareque Hossain on APIs.

Over the last few years RESTful APIs have become an integral part of many Django projects. But some of the fundamental questions still remain unanswered. How do you decouple resources from models, formatting from definitions, authorization from authentication? How should you define resources? How do you handle pagination? Deliver facets? Prevent abuse? Implement versioning? Let’s have a look.

You can view the slides at http://www.slideshare.net/tarequeh/restful-apis-promises-lies

Updates Below:

Continue reading DjangoCon 2011 – RESTful APIs: Promises & Lies