Sunday, June 1, 2025

Coding practice this week.




This week, I started to code by myself.

As a novice programmer, I aimed to create a small program that could perform practical functions, like discerning different pictures or shapes and automatically triggering certain activities. I initially thought this would be an easy task, especially since I could start by setting simple shapes as targets. However, in practice, many unexpected issues emerged.

One difficulty I encountered is that while humans can often discern shapes instinctively, translating that activity into code requires strict logic. Any missing consideration leads to incorrect results. Another significant challenge I found was with loops. While I knew loops are fundamental and thought they'd be easy to use, it's quite different in practice. To simulate an activity and achieve various reactions under different circumstances, a program might need eight or even more than ten levels of nested loops. It's incredibly easy to get lost in which conditions should be placed at which loop level.

I've spent a lot of time testing the bugs I made. It's fun, a bit like a game, but truly time-consuming. The bugs aren't thoroughly solved yet, and suddenly, it's the last day of the week!

No comments:

Post a Comment

Feeling about social media

This week, I explored numerous social media platforms, including Flickr, Reddit, Pinterest, Diigo, Discord, Goodreads, and others. It was re...