4 options
Object-oriented programming in ColdFusion : break free from procedural programming and learn how to optimize your applications and enhance your skills using objects and design patterns / Matt Gifford.
- Format:
- Book
- Author/Creator:
- Gifford, Matt (Web application developer)
- Series:
- Community experience distilled
- Language:
- English
- Subjects (All):
- ColdFusion.
- Object-oriented programming (Computer science).
- Physical Description:
- 1 online resource (192 p.)
- Edition:
- 1st ed.
- Place of Publication:
- Birmingham [U.K.] : Packt Pub., 2010.
- Language Note:
- English
- Biography/History:
- Gifford Matthew: Matt officially began life as a developer in 2000, although he used to 'develop' simple applications using BASIC Programming on his Sinclair ZX Spectrum. After creating relational databases in VBScript and hand-coding HTML pages in text editors, the obvious route was to start developing websites using dynamic data. He is now lead developer with Fuzzy Orange Ltd, and specializes in ColdFusion, Flex, and AIR development, and is also proud to be called an Adobe Community Professional for ColdFusion. He has spoken and presented regularly at national and international conferences and online meetings, and has written tutorials and articles for online resources and UK industry magazines. Constantly striving to learn more and update any skill set he can, he loves to read development publications and community blogs, attend conferences, and discuss issues with other members of the development community. A keen proponent for community resources and sharing knowledge, Matt writes and releases open-source ColdFusion applications and code samples as often as he can, and can also be seen updating resources and writing articles on his blog, http: //www. mattgifford. co. uk.
- Summary:
- Break free from procedural programming and learn how to optimize your applications and enhance your skills using objects and design patterns
- Contents:
- Cover; Copyright; Credits; Foreword; About the Author; Acknowledgement; About the Reviewer; Table of Contents; Preface; Chapter 1: Introducing ColdFusion Components; Why use CFCs?; Grouping your functions; Organizing your components; The ColdFusion component tags; Our first component; Defining a method; Returning the data; ColdFusion 9 scripted components; Creating your object; Restricting your functions to scopes; Using arguments within your methods; The Arguments scope; Redefine the function parameters; Combining your methods; Protecting your local variables; Using the Var scope
- Placing your Var scoped variablesNaming your Var scoped variables; Accessing your CFC; Instantiating the object; Using the createObject function; Using the cfobject tag; Using the NEW operator; Using cfinvoke; The cfinvoke tag; Using cfinvokeargument; Using attributes as arguments; Using an argument collection; Passing arguments into an instance method call; As a list; As named values; As an argumentCollection; Arguments in action; Merging your functions into one; Using cfargument to combine your methods; Creating an object constructor; Creating an init() function; The Variables scope
- Calling your init() functionThe This scope; Summary; Chapter 2: Effective Component Development; Pseudo-constructors; Using the pseudo method; Suppressing whitespace; Output attribute; Pseudo-constructor or init() method; Returning values and variables; returnType; Access properties; Private; Package; Public; Remote; Getting information about your CFC; Introspection; CFC Explorer; Component Doc; Document your code; Benefits of documentation; Displayname attribute; Hint attribute; Description attribute; User-defined metadata; Obtaining CFC metadata; getMetaData; getComponentMetaData
- Returning metadataDetailed introspection; Summary; Chapter 3: Building Your First Bean; What is a Bean?; But what is it really?; The benefit of using beans; Creating our first Bean; An introduction to UML; Person object in UML; What makes a Bean a Bean; A default/no-argument constructor; Easily accessible for introspection; Completing our Projects Bean; Calling our project Bean; Populating the Bean; Read/Write Bean; Read-only Bean; Helpful objects; Implicit accessors; Summary; Chapter 4: Inheritance and Object-Oriented Concepts; What is Inheritance?; Avoiding code duplication
- Inheriting our productsThe Super keyword; Overriding methods; Instantiating our products; The inheritance hierarchy; Specialization; The ""IS A"" relationship; Polymorphism; Composition; The ""HAS A"" Relationship; Implied ownership; Aggregation; Summary; Chapter 5: Data Access Objects; What is a Data Access Object?; Creating a Data Access Object; The create method; Storing a new user; The read method; Handling select results; The update method; The delete method; An alternative save method; The save method; The exists method; Caching the Data Access Objects; Dependency Injection; Summary
- Chapter 6: Gateways
- Notes:
- Includes index.
- ISBN:
- 9786612882166
- 9781282882164
- 1282882163
- 9781847196330
- 1847196330
- OCLC:
- 796383600
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.