Hands-On Design Patterns with Swift
SwiftkeepsgainingtractionnotonlyamongstAppledevelopersbutalsoasaserver-sidelanguage.Thisbookdemonstrateshowtoapplydesignpatternsandbestpracticesinreal-lifesituations,whetherthat'sforneworalreadyexistingprojects.You’llbeginwithaquickrefresheronSwift,thecompiler,thestandardlibrary,andthefoundation,followedbytheCocoadesignpatterns–theonesatthecoreofmanycocoalibraries–tofollowupwiththecreational,structural,andbehavioralpatternsasdefinedbytheGoF.You'llgetacquaintedwithapplicationarchitecture,aswellasthemostpopulararchitecturaldesignpatterns,suchasMVCandMVVM,andlearntousetheminthecontextofSwift.Inaddition,you’llwalkthroughdependencyinjectionandfunctionalreactiveprogramming.Specialemphasiswillbegiventotechniquestohandleconcurrency,includingcallbacks,futuresandpromises,andreactiveprogramming.Thesetechniqueswillhelpyouadoptatest-drivenapproachtoyourworkflowinordertouseSwiftPackageManagerandintegratetheframeworkintotheoriginalcodebase,alongwithUnitandUItesting.Bytheendofthebook,you'llbeabletobuildapplicationsthatarescalable,faster,andeasiertomaintain.
·8.6萬字