Home

A Simple Reason Why Closed Drivers Are Bad @ 2007-07-18 08:25:39
Filed under: Code  Linux  Philosophy  Tech 
Slashdot has a story about a major security hole In samsung linux drivers. What they do is just against common sense ....
 digg it   seed it   del.icio.us   ma.gnolia
Tags:        


Java Coders And Python @ 2007-07-18 20:33:43
Filed under: Code  Frustration 
I've noticed a bit more python code being written by (ex?) java developers. I urge you .... actually more like plead with you, PLEASE keep these things in mind:

1. do not write Python code like you write Java code
2. do not pollute the global namespace
3. Don't code in global space ... use __main__
4. User proper indentation! Don't use different levels in different methods/classes

kthnxbye

 digg it   seed it   del.icio.us   ma.gnolia
Tags:    


Stop Calling Them Defects @ 2007-07-20 20:29:40
Filed under: Code  Frustration  Tech 
I know it's a fad ... but it's a frustrating one. The term reminds me of what happens in manufacturing when a product has a known defect or defects but it's still released. This is my bias as a Release Engineer but that is very scary. I also know that the methodology that has been pushing the term believes that they can decrease issues thus no longer having bugs that need to be fixed. Silliness. The reality that the business wants results faster, more incremental development, and done as cheaply as possible (and I mean CHEAP!) means that such results are near impossible. Just the other day in a friends project (which has quite a few folks working on it) someone hard coded some configurable data. The leaders in the project did not consider this a defect as it did not break anything. It did have to be fixed though as it made other deployments of the code do improper things. I would call this a bug. Defective people call that extreme.
 digg it   seed it   del.icio.us   ma.gnolia
Tags:      


The Most Useless Code I Have Ever Written @ 2007-07-23 20:53:08
Filed under: Code 
Here it is. I don't know why I wrote it. I guess just to see if I could.
 digg it   seed it   del.icio.us   ma.gnolia
Tags:  


Django and Services @ 2007-07-29 20:51:15
Filed under: Code  Django  Tech 
I've been playing around with using Django as a web services tier with REST. I've been reading a lot about ROA architecture and it makes a heck of a lot of sense. I am impressed with the out-of-the-box features Django has to make it easy. To put it simply ... I could not believe transformation was this easy:
from django.core import serialization
....

return serialization.serialize('xml', model_object)

Boom! It's xml. Want to use JSON instead?
from django.core import serialization
....

return serialization.serialize('json', model_object)

Done. I assumed that the transformation would be the hardest part. But the transformations (in both directions) are painless. Yay Django!

 digg it   seed it   del.icio.us   ma.gnolia
Tags:      


 
A Django joint.
© 2007-2008 Steve 'Ashcrow' Milner | Studio7designs | Arbutus Photography