Comment on unrolling loops is efficient, right?
potoo22@programming.dev 1 year ago
In my first CS class, the professor announced an extra credit project due at the end of the class. It was to create a formatted terminal calendar given a year from user input. I finished it after learning about condition but before I learned about classes… or functions… or loops… or searching the internet… partially. I searched how leap years worked, but didn’t bother to search for code.
Anyway, long ass program with each month hard-coded with 7 possible calendars for each month depending on the first day of the week. Lots of copy and paste. Professor was speechless, but accepted it.
ICastFist@programming.dev 1 year ago
“It’s not stupid if it works”