Recommended Posts

Luchando contra el código: un desafío que me estoy tomando en serio | Python Intermedio [ES/EN]

4 comments

vikvitnik3.3 K19 days ago9 min read

Fighting the code: a challenge I'm taking seriously | Intermediate Python


Si algo puedo decir es que logré tomar el hábito de estudiar programación todos los días. Sí, tal vez no esté a la altura de quienes se dedican de lleno a ello, pero al menos es un avance significativo, lo que me permite cubrir un temario extenso y hacer uso de herramientas que me permitan desarrollar soluciones todo tipo de soluciones a problemas de la vida real.

If there is one thing I can say is that I managed to get into the habit of studying programming every day. Yes, maybe I am not at the level of those who are fully dedicated to it, but at least it is a significant advance, which allows me to cover an extensive agenda and make use of tools that allow me to develop all kinds of solutions to real life problems.


https://files.peakd.com/file/peakd-hive/vikvitnik/23uQE3YZKySZppacWsB79p7XqMPDFZiGLVA8ZTsoQ3in7aXeGfDxSRWSPy1d5tXDBymFh.png

Mohammad Rahmani | Unsplash


Estuve un tiempo estudiando JavaScript con la idea de reforzar la parte lógica, hasta que me encontré con Python, por lo que profundicé en este lenguaje. No quiere decir que no vuelva a JS, sino que preferiría abarcar los temas que hacen común a cualquier lenguaje, para luego poder decidir qué camino tomar. Dicho de otra manera, estoy aún en el momento adecuado para estudiar las bases de la programación y cambiarme a otro lenguaje cuando lo amerite; por ejemplo cuando sea la hora de profundizar en un framework que esté relacionado con ese lenguaje en cuestión. Además, también es algo a considerar, ya que se enfocará en otro estilo de desarrollo con distintos fines.

También la idea está en adquirir una agilidad mental activa, a la vez que uno comienza a ver signos de creatividad y de fomentar la imaginación. Algo muy necesario si lo que pretendes es en el futuro convertirte en un desarrollador de aplicaciones. No voy a mentir, es algo que me cuesta bastante tener el compromiso necesario para avanzar. Ya sea porque uno puede llegar a sentirse desorientado, o porque surgen problemas que no puedes resolver sino hasta que las ideas se aclaran, luego de varios días.

He comenzado con videos donde se explicaban los conceptos y los ejercicios con respecto al plan de estudio. Sin embargo, me he dado cuenta que es una introducción a todos los temas, y que si uno busca profundidad, tocará sentarse y experimentar uno mismo en una serie de casos de prueba. Es la manera de fijar los conocimientos.

I was studying JavaScript for a while with the idea of reinforcing the logical part, until I came across Python, so I went deeper into this language. It doesn't mean that I won't go back to JS, but I would prefer to cover the topics that make common to any language, so I can then decide which path to take. In other words, I'm still at the right time to study the basics of programming and switch to another language when it's worth it; for example when it's time to delve into a framework that is related to that language in question. In addition, it is also something to consider, as it will focus on another style of development for different purposes.

Also the idea is to acquire an active mental agility, at the same time that you start to see signs of creativity and to encourage imagination. Something very necessary if you intend to become an application developer in the future. I'm not going to lie, it's something that I find quite difficult to have the necessary commitment to move forward. Either because one can become disoriented, or because problems arise that you can not solve until the ideas become clear, after several days.

I have started with videos explaining the concepts and exercises with respect to the curriculum. However, I have realized that it is an introduction to all the topics, and that if you are looking for depth, you will have to sit down and experiment yourself in a series of test cases. It is the way to lock in the knowledge.


https://files.peakd.com/file/peakd-hive/vikvitnik/23uQCUpVr4Meio6fhGEk4y3HNECu4skxGxSnvUEBa7bNVif8cbzL7A3husyKCUddfo97n.png


Ahora estoy repasando conceptos en Códedex. Un sitio en el que puedes aprender sobre desarrollo web. Hay una gran variedad de lenguajes, pero de momento me he centrado en aprender Python. He hecho la parte básica hasta que me solicitó adquirir una membresía.

Como los temas que me faltaban practicar ya los había hecho en los videos de un profesor en línea, preferí seguir con Python intermedio. Al menos para seguir en actividad.

Now I'm reviewing concepts in Codedex. A site where you can learn about web development. There is a wide variety of languages, but at the moment I have focused on learning Python. I have done the basic part until I was asked to purchase a membership.

Since the topics I needed to practice I had already done in the videos of an online teacher, I preferred to continue with intermediate Python. At least to stay active.


https://files.peakd.com/file/peakd-hive/vikvitnik/23wqY4Dpz7DNaq91FS4uKDuX1DtBpbK8D4EKTFdsrzMzaMZCyEodRWyGNppeq1HKcLrT5.png

https://files.peakd.com/file/peakd-hive/vikvitnik/Eo8JCs3RUqsAA2QK7XYJrg3YXTPvb5KCbmBW1qz8r3ugNxvtVLccwFBm4vBmNBEFWCf.png


