Community and Open Source

how I learned to code: my journey, mistakes, and lessons for beginners

Discover how I learned to code, from struggling with HTML, JavaScript, and C to discovering Python, Tkinter, and Django. Read my personal journey, mistakes, and advice for beginner programmers.

joao • 01 Nov 2026 • 13 min read • 164 • 0
how I learned to code: my journey, mistakes, and lessons for beginners | Usando Python
Publicidade

Learning to code is not always a straightforward journey. For some people, it starts with a passion for technology. For others, it begins unexpectedly, through challenges, curiosity, and a lot of trial and error.

My story belongs somewhere in the second category.

Today, I am a Python developer, content creator, and the person behind Usando Python, a project that grew out of my desire to learn, build things, and share knowledge with others. But things were not always this way.

There were times when I barely understood anything about programming. There were moments when I considered giving up, and times when I simply had no idea where to start.

In this article, I want to share my journey, from my early experiences with computers to developing applications, websites, and personal projects. I'll also discuss some mistakes I made and lessons I believe can help anyone starting their programming journey.

Before Programming: My Life as a Student

Throughout most of my school years, I was a fairly good student. From primary school through high school, I generally achieved good grades and had a particular strength in mathematics.

On the other hand, subjects such as Portuguese, History, and Geography were never really my strongest areas.

Over time, I developed a strategy that helped me throughout my academic journey: I tried to understand how things worked and figure out what I needed to do to achieve the expected results.

That approach worked quite well during primary and secondary school. However, when I entered university, I quickly realized that the study strategies I had relied on were no longer enough.

But before that happened, there was an important decision that would influence my journey.

When I finished primary school and had to choose a field of study for high school, I had several options, including Technical Drawing, Mechanics, Electronics and Telecommunications, and Information Technology.

Initially, I wanted to study Information Technology. However, at the time, my parents were not particularly supportive of that decision. Based on their understanding of the job market in Angola, they associated IT mainly with administrative work, such as typing documents and using Microsoft Word and Excel.

Since I didn't have a clear understanding of the different areas of IT either, I eventually chose Electronics and Telecommunications, partly influenced by a classmate.

I continued to perform well academically throughout high school. However, my real difficulties began when I entered university.

University and My First Encounter with Programming

I pursued my university education in India, studying Computer Information Science.

It was a completely different experience from what I had been used to in Angola. The academic environment was demanding, and I had to adapt to a new educational system.

That was when I started realizing that the study strategies I had previously used were no longer sufficient.

I attended classes, participated in academic activities, and tried to follow the lessons, but there were many things I simply couldn't understand.

One of the most memorable moments happened when I visited the home of an Angolan classmate who was working on a blog.

He was editing some XML code on Blogger. As I watched him working, I became curious and asked what he was doing.

His response wasn't exactly what I expected. He told me that I didn't need to know because I probably wouldn't understand it.

Honestly, that response made me uncomfortable. I felt underestimated, especially because I was also studying in a field related to computer science.

At that moment, I pretended I knew what he was talking about, but the truth was that I had absolutely no idea.

When I left his house, I kept thinking about that situation. Instead of simply holding on to that uncomfortable feeling, I decided to do something about it.

I went home, opened YouTube, and started searching for information about what I had seen.

That was how I had my first real encounter with HTML.

HTML, CSS, and JavaScript: My First Challenges

After that experience, I started learning web development on my own.

First, I focused on HTML. I spent time understanding how web page structures worked, how to create elements, and how to organize content.

The following day, I started learning CSS. After that, I moved on to Bootstrap, which made it easier to build interfaces.

I was quite motivated because I could follow tutorials and reproduce what the instructors were doing.

Then came the time to learn JavaScript.

That was when things started getting difficult.

No matter how many tutorials I followed, I struggled to understand what was actually happening. Most of the time, I simply copied the code shown in the video and got the same result without understanding the reasoning behind the solution.

The same thing happened at university, where we also had practical lessons involving the C programming language.

I felt like I was learning how to write code, but I wasn't really learning how to program.

That difference eventually discouraged me. For a while, I lost interest and started thinking that perhaps programming wasn't for me.

Discovering Python: A New Opportunity

