Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36169
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: can someone chk is this code ok and if i can make it better please state how |
| Date | 2017-01-07 14:16 +0100 |
| Message-ID | <edc810FmmbfU1@mid.individual.net> (permalink) |
| References | <e69219b6-6d90-4d99-9e0c-485e867fded4@googlegroups.com> <o4p1ae$4bv$1@dont-email.me> |
On 06.01.2017 22:15, Eric Sosman wrote:
> The "The" parts of these method names don't communicate much, and
> seem to be little more than clutter. (Why not "getThatWeight" or
> "getAPrice"?) It would be more usual to use names like "getModel"
> and "getSize" instead.
Another remark about naming of methods and fields: the current state of
affairs does not adhere to the Java Beans spec and usual convention for
getters and setters. So it would be
private String model;
public String getModel() {
return model;
}
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
can someone chk is this code ok and if i can make it better please state how SuperGiirl <kainattshafiq90@gmail.com> - 2017-01-06 12:38 -0800
Re: can someone chk is this code ok and if i can make it better please state how SuperGiirl <kainattshafiq90@gmail.com> - 2017-01-06 12:52 -0800
Re: can someone chk is this code ok and if i can make it better please state how Andreas Leitgeb <avl@logic.at> - 2017-01-06 21:11 +0000
Re: can someone chk is this code ok and if i can make it better please state how SuperGiirl <kainattshafiq90@gmail.com> - 2017-01-06 14:02 -0800
Re: can someone chk is this code ok and if i can make it better please state how Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-01-06 16:15 -0500
Re: can someone chk is this code ok and if i can make it better please state how Robert Klemme <shortcutter@googlemail.com> - 2017-01-07 14:16 +0100
Re: can someone chk is this code ok and if i can make it better please state how lewbloch@gmail.com - 2017-01-06 17:23 -0800
Re: can someone chk is this code ok and if i can make it better please state how Robert Klemme <shortcutter@googlemail.com> - 2017-01-07 14:23 +0100
Re: can someone chk is this code ok and if i can make it better please state how galt_57@hotmail.com - 2017-01-07 11:39 -0800
csiph-web