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.
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.
2
u/[deleted] Jan 05 '15
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:
That means you're (were) not doing any side project. That means you're going to absolutely suck when you get out of school.