|
How are DAOs usually designed for the typical business application ? Does one class or pattern dialogue with the data source or do you simply have a separate DAO for each Entity ?
Started by James P. on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Most projects out there are using an ORM like Hibernate or IBatis, which adapt... .
For example, you can use a Table Data Gateway, Row Data Gateway, Active Record, or Data Mapper .
I recommend reading Fowler's Patterns of Enterprise Application Architecture.
|
|
IS it best to configure permissions within a website for Administration access, separate webPages, or a completely separate application to administer changes on the site?
Started by zsharp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I usually configure permissions within the same website and have separate web pages, if you want a page to Approve/Reject comments, or something like that, instead of creating a separate that with questions starting "Is it best to....
|
|
I'm looking to develop a project in python and all of the python I have done is minor scripting with no regard to classes or structure. I haven't seen much about this, so is this how larger python projects are done?
Also, do things like "namespaces" and...
Started by Mark on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can put python classes....
Correction: you probably should not put each single class into a separate file (like Java module.
You can take a look to the source packages).
You can do that, but usually they are arranged a bit different.
|
Ask your Facebook Friends
|
Do I need a separate server to implement an ESB (e.g. Apache Camel, Mule) ?
Started by Flaviu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Your services in Mule, in addition to using it as your bus, then standalone is usually a good choice.
|
|
My iTunes library plays out of the rear audio jack on my 2007 Mac Pro tower (MacPro1,1 // Snow Leopard). I'd like to have the front jack with headphones exclusively available for other sounds (usually browser-based videos, etc.)
Do I need a separate audio...
Started by Damion Hankejh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
This way, your music through iTunes is separate from your 'computer sounds.' I use.
Of the tower now.
|
|
I can understand an added cost at application startup of loading a separate DLL, but is there an overhead when referencing code in a separate library?
Say I have my application (be it ASP.NET WebForms, MVC or WinForms) and I decide for one reason or another...
Started by BobTheBuilder on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Do make your separate classes that are not used very often into separate assemblies and dynamically load them only when needed the biggest overhead with ....
More machines (horizontal scalability) or more hardware (vertical scalability).
|
|
Is it possible to place each of my vim plugins in a separate directory within my ~/.vim directory?
Unpacking everything into the same place seems kind of messy.
Started by donbot on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
See
help vimfiles
Plugins usually go into
.../vimfiles/plugins
directory, but if you put them.
|
|
(Ubuntu 9.10) How can I make my external monitor a separate workspace?
Ubuntu has two "workspaces", right now when I hook up the external monitor, it just extends the current workspace into one large one instead of two separate ones.
Video card: Intel...
Started by Justin White on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at superuser):
Use the official need for separate X sessions....
Intel cards are usually well supported, so it should work.
Http://ubuntuforums.org/showpost.php?p=6831827&postcount=12
It explains how to set up a separate X virtual desktop space instead.
|
|
In what situation would it be more appropriate for me to use a bitset (STL container) to manage a set of flags rather than having them declared as a number of separate (bool) variables?
Will I get a significant performance gain if I used a bitset for ...
Started by David on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A bitset is usually implemented as an array of ints (the bools in a very busy web service)
NOTE: A std....
They will take more memory, but the bools will be much faster .
Then separate bools is pretty much always a better choice than a bitset.
|
|
I'm creating an implementation that performs conversion from one form to another.
The design problem I am facing now is whether the Encoder and Decoder API should be in one interface or in separate ones. e.g. Apache MINA uses separate interfaces
I am ...
Started by ashitaka on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
A capture application only encoding, a management principles and see Interface... .
If they are usually separate (e.g.
Only thing is that you usually have one code part that will use the decoder and a separate using interface is fine.
|