Language Selection

English French German Italian Portuguese Spanish

Pythonic Parsing Programs

Filed under
Software

Creed of Python Developers

Pythonistas are eager to extol the lovely virtues of our language. Most beginning Python programmers are invited to run import this from the interpreter right after the canonical hello world. One of the favorite quips from running that command is:

There should be one-- and preferably only one --obvious way to do it.
But the path to Python enlightenment is often covered in rocky terrain, or thorns hidden under leaves.

A Dilemma

On that note, I recently had to use some code that parsed a file. A problem arose when the API had been optimized around the assumption that what I wanted to parse would be found in the filesystem of a POSIX compliant system. The implementation was a staticmethod on a class that was called from_filepath. Well in 2013, we tend to ignore files and shove those lightweight chisels of the 70s behind in favor of a shiny new super-powered jack-hammers called NoSQL.

rest here




More in Tux Machines

Leftovers: Gaming

Leftovers: Screenshots

New To Linux? Don’t Use Ubuntu, You’ll Probably Like Linux Mint Better

Linux newbies have probably heard a lot about Ubuntu, but it isn’t the only Linux distribution. In fact, Ubuntu’s standard Unity desktop is still controversial among long-time Linux users today. Many Linux users prefer a more traditional desktop interface, and Linux Mint offers that. As Ubuntu focuses more on Ubuntu for phones, Linux Mint may be an even clearer choice in the future. No, Ubuntu isn’t terrible. Some people prefer Ubuntu’s Unity desktop and love it. But you’ll probably have an easier time getting to grips with Linux Mint instead of Ubuntu. Read more

IceCat 31.4.0 release

GNUzilla is the GNU version of the Mozilla suite, and GNU IceCat is the GNU version of the Firefox browser. Its main advantage is an ethical one: it is entirely free software. While the Firefox source code from the Mozilla project is free software, they distribute and recommend non-free software as plug-ins and addons. Also their trademark license restricts distribution in several ways incompatible with freedom 0. https://www.gnu.org/software/gnuzilla/ Read more