Limit search to available items
Record 22 of 381
Previous Record Next Record
Book Cover
E-book
Author Zaa, Jitendra

Title Apex Design Patterns
Published Packt Publishing, 2016

Copies

Description 1 online resource
Contents Credits; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; An Introduction to Apex Design Pattern; Innovation; Design patterns and learning; Object-Oriented Programming (OOP); OOPs in play; Static and dynamic dispatch; An interface; An abstract class; Advantages of design patterns; Design patterns and Apex; Gang of Four (GoF); The SOLID principle; The single responsibility principle (SRP); The open closed principle (OCP); The Liskov substitution principle (LSP); The interface segregation principle (ISP); The dependency inversion principle (DIP); Summary
Creational PatternsFactory method pattern; Reflection in Apex; Abstract factory pattern; A new perspective on the abstract factory pattern; The singleton pattern; The builder pattern; The difference between the abstract factory method and the builder pattern; The prototype pattern; The shallow and deep clone; Summary; Structural Patterns; The facade pattern; Other use cases; Points to consider; The adapter pattern; Points to consider; The bridge pattern; Points to consider; The composite pattern; Other use cases; Points to consider; The decorator pattern; Other use cases; Points to consider
The flyweight patternOther use cases; Points to consider; Summary; Behavioral Patterns; The chain of responsibility pattern; Points to consider; The command pattern; Some points to note; The interpreter pattern; Points to consider; The iterator pattern; Points to consider; The visitor pattern; Single dispatch; Double-dispatch; ; Points to consider; The memento pattern; Points to consider; The observer pattern; Point to consider; The state pattern ; Points to consider; The strategy pattern; Points to consider; Summary; Handling Concurrency in Apex; Understanding concurrency issues
Reproducing concurrency problems in ApexThe active object pattern; Points to consider; Summary; Anti-patterns and Best Practices; Over usage of formula fields; The deterministic formula field; The nondeterministic formula field; Functional decomposition; Ignoring the equals() and hashcode() methods while performing object comparison; Circular dependencies; Circular dependency in Apex classes; Circular dependency in triggers; Other examples; The ignoring toString() method; Avoid the God class; Error hiding; Hard-coding; Magic strings and numbers; Inheritance hell; SOQL inside a loop
DML inside a loopSummary; Index
Summary Harness the power of Apex design patterns to build robust and scalable code architectures on the Force.com platformAbout This Book Apply Creational, Structural and behavioural patterns in Apex to fix governor limit issues. Have a grasp of the anti patterns to be taken care in Apex which could have adverse effect on the application. The authors, Jitendra Zaa is a salesforce MVP and Anshul Verma has 12+ years of experience in the area of application development. Who This Book Is ForIf you are a competent developer with working knowledge of Apex, and now want to deep dive into the world of Apex design patterns to optimize the application performance, then this book is for you. Prior knowledge of Salesforce and Force.com platform is recommended. What You Will Learn Apply OOPs principal in Apex to design a robust and efficient solution to address various facets to a business problem Get to grips with the benefits and applicability of using different design patterns in Apex Solve problems while instantiating, structuring and giving dynamic behavior to Apex classes Understand the implementation of creational, structural, behavioral, concurrency and anti-patterns in your application Follow the Apex best practices to resolve governor limit issues Get clued up about the Inheritance, abstract classes, polymorphism in Apex to deal with the object mechanism Master various design patterns and determine the best out of them Explore the anti patterns that could not be applied to Apex and their appropriate solutionsIn DetailApex is an on-demand programming language providing a complete set of features for building business applications including data models and objects to manage data. Apex being a proprietor programming language from Salesforce to be worked with multi tenant environment is a lot different than traditional OOPs languages like Java and C♯. It acts as a workflow engine for managing collaboration of the data between users, a user interface model to handle forms and other interactions, and a SOAP API for programmatic access and integration. Apex Design Patterns gives you an insight to several problematic situations that can arise while developing on Force.com platform and the usage of Design patterns to solve them. Packed with real life examples, it gives you a walkthrough from learning design patterns that Apex can offer us, to implementing the appropriate ones in your own application. Furthermore, we learn about the creational patterns that deal with object creation mechanism and structural patterns that helps to identify the relationship between entities. Also, the behavioural and concurrency patterns are put forward explaining the communication between objects and multi-threaded programming paradigm respectively. We later on, deal with the issues regarding structuring of classes, instantiating or how to give a dynamic behaviour at a runtime, with the help of anti-patterns. We learn the basic OOPs principal in polymorphic and modular way to enhance its capability. Also, best practices of writing Apex code are explained to differentiate between the implementation of appropriate patterns. This book will also explain some unique patterns that could be applied to get around governor limits. By the end of this book, you will be a maestro in developing your applications on Force.com for SalesforceStyle and approachThis book is a step-by-step guide, complete with well-tested programs and real world situations to solve your common occurring problems in Apex design by using the anti-patterns. It gets crackling from exploring every appropriate solution to comparing the best one as per OOps principal
Notes Print version record
Subject Computer software -- Development.
Object-oriented methods (Computer science)
Software architecture.
COMPUTERS -- Programming -- Object Oriented.
COMPUTERS -- Enterprise Applications -- General.
Computer software -- Development
Object-oriented methods (Computer science)
Software architecture
Form Electronic book
ISBN 1782173668
9781782173663
9781782173656
178217365X