At my university, there was a demanding academic system. If a student failed more than four subjects, they had to spend a year without progressing normally to the next academic level while trying to clear their failed subjects.

Unfortunately, that is exactly what happened to me.

During that period, I had plenty of free time. I spent some days at home, played football with friends, and looked for other ways to keep myself occupied.

It was around that time that I started hearing about a programming language called Python.

I decided to research it and find out what it was all about.

From my first experiences, Python felt different from what I had tried before. Its syntax seemed simpler, and the code was relatively easy to read.

At the same time, I was also interested in improving my English. I saw an opportunity to combine both goals: learning programming while using English-language resources.

One of the YouTube channels that helped me considerably during this period was Corey Schafer's channel.

I followed several of his tutorials and started studying Python fundamentals.

I spent months working on practically the same concepts:

  • Variables and data types.
  • Conditional statements and loops.
  • Functions.
  • Error handling.
  • File handling.

For approximately three to six months, I focused heavily on these fundamentals. I repeated exercises, followed tutorials, and tried to understand the language better.

Some people might think I spent too much time on the basics, but looking back, I realize that repetition played an important role in building my foundation.

My First Python Project with Tkinter

One of the most important moments in my learning journey happened when a university classmate told me about an academic project.

Students were required to develop an application and present it afterward.

Since I was already learning Python, I saw it as a great opportunity to practice.

I told her I could work on the project while she would be responsible for presenting it.

There was just one small problem: the project needed a graphical user interface.

At that point, I knew practically nothing about building graphical interfaces with Python.

I started searching YouTube again and discovered Tkinter, a library that allows developers to create graphical user interfaces for Python applications.

I studied several tutorials, tried to develop the application, and experimented with different possibilities.

However, despite my efforts, I couldn't build the project exactly as I wanted.

The deadline was approaching, and my classmate needed something to present. So I made a decision: I searched for a similar project online and started modifying the existing code.

I analyzed its structure, identified the parts I needed to change, and gradually adapted the application until I achieved the desired result.

In the end, she liked the outcome, presented the project, and received a good grade.

For me, that moment meant much more than simply completing an academic assignment.

It was the first time I realized that I could use what I was learning to build something that actually worked.

That experience gave me back my motivation.

I decided to continue studying Python and explore Tkinter in greater depth.

Learning by Building: The Habit That Changed My Approach to Programming

After that experience, I started developing several small projects with Tkinter.

I built applications, experimented with features, modified interfaces, and tried implementing new ideas.

Not every project was completed. In fact, I had a habit that is quite common among beginner programmers: I would start a project, come up with a new idea, abandon the previous one, and start something else.

My computer ended up filled with unfinished projects.

Despite that, I kept practicing and experimenting.

Through this process, I started understanding something important: following tutorials and watching other people write code is not enough. You need to experiment, make mistakes, investigate problems, and try to solve them independently.

It was also during this period that I began developing one of my most useful skills: analyzing existing code and understanding how to modify it.

From Tkinter to Web Development with Django

After spending some time working on desktop applications, I started feeling the need to explore web development using Python.

I wanted to learn how to build websites and applications that people could access through a web browser.

That was when I started researching Python web frameworks.

Initially, I was unsure whether to choose Flask or Django.

I tried Flask, but at the time, I felt that I had to build too many things manually. Since I was looking for something that would help me move forward more easily, I decided to give Django a try.

I really liked the way the framework organized web application development.

Once again, I turned to YouTube to learn. I returned to Corey Schafer's tutorials and started building small projects with Django.

Just as I had done with Tkinter, I repeated examples, experimented with features, and built different applications to understand how the framework worked.

I developed dashboards, pages, and other projects to improve my knowledge.

Gradually, I became more comfortable with Django and web development.

That knowledge eventually allowed me to start working on my own projects, including the Usando Python website.

One of My Biggest Lessons: Learning to Read and Modify Code

Throughout my learning journey, I discovered that I had a particular ability to analyze code written by other people and make changes to achieve a specific result.

For a long time, I considered this a limitation because I believed that a good programmer should be able to create everything from scratch.

Today, I see things differently.

