Los 19 Mandamientos

--Originally published at Eduardo's Projectz

Tim Peters, uno de los mas grandes entusiastas de Python, estableció una serie de conceptos que, al día de hoy, son tomados en cuenta como una serie de conceptos que deben ser tomados en cuenta a la hora de programar.

Zen de Python.png

Puedes acceder a estos conceptos simplemente tecleando import this mientras se está corriendo python en la terminal.

Traducción a el Zen de Python:

  1. Hermoso es mejor que feo.
  2. Explícito es mejor que implícito.
  3. Simple es mejor que complejo.
  4. Complejo es mejor que complicado.
  5. Plano es mejor que anidado.
  6. Disperso es mejor que denso.
  7. La legibilidad cuenta.
  8. Los casos especiales no son suficientemente especiales como para romper las reglas.
  9. Aunque lo pragmático gana a la pureza.
  10. Los errores nunca deberían dejarse pasar silenciosamente.
  11. A menos que se silencien explícitamente.
  12. Cuando te enfrentes a la ambigüedad, rechaza la tentación de adivinar.
  13. Debería haber una — y preferiblemente sólo una — manera obvia de hacerlo.
  14. Aunque puede que no sea obvia a primera vista a menos que seas holandés.
  15. Ahora es mejor que nunca.
  16. Aunque muchas veces nunca es mejor que *ahora mismo*.
  17. Si la implementación es difícil de explicar, es una mala idea.
  18. Si la implementación es sencilla de explicar, puede que sea una buena idea.
  19. Los espacios de nombres son una gran idea — ¡tengamos más de esas!

Lo que Peters quiso dar a entender con esto fue, básicamente, que la mejor manera de programar en Python (Y en cualquier idioma) es hacerlo de una forma clara, fácil de entender y comprender el funcionamiento.

Aunque pueda parecer tonto, seguir el Zen de Pyhton en verdad es una manera eficiente de mejorar tu nivel de realización de, no sólo programación, sino de cualquier actividad cotidiana.

Zen de Pyhton: https://github.com/python/peps/blob/master/pep-0020.txt https://www.python.org/dev/peps/pep-0020/

 

images

 

 


Los 19 Mandamientos

--Originally published at Eduardo's Projectz

Tim Peters, uno de los mas grandes entusiastas de Python, estableció una serie de conceptos que, al día de hoy, son tomados en cuenta como una serie de conceptos que deben ser tomados en cuenta a la hora de programar.

Zen de Python.png

Puedes acceder a estos conceptos simplemente tecleando import this mientras se está corriendo python en la terminal.

Traducción a el Zen de Python:

  1. Hermoso es mejor que feo.
  2. Explícito es mejor que implícito.
  3. Simple es mejor que complejo.
  4. Complejo es mejor que complicado.
  5. Plano es mejor que anidado.
  6. Disperso es mejor que denso.
  7. La legibilidad cuenta.
  8. Los casos especiales no son suficientemente especiales como para romper las reglas.
  9. Aunque lo pragmático gana a la pureza.
  10. Los errores nunca deberían dejarse pasar silenciosamente.
  11. A menos que se silencien explícitamente.
  12. Cuando te enfrentes a la ambigüedad, rechaza la tentación de adivinar.
  13. Debería haber una — y preferiblemente sólo una — manera obvia de hacerlo.
  14. Aunque puede que no sea obvia a primera vista a menos que seas holandés.
  15. Ahora es mejor que nunca.
  16. Aunque muchas veces nunca es mejor que *ahora mismo*.
  17. Si la implementación es difícil de explicar, es una mala idea.
  18. Si la implementación es sencilla de explicar, puede que sea una buena idea.
  19. Los espacios de nombres son una gran idea — ¡tengamos más de esas!

Lo que Peters quiso dar a entender con esto fue, básicamente, que la mejor manera de programar en Python (Y en cualquier idioma) es hacerlo de una forma clara, fácil de entender y comprender el funcionamiento.

Aunque pueda parecer tonto, seguir el Zen de Pyhton en verdad es una manera eficiente de mejorar tu nivel de realización de, no sólo programación, sino de cualquier actividad cotidiana.

