I am good at writing comments for code. I try to make sure every piece of the code
is properly explained. I do this because when I first started programming I hardly
commented, if at all. When I came back to my code I had to constantly study my
code to understand where I was on my process. I would program a lottery program
and not comment on any part of it and when I made a mistake I had to go through
the entire program to figure out what I did wrong. The same happened when I was
doing a math test program. It honestly was horrible and I could not stand it at all.
Due to the hassle of this procedure I started writing comments in my code building
up over time until I comment nearly all my code. Now I revise my comments in
order to make them more understandable. In a recent battleship program I
commented on every line of code to state what it does and how it relates to other
parts of the program. Now, due to my experience, I have become a competent
commenter that details every step of the process. Another program aspect I am
good at is looping. I have had a lot of practice and study of it in 2021, 1901, and
1902. Initially though I performed unnecessary procedures involving loops that
slowed down my code considerably. But, from the classes I have taken they taught
me what should be contained within loop conditions so calculations that need to be
done once aren't done repeatedly and all parts that can be done in the loop are
done within the loop.
I really don't know defensive programming that well. It sounds good because
keeping the program safe from errors or damage is something every program
should have. I have no idea how to properly do this though so I would like to be
taught it in class or from the teacher directly so I can create good and safe
programs. I am not good at creating a useful class hierarchy because I tend to just
jump into coding without thinking about the steps beforehand. I have little
experience calls functions outside the current class and I really am not comfortable
calling procedures from outside my current code. I would have to ask classmates,
Tas, or the teacher about how to do this efficiently, but I would like to be taught how
to do this properly in order to keep my program looking easy to understand by
branching it into different classes and making it more manageable by being able to
debug one class at a time instead of all at once.
CSCI 3081 blog
No TrackBacks
TrackBack URL: http://blog.lib.umn.edu/cgi-bin/mt-tb.cgi/159797

Leave a comment