Article View: pl.comp.lang.php
Article #231894Re: Dobre praktyki
From: Wojciech Bancer
Date: Sat, 27 Jan 2018 13:49
Date: Sat, 27 Jan 2018 13:49
20 lines
1945 bytes
1945 bytes
On 2018-01-27, Marek S <precz@spamowi.com> wrote: >> Nikt nie pisał o wielokrotnym inicjowaniu połączeń. >> Doczytaj sobie o wzorcach dependency injection. > > Ale to właśnie jest jedną z implementacji takich singletonów - tu > zwanych pluginami. Różnica leksykalna. Nie, różnica nie jest leksykalna. Różnica jest taka, że zależności dostarcza odpowiedni manager, i kod który wykorzystuje te zależności nie ma odpowiedzialności w której musi sobie daną zależność sam "pobrać" - co jest najczęstszą wadą w projektach opeartych o prosty singleton. -- Wojciech Bańcer wojciech.bancer@gmail.com
Technical Details
Message-ID:
<slrnp6p0qc.gpr.wojciech.bancer@pl-test.org>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<2lhebv1xabri$.dlg@tyczka.com> <6d0bd754-9b46-46ce-98ff-c5265a9a93af@googlegroups.com> <chac9zcm8l6a.1gxug7ng6lbce$.dlg@40tude.net> <cd0f750f-2346-4016-bbbd-a72c386c561d@googlegroups.com> <slrnp6hci6.23ml.wojciech.bancer@pl-test.org> <fc6bfbc5-c858-4156-95c5-cb276d07067e@googlegroups.com> <slrnp6kee7.2lbk.wojciech.bancer@pl-test.org> <p4dnnf$m5b$1@node2.news.atman.pl> <slrnp6kpt1.30s7.wojciech.bancer@pl-test.org> <p4f8p3$tfb$1@node1.news.atman.pl> <slrnp6oqo7.g5g.wojciech.bancer@pl-test.org> <p4hrvu$ctn$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Newsgroups: pl.comp.lang.php From: Wojciech Bancer <wojciech.bancer@gmail.com> Subject: Re: Dobre praktyki References: <2lhebv1xabri$.dlg@tyczka.com> <6d0bd754-9b46-46ce-98ff-c5265a9a93af@googlegroups.com> <chac9zcm8l6a.1gxug7ng6lbce$.dlg@40tude.net> <cd0f750f-2346-4016-bbbd-a72c386c561d@googlegroups.com> <slrnp6hci6.23ml.wojciech.bancer@pl-test.org> <fc6bfbc5-c858-4156-95c5-cb276d07067e@googlegroups.com> <slrnp6kee7.2lbk.wojciech.bancer@pl-test.org> <p4dnnf$m5b$1@node2.news.atman.pl> <slrnp6kpt1.30s7.wojciech.bancer@pl-test.org> <p4f8p3$tfb$1@node1.news.atman.pl> <slrnp6oqo7.g5g.wojciech.bancer@pl-test.org> <p4hrvu$ctn$1@node2.news.atman.pl> Organization: None Date: Sat, 27 Jan 2018 14:49:00 +0100 User-Agent: slrn/1.0.3 (Darwin) Mime-Version: 1.0 Message-ID: <slrnp6p0qc.gpr.wojciech.bancer@pl-test.org> Lines: 20 NNTP-Posting-Host: 37.47.128.20 X-Trace: 1517060940 unt-rea-b-01.news.neostrada.pl 1675 37.47.128.20:16635 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit