The Artima Developer Community
Sponsored Link

Python Buzz Forum
Writing Public Code

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Aaron Brady is lead developer for Crestsource
Writing Public Code Posted: May 26, 2004 6:28 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Aaron Brady.
Original Post: Writing Public Code
Feed Title: insom.me.uk
Feed URL: http://feeds2.feedburner.com/insommeuk
Feed Description: Posts related to using Python. Some tricks and tips, observations, hacks, and the Brand New Things.
Latest Python Buzz Posts
Latest Python Buzz Posts by Aaron Brady
Latest Posts From insom.me.uk

Advertisement

When writing code "for public consumption" or even just for display, I dislike releasing proof-of-concept code. Sure, I have 10 minute hacks in my snippets section, but what about the longer pieces that aren't polished, but are still good?

I have two specific pieces of code: one which takes an image as a parameter and creates a thumbnail of it with a pretty border gleaned from another image, and one which decodes barcodes from images.

Both of these pieces of code are conceivably useful to someone, but they are full of unexplained (magic) constants, bad variable names that put typing speed above readability, hardcoded defaults, and are almost totally void of comments.

It pains me to release them, but I haven't posted anything substantial in months, and most of it comes from the fact that even when I get time to write some code, I rarely have time to polish to the level that I consider fit for public consumption.

Without further adieu, I give you Python Snippets: Decoding Barcodes & Framing Thumbnails.

Read: Writing Public Code

Topic: Watch Movie, Eat Popcorn, Think Economics Previous Topic   Next Topic Topic: Word Play

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use