Hi guys,
Maybe someone can help me. Hopefully this post is clear. I know everyone is busy with their own work. Thanks in advance a thousand times.
MY OBJECTIVE:
I want to skew an image in a quadrilateral perspective. To get an example of what the image shape is supposed to be like after...
How about, draw what comes to your mind. Use rectangles as things. Try to represent your thoughts visually by letting the "things" in the problem space talk to each other via cariations on connecting line shapes.
This natural way of putting the problem in front of you is the basis of UML. Once...
Hi SharkTooth,
heres my take on it. It seems like your Customer suffers from anemia, lackING any true behavior that defines what customers are. Also, you have added to the uncohesiveness by bundling behavior, such as dataloading routines AND validation into the customer.
According to Eric...
yeah, the above is a simple example. Query languages can get pretty complicated:
IQuery = new Select(
new And(
new Constraint("Age",25), new Constraint("Name","Joe")
)
)
Here's an alternative idea. Just my 2 cents, maybe thats all it's worth. Mine is more of a fine-grain approach, over which may be wrapped by a coarse-grained api, like strategies/facades..
What you're essentially trying to do is query data based on filters. Why not create a mini query language...
Hey,
how many countries are u dealing with and how different are the algorithms for calculation?
Can any 2 countries share the same algorithm? if so, encapsulate each algorithm into its own class. Use a generic TaxCalculator that makes use of a different strategy for calculating.
Example...
In some parts of the carribbean islands where there are abundance of lakes, streams and rivers. Many local natives devised a way to fish using bamboo, nylon and a hook.
Give an experienced engineer a notepad and a compiler, and the output will be of greater quality than a junior developer...
The physical structure of an exception object is specific to the language/runtime used"
Why is that? Isn't an exception just another object? Why is it specific to a runtime? Maybe I am missing the point.
Also, if you don't throw exceptions across layer boundries, how else do you bubble up an...
Jon,
you're talknig like a technology expert. State your problem. What are you reallying trying to accomplish in english?
Edward J. Smith
"There are 2 types of people in the world... those who understand binary and those who don't want to.
And since I don't like to throw exceptions across layer boundaries (since different layers could be written in different languages), I usually go back to returning a data structure"
can you elaborate on your feelings about throwing exceptions across boundries? Aside from languages differences...
Polu,
great explanation on the concept of layering. I got that pretty much etched into my principals.
As for validation, this is a topic not frequently spoken of when related to a 4-tier architecture.
So youre saying that data/input validation should occur at the App level. I agree. That means...
How do you guys handle UI Validation from a broader sense? I have posted about this in "Constraining input data" but needed to post on a more conceptual level.
IMHO, there are 2 kinds of validation that occur in a system,
1. Syntax Validation
2. Business Rules Validation
Syntax rules occur...
Has anyone read
"Pattern-Oriented Software Architecture: Patterns for Concurrent and Networked Objects"
http://www.cs.wustl.edu/~schmidt/POSA/
??
If so how is that book? Would you recommend it?
EJS
Repository == a collection of something
example,
Cars.FindCarByColor(Color.Black);
Cars is the collection, it is the repository. Repository shields the Domain from the ugly database. Your domain model starts to strengthen naturally because storing items in collections is how the OO world...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.