Loading...

Descubre cómo los decoradores en Python te hacen un mejor programador

32 4________

Con los decoradores, podremos crear funciones atómicas donde estas se dediquen a hacer una y solo una tarea.
Podremos añadir nuevas funcionalidades a funciones sin la necesidad de modificar su código, sin la necesidad de reescribirlas, simplemente decorando.

¿Conocías esta herramienta?

---

With decorators, we can create atomic functions where these are dedicated to do one and only one task.
We will be able to add new functionalities to functions without the need to modify their code, without the need to rewrite them, simply decorating.

Did you know about this tool?

コメント