• Fri frakt över 249 kr
  • •
  • Snabba leveranser
  • •
  • Billiga böcker
Kundservice

Du är på sajten för privatpersoner.

Företag, bibliotek eller offentlig verksamhet?

Du handlar på classic.bokus.com, där alla dina funktioner finns intakta.
Till classic.bokus.com
Bokus logotyp. Gå till startsidan.
  • Erbjudanden
  • Student
  • Topplistor
  • Barn & ungdom
  • Bokus Play
  • E-böcker
  • Ljudböcker
  • Pocketböcker
  • Spel och pussel

Pocketfynda! Hundratals böcker för 49 kr/st →

Sidfot

Mina sidor

    Hjälp

    • Kundservice
    • Vanliga frågor och svar
    • Frakt och leverans
    • Retur vid ångerrätt
    • Reklamera vara
    • Betalning
    • Köpvillkor
    • Allmänna villkor
    • Information om webbplatsens tillgänglighet

    Om Bokus

    • Om oss
    • Pressrum
    • För studenter
    • För företag
    • För bibliotek och offentlig verksamhet
    • För leverantörer
    • Hållbarhet

    Populärt

    • Aktuella erbjudanden
    • Presentkort
    • Studentlitteratur
    • Nya böcker
    • Topplistor
    • Signerade böcker
    • Engelska böcker

    Inspiration

    • Boktips
    • BookTok
    • Barnbokskaraktärer
    • Populära författare
    Logotyp för Bokus
    Följ oss på Facebook (extern länk)Följ oss på Instagram (extern länk)Följ oss på YouTube (extern länk)Följ oss på TikTok (extern länk)
    bokus @ CookiesAnpassa cookiesIntegritetspolicyKöpvillkor
    Till Citymail hemsida (extern länk)Till Budbee hemsida (extern länk)Till Postnord hemsida (extern länk)Till Schenker hemsida (extern länk)Till Early Bird hemsida (extern länk)Till Walleys hemsida (extern länk)
    1. Data och IT
    2. Informationsteknik: allmänt

    Object-Oriented Design Choices

    AvAdair Dingle

    Häftad, Engelska, 2021

    943 kr

    Beställningsvara. Skickas inom 10-15 vardagar. Fri frakt över 249 kr.

    Fler format och utgåvor

    Inbunden

    2 482 kr

    E-bok

    1 122 kr

    E-bok

    1 122 kr

    Beskrivning

    Do modern programming languages, IDEs, and libraries make coding easy? Maybe, but coding is not design. Large-scale or expensive apps clearly require evaluation of design choices. Still, software design directly impacts code reuse and longevity even for small-scale apps with limited overhead. This text evaluates and contrasts common object-oriented designs.A given problem may have many solutions. A developer may employ different design techniques – composition, inheritance, dependency injection, delegation, etc. – to solve a particular problem. A skilled developer can determine the costs and benefits of different design responses, even amid competing concerns. A responsible developer documents design choices as a contract with the client, delineating external and internal responsibilities. To promote effective software design, this book examines contractual, object-oriented designs for immediate and sustained use as well as code reuse. The intent of identifying design variants is to recognize and manage conflicting goals such as short versus long-term utility, stability versus flexibility, and storage versus computation. Many examples are given to evaluate and contrast different solutions and to compare C# and C++ effects. No one has a crystal ball; however, deliberate design promotes software longevity. With the prominence of legacy OO code, a clear understanding of different object-oriented designs is essential.Design questions abound. Is code reuse better with inheritance or composition? Should composition rely on complete encapsulation? Design choices impact flexibility, efficiency, stability, longevity, and reuse, yet compilers do not enforce design and syntax does not necessarily illustrate design. Through deliberate design, or redesign when refactoring, developers construct sustainable, efficient code.

    Produktinformation

    • Utgivningsdatum:2021-01-19
    • Mått:156 x 234 x 33 mm
    • Vikt:620 g
    • Format:Häftad
    • Språk:Engelska
    • Antal sidor:348
    • Förlag:Taylor & Francis Ltd
    • ISBN:9780367820183

    Utforska kategorier

    • Informationsteknik: allmänt inom Data och IT
    • Programspråk inom Data och IT

    Mer om författaren

    Adair Dingle, PhD, is a professor of computer science at Seattle University, Washington, USA whose previous text, Software Essentials: Design and Construction, received the 2015 Alpha Sigma Nu Book Award. Teaching and research interests focus on algorithms and software design including efficient memory management, patterns, refactoring and tools for software development and education.

    Recensioner i media

    "The introduction of object-oriented programming was a pivotal moment in software engineering, leading to a new way of creating systems by modelling their constituents independently and linking them through shared interfaces. Object orientation allows for the creation of more complex systems, better focus on a small subset of components at any given time, and a greater level of component independence; it even facilitates the creation of software product lines. Designing a system using object orientation requires the mastery of several interdependent concepts, such as abstraction, inheritance, composition, and polymorphism. Dingle (Seattle Univ.) provides a cohesive framework for learning object-oriented design from a practical point of view. Concepts are introduced hierarchically, starting from the idea of encapsulation and design as a contract and drilling down to specifics such as virtual function tables and abstract classes. This approach results in an incremental experience of learning object-oriented design that is rarely found in computer science courses, but that is essential for software engineers who wish to harness the power of object-oriented programming languages in practice. Although no book can fully replace hands-on bench experience, this compact guide can ensure that one's practical efforts will be optimally targeted.--L. Benedicenti, University of New BrunswickReview in April 2022 Issue of CHOICE

    Innehållsförteckning

    • PrefaceDetailed Book OutlineSection I: Stable Type DesigContractual Design and the Class ConstructEncapsulation Explicit Design and ConstraintsClass (Type) FunctionalityConstructorsAccessors and MutatorsUtility and Public MethodsDestructorsDesign as a ContractError HandlingPublished AssumptionsInvariantsProgramming by Contract ExampleContractual ExpectationsOO Design PrincipleSummaryDesign ExercisesOwnership – Abstracted but TrackedThe Abstraction of Memory Heap MemoryOwnership of Heap ObjectsArray AllocationDesign InterventionPersistent DataClass Design Memory ReclamationC++ Explicit DeallocationGarbage CollectionReference CountingDesign: Storage vs Computation OO Design PrincipleSummaryDesign ExerciseData IntegrityData CorruptionCopyingShallow versus Deep CopyingC++ Copying of Internal Heap MemoryUnseen AliasingC# Cloning to Avoid AliasingMove semantics Handle: C++ Smart Pointersunique_ptr shared_ptr weak_ptr usageOO Design PrincipleSummaryDesign ExercisesSection II: Strategic Type CouplingCompositionObject-oriented RelationshipsContainment (Holds-A)Composition (Has-A)ModificationReplacementPostponed instantiationEchoing an InterfaceInterfaces for Design ConsistencyWrappers and DelegatesDependency InjectionConstructor InjectionProperty (Setter) InjectionMethod InjectionDependency Injection Costs and BenefitsOO Design PrincipleSummaryDesign ExercisesInheritance Automate Type Checking PolymorphismOverloadingGenericsSubtype polymorphismFunction inliningCosts and Benefits of Polymorphism Dynamic Binding whoami() type identificationKeywords for dynamic bindingHeterogeneous CollectionsVirtual Function table Abstract ClassesInheritance designsOO Design PrincipleSummaryDesign ExercisesInheritance vs Composition Constrained InheritanceWhen Only Composition is ViableWhen Inheritance Leaks Memory: C++ destructorsInconsistent Access: C++ accessibility and bindingCode ReuseClass Design: Has-a or Is-a?Inheritance with and without Composition5Software MaintainabilityOO Design PrincipleSummaryDesign ExercisesSection III: Effective Type ReuseDesign LongevitySoftware EvolutionDisassembler ExampleVirtual Function TableType ExtractionProblematic Type ExtensionMultiple Inheritance and its SimulationDesign difficultiesSingle inheritance with compositionSimulation without inheritanceClass Hierarchies Cross-ProductsOO Design PrincipleSummaryDesign ExercisesOperator OverloadingOperators represent functionsOverloading Addition in C++Client ExpectationsOperator Overloading in C#Operators Overloaded only in C++Indexing supportI/O via the stream operatorsType conversionTransparent accessOO Design PrincipleSummaryDesign ExerciseAppendix A: The Pointer ConstructPointer definitionDereferencing pointersInappropriate use of pointersTransient versus persistent memoryReferencesThe this pointerArraysSummaryAppendix B: Design ExamplesContractual DesignOwnership: C++ class memory managementCopyingCompositionInheritanceAppendix C: Comparative Design ExamplesComposition versus InheritanceDesign longevityOperator overloadingGlossaryReferences