Article View: pl.comp.lang.java
Article #153974Re: Zagadnienie polimorfizmu?
From: A.L.
Date: Mon, 30 Dec 2013 15:50
Date: Mon, 30 Dec 2013 15:50
42 lines
2758 bytes
2758 bytes
On Mon, 30 Dec 2013 13:07:04 +0100, darekm <darekm@emadar.com> wrote: >On 2013-12-28 04:10, A.L. wrote: > >> >> Bardzo nieczestor to robie, ale tyym razem zrobie. Polecam Wikipedie >> >> http://en.wikipedia.org/wiki/Command_pattern >> >> g\tam pozrednei zaimplemenorano wzorzec Command >> > >Jeżeli poprawnie Cię rozumiem to identyfikatory klas winny być >rzeczownikami a nie czasownikami , czyli FlipUpCommand a nie samo >FlipUp, analogicznie KomendaZrobCosTam vs ZrobCosTam. > >I to *zawsze* ma być czytelniej, bardziej jednoznacznie? A może ma inną >wartość? P.S. Podepre sie cytatem Class and Interface Names Class names are always nouns, not verbs. Avoid making a noun out of a verb, example DividerClass. If you are having difficulty naming a class then perhaps it is a bad class. Interface names should always be an adjective (wherever possible) describing the enforced behaviors of the class (noun). Preferably, said adjective should end in "able" following an emerging preference in Java. i.e. Clonable, Versionable, Taggable, etc. ... Class names should be descriptive in nature without implying implementation. The internal implementation of an object should be encapsulated and not visible outside the object. Since implementation can change, to imply implementation in the name forces the class name and all references to it to change or else the code can become misleading. http://www.iwombat.com/standards/JavaStyleGuide.html#Class%20and%20Interface%20Names A.L.
Technical Details
Message-ID:
<0453c9tokha25gropm7cq7r06n62i7m691@4ax.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-11.dc1.easynews.com.POSTED!not-for-mailReferences:
<e8a6173d-2e5d-4055-9877-1bc8fa939deb@googlegroups.com> <52b0147c$0$2160$65785112@news.neostrada.pl> <cpk1b9has1626fb6ifm3pjnt5ghj9esgno@4ax.com> <op.w8knga0te4bapi@blackstar> <pg6nb9t5bcgct766hjfp85c9jjqg3096oa@4ax.com> <almarsoft.8571317873761503081@news.plus.net> <6mfsb91nae01ptjj413nrj3naf8gpgh8l3@4ax.com> <52c161e9$0$2353$65785112@news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-11.dc1.easynews.com.POSTED!not-for-mail From: A.L. <alewando@aol.com> Newsgroups: pl.comp.lang.java Subject: Re: Zagadnienie polimorfizmu? Message-ID: <0453c9tokha25gropm7cq7r06n62i7m691@4ax.com> References: <e8a6173d-2e5d-4055-9877-1bc8fa939deb@googlegroups.com> <52b0147c$0$2160$65785112@news.neostrada.pl> <cpk1b9has1626fb6ifm3pjnt5ghj9esgno@4ax.com> <op.w8knga0te4bapi@blackstar> <pg6nb9t5bcgct766hjfp85c9jjqg3096oa@4ax.com> <almarsoft.8571317873761503081@news.plus.net> <6mfsb91nae01ptjj413nrj3naf8gpgh8l3@4ax.com> <52c161e9$0$2353$65785112@news.neostrada.pl> User-Agent: ForteAgent/7.00.32.1200 MIME-Version: 1.0 Lines: 42 X-Complaints-To: abuse@easynews.com Organization: Forte Inc. http://www.forteinc.com/apn/ X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Mon, 30 Dec 2013 09:50:44 -0600 X-Received-Bytes: 2608 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit