Done, and gets things smart.
24Oct
Posted by Elf Sternberg as django, programming, python
I wish I’d known this a long time ago. Django’s request object includes a dictionary of key/value pairs passed into the request via POST or GET methods. That dictionary, however, works in a counter-intuitive fashion. If a URL reads http://foo.com?a=boo, then the expected content of request.GET['a'] would be ‘boo’, right? And most of us who’ve [...]
Recently, I had the pleasure of attending another of those Seattle Django meet-ups. This one was a potpourri event, just people talking about what they knew and how they knew it. I revealed that I’d written my first aggregator, and that seemed to be an impressive statement. Apparently Django Aggregators (database conditionals that perform sub-selected summarizing or [...]
I was looking at the Digg source code the other day and, I’ve gotta say, mega-props to the developer of their javascript. The traditional rule in web development has become, “Put your Javascript at the end of your page.” That way, all of the DOM objects you might refer to are guaranteed to be present [...]
Following up on the The Onion’s announcement that they’re using Django comes this priceless discussion of the technical challenges of doing so with several members of The Onion’s technical team. They were using Drupal before. Among the things I discovered: Grappelli, a customizable theme for the Django admin uWSGI, a high-performance WSGI container separated from [...]
Giggle has become my new best friend. Giggle is a graphical front-end for Git: you start it in a Git repository and it keeps excellent track of all of your branches, their history, mergings, and so on. Since one of my big initiatives in my current position has been refactoring an inappropriately large model class [...]
16Mar
Posted by Elf Sternberg as programming
Apress’ Pro Git is a better book than O’Reilly’s Version Control with Git. The O’Reilly book tries hard to educate you about the repository, but goes off into the weeds with details about history and branch management that overwhelm a user who “just wants to use the damn thing.” The Apress book has a section [...]
Gwaredd Mountain writes: Microsoft has published empirical data that shows that the process overhead for TDD increases the development effort by 15% – 35%. Despite the many positive benefits from TDD, we cannot possible consider anything that adds an extra 35% effort to produce artefacts the customer will never see as lean. Amazingly, people still [...]
I have a contract that I’m working on that requires I work with rails. That, in itself, isn’t so bad. But I think what bothers me most about rails can be summed up in one word: partials. For example, let’s say I have the following: render :partial => ‘employee’, :collection => @employees What this means [...]
10Dec
Posted by Elf Sternberg as javascript, programming, web development
I had a job interview today, and one of the “challenges” with which I was presented was this: “We own several sites. We would like our user to be able to log into the central site as a subscriber, and then all the other sites will know what permissions that user has.” The sites are [...]
07Dec
Posted by Elf Sternberg as programming, python
Java is Pass-By-Value, Dammit! Quite possibly the most important article I’ve ever read, because it finally, finally explains to me what Java’s object-passing model is really all about. I’ve never understood it, and now I do: it’s exactly backwards from pass-by-reference, so it’s exactly backwards from the languages with which I grew up. The Object [...]