Xion - xion.org.pl - xion.log
General Information:
Latest News:
Preview (re)Structured Text in a Browser 25 Aug 2013 | 01:33 am
Those cute little text formats are all the rage now, especially Markdown and reStructuredText. You can write them pretty easily, without lots of markup boilerplate that HTML entails, so they increasin...
Hashbang Hacks: Parameters for Python 18 Aug 2013 | 05:00 pm
This: #!/bin/sh is an example of hashbang. It’s a very neat Unix concept: when placed at the beginning of a script, the line starting with # (hash) and ! (bang) indicates an interpreter that should ...
Simulating nonlocal Keyword in Python 2.x 4 Aug 2013 | 06:30 pm
The overall direction where Python 3 is going might be a bit worrying, but it’s undeniable that the 3.0 line has some really nice features and quality-of-life improvements. What’s not to love about Un...
Set the Returns Free 24 Jul 2013 | 10:02 pm
Few pastimes are more pointless and unproductive than arguing about coding style. As long as the basic requirement of consistency is present, there is really next to nothing that wouldn’t fly. You may...
Python is the Worst Part of C++ 16 Jul 2013 | 01:15 am
I’ve had a peculiar kind of awful realization after listening to a C++ talk earlier today. The speaker (Bjarne Stroustrup, actually) went over a few defining components of the language, before he took...
Testing Jinja Templates 7 Jul 2013 | 12:43 am
If you use a powerful HTML templating engine – like Jinja – inevitably you will notice a slow creep of more and more complicated logic entering your templates. Contrary to what many may tell you, it’s...
Fluent Chaining 30 Jun 2013 | 05:24 pm
Look at the following piece of jQuery code: $('span') .attr('data-type', 'info') .addClass('message') .css('width', '100%') .text("Hello world!") .appendTo($('body')) ; Of ...
Ask for Forgiveness, Not Permission 16 Jun 2013 | 09:08 am
Even though it’s not a part of the Zen of Python, there is a widely accepted principle in Python community that reads: It’s better to ask for forgiveness rather than permission. For code, it generally...
Ask for Forgiveness, Not Permission 16 Jun 2013 | 09:08 am
Even though it’s not a part of the Zen of Python, there is a widely accepted principle in Python community that reads: It’s better to ask for forgiveness rather than permission. For code, it general...
Getting Back in Sync with Time 8 Jun 2013 | 08:36 pm
Many a hardships are constantly plaguing the hard working IT folks. For example, you may find out that the nearest fridge is out of your favorite drink! But among the so-called First World Problems, t...