PageView

About


My name is Vitor Freitas, I'm a software developer and researcher from Brazil. At the moment, I'm living in Oulu, Finland doing my Ph.D. I'm a passionate software developer, currently working with Python and Django. I also worked several years in industry with Java, C♯ and ASP/VBScript.

I created this blog to share some of my thoughts and experience about programming. To be honest, I'm no Python/Django expert, but we all have something good to share. Besides, we learn much more by teaching what we know.

The name of this blog – if you are familiar with Python probably you already got the reference — was inspired by “The Zen of Python”, created by Tim Peters, which is an easter egg that can be found in Python version 2.1.2 or later by typing import this in a Python interpreter.

If you haven't read it yet, take a moment and read it, you won't regret:

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

This tells a lot about the Python philosophy, and why I really enjoy writing code in Python. In fact, this principles can be applied to any programming language. Writing good code, clear, readable, understandable depends more on you than on the programming language you are working with. And for me, the most important principle of “The Zen of Python” is: simple is better than complex.

Steve Jobs stated once that “simple can be harder than complex”. And that's true. Requires a lot of hard work to get your thinking clean, to come up with a simple solution. But a simple solution is always better than a complex one.

Simple communicates better. Simple creates a instant connection. Simplicity is something you can apply in everything in your life – not only programming.

Stay humble. Be a simple person.

– Vitor Freitas