views:

216

answers:

11

Possible Duplicate:
One piece of advice

I was talking with some friends (about C++ programming), and someone ended up saying "I wish I could have known about the STL when I started C++." We got into an interesting conversation on advice we would have given to ourselves had we been able.

I thought I would present the question here, as a community wiki. So the question is,

If you could go back in time and give yourself programming advice, what would you say?

You can give yourself advice about any programming topic, from learning a new language sooner to using one part of a specific language, but please make it something that you wish you yourself could have known sooner.

One piece of advice per post, please. I'll go ahead and post mine in a little while, as an answer to the question.

A: 

I wish I'd known just how required, and not just nice, source control is.

Michael Petrotta
+1  A: 

I would have told myself to learn version control. I went years without it, and only for a few months now have begun using it. I can't believe what I've been missing. My code is cleaner (since I don't just comment out code that doesn't work), I'm not afraid to refactor, and I worry less about losing my data.

rlbond
+1  A: 

Assume that what you have learnt so far is only the tip of the iceberg, and keep on studying.

Nick Gunn
+6  A: 

learn how to write unit tests

Ray Tayek
+1  A: 

Forget voxels. It's all about polygons.

Nosredna
+3  A: 

Single Responsibility Principle - would have saved tons of time in software maintenance had I know more about that.

RSolberg
+3  A: 

sorry if this isn't a "programming answer", I still would say this to the "past me". try your hardest to understand the business angle of the projects you are working on. how much budget does this project have - how much benefit is it going to bring the business?

russau
A: 

Comments are future-you's friends.

rpflo
+1  A: 

Real simple. Stay hungry, stay foolish. And never stop learning.

And, I never did :) I guess I took my advice from the future.

Alex
A: 

"Before you write that piece of crap, imagine me coming back in time from ten years in the future, beating that tripe into /dev/null with a suite of unit tests, and telling you:

\"Before you write that piece of crap, imagine me ....

Justice
+1  A: 

I grew up as a (BASIC, ANSI C, Pascal, VB3, Clipper) programmer...

20 years down the track my advise to myself would be:

Learn how to play football! You Putz!

Cheers. Keith.

corlettk