Being able to analyze code, understand its structure, identify functions, recognize the responsibilities of different components, and figure out how to modify an application's behavior are extremely important skills.

Whenever I encounter code I don't understand, I try to answer a few questions:

  • Where does the execution begin?
  • What is the responsibility of each function?
  • What happens when a particular condition is met?
  • How are the different parts of the code connected?
  • What changes if I modify a particular instruction?

This exercise helped me develop my logical thinking and understand programming more deeply.

It is not simply about copying and modifying code. The most important thing is understanding what you are changing and why.

That is why one of the pieces of advice I give beginners is this: don't be afraid to study projects developed by other people. Open the code, analyze its structure, experiment with changes, and try to understand the reasoning behind it.

A Mistake I Made: Focusing Too Much on One Programming Language

There is another lesson I would like to share based on my personal experience.

For quite some time, I focused almost all my efforts on Python.

I really enjoy the language and still use it for most of my projects. However, as time went by, I realized that I was limiting my exposure to other technologies.

Programming is a vast field. There are different languages, frameworks, tools, and areas of specialization.

Python is excellent for many purposes, but it is not the only technology available.

Therefore, I believe beginners should avoid limiting themselves to a single programming language throughout their entire learning journey.

This doesn't mean you should study five languages at the same time. On the contrary, I believe it is important to dedicate enough time to one technology, understand its fundamentals, and build a few projects before moving on to another.

My advice is to explore different programming languages and technologies as you progress.

The most important thing isn't knowing the syntax of every language, but developing the ability to understand problems, analyze solutions, and adapt to different development environments.

When you truly understand programming fundamentals, learning a new language becomes much easier.

Programming Is About More Than Learning a Language

One of the biggest lessons I have taken from this entire experience is that learning programming is not simply about learning Python, JavaScript, C, or any other language.

A programming language is a tool.

The real challenge is learning how to think, analyze problems, break complex tasks into smaller parts, and find solutions.

Through my experiences with HTML, CSS, JavaScript, C, Python, Tkinter, and Django, I gradually began to understand this difference.

At the beginning, I was mostly concerned with knowing how to write code. Over time, I started paying more attention to the logic behind each solution.

That ability is what allows a programmer to adapt to new technologies and deal with problems they have never encountered before.

The Birth of Usando Python

As time went by, programming stopped being just something I studied.

I gradually developed a growing interest in sharing what I was learning.

I enjoyed discovering new resources, experimenting with tools, building projects, and explaining programming concepts in a simple way.

That desire eventually led to the creation of Usando Python.

The project started gaining momentum through YouTube and later expanded to other platforms, including Instagram, Facebook, and a website.

The goal became sharing knowledge, helping other people learn Python, and showing that programming can be understood by anyone willing to study and practice.

Interestingly, something that started with an experience in which I felt unable to understand someone else's code eventually became an opportunity to teach other people how to program.

Today, I continue learning, experimenting, and discovering new tools. One of the things I enjoy most is precisely the opportunity to learn something new and then share that knowledge with others.

Final Thoughts: Never Stop Learning

If there is one message I would like to share with anyone starting to learn programming, it is this: don't give up simply because you couldn't understand a particular concept the first time.

I've been there too.

I struggled with JavaScript, couldn't understand C, faced difficulties with my first Python projects, and experienced moments when I had no idea what I was doing.

What made the difference was continuing to experiment.

Study, practice, build small projects, and try to understand the code you write. Don't be afraid of making mistakes because, quite often, they are exactly how we discover what we need to improve.

Also, don't limit yourself to following tutorials. Use what you learn to build something, even if it is a simple project.

Remember that programming is a constantly evolving field. Learning doesn't end when you master a programming language or successfully build your first application.

Keep learning, explore different areas, and try to discover what you genuinely enjoy.

My story is still being written. Usando Python is just one part of that journey, and I hope my experience can encourage others who are taking their first steps into the world of programming.

Understand. Build. Grow.

See you in the next article!

🎯 Test your knowledge

Take the interactive quiz on this topic and check your score.

Take the Quiz
Publicidade
Você ainda não está logado, por favor faça login ou registre-se para comentar
    0 pessoas participaram | 0 comentários
    Ainda não há comentários, fique à vontade para conversar!