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
  • Post processing a sql string

    database question json
    3
    0 Votes
    3 Posts
    3 Views
    P
    No, and this is really the problem, the sql that we are passed could contain largely anything.
  • 0 Votes
    12 Posts
    7 Views
    A
    Haha....thats what I was thinking. :) I'm finding the only constant in software development is change it self.
  • 0 Votes
    3 Posts
    2 Views
    M
    Guess that question is answered. I thought caching would be somewhat more sophisticated ... well, it was early that day ... and the lack of coffee ... you know. :doh: From what I've seen so far, there are two major caching solutions for .NET; The ASP Cache and the Caching Application Block. What I need is a cache that is persistent over application restarts (basically the ASP cache isn't, but I think this could be easily implemented) and configurable during runtime - but I have seen no possibility to restrict the memory used on either one. Any idea how this is done or could be done? Or is there any other cache implementation that features this already? Thanks so far! -- modified at 11:42 Thursday 19th July, 2007 Regards, Markus
  • box or line ?

    graphics data-structures json question discussion
    3
    0 Votes
    3 Posts
    3 Views
    T
    hi brady sorry, i suppose that might have helped....doh! SplitContainer controls sound exactly like the thing I was after, I knew there'd be something rather than me bodging in some sort of tawdry effort that only kind of half works. thanks for the pointer tim
  • Business Object or Individual Parameters?

    csharp business question discussion
    4
    0 Votes
    4 Posts
    2 Views
    M
    Yeah. Thanks.. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • Design Issue

    help csharp database sql-server c++
    2
    0 Votes
    2 Posts
    3 Views
    P
    The answer that springs immediately to mind here is to use remoting for this. I would have a remotable object in the service which would provide the information you need. Then, your clients would simply use remoting to get this information from the service. Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.
  • Malloc & Page File

    performance question
    13
    0 Votes
    13 Posts
    9 Views
    E
    Yes I agree with you on the interprocess communication but sm was only a suggestion. Maybe the solution requires the existence of two separate processes for some reason, then shared memory maybe a good choice. I am not arguing it will be the best though :-)
  • True or False Flags: best practices

    question discussion
    5
    0 Votes
    5 Posts
    6 Views
    L
    Thanks for the input...good to know that I am not the only one who thinks that way about Boolean logic. :) [ Don't do today what can be done tomorrow ]
  • Obscenely amount of data

    question
    6
    0 Votes
    6 Posts
    8 Views
    L
    Hi, I would try to (partially) sort the data as it is generated, not afterwards. If applicable. For instance for words, keep 26 or 26^n collections. :) Luc Pattyn try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }
  • Data collection and mapping

    question database design help tutorial
    2
    0 Votes
    2 Posts
    4 Views
    P
    Well - for a start, you might want to try posting in only one forum. Go ahead, pick one. Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.
  • 0 Votes
    2 Posts
    3 Views
    C
    Why don't each of you just assemble your own custom solutions of the pieces you need and allow the build machine to do the same? This statement was never false.
  • 0 Votes
    2 Posts
    3 Views
    L
    Hi, I am not a Java specialist, but I assume its collections are quite similar to the ones in .NET (they would be identical if you were refering to J# instead of Java). In .NET a hashtable holds a lot of key,value pairs; it applies a lot of tricks to handle large collections very fast (that is given a key, find the value). It does not store things in alphabetical order. It does include all necessary logic to avoid collisions (thats different keys producing the same hash; trying to enter two key,value pairs with same key results in an exception). If you want to traverse a collection alphabetically, you must have an ordered collection, that either sorts by itself (as in SortedList) or that supports an explicit Sort operation (as in ArrayList, and List). So one often ends up having two parallel collections, say a Hashtable for fast key->value translation, and a SortedList for listing the keys alphabetically. Hope this helps. :) Luc Pattyn try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }
  • Your help is greatly appreciated

    database xml help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    18 Posts
    14 Views
    U
    Thanks for the interesting link. -^-^-^-^-^- no risk no funk
  • To MACRO or not to MACRO

    question c++ css com tools
    10
    0 Votes
    10 Posts
    9 Views
    M
    Actually just saying that MACROs are bad, is half knowledge. Many many platforms like MFC and ATL use MACROs extensively. The platform(Architecture) I work on is OS independent. In that case MACRO work as saviour. We can't use standard template because that would make code platform dependent so we have to USE MACRO to simulate templates. MACROs are an effective way to use the strength of preprocessor, if you use them correctly then they can really be useful. When some one says that avoid MACROs then the main intention is to avoid using it at the place of function. But the usage of MACROs are beyond that also where they would be indispensable.
  • Check if app exists and open from internet

    c++ windows-admin tutorial question
    7
    0 Votes
    7 Posts
    5 Views
    D
    I decided to create an ActiveX commponent which will find the application by PID. If it doesn find the PID, the app is not running, if yes Ill do ::SendMessage to the window of the app
  • What does it require to be an Architect ?

    architecture question career
    5
    0 Votes
    5 Posts
    2 Views
    P
    This might help http://msdn2.microsoft.com/en-gb/architecture/default.aspx[^]. Wiki[^] might also help here. Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.
  • What is the best possible Design Pattern

    question database design sysadmin regex
    3
    0 Votes
    3 Posts
    3 Views
    J
    Thanks I appreciate your input
  • virtual functions

    question design regex architecture announcement
    4
    0 Votes
    4 Posts
    4 Views
    P
    If you read the OP, you will see that he asks: "What is the intent of calling a virtual function in thebase class from the its overwridden version in derived class?" The implementation that I show answers this question - granted I don't go into the practicalities of design and polymorphism, but I am only interested here in showing why you call the base method. Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.