Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Long Do You Keep Your Code?

Tags:

code-reuse

I took a data structures class in C++ last year, and consequently implemented all the major data structures in templated code. I saved it all on a flash drive because I have a feeling that at some point in my life, I'll use it again. I imagine something I end up programming will need a B-Tree, or is that just delusional? How long do you typically save the code you write for possible reuse?

like image 279
user7545 Avatar asked Sep 16 '08 00:09

user7545


People also ask

How long should I code before taking a break?

I keep reading that it is recommended for a programmer to take frequent breaks while programming, and the usual recommendation I see is 5 minutes every half hour or 10 minutes every hour.

How long can you code for?

“On average, people spend 2 – 4 hours a day coding”. there's no designated time duration or a generally accepted time one is expected to code daily, weekly or monthly. The duration of time allocated to coding is individual-specific.

How much time does it take to code a software?

Conclusion. On average, we see software projects taking between 4-9 months to design and develop. The size and complexity of the project are the biggest factors in overall duration.


2 Answers

Forever (or as close as I can get). That's the whole point of a source control system.

like image 71
Chris Upchurch Avatar answered Oct 01 '22 18:10

Chris Upchurch


-1 to saving everything that's ever produced. I liken that to a proud parent saving every single used nappy ever to grace the cheeks of their little nipper. It's shitty and the world doesn't benefit from it's existence.

How many people here go past the first page in google on a regular basis? Having so much crap around only seems to make it difficult to find anything useful.

like image 21
Matt Jacobsen Avatar answered Oct 01 '22 17:10

Matt Jacobsen