CST 338 - Week 1

 Hey everyone! 

I am back with another update on my online learning journey. This week we started coding in Java. We used Coding Bat to help develop our skills, and I must say, it was quite a challenge.

    Java was a new programming language for me so it took me some time to get the hang of the language. I had a lot of fun because it was like a challenging puzzle. First, I started by understanding each problem, identifying the expected inputs and outputs. The I started writing the code, implementing one step at a time. Sometimes, I wrote a bit of code to see if it actually works, then moved on to the next part of the problem. Other times, I would write the code how I see fit and then end up debugging one step at a time. 

    For me, what worked was incremental development. Writing a little bit at a time and testing each part as I progressed helped in isolated issues quickly and made debugging easier. Reading the problem carefully, especially giving attention to the variables was an important factor as well. Sometimes I would use the wrong variables for the right code, resulting in errors. 
    However, one thing that did not work for me was diving right into the code. Sometimes, I would not read the problem properly, or pay attention to syntax, resulting in silly mistakes and errors. 

    Rarely did my solutions work perfectly on the first try. It often took multiple iterations to get the code right. Here’s a typical pattern:

  • First Attempt: A rough version of the code that might work for simple cases but fails for more complex cases.
  • Refinement: Identifying the shortcomings of the initial solution and adding necessary conditions.
  • Optimization: Once the code works correctly, optimizing it for better performance and readability.

  •     Although it was quite a challenge, it was fun and I definitely learned a lot. I even learned how to use GitHub, IntelliJ, and Android Studio. I am looking forward to another week of more coding!

    Comments

    Popular posts from this blog

    CST 334 - Week 6

    CST 334 - Week 4

    CST 370 - Week 1