En este nivel sí que se siente que las clases son más intensas. Lo que más me gustó fue que hacer el repaso de algo que ya conocía ahora tenía un contexto real. Es decir, el poder poner en práctica los conceptos enseñados en el nivel anterior, como listas, tuplas, sets y diccionarios. Ese contexto te hace saber cuándo es que debes utilizar una estructura que se adecúe a la solución que quieres encontrar, ya que cada una tiene su finalidad.

Además, habían cosas que no sabía, o tal vez sí, pero aprendidas en otros lenguajes como por ejemplo C o C++ (universidad). Al tratarse de Python, los procesos parecen ser mucho más simplificados; algo de lo que me di cuenta cuando había que cargar archivos (visto en la sección "File I/O"). Esa simplicidad es alucinante, y realmente agiliza las cosas.

At this level you do feel that the classes are more intense. What I liked the most was that reviewing something I already knew now had a real context. That is, being able to put into practice the concepts taught in the previous level, such as lists, tuples, sets and dictionaries. That context lets you know when you should use a structure that fits the solution you want to find, since each one has its purpose.

In addition, there were things I didn't know, or maybe I did, but learned in other languages such as C or C++ (university). Being Python, the processes seem to be much more simplified; something I noticed when files had to be loaded (seen in the “File I/O” section). That simplicity is mind-blowing, and really speeds things up.


https://files.peakd.com/file/peakd-hive/vikvitnik/Eoc5ZPeVL1vL933z58GhiHFx7j62oRqRBKm8tWVfh7SJ1hgY7nz5mji5URLDeqjAAxs.png

https://files.peakd.com/file/peakd-hive/vikvitnik/23tGTE7LN8jBu7YgwU2aqoJg3pTNi7foxMsCXx7kHMyFDJpQw4Wzkjp1rnSHiZk8JZ3pK.png


Llega un momento en que el sitio te pedirá que hagas uso de un entorno de desarrollo con el que te sientas cómodo. Seguramente conocerás VS Code, que es el que sugiere el sitio para realizar los ejercicios. Éste último ejercicio que estoy haciendo es bastante complejo de entender. Digamos que cambia completamente el esquema mental que habías logrado formar al momento. Es algo similar de crear funciones, pero tienes que hacer uso de lo que se llaman clases.

Este ejercicio plantea importar en un archivo las funciones incluidas en otro, para luego hacer unas pruebas individuales, que supongo los desarrolladores podrán interpretar. Aquí las funciones se las llaman métodos, pero también hay conceptos que no se explican en profundidad, por lo que queda ir a google y revisar documentación. O el caso alternativo, el de recurrir a ChatGPT o Gemini; modelos de IA que pueden darte una mano para ofrecerte información puntual y explicarte de diversas formas aquello que no logras entender.

At some point the site will ask you to use a development environment that you are comfortable with. You will probably know VS Code, which is the one suggested by the site to perform the exercises. This last exercise I'm doing is quite complex to understand. Let's say that it completely changes the mental schema that you had managed to form at the moment. It is something similar to create functions, but you have to make use of what are called classes.

This exercise proposes to import in a file the functions included in another one, to then make some individual tests, that I suppose the developers will be able to interpret. Here the functions are called methods, but there are also concepts that are not explained in depth, so you have to go to google and review documentation. Or the alternative case, that of resorting to ChatGPT or Gemini; AI models that can give you a hand to offer you punctual information and explain in different ways what you can't understand.


https://files.peakd.com/file/peakd-hive/vikvitnik/Enyo4cL5wCc6pjKEGyMdEdtSuA9UUUPMggzYgRcfftQ11kcyAXnFoqp9XKp5yvMCbea.png


Ahora mismo de las tres funciones que he importado, tengo problema en una de ellas. Así que posiblemente hoy esté revisando qué me lo está generando. Uno mentalmente piensa que todo debería funcionar a la perfección, hasta que nos damos cuenta que la lógica nos muestra que nada es lo que parece.

Cuando finalice, tal vez compre la membresía para completar los demás ejercicios que he postergado, pero también seguiré viendo los videos de los profesores, que pueden explicar a través de su experiencia, algo complejo reducido a lo simple. Esperemos que algún día pueda decir que estaré desarrollando alguna dApp para Hive. ¿Quién sabe? 😁

Right now of the three functions I have imported, I have a problem in one of them. So possibly today I am checking what is generating it for me. One mentally thinks that everything should work perfectly, until we realize that logic shows us that nothing is what it seems.

When I finish, maybe I will buy the membership to complete the other exercises that I have put off, but I will also continue to watch the videos of the teachers, who can explain through their experience, something complex reduced to the simple. Hopefully one day I will be able to say that I will be developing some dApp for Hive. Who knows. 😁


https://files.peakd.com/file/peakd-hive/vikvitnik/23t77B46TU7sfb4sjJvUMqgWhWVNMwVocTjfXBAHrQmSmjCeYMwNkLV7oUXiBTQWP8RfG.png

  • Imagen principal editada en Canva.
  • Capturas de pantalla de mi perfil en Códedex.
  • Captura de pantalla de mi código en VS Code.
  • Traducido al inglés con DeepL.

Posted Using INLEO

Comments

Sort byBest