Article View: pl.comp.lang.java
Article #153975Re: Zagadnienie polimorfizmu?
From: darekm
Date: Tue, 31 Dec 2013 16:27
Date: Tue, 31 Dec 2013 16:27
57 lines
3364 bytes
3364 bytes
On 2013-12-30 16:50, A.L. wrote: > 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 > Mimo niewątpliwej wartości to jest tylko Coding Style Guidelines, nie zawiera żadnego uzasadnienia (bo nie musi). > 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. > Podoba mi się drugie zdanie. Trzecie też ze względu na "być może". W 99% zgoda, ale język naturalny nie dość dobrze reprezentuje świat wirtualny czy też "niewidzialny". Bezmyślne mapowanie obiekt-> rzeczownik nie jest złe. Ale robienie tak wbrew pozostałym zasadom jest. > ... > 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. To na potwierdzenie tego co pisałem poprzednio? > > http://www.iwombat.com/standards/JavaStyleGuide.html#Class%20and%20Interface%20Names > > A.L. > Darek
Technical Details
Message-ID:
<52c2f076$0$2176$65785112@news.neostrada.pl>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-out.readnews.com!news-xxxfer.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.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> <0453c9tokha25gropm7cq7r06n62i7m691@4ax.com>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-out.readnews.com!news-xxxfer.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Date: Tue, 31 Dec 2013 17:27:34 +0100 From: darekm <darekm@emadar.com> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 Newsgroups: pl.comp.lang.java Subject: Re: Zagadnienie polimorfizmu? 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> <0453c9tokha25gropm7cq7r06n62i7m691@4ax.com> In-Reply-To: <0453c9tokha25gropm7cq7r06n62i7m691@4ax.com> X-Antivirus: avast! (VPS 131231-0, 2013-12-31), Outbound message X-Antivirus-Status: Clean Lines: 57 Message-ID: <52c2f076$0$2176$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 79.187.5.190 X-Trace: 1388507254 unt-rea-b-01.news.neostrada.pl 2176 79.187.5.190:60772 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit