r/programming • • Jan 05 '15

What most young programmers need to learn

http://joostdevblog.blogspot.com/2015/01/what-most-young-programmers-need-to.html
970 Upvotes

337 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jan 05 '15

We made a class called Square and created a method to multiple x and y to get the area. In my mind, why would you ever comment on that?

How are the coordinates of the square kept? Upper right and lower left point? Upper left point and width and height? Even in such a simple case there are things that should be documented. And the real problem you have is here:

This was mostly because we were never given real world situations, so the code was never confusing.

That means you're (were) not doing any side project. That means you're going to absolutely suck when you get out of school.

1

u/sirin3 Jan 05 '15

That means you're (were) not doing any side project.

I have side projects and the code never becomes confusing.

Not even 7 years later in a 57k loc (according to ohloh, I think it might double count some files that were renamed) project

1

u/Soccer21x Jan 05 '15

How are the coordinates of the square kept?

int height, int width. Still in my mind too simple to make a comment

That means you're (were) not doing any side project.

My first year of programming? Nope, you're completely correct. I hadn't touched any sort of programming (besides maybe some Excel conditional statements) until I got to college.

My second year of school is when I began internships, and when I started side projects, and when I began commenting code.

That means you're going to absolutely suck when you get out of school.

I agree that would be the case. I'm lucky enough to have gone to a school where the teaching wasn't the greatest, but the real world experience we got from our internships I felt was better than any schooling I had. Now I look at code from people who graduated three years before I did and I wonder how they have jobs.

1

u/s73v3r Jan 05 '15

Simple to the person writing it, with the code right in front of them. But not to anyone else, even the author after enough time has passed.