Alexander writes, “Each pattern is a three part rule, which expresses a relation between a certain context, a problem and a solution”. Understanding the context with structural and dynamic properties is essential to design the patterns. A pattern is a mental concept which emerges out from our contextual understanding and experience. The understanding should be sufficient enough to formalize… Continue reading Patterns in Software Development
Token provider system is the simpler version of token based system, where tokens are provided to the customers to provide the service on the first come first serve basis. The system modeled here works by providing the next token number for every new customer who walks in. The token number starts from 1 and moves up until 1000. On… Continue reading Token Provider System – Tabuada’s Way
The Problem The dining philosopher’s problem is a problem frequently used in concurrent algorithm design to demonstrate the synchronization issues and methods for resolving them. It was originally formulated in 1965 by Edsger Dijkstra  and later, Tony Hoare gave the problem its present formulation . There is a dining room containing a circular table with five chairs. At each… Continue reading Dining Philosopher’s Problem
Paulo Tabuada uses 6 tuples to represent a system. A hybrid system to be more specific. Here is how the six tuples are identified and defined: Let us take a very simple example to have a better understanding of the notions. Consider a Latch.
Essential components of any kind of software system includes an input, processing and an output. Engineering confirms a quality system when the system is well understood through requirements and represented with an appropriate design. A design captures the information of the system by building an architecture diagram. Though there is no one standard definition of software architecture(SA), most of… Continue reading Software Architectures -A Quick Peek
Following are the things to keep in mind while operating on structures: Comparison 1. Two structure variables cannot be compared. Whether they are of same type of dissimilar, they can’t be. 2. Members of two structure variables of same type can be compared using relational operators. Copying 2 structure variables 1. One structure variable can… Continue reading Operations on Structures
Adjacent colors are obtained by rotating 30 and 360 degrees of any given color from the color wheel. Below is the Python code to achieve the same. The input supplied is Hex value of color and output is the list of two adjacent colors (Hex value).