This is an implementation of the FizzBuzz program. It's a very simple thing that iterates through some numbers and changes the output depending on if the number is a multiple of three or five. It's one of the first programs I've written this year and because of that, it took a lot longer than I feel that it should've (4 minutes 12 seconds). I have to get used to typing again because going through the correct syntax was more troublesome than it used to be (making sure parenthesis are in place, using correct symbols here and there) and I even put an || instead of && at the end the first time I compiled!
The code I wrote isn't pretty at all, there are no methods and everything is clumped together. I'm sure that I could've made it more elegant but I felt that for such a simple program, adding anything extra would be extra fluff. Maybe it would be good practice or habit to just do everything nicely though. We'll see what happens once programs get a little more complicated.
No comments:
Post a Comment