Zen de Pyhton: https://github.com/python/peps/blob/master/pep-0020.txt https://www.python.org/dev/peps/pep-0020/

 

images

 

 


ZZZZZEN of Python

--Originally published at Python & pugs

"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!"

A beautiful poem for geeks like us.

These are also the principles for the using of Python, made by Tim Peters.


Project 3: Zen of Python

--Originally published at TEC GDL 2016

Hey there!
Today, I have the pleasure to introduce you into my third Mastery topic, namely ‘Zen of Python’. When I first looked it up I had no idea what I would have to program for this but after some time I realized, that not what the Zen of Python is about.

Actually, the Zen of Python is basically the bible for all programmers using Python. According to different sources, this bible includes 20 software principles, of which 19 were written and published by a well-known Python guru called Tim Peters in 1999. For you to have a look at, I will copy and paste all 20 principles below:

Bildschirmfoto 2016-08-25 um 11.02.20

All of these lines have a meaning and Tim Peters felt like these rules and recommendations can help any programmer using Python to code in a better way. For a really helpful summary that explains to you step by step the meaning of each sentence, make sure to visit the following link: MEANING OF SENTENCES

Additionally, there is an Easter Egg included into the software code of Python3. Whenever you enter the terminal of your device, you are able to open up the “pop-up” menu of python by just typing ‘python3’. After that you can simply type ‘import this’ and you will be shown the whole Zen of Python as written above!

Bildschirmfoto 2016-08-29 um 10.22.52

Hit me up for any questions!
Until next time #TC101?

 

 

 


PYTHON SENSEI: The Zen of Python

--Originally published at Coding The Future

Well hello there, fellow Python learners! Today, the spirit of one of the great masters of the Python language has inspired me to initiate you into the Python lifestyle. Just like in any discipline or lifestyle, in the Python language, there is a set of basic principles.

This great master, who I previously mentioned is Tim Peters, who in the year 2004 CE found the way to perfection in the Python language. He wrote:

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!

These, my friends, are the ideology on which the Python culture rests. Here's a brief explanation of each:

  • Beautiful is better than ugly: Write code that humans can easily read.
  • Explicit is better than implicit: Use boolean types and avoid implicit loops or functions.
  • Simple is better than complex: If it can be done in a simpler way, do it that way.
  • Complex is better than complicated: If something requires more complexity in order to be more efficient, then take it to that level.
  • Flat is better than Continue reading "PYTHON SENSEI: The Zen of Python"

PYTHON SENSEI: The Zen of Python

--Originally published at Coding The Future

Well hello there, fellow Python learners! Today, the spirit of one of the great masters of the Python language has inspired me to initiate you into the Python lifestyle. Just like in any discipline or lifestyle, in the Python language, there is a set of basic principles.

This great master, who I previously mentioned is Tim Peters, who in the year 2004 CE found the way to perfection in the Python language. He wrote:

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!

These, my friends, are the ideology on which the Python culture rests. Here's a brief explanation of each:

  • Beautiful is better than ugly: Write code that humans can easily read.
  • Explicit is better than implicit: Use boolean types and avoid implicit loops or functions.
  • Simple is better than complex: If it can be done in a simpler way, do it that way.
  • Complex is better than complicated: If something requires more complexity in order to be more efficient, then take it to that level.
  • Flat is better than Continue reading "PYTHON SENSEI: The Zen of Python"

The Zen of Python

--Originally published at Hackerman's house

giphy (2)

These are the guiding principles of the Python language. These are useful to understand the pilosophy of the language and to understand easily how Python works.

These can be found in the official python site at the following link: https://www.python.org/dev/peps/pep-0020/ Zen

It is useful to know your priorities when you are programming.


Zen of Python

--Originally published at Py(t)hon

The Pythoneer Tim Peters channeled the benevolent dictator of life guiding principles for Python’s design into 20 aphorisms, only 19 of which have been written down.

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

You can find this information in: https://www.python.org/dev/peps/pep-0020/

#Zen#Pug#TC101#Tec#Python