Skip to content

Design and Architecture

Discussions on Design, Patterns and Architecture

This category can be followed from the open social web via the handle design-and-architecture@forum.codeproject.com

5.3k Topics 10.4k Posts
  • When we will stop programming?!

    com business json question
    23
    0 Votes
    23 Posts
    0 Views
    L
    It's seems you are dreaming a day when most of programer go jobless, there might be artificial intelligence in place, but remember nothing can replace humans.....
  • What language is this?

    linux question html tools help
    6
    0 Votes
    6 Posts
    0 Views
    L
    That's a batch file command, you can run at once and all will get executed
  • Student needs help designing a OOP program

    learning oop help tutorial question
    6
    0 Votes
    6 Posts
    0 Views
    L
    Try googling you will get sample projects on library management system, see how far it meets requirement and then enhance it, Since you are student there is nothing much you can do about it
  • Scope For Hospital Management

    help csharp database com business
    13
    0 Votes
    13 Posts
    0 Views
    L
    I hope this is not a college project, you want to build sophesticated application for an industry, you won't get it here, Think of purchasing some old project which already built and you can enhance it or do business requirement from your end for the same, it helps in all aspects. In this you get what exactly you are looking at....
  • WPF App Design Thoughts

    question csharp wpf com design
    19
    0 Votes
    19 Posts
    0 Views
    L
    I insist you to look on my article, Building High Performance WPF/E Enterprise Class Application in C# 4.5[^] This will have greater help in understand what are all different layers, what need to considered for better performance, low memory oriented applications
  • Cross cutting concerns

    design regex oop question discussion
    6
    0 Votes
    6 Posts
    1 Views
    K
    Interesting topic. I agree with jschell. It is really hard to get the right data logged out from compiled software. It really requires a multidimensional matrix e.g. class x instance id x methods or something like that. Since, you will never get coders to insert handles in each and every method, the only viable solutions I can see are 1) a set of base classes with carefully placed handles, 2) AOP or 3) code generation. I think some OOP Patterns like Command, Stategy and State tries to structure computation in a uniform manner, so base classes supporting these patterns might be the place to add handles into. At work we make code generated Command implementations. If we have the logging level set to debug, we get a log entry when a command completes/aborts. In most cases this is information overload, so we instead raise the the General logging level to Info and add some logging exceptions per class. However, this is currently requiring a recompile.... Pattern-wise this should be possible to generalize e.g. into a LoggingManager with a configuration that can be changed at runtime. Log4Net can monitor when its config file is changed at runtime. Maybe it also can filter logging based on classes, but I don't think there is a concept filtering per entity id or method tags.
  • Thin Client Compiler ?

    help question workspace sysadmin algorithms
    12
    0 Votes
    12 Posts
    0 Views
    L
    W∴ Balboos wrote: give them full admin privilege on their area, That sounds ideal :cool: Bastard Programmer from Hell :suss:
  • color mixing riddle

    help tutorial question
    10
    0 Votes
    10 Posts
    0 Views
    P
    At that point, the problem is half-solved. Next step would be to find how to get there... One way, would be to mix Y and Z (and any resulting color) until you get the proper ratio by using the best 2 candidate colors that consist of Y and Z or their mix. Once you have done that, you repeat same process with that mix and X. The ratio for Y and Z alone would be 0.55 and 0.45. 1) 0.9Y + 0.1Z --> Mix 1 2) 0.9 M1 + 0.1Z --> Mix 2 --> 0.81Y + 0.19Z 3) 0.9 M2 + 0.1Z --> Mix 3 --> 0.72Y + 0.28Z ... 6) --> 0.53Y + 0.47Z At that point, you would take 0.9 of that and 0.1 of Mix 3... and you get 0.549 of Y. If you need more precision, you can do more mix... Philippe Mori
  • probleme schema object rational rose

    database help sales xml tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Application Security

    csharp dotnet wpf security help
    3
    0 Votes
    3 Posts
    0 Views
    L
    Countered. Not sure why you were given a 2 there. Asked a simple question and gave a simple answer and even your reasoning. Furthermore there is nothing wrong with AD IMO. Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
  • General App Design Questions

    design csharp database wpf com
    3
    0 Votes
    3 Posts
    0 Views
    J
    Kevin Marois wrote: Would you have your entity objects maintain references to other entities, or just the PK? Depends on the nature of the objects and how they are used in the rest of the code. Kevin Marois wrote: The problem is that now you have a heavy object when you may not always need the child objects. Yes that is the problem. First however it must in fact be 'heavy' in terms of the production system. So 10 rows isn't 'heavy' but one million certainly is. And if a sub entity represents 100 meg of data then even 10 of them is too many. But for the one million case it would always need to do a deferred look up. For larger ranges with more moderately sized (much smaller sub entities) it depends on actual data and how it will be used. Kevin Marois wrote: When you create an instance of the ProjectEntity, would you create a ClientEntity and store it on the ProjectEntity instance? If so, do you then go up the logical tree and create a CompanyEntity to store on the ClientEntity which is stored on the ProjectEntity? That question doesn't make much sense to me. A 'company' seems likes an owner. You can't create an owned object until you create the owner. And you shouldn't even allow for that possibility. Thus in the GUI the user must select a 'company' before doing anything with a owned object. Kevin Marois wrote: How do you handle nulls, both in the DB and in the app I handle them as nulls. Presumably for the "app" you mean in the data object. If you mean system wide then the question is wrong because they way a business object deals with nulls is different than how the GUI deals with them.
  • WCF service based application design

    csharp database wcf com design
    2
    0 Votes
    2 Posts
    0 Views
    E
    Look at Castle. It provides an excellent container, WcfFacility and ActiveRecord. http://docs.castleproject.org/[^] ed ~"Watch your thoughts; they become your words. Watch your words they become your actions. Watch your actions; they become your habits. Watch your habits; they become your character. Watch your character; it becomes your destiny." -Frank Outlaw.
  • Encoding and decoding a text file

    sysadmin
    10
    0 Votes
    10 Posts
    0 Views
    A
    wizardzz wrote: No, don't tell me it's an invisible friend. Does this friend talk to you and tell you to do bad things to other people? :~
  • [algo] Algo for naming of duplicate/clone "objects" ?

    design algorithms question
    5
    0 Votes
    5 Posts
    0 Views
    M
    Yeah, that's what I tought. Thanks. Watched code never compiles.
  • Handling errors - What is a good balance?

    question performance help
    5
    0 Votes
    5 Posts
    0 Views
    R
    Here are some good links: http://msdn.microsoft.com/en-us/library/seyhszts.aspx (The next is got a lot of good points, but I don't agree with them being end-all be-all) [^] http://www.c-sharpcorner.com/UploadFile/akrao/ExceptionManagement11142005020738AM/ExceptionManagement.aspx[^] Search on google for "Exception Handling Best Practices"
  • 0 Votes
    10 Posts
    0 Views
    H
    Hi Bernhard, thanks a lot for sharing your experiences., it was very helpful. Good you mentioned the threadding issue, that completely fell under the table :) In my application the language is set when logging in by selecting the required language. The language is then stored as readonly in a static class, pretty much the same as using a config file. I also haven't heared about the translation offices you have mentioned. While I am pretty sure our management will use internal resources for translating this is still a good thing to know :) Thanks a lot and have a great day, Viele Grüße aus München Andy
  • 0 Votes
    5 Posts
    0 Views
    R
    If it's SaaS the web is really your only option. To compete with others in the mobile device environment and provide a SaaS, you'll need to be providing something unique. The mobile market is competitive and users typically have short attention spans. Unless its a service users can't get elsewhere, it has to offer a platform-specific UX to succeed. Regarding mobile development, from my experience if you focus on one mobile platform and develop the app to its potential. Writing for the second platform is a lot cheaper because, to a larger extent, the problem domain has been resolved. "You get that on the big jobs."
  • Simple composition - Your thoughts?

    question tutorial discussion
    17
    0 Votes
    17 Posts
    0 Views
    E
    Hmm as I understand, the design decision completely relies on the exact requirement. More thinking is required to realize what is the system about. The more we are precise with the actual system, the better and sensible design we could make. Thanks for the inputs Marc. All learning for me :) Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
  • how to design base class?

    design tutorial question
    7
    0 Votes
    7 Posts
    0 Views
    B
    If you can't ask a common question, how can you interact with the base class? Answer: you can't. If you want something to move, no further questions asked, provide a move() method (possibly abstract/pure virtual) and override it to do the actual movement in subclasses. If you need to know the type of something before asking it the question, then you're probably asking the wrong question.
  • Database Modeling - Conditional Relationships

    database sales help question c++
    5
    0 Votes
    5 Posts
    1 Views
    J
    Leslie Sanford wrote: (they have sufficiently different characteristics How are thos charactistics used? In the right situation you can use a meta-data solution to represent the additional attributes.