
-----------------------------------
wtd
Sat Dec 18, 2021 10:19 pm

The dumbest programming thing you ever did before you knew better?
-----------------------------------
So, thinking back, before you knew you shouldn't, what's the dumbest thing you ever did while programming?

I'm going to say trying to maintain parallel arrays rather than simply having an array of aggregate data structures. So much time wasted.

-----------------------------------
scholarlytutor
Sat Dec 25, 2021 12:37 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
As a child, my brother taught me a tiny amount of Turing and I was fascinated by it. I started making a program and wanted to cover the whole screen with 40x40 pixel boxes using the 16 colours available in the v16 screen mode in DOS (which is 640x480). So I drew 192 boxes to the screen using 192 lines of code. Not my brightest moment. But I was definitely determined!

-----------------------------------
wtd
Sat Dec 25, 2021 10:25 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
Who needs loops when you can copy and paste?!

-----------------------------------
scholarlytutor
Sun Dec 26, 2021 7:23 am

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
Exactly! And aggregate data structures are definitely overrated.

-----------------------------------
wtd
Mon Dec 27, 2021 3:19 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
And always put all functionality directly into main (or its equivalent). Definitely do not break things down with functions/modules/etc.

-----------------------------------
scholarlytutor
Mon Dec 27, 2021 4:16 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
100 Ways to Write Rubbish Code ?

-----------------------------------
wtd
Tue Dec 28, 2021 9:48 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
We all do stupid things before we know better. Remembering that is good to keep things in perspective. Then you realize what you're doing right now is probably stupid and you'll only realize it later
.

-----------------------------------
scholarlytutor
Tue Dec 28, 2021 10:14 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
Truth.

-----------------------------------
SNIPERDUDE
Tue Feb 22, 2022 6:40 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
This is going all the way back mind you, like very first class stuff -- but due to my getting ahead of the teacher a bit I wrote some long code using one big loop and no functions (before the functions lesson was taught, which they oddly took their time getting to)

Come a long way

-----------------------------------
scholarlytutor
Thu Mar 10, 2022 5:17 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
Nice. I can relate to that. I wrote a long program with over 1000 lines before I started taking computer science in grade 10. It didn't have a single function or procedure.

Looking back at the program today, I could probably write it all in 200-300 lines. Maybe one day when I have the time I'll try to do it.

-----------------------------------
wtd
Mon Mar 28, 2022 6:17 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
I think it's rare that functions are taught early enough.

-----------------------------------
SNIPERDUDE
Tue Mar 29, 2022 8:21 pm

Re: RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
I think it's rare that functions are taught early enough.
Seems so.

I wonder why, I consider them on the same footing as loops in terms of importance.

-----------------------------------
wtd
Mon Apr 11, 2022 4:23 pm

RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
I consider them more fundamental and important than loops. It's so so important to know how to break code up into smaller problems, and functions achieve that.

-----------------------------------
SNIPERDUDE
Fri Apr 22, 2022 12:23 pm

Re: RE:The dumbest programming thing you ever did before you knew better?
-----------------------------------
I consider them more fundamental and important than loops. It's so so important to know how to break code up into smaller problems, and functions achieve that.
Couldn't agree more actually.

Seems they jump over to loops before even considering functions.

Not only is functions a simpler concept but a more valuable one than loops.

Wonder who normalized the backward approach (unintentionally surely)
