Folks who don't use Python regularly -- the folks in TechOps, for example -- are acutely aware that the Python 3 language is "different," and the upgrade should be done carefully. They've done their homework, but, they're not experts in everything.
They feel the need to introduce Python 3 slowly and cautiously …
more ...Get Packt's Python Essentials. I think it covers a large number of important topics. Central to this is Python 3.4. The book covers Python 3 with few -- if any -- backward glances. If it makes any mention of Python 2, the reference is strictly derogatory. There isn't even a mention …
more ...I remain captivated by the ideals of Literate Programming. My fork of PyLit (https://github.com/slott56/PyLit-3) coupled with Sphinx seems to handle LP programming in a very elegant way.
It works like this.
Let me gripe about this for a moment.
sys.exit()
The use case for this function is limited. Very, very limited.
Every place that this appears (except for one) is going to lead to reusability issues.
Consider some obscure little function, deep within the app.
def deep_within_the_app(x, y, zed …more ...
Or. Why I Hate Windows. For Mac OS X, you download XCode (for free) and you can build anything. For Linux, you use some kind of yum or rpm installer for the developer tools, and you can build anything. For Windows... Pre-built binaries. 😂 And a hope that the version numbers …
more ...The conventional wisdom on class design is to model real-world things. This is the Domain-Driven Design Approach. It's what we used to teach as Rumbaugh's OMT (prior to the Three Amigos creating UML.)
The idea is simple: Look at the real world objects. Describe them. Classes will have attributes and …
more ...Seems silly at first.
http://blogs.perceptionsystem.com/infographic/java-vs-python-programming-language-productive
It's mostly true. It's also incomplete.
For example, "no tuples in Java" ignores http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/tuple/package-summary.html.
It seems like the only interesting takeaway from the infographic is that Java …
more ...We have three major tiers of configuration for applications. Within each tier, we have sub-tiers, larding on yet more complexity. The organization of the layers is a bit fungible, too. Making good choices can be rather complex because there are so many variations on the theme of "configuration". The desktop …
more ...New from Packt Publishing: Functional Python Programming. Also here on Amazon. The fun part is covering generator functions, iterators, and higher-order functions in some real depth. There's a lot of powerful programming techniques available. What's challenging is reconciling Python's approach to FP with languages that are purely functional like Haskell …
more ...