6098 comments
2357 subscribers
6259 on Twitter
Subscribe! Feed reader E-mail

Feedback on LightsOnModel.java — cs21a, education

From Miguel Paraz:

Yup. It reinforces the idea of attributes and minimizes the problem
with same-named parameters and local variables.

>

(They should know that they can omit this. most of the time, but it's
still a good idea.)

Just be careful with constructors that set the field from a parameter, as in: http://www.jspwiki.org/Wiki.jsp?page=WhyUsingThisIsBad

Short URL: http://sachachua.com/blog/p/1035

On This Day...

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!