Map
Index
Random
Help
th

QuoteRef: cwalK_2006




Topic:
programming style
Topic:
object-oriented classes
Topic:
interface type
Topic:
separate a module's interface specification from its implementation
Topic:
attribute-value pairs as information
Topic:
object-oriented fields
Topic:
events
Topic:
object-oriented methods
Topic:
problems with type inheritance
Group:
testing
Topic:
exception handling by try..catch
Topic:
exception handling by unique value
Topic:
failure returning functions and expressions
Topic:
debugger
Topic:
data type as constructors, selectors, and predicates
Topic:
spaces in text

Reference

Cwalina, K., Abrams, B., Framework Design Guidelines: Conventions, Idioms, and patterns for reusable .NET libraries, Upper Saddle River, New Jersey, USA, Addison-Wesley, 2006, SBN 0321246756. Google

Quotations
81 ;;Quote: class-based APIs are easier to modify than interface-based APIs; can add members to classes as needed
81 ;;Quote: use abstract classes to decouple contract from implementation; use interfaces to define invariant contracts
120 ;;Quote: use properties for simple access to simple data with a simple computation
138 ;;Quote: every event has two arguments, a sender object and eventArgs; provides scope to the sender and arguments of the event as a versioned class
169 ;;Quote: be careful of making members virtual; they cause subtle and complex observable behaviors and subclass interactions
172 ;;Quote: provide reference tests for abstractions; confirm that users implement the contract
179 ;;Quote: exceptions promote API consistency; designed for failure reporting and nothing else; while return values have many uses, e.g., Win32 API
179 ;;Quote: object-oriented frameworks can not standardize on return-value-based error reporting
180 ;;Quote: if using return values, error handling code must be near the code that could fail
180 ;;Quote: error codes are often ignored; exceptions are impossible to ignore, improving robustness
182 ;;Quote: exceptions carry rich information describing the cause of the failure
183 ;;Quote: exceptions promote instrumentation; for example, debuggers can break when an exception is thrown
204 ;;Quote: the try-parse pattern reports failure instead of an exception; avoids performance problem for a common scenario
242 ;;Quote: allow default constructor plus property setters in place of a parameterized constructor
275 ;;Quote: avoid unnecessary spaces
278 ;;Quote: order class members by field, constructors, properties, methods, events, implementation, private members, and nested types

Related Topics up

Topic: programming style (47 items)
Topic: object-oriented classes (67 items)
Topic: interface type (50 items)
Topic: separate a module's interface specification from its implementation (86 items)
Topic: attribute-value pairs as information (57 items)
Topic: object-oriented fields (28 items)
Topic: events (44 items)
Topic: object-oriented methods (42 items)
Topic: problems with type inheritance (20 items)
Group: testing   (18 topics, 557 quotes)
Topic: exception handling by try..catch (53 items)
Topic: exception handling by unique value (8 items)
Topic: failure returning functions and expressions (24 items)
Topic: debugger (37 items)
Topic: data type as constructors, selectors, and predicates (20 items)
Topic: spaces in text (6 items)

Collected barberCB 9/07
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.