Tag Archives: #mastery08

Coding Conventions – C++

1017

08

Hola! Mastery08 es acerca de la mejor manera de programar, hace ahorrar tiempo, es agradable a la vista, te pierdes menos a la hora de hacer cambios además de tener un orden y control sobre el código para así hacer todo correctamente, más rápido y mejor.

Dejaré el video aquí donde explico un poco acerca de esto además que en la descripción del video en Youtube hay un link para ir a una página donde se explica mas a fondo los coding conventions.

 

Mastery08

Python conventions (Zen of Python)

The philosophy of Python is summarized by the document “PEP 20 (The Zen of Python)”

The Zen of Python

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!

 

08 1014

 

Mastery08

Mastery08
here is my video http://youtu.be/5Ya4ATFQs9M

Mastery08

Mastery08
here is my video http://youtu.be/5Ya4ATFQs9M

Mastery08

Mastery08
here is my video http://youtu.be/5Ya4ATFQs9M

Mastery08:: Coding Conventions

08 

1017 

En esta mastery explicare como realizar un programa tanto esteticamente como funcionalmente, ya que para tener un buen programa, no solo debe ser por que te gusta ati si no que en ciertos casos toca presentarlo al publico y debe ser legible y entendible tanto para ti como para los demas. 

Debe estar bien organizado como por ejemplo:

   Principalmente, tenemos la identación ya que esta nos clasifica cada punto importante y los diferentes tipos de elementos que maneja nuestro codigo como puede ser los library, las declaraaciones, los std etc. Un ejemplo             podria ser cuando manejas condiciones al poner las llaves es necesario aumentar la sangria en el renglon para marcar que se encuentra dentro de la misma y saber distinguir que abarca cada cosa. 

   Otro punto bastante importante es el de comentar con “//” estos simbolos, ya que a veces es muy largo nuestro codigo y necesitamos saber que hacemos en cada paso y pues es la manera mas facil de hacerlos y asi podemos identificar mas facil si tenemos algun error y corregirlo.

   Declarar variables por separado por tipo y con espacio para no confundirnos. 

 

    Todos estas caracteristicas los podemos encontrar en el programa de nuestro proyecto final: https://github.com/kenwbauer/CarlosCarolina/blob/master/sudoku.cpp

 

 

C++ coding conventions #TC1017 #Mastery08

 C++ coding conventions 1017 08 

Important RULES

https://root.cern.ch/drupal/content/c-coding-conventions

Here is my link Explaining 😀

https://www.dropbox.com/s/n5jrim97if1as09/Mastery08.mov?dl=0

 

C++ coding conventions

This conventions, they all come from a set of rules or guidelines called The Zen of Python, written by Tim Peters, these were originally made for Python, but since there are a lot of similarities in both languages, they can be used in C++ as well.

These rules mainly talk about order in your code, because somtimes if you are disorganized, it’s very hard to understand someone else’s code.

So that’s why it’s a very good idea to follow the guidelines, because it helps others, and it helps you.

I’m going to leave the link were I learned about these conventions.

https://gcc.gnu.org/wiki/CppConventions

1017 08

#TC1017; #Mastery08 is showcased on this video! https://youtu.be/gz07M_8Ph5w The latest episode of ++Adventures!

1017; 08 is showcased on this video! https://youtu.be/gz07M_8Ph5w
The latest episode of ++Adventures!

Mastery08

This is my video for Mastery08
https://www.youtube.com/watch?v=tJEb5elXdMI
08