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
  • charecter input system function

    help
    2
    0 Votes
    2 Posts
    8 Views
    D
    So, how many times are you going to spam the forums with this question without explaining what you're talking about? A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007
  • charecter in putting method

    help
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Looking for graphical ideas that convey meaning...

    algorithms help
    2
    0 Votes
    2 Posts
    9 Views
    R
    Just one though... How abut two guys (each at the opposite side of the dialog box) searching through a bin of cables. The bins have a cable strung between them. When each finds the proper end of the cable they give it a tug and we can see that they are connected together. Just a thought... My Blog[^] FFRF[^]
  • Any Ideas?

    regex question architecture
    9
    0 Votes
    9 Posts
    21 Views
    M
    Willliam Doman wrote: The question is geared more twords managing the creation of keys and doors so they fit together and can be tested dynamically. I'm sure at some point they will want one key to open several doors Perhaps a kind of 'routing tables' concept would work. Basically the distribution of data is not decided by the type of data... but instead by a runtime configuration for destinations. An example: one destination could stand for a collection of views (multicast) while another just for one single view (unicast). This might offer a level of indirection with better control over data flow.
  • Plugin inheritance architecture

    help question discussion csharp winforms
    6
    0 Votes
    6 Posts
    15 Views
    M
    NamelessParanoia wrote: main issue that I'm trying to store a list of EmailProcessors that would all have different types. I think the solution could be using polymorphism in your design. I understand from your description that your serialiser needs to get the appropriate data from each EmailProcessor (each processor could be internally handle a different type). In C++ language I would suggest to derive EmailProcessor from an interface that has a pure virtual method such as virtual void GetEmailData(buffer) = 0, in different EmailProcessors you would specialise this method differently. Now, the serialiser can collect data from any EmailProcessor in (step one), then convert the collected data into a valid XML tree (step two). Hope it helps, Mark
  • Design question for fast applications

    csharp question c++ visual-studio design
    4
    0 Votes
    4 Posts
    10 Views
    L
    hansipet wrote: It is impossible to make dlls, which have parts in c++ und .net. (problems exporting the classes and so on...). I don't know what that means but I have not had a problem creating the following: (1) C++/CLI DLL (mixed mode) that exports native C++ classes that are consumed by a native C++ application. Exported native classes use managed code to perform some work and then marshal results back to native memory consumed at the native application layer. (2) C++/CLI (mixed mode) assembly that publishes public managed classes that are consumed by .NET managed applications. Managed classes that use mixed mode to perform operations by using Native C++ classes and marshal the native results to managed memory for return to the managed application layer. If you are trying to do anything else I would need an explanation to understand what that is. led mike
  • icons for navigation and buttons

    design question
    5
    0 Votes
    5 Posts
    13 Views
    H
    You're welcome.;) WhiteSky
  • Using Exceptions and Ensuring Invariants

    question discussion announcement
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Help Software Business System Analysis

    database design sysadmin security business
    3
    0 Votes
    3 Posts
    7 Views
    P
    Well said. Deja View - the feeling that you've seen this post before.
  • 0 Votes
    2 Posts
    7 Views
    D
    CP is dedicated to devlopment on the Windows platforms, using Microsoft Visual Studio Tools. Perhaps if you asked this on a Linux centric site[^], you'd actually get an answer. A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007
  • 'Factory' pattern?

    java regex question learning
    5
    0 Votes
    5 Posts
    11 Views
    S
    Yes you can create a class which can provide you the desired objects. such class can be a Factory. Stack *pStack = CFactory::GetStack(n); where n -> type of stack. Sameer();
  • PlugIns - Preventing Malicious Code...

    game-dev tutorial question announcement
    2
    0 Votes
    2 Posts
    7 Views
    M
    shyagam wrote: What if someone, instead of implementing a game, inherits GameEngine and puts down malicious code A plugin system is per design an "open system", what means malicious code here? First of all, the game user needs to download and install a plugin, so I would say if someone uses code from an unknown source he/she is generally responsible for caused damage! In case you just want to protect users from e.g. downloading broken plugins then have a checksum with each DLL that your downloader checks (i.e. SHA1 checksum does no match with DLL then delete it). Perhaps you can offer quality control to plugin developers and give a "verified" rating to decent plugins... or list good plugins on your webpage (e.g. see IrfanView)? If your question is about limiting plugins from sources other than yourself: You could sign each DLL cryptographically or have an initial handshake with a "license" that enables certain functionality... but at the end of the day this can be technically circumvented since the algorithm/key is somewhere inside the plugin or the application. When I follow the PS/Wii/Xbox modding scene I think vendor locking attempts are quite futile... Hope it helps.
  • Designing a ledger system

    announcement
    4
    0 Votes
    4 Posts
    8 Views
    R
    thank u so much for ur reply, I really appreciate this, I c that u have designed many accounting systems successfully with this design. well I have already done a lot of work on the design and I thought I should tell u abt my design as well. I have designed the a journal table so that the daily transactions should be recorded in that and these transactions are posted automatically to the ledger table where the balance is calculated automaticaly even in teh case of an insert, Delete or update opration. There was another requirement that automatic posting should be made to the journal while making a new bill, which offcourse will go to the ledgers as well. So far I havent seen any sub categories of accounts in my organizations case. when the balance field shows a positive amount, it means that its a credit balance and otherwise its a debit balance. So how does it look :) hope to hear ur comments on that, thank u for ur time. Rocky
  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • Business Object Structure

    business learning
    7
    0 Votes
    7 Posts
    20 Views
    T
    I suppose what drives me nuts is when i forget enforcing on the front end, that gets dumped to an BO, and then on inserting into the DB, the data is out of range and the app falls over. Makes it a mission to figure out where it went wrong, which would be when the value was set. They use a truncation method where i am atm, which drives me up the wall because there's NO length checking anywhere. >< ------------------------------- Carrier Bags - 21st Century Tumbleweed.
  • 0 Votes
    3 Posts
    11 Views
    T
    led mike wrote: Umm ... Get over it. Thanks :P Fair comment tho. My issue is that there are so many ways to use databases, i never know in what way to use them for any given solution. I guess it comes with experience. T ------------------------------- Carrier Bags - 21st Century Tumbleweed.
  • 0 Votes
    3 Posts
    8 Views
    L
    Browser development is a combination of a garbage dump and a mine field. With that said it is possible to do but at what cost? Depending on the application it could involve additional complexity in exponential proportion yet never quite achieving the possible user experience quality of a desktop application. If you know anything about the history of browser development this problem is self evident. The first silver bullet was Java. Oh the dreams of rich user interfaces in Java embedded as object tags in HTML. Well we all know what happened with that. Today we have massive amounts of javascript code where the structure of most of it makes the worst C code I have ever seen look about as complex as a rubber duck. And still in most cases it is buggy at best and from a user experience perspective, I just look for the X button and never, NEVER return to that site. If you decide to go down this route be prepared to read the never ending literature on all the silver bullet solutions available while attempting to find those that will fill all your needs. So for me the bottom line is this. If you want to deliver a low quality user experience and a high budget project go for it, but don't bother asking me to work on it. :) led mike
  • database dependencies

    question database
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Inherit without exposing?

    csharp oop question
    9
    0 Votes
    9 Posts
    25 Views
    L
    Sorry I have no idea what your point is. The capabilities of a specific language don't alter the principles of Object Oriented Analysis and Design. led mike
  • library managment object model

    design csharp data-structures help tutorial
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied