How to get from “fishes” to “fish” in python

Thank goodness, calls to make words CamelCase and singularize plurals in Inflector.py. Thank you, thank you… searching for something to do this has been very, very difficult. I’ve also been struggling with sorting dictionaries which to me should be the way you do things… complex data structures need to be sortable… I lost an hour today trying various lambda do-das… which always confuse the hell out of me (but/and fit on one line).

Object-orientation… I’m working on a project at the moment, one I’ve tried to do a few times before and always failed. I’m not sure why. What’s interesting for me is that because Django is soooo M-V-C, in order to build each component I’m having to test it using Django’s shell. And what that means is that the model (M) works on the command line before I start slapping an interface, or the view (V) on it.

This make the code work before you start working with it approach goes against the it’s not till you see it until you know what you are trying to make approach … but I’m liking it.
It’s forcing me to understand object-orientation, which I’ve been a fan of for over 10 years, and start to know where code should go. In the past… the view (V) has always got muddied with the model(M). Add to that my personal preference to be able to run certain modules standalone so that I can test ‘em to death without the overhead of a framework… and I really feel I’m getting onto a next level of sorts.

Now, if someone could explain the what the C is, I think I’ll be laughing.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>