EventHelix.com
wishes you a very happy new year
Recent updates to
EventHelix.com.
Object Oriented Design Tips II
We have already covered object oriented design tips in a previous
article. Here we will look at more tips that will help you improve your
object oriented design skills:
-
Class with just get-set methods points to missed delegation
-
Replace an array of structures with an array of objects
-
Delegate work to helper class
-
Multi-dimensional arrays point to incomplete class identification
-
Multiple nested loops point to incomplete delegation
-
Class with very large numbers of methods points to incomplete class
identification
-
Don't go overboard with inheritance
-
Prefer delegation to inheritance
-
Don't scatter the abstraction
-
Consider group of objects to split work amongst team members
Transmit Protocol Handler Pattern
Provide a common framework for transmit direction sliding window
protocol implementation. Different sliding window protocols have a lot
of similarity. This similarity can be captured in a common design
pattern for their implementation. Here we will focus on the transmit
side of the protocol.
Receive Protocol Handler Pattern
Provide a common framework for receive direction sliding window
protocol implementation. Different sliding window protocols have a lot
of similarity. This similarity can be captured in a common design
pattern for their implementation. Here we will focus on the receive side
of the protocol
Publish-Subscribe Design Patterns
While developing embedded system, one frequently encounters a
situation where many entities are interested in occurrence of a
particular event. This introduces a strong coupling between the
publisher and subscriber of this event change notification. Thus
whenever a new entity needs the information, code for the publisher of
the information also needs to be modified to accommodate the new
request.
Processor Bus Cycles
Embedded software developers working in fault tolerance of the system
work close to the underlying hardware. Thus a basic understanding of
hardware operation is useful in developing software that interfaces
directly with the hardware. In this article we will focus on some basic
processor bus cycles. Understanding of bus cycle operations is useful in
designing diagnostics and exception handlers
|