I want to design a Visual studio type property window where user can modify the properties of the controls. When the user selects the particular control in the UI, all the editable properties should be visible in the property window. The user control should have control on what properties it want to expose for property window. The user c...
I'm basing this question on Fowler PoEAA. Given your familiarity with this text, aren't the ViewModels used in ASP.NET MVC the same as DTOs? Why or why not? Thank you.
...
I've been reading this paper: Enforcing Strict Model-View Separation in Template Engines (PDF).
It contends that you only need four constructs within the views:
attribute reference
conditional template inclusion based upon presence/absence of an attribute
recursive template references
template application to a multi-valued attribute s...
I'm still somewhat confused by how MVC is supposed to work.
Lets say I have a website selling widgets. I have a listing page, /widgets/list and a product page /widgets/product/123.
Both of these can use the widget controller and call the list and product methods - simple enough so far. Lets say I also have several other controllers f...
I find myself breaking this pattern all the time.
YAGNI - You Ain't Gonna Need It
I am only a Junior Developer, but I find even Senior level developers doing the same thing.
"Well, this system might use it, and this one, so let's design for it."
Sometimes, I catch myself, but most times I run wild. Does anyone have any t...
Over the past few years I've been on projects where we've run into a similar problem in our object hierarchy that always seems to cause problems. I was curious if anyone here knew of a classical OOP (Java, C#, PHP5, etc) design pattern that could gracefully handle this situation.
Say we have an existing system. This system has, among ...
Hello,
Is Asp.Net Ajax only used at presentation ( UI ) layer, or also at Business Logic layer?
EDIT - to be more precise, is AJAX API also used at BLL layer?
thanx
...
If I need two modes in my application what design pattern would I use so I can prevent ugly conditional code? App is currently MVC, but I don't want conditional code in my controllers and don't want two controllers for each view unless I have to.
Any suggestions?
...
After reading a series of blogs (here and here) by Chris Missal from LosTechies.com on the Specification Pattern I am am really interested in finding more complete examples. Does anyone know where I could find a more fleshed out example or perhaps an open source project that uses this pattern?
...
using classic asp, over the years we have developed a framework to handle some fairly complex web crud pages.
the crud class is designed as some kind of "finite-state machine"
the state is preserved between posts using hidden fields, and every event on the pages raises a post with a certain action. according to the action triggered, an...
What are the main patterns and/or attributes that make an application RESTful?
...
"An architectural pattern expresses a fundamental structural organization schema for a software system".
There are software systems that can be described as finite-state machines (specially many real-time systems and embedded systems), if we consider the previous description given in the first paragraph for an "architectural pattern", ...
Hi
I've been asked to extend a simple legacy application by adding a few tables and classes in it to extend functionality.
This is a .Net 1.1 application which I have now successfully upgraded to .Net 3.5
Now my problem is that for these new tables and classes I wanted to add an ORM and a business logic layer that I can in the future...
Where can i find resources that describes the strategies and patterns of design of social networks object models? For examples, how to implement relationships between users, how to implement the stream of notifications of user actions, how to filter that stream for each user, etc...?
...
Putting aside, for now, the arguments about the relative virtues and disvirtues of the Singleton pattern, and considering that a Singleton is typically considered to be an instance that persists for the lifetime of an application, what would be the best way to go about having a Singleton that has a limited life?
Is there anything amiss ...
Hi!
i have always wondered how to handle Files in applications. Say we have an Object containing several data about a File like a UUID and the reference to the file on disk.
Even if this Object is immutable, there might be side effects like the file will be deleted by a part of the application but the other do not know about it, render...
What design patterns or techniques have you used that are specifically geared toward scalability?
Patterns such as the Flyweight pattern seem to me to be a specialized version of the Factory Pattern, to promote high scalability or when working within memory or storage constraints.
What others have you used? (Denormalization of Datab...
Hi!
What's the difference between a repository and a service? I don't seem to grasp it.
I'm talking about data access through a data access layer, typically with linq to sql.
Very often i see repositories with simple CRUD methods, and services with more business-specific methods.
We can take this blog post as an example. If you look ...
I have recently taken over a legacy windows service and it has been writing the following event in the system event log:
Event ID: 7034 Description: The
MyService service terminated
unexpectedly. It has done this X
time(s).
I was looking over source code and found the following code pattern in the service class library:
(It ...
Which design pattern should I use for a very simple Object-oriented todo list?
Initially I started off with classes for Task, TaskList, Driver. Also a simple UI displaying a list of the Task titles. I was struggling to have the UI update the list when new tasks were added, and in trying to solve this I realised my whole layout was proba...