Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36169

Re: can someone chk is this code ok and if i can make it better please state how

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
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 Sat, 7 Jan 2017 14:16:15 +0100
Lines 23
Message-ID <edc810FmmbfU1@mid.individual.net> (permalink)
References <e69219b6-6d90-4d99-9e0c-485e867fded4@googlegroups.com> <o4p1ae$4bv$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net i/6eVch/cCQhzDqdeRr3Tgj7+2XATJAL/XAgohxTlRgZW8Bzo=
Cancel-Lock sha1:u1T9ldkQ7xK+lAhXshpNv3maUTQ=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
In-Reply-To <o4p1ae$4bv$1@dont-email.me>
Xref csiph.com comp.lang.java.programmer:36169

Show key headers only | View raw


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


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