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
  • Refactor static methods for loose coupling.

    sysadmin regex oop tutorial question
    6
    0 Votes
    6 Posts
    0 Views
    J
    public static class FactorySource { // There are all sorts of ways to implement this class public static IMyClassFactory Factory { get; set; } static FactorySource() { Factory = new MyClassFactory(); } } ... public void MyMethod() { IMyClassFactory myClassFactory = FactorySource.Factory; ...
  • Online Learning Industry

    learning ios help
    4
    0 Votes
    4 Posts
    0 Views
    R
    I teach at TAFE is Australia. One of the reasons there is little iOS offerings is because up until recently, there was little demand so most labs are setup to run Microsoft/Linux. I'm sure this will change, we are already aware of the demand. Also I question the value of online except for the purpose of getting the qualification. If its not the piece of paper you are after, there are plenty of free online resources. Class room environments are best because teachers can normally tell who's comfortable and who's struggling immediately. Online teaching makes this a lot harder to identify. Also more experienced/talented students can be pushed harder and get a deeper understanding of the subject matter. "You get that on the big jobs."
  • Cross platform team structure

    c++ html sharepoint android ios
    6
    0 Votes
    6 Posts
    8 Views
    J
    Richard Brett wrote: but how should I handle the "mainlogic" ? 1. Analyze the existing code 2. Define a limited subset of C++ that allows you implement the existing code. This involves restricting features that currently exist in C++ (such as very limited template use.) 3. If necessary re-write the logic to match the subset of 2. 4. Create translators for the other target languages. Basically cross compilers that translate from 2 to other languages. 5. Add 4 into your build process for the main logic to insure that non-supported features do not creep in. 2/4 can be complex or simple depending on what the code does and what the target languages are.
  • Data dictionary SQLServer versions

    question tools xml
    18
    0 Votes
    18 Posts
    0 Views
    O
    Thanks, your extra vote no.2 for this approach. Regards ... OttO
  • A project of compiler

    css question
    2
    0 Votes
    2 Posts
    0 Views
    R
    You might be better to post this in the Collaboration / Beta Testing forum. "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
  • WPF and sqlserver 2008 express

    csharp wpf
    4
    0 Votes
    4 Posts
    0 Views
    A
    Your question is not clear. Maybe you should check on msdn.
  • 0 Votes
    8 Posts
    0 Views
    P
    Very good point, and you are correct. I've programmed POS systems for years. We used what we called an "alias" table for this. Ideally, you will store a system generated unique ID for your product in an items or products table. Then you will supply both a module and an import function to maintain your alias table for storing keyed values associated with your products. ie: CREATE TABLE ALIASES( ID INTEGER IDENTITY(1,1) NOT NULL, ALIAS NVARCHAR(50) NOT NULL, XREF_ID INTEGER NOT NULL, ALIAS_TYPE INTEGER NOT NULL, DESCRIPTION NVARCHAR(100)) Note I used "XREF_ID" rather than a PRODUCT_ID. Keep in mind this table can be used for more than products. For instance, you may want to store aliases for customers, or vendors, or any other things people will look up stuff with. This is where the ALIAS_TYPE comes into play. These types can be maintained by a maintenance module associated with an ALIAS_TYPES table. This allows for dynamic growth of the system and modularization of your cross references. I used an IDENTITY field for simplicity. But as Roger noted, it is probably better to use a GUID or some other form of unique value (i.e. STORE_NO + '-' + IDENTITY). Getting back to the "Barcode" topic... you can store your Barcodes / UPC Codes / Model IDs / whatever in this ALIASES table and give them an appropriate type for searching on.
  • 0 Votes
    5 Posts
    0 Views
    J
    If I understand that correctly then the incorrect implementation of the design means that you are not going to be able to implement the new Change Request (CR.) Normally you must build that correction in to the estimate for the CR. It is up to who ever pays if they want the main feature or not. However your company might have a mitigation policy however that allows another CR to be put into place via some 'good service' policy (whether an explicit or implicit policy.) If that exists then you must put that CR into place and expedite it so it doesn't impact the other CR. Even if the primary CR is not accepted the correction can proceed since it impacts the expected functionality, even if not the actual functionality.
  • How to make sure records were not temper changed

    security sales tutorial question
    11
    0 Votes
    11 Posts
    0 Views
    K
    Quote: With the salt in another location, I would now. :thumbsup:
  • Making multiple teams coexist

    help csharp javascript asp-net sharepoint
    6
    0 Votes
    6 Posts
    0 Views
    K
    On my organization, we're doing the same thing as you do: Develop a product (core), and at the same time provide customization (integration). First of all, we have several environments per each customer. Development, Test, and Production. Development environment is for developers, Test for testers and Production for customers. Easy enough! Plus when we do a deployment in either Test or Prod, we first get the core, and then overlay the changes. And that overlay-ed source is installed in the environment. So the changes doesn't get lost. We need the Test environment between Dev and Prod because Dev is frequently changing, and not stable enough for testing, and we can't do whatever-we-want in the Prod environment. For our customization's (integration for you), we have a set of Dev/Test environments per customization project. No matter how many APIs you develop, your problems will remain there until your two teams develop in the same environment.
  • 0 Votes
    8 Posts
    0 Views
    R
    Why not have a custom control that wil talk to database and render itself accordingly. this can be used on both the forms.
  • Object Oriented Design Principles - MAY BE DELETED

    com design oop architecture
    8
    0 Votes
    8 Posts
    0 Views
    A
    Pete O'Hanlon wrote: Let me correct that one vote. Thank you.
  • Architecture for mobile app

    android ios mobile design architecture
    2
    0 Votes
    2 Posts
    0 Views
    R
    I haven't done any push notification work but that maybe a better way to go. "You get that on the big jobs."
  • 0 Votes
    17 Posts
    0 Views
    _
    GateKeeper22 wrote: He says it is easy to code generate and we may use it in the future so why not just do it. The notion that just because some code gets generated automatically it therefore has zero cost (or even low cost) is a fallacy. "We may use it in the future" is not a very strong justification for anything. Lots of things may happen.
  • Tabs/Property Page etiquette

    design help question learning
    4
    0 Votes
    4 Posts
    0 Views
    L
    john john mackey wrote: Yes, the MS site had some good suggestions. Thank you. My pleasure :) ..and yes, there are some good arguments in there. Bastard Programmer from Hell :suss:
  • 0 Votes
    12 Posts
    0 Views
    B
    Ah, Luc, I see you and I are using the term "orthogonal" in very different ways: to me "orthogonal" means some encapsulating context in which some group of objects, or functionality, are: 1. integrally related 2. enveloped/contained/framed by a consistent "user-interface" for each integrally related "component." Would you say that a "garbage can" is orthogonal because you can stuff anything in it that will fit it in it ? :) Yes, that's an extreme "reductio ad absurdum:" but, to me, the Windows Control Panel, is just a container for a whole bunch of stuff, almost every one of which has a totally different UI, some of the Control Panel Items when opened then lead to even further radically different UI's. If there's one thing that has characterized Windows from early version right up to 7, it's lack of orthogonality: inconsistency in which some parts of the UI save their configurations, and others don't. For example: the order in which Date/Size/FileType/FileName are presented in Explorer Windows which may change based on no principle I can discover with the rational mind: or the sudden decision if you open a folder with .MP3 files, or photo files, to present all kinds of possibly not desired Explorer view columns. Bizarre UI inconsistencies like having a slider control in the View menu to switch between Icon/Detail views. Multiple UI pathways to configure different areas like Display characteristics. It's been much too long since I had a Mac to compare with, on these criteria, however. But, what can you expect from the evolution of dinosaurs ? :) Looking back, I wish Apple had acquired Be, not NeXT, but then there would have been no Steve Jobs to restore the company by making it into a mass-media-player and mobile-phone colossus. best, Bill "It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle
  • 0 Votes
    8 Posts
    0 Views
    D
    Luc Pattyn wrote: AntiVirus software manufacturers tend to update their data a couple of times a week daily. FTFY :) Dave Find Me On: Web|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject
  • Which architecture for a data-extractor

    database question sales architecture
    3
    0 Votes
    3 Posts
    0 Views
    A
    Not sure you are still looking for an answer. You can do something like a Key and value(payload),ie sql will be for just fetching the value for the given key. Here the value will be a payload(a XML string). You will have template for the xml format. whenever you want to add something you just add it the template. while writing to file you first fetch the payload, then parse the XML, put the parsed values to a file, in what format you want.
  • Inheritance - what's your take on this?

    c++ algorithms oop question
    10
    0 Votes
    10 Posts
    0 Views
    L
    sexy girl,video for adult , more than 30 videos.http://sharecash.org/download.php?file=2531204
  • How to develop real time alert system

    database java php design sysadmin
    6
    0 Votes
    6 Posts
    0 Views
    L
    :) sexy girl,video for adult , more than 30 videos,just for make money from sharecash.org while you download the files.http://sharecash.org/download.php?file=2531204