Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 The dumbest programming thing you ever did before you knew better?
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Sat Dec 18, 2021 10:19 pm   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
scholarlytutor




PostPosted: Sat Dec 25, 2021 12:37 pm   Post subject: 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




PostPosted: Sat Dec 25, 2021 10:25 pm   Post subject: RE:The dumbest programming thing you ever did before you knew better?

Who needs loops when you can copy and paste?!
scholarlytutor




PostPosted: Sun Dec 26, 2021 7:23 am   Post subject: RE:The dumbest programming thing you ever did before you knew better?

Exactly! And aggregate data structures are definitely overrated.
wtd




PostPosted: Mon Dec 27, 2021 3:19 pm   Post subject: 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




PostPosted: Mon Dec 27, 2021 4:16 pm   Post subject: RE:The dumbest programming thing you ever did before you knew better?

100 Ways to Write Rubbish Code ?
wtd




PostPosted: Tue Dec 28, 2021 9:48 pm   Post subject: 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




PostPosted: Tue Dec 28, 2021 10:14 pm   Post subject: RE:The dumbest programming thing you ever did before you knew better?

Truth.
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Tue Feb 22, 2022 6:40 pm   Post subject: 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




PostPosted: Thu Mar 10, 2022 5:17 pm   Post subject: 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




PostPosted: Mon Mar 28, 2022 6:17 pm   Post subject: RE:The dumbest programming thing you ever did before you knew better?

I think it's rare that functions are taught early enough.
SNIPERDUDE




PostPosted: Tue Mar 29, 2022 8:21 pm   Post subject: Re: RE:The dumbest programming thing you ever did before you knew better?

wtd @ March 28th 2022, 6:17 pm wrote:
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




PostPosted: Mon Apr 11, 2022 4:23 pm   Post subject: 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




PostPosted: Fri Apr 22, 2022 12:23 pm   Post subject: Re: RE:The dumbest programming thing you ever did before you knew better?

wtd @ April 11th 2022, 4:23 pm wrote:
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)
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: