Comments: (27)
It seems there is a size bug 'Download (111.90 MB) (10:12) (960x600)' |
Yea, thanks. I will fix that now. It should only be 11.90 mb |
A Little more Refactoring, you could have used an interface instead of a base class so that it becomes open for extension but closed for modification. |
You are 100% correct and I debated internally on which method to take. To be honest if this were real code i would have actually done both. This way I could have the abstract class to implement any common features and the interface for cleaner separation |
Does a dependency injection play exist with this? I'm trying to grok this and when the logging service defines its strategies in the DefineStategies() method is seems a little coupled, but then again, are those things that would be appropriate to couple? I might be confusing some things here ... |
@Eric, You could use DI for this. In fact by injecting the correct logger you would be taking the strategy pattern to the next step. For this I tried to keep the demo simple and was only trying to show one angle on this. Like most code demos there are many ways to do it differently. |
@Dimecasts Thanks. Just making sure I was on the right page. I totally understand with keeping the demos simple. Do you think their could be a follow up cast showing the progression with this by way of introducing some DI? I guess the thing I'm struggeling with is that if you start injecting your strategies into the your context what, then, is the point of the context? ... my head hurts ... |
@Eric, Actually tomorrows episode #99 showing how to refactor the SOLID episode on DI to use an IoC container. Let me know if this helps at all |
I'd say that the DefineStrategies() violates the intent of the Strategy Pattern in that the client should not have coupling to the individual strategies, and that this solution therefore violates the OCP. The excercise is in principle done before the DefineStrategies method was written, at which point the question is how to inject the dependancy. As it turned out, any consumer to this new class would have a build dependancy to all loggers in existence. But the presenter did state that one intended feature was to preserve the user interface, which makes it problematic to transition to a model where the the consumer instantiates the strategy. |
This looks to me more like using a service locator which is implemented using the dictionary than a strategy pattern. To me the LoggingService would be the context and ILogginStrategy with the 2 methods (LogMessage and LogError)". And 3 concrete implementations (EventLoggingStrategy, RepositoryLoggingStrategy, ...). The LoggingStrategy enum should be removed as it doesn't service a purpose.
|
Very nice screen cast - thank you.
Just one question, where do you define the LoggingStrategy enum in your code? |
nike ninja foot locker pas cher,nike rift chaussure hommes femmes,enfants bebe nike air ninja france 2010 neuf nike air rift ninja chassures
air rift air ninja Taille 36,37,38,39,40 rift ninja basket ninja Achats en ligne
nike rift pas cher prix nike air rift chaussure nike air rift ninja nike air rift mtr Livraisons gratuites
site nike rift nouveau nike rift arnaque Taille 41,42,43,44,45,46 nike air rift femme chaussures nike air noir bas prix Blanc/Noir/Rouge/pratique/Jaune/Couleur/Orange/bleu
nike ninja noir neuf nike ninja pour homme nike ninja foot locker pas chère
nike ninja sport Neuve ninja nike divers Taille 29,30,31,32,33,34 pas chères |
<!-- /* Font Definitions */ @font-face {font-family:??; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@??"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:??; mso-font-kerning:1.0pt;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
ShopKiss.com is an online store to collect and supply the most great collection and information of Louis Vuitton Handbags, replica gucci handbags, Chanel, prada handbags online, Dior, Fendi, Miu Miu, Burberry, LV purses and wallets, from men's to wemen's, also we can help you to find and compare which best fits you. At ShopKiss.com you can buy up to 30% OFF on sale, Big Discount and very Cheap Price! When you are walking on the road and take a discount louis vuitton handbags, you would be instantly noticed, and admired by women and men beside you. A LV handbags, not only reflect your high sense of fashion, but also represents your status, confidence and prestige. For many people who has a budget, however, a louis vuitton handbags on sale could be a cost-prohibitive order. ShopKiss.com will meet your all demands and suffice satisfaction, here have most great collection of all designer handbags and wallets, all and high quality knock off designer chanel bags 2009, same as real and authentic handbags, but cheap price.
|
Dear friends, welcome to our nike air max shoes online shop- www.kicksinfo.com, and all our nike air max shoes - are original from the Nike factory, we are the Nike shoes professional wholesaler and we are serious want to establish a long term business with worldwide customers, we can supply our best wholesaler price with the lowest discount for all our - customers, also we can take free shipping service and make drop ship to worldwide address. First, you can use the lowest price to buy a pair of - authentic nike air max 2009, nike air max 90, nike air max tailwind, nike air max tn and now hot sale nike air max 2010 shoes; Second, we are professional and we can supply our best service to you. So have a nice time to shopping in our online shop and choose the Nike shoes you like.
Nike Air Max is a line of shoes first released by Nike, Inc. in 1987. Since its introduction, Nike has frequently introduced newest and updated models in the same product line.Today, buy cheap nike free shoes is the right choice is not only good for your health, but also is convenient for walking and running or training, so most people want to come home or give as a gift to their friends or family! Marking happier! They are really a nice addition this summer for wardrobe.We have a variety of nike free 3.0, nike free 7.0 shoes for you to choose.Certainly all our products are for sale, new and free shipping.Wish has a good experience Purchase here. |
The company Guido Panerai & Figlio was replica watches founded in 1860 in Florence, Italy. The brand became the official watchmaker of replica handbags the Italian Navy, providing them with highly specialized and military timepieces. Panerai watches are unique and their design is unmistakable. The large size of ugg boots the watch is not in conflict with the minimalist dial markings. The need replica watches for instant legibility of the time in poor light or even in darkness resulted in the design of a unusually large dial, clearly marked ugg boots with luminous numerals and hour markers. So the watches have an aesthetic replica watches personality as strong as their technical and mechanicals characteristics, making them great watches from every point of replica watches view, destined for great performances and personalities. |
The easiness of gold necklaces and authentic life people links of London to complete the quest for really enjoy, In 2010, sweetie bracelets unveiled boutique bracelet, in contrast to the clumsy thick bracelet, the revolutionary bracelet build a elegant and wonderful sensitive elegance, and girls will consider it. An elegant links of London bracelet female with extended hair, improving her palm and also the links of london charms stunned tumble, much like writing a wonderful message. Receive my very own knowledge to illustrate. Mother's day is nearly here, so I wish to drive my mummy a silver charms bracelets which was my mother's most popular for years but can't buy. On entering the links of London shop, I really feel really happy for I can give my mother a big surprise. After selecting carefully, I finally acquire charm bracelets with extended hair. More useful resources about links of London sites you need links of London links of London, sweetie bracelets sweetie bracelets, links of london charms links of london charms, silver charms silver charms, charm bracelets charm bracelets, links of london friendship bracelets links of london friendship bracelets, links of london uk links of london uk, links of london sweetie bracelets links of london sweetie bracelets, links jewelry co uk links jewelry co uk, linksoflondon linksoflondon, links of London necklaces links of London necklaces, links of London earrings links of London earrings, links of London jewelry links of London jewelry thomas sabo thomas sabo sale thomas sabo uk sabo jewellery thomas sabo jewellery thomas sabo charms thomas sabo bracelets sabo charms thomas sabo bracelet thomas sabo charms sale |
linda It's unfortunate that those who could best benefit from the Gucci Shoes Sale won't read it. They'll simply see it as an dunk low on a sacred icon. It's too bad, because probably at least 47 percent of the electorate believes a good bit of the shox shoes and nike shox shoes myth ??not a comforting thought. The author's Air Jordan Shoes and Air Jordans are reasonable look at the huge discrepancy between what Reagan supposedly did and his actual ugg classic boots. It is not Reagan bashing, though certainly some much-needed balance is achieved in assessing Michael Jordan Shoes's presidency. He is most assuredly correct to suggest that if we are to have a Coach Handbags at a bright future, we must, at the very least Cheap Jordans, move beyond myths. The book does tend to be a bit Cheap MBT Shoes and repetitious. |
|