Python: Old versus New Class Declaration

As a followup to my post on Checking Python Code with Pylint, here’s a look at what the effect is of using “new style” vs “old style” declaration when defining classes in Python. The ‘pylint’ checking tool for python complains that the “old style” class declaration is a “coding violation”. The sample code here declares

Checking Python Code with Pylint

These are a collection of notes from learning to use pylint to check the quality of Python code. I’ve been experimenting with Python recently; it’s become widely popular for data science applications (especially deep learning), and it’s also handy for the utility scripts that I often write (like trolling through logs, looking for interesting events

The Curiousity of Leonardo Da Vinci

In a recent article in the Wall Street Journal, Walter Isaacson, biographer of Steve Jobs, Benjamin Franklin, and Albert Einstein, presents some ideas from his soon to be published book about Leonardo Da Vinci. He discusses the qualities that made Da Vinci the accomplished renaissance man that he was. The key points: indulge fantasy, observe

Running a Standalone HTTP Server

When developing and testing a new HTML page, it can be accessed locally by opening it as a file from a browser. But Chrome and Firefox will issue an error if the Javascript in the page tries to make an AJAX call (due to enforcement of browser sandbox security). To work around this there are

Java Immutability for Collection-Typed Properties

Immutability is an important tool for writing more reliable code. Several of the core classes in Java are immutable (String, Integer, etc). But the principle of immutability can also be applied to specific areas of application code to improve the reliability and predictability there. An immutable object can be trusted to carry unchanging data between

Writing-Style Checkers for the WordPress Blogger

With the start of this blog I became interested in writing style. I don’t think I’ll be alone in saying that writing in a clear and direct way can be difficult to achieve. There have been metrics around for years for judging the clarity and structure of writing, so I became curious about what might