|
Is there a good reason why I shouldn't be mixing POST and GET?
For example:
<form action="http://example.com/?param1=foo¶m2=bar" method="post">
Started by eugene y on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The important question is why do you care about "most CGI libraries"? You should pick the library... .
As noted by comments to your question, CGI.pm is OK
CGI::Simple is OK
EmbPerl 's %fdat is OK
Everything else, you need to read documentation or just test .
|
|
Should I seal all classes I know shouldn't ever be used as a base class even when there are no tangible performance or security concerns, or is this just adding cruft?
Started by Daniel Coffman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If nothing else it's a signpost letting others know that they shouldn't go further down.
|
|
I was just wondering - are there any Exceptions defined in the .NET Framework that I shouldn't throw in my own code, or that it is bad practice to? Should I write my own?
Started by Lucas Jones on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You shouldn't throw any exception that is automatically thrown by the CLR due to user errors.
|
Ask your Facebook Friends
|
Apart from the google/bigtable scenario, when shouldn't you use a relational database? Why not, and what should you use? (did you learn 'the hard way'?)
Started by Stephen on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Also my other answer to " The Next-gen databases ."
In my experience, you shouldn't use a relational.
|
|
Possible Duplicate:
Are there any disadvantages to always using nvarchar(MAX)?
Is there any reason I shouldn't mark all my varChar columns as varChar(max)?
Started by Jonathan Allen on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
CREATE TABLE t (Col1 varchar(max)) CREATE INDEX IX_t_Col1 ON t (Col1)
Result: "Column 'Col1' in table 't' is of a type that is invalid for use as a key column in an index."
Second reason: there may be ... .
First reason not to do this: you can't index it .
|
|
I've read a lot of people saying that some things shouldn't be written in an object orientated style - as a person learning the OO style coming from a C background, what do they mean by this?
What shouldn't be OO, why do some things fit this design better...
Started by Rich Bradshaw on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
"What about 'system utilities....
It's helpful to make the software world match the real world .
The real world is full of objects.
Just a tip: you should tag this question as "subjective" as everyone seems to have a different opinion on things like this .
|
|
API doc says never catch Throwable subclass Error which signifies abnormal behavior. Does it implies that the segregation between Error and Exception is to tell programmers that which subclass should be caught and which shouldn't ? Or there is more to...
Started by Ravi Gupta on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The only reason to catch Throwable is if you are running external third... .
Yes, I think your analysis is correct here - you are not supposed to catch Error s because they represent runtime errors that can not be recovered from, such as OutOfMemoryError .
|
|
I've seen this come up here a few times, but in the postings I've seen, no one explained it. Why shouldn't I extend JFrame (or any component)? Are there conditions where I should extend a component, or is this a firm rule that you don't?
Started by Thomas Owens on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If your object extends some other object you would have no choice in the matter... .
However, it's best to use object composition rather than inheritance if you are simply using a JFrame .
If your application REALLY is just a JFrame, go ahead and extend it .
|
|
I've been applying Django's automatic administration capabilities to some applications who had previously been very difficult to administer. I'm thinking of a lot of ways to apply it to other applications we use (including using it to replace some internal...
Started by Jason Baker on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Generally, you shouldn't use the admin for access by people you don't.
To do so with a custom admin app.
|
|
I'm using the Unity IoC container. It really wasn't a decision I made, it just came with Prism, and I've just stuck with it. I've never used any other IoC frameworks, and I must admit I'm quite happy with Unity. However, the satisfaction may come from...
Started by Stian Karlsen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I've used a few IoC containers and I use Unity when I need medium trust... .
From what I've found, Unity seems much easier to get running if your code doesn't have full trust .
One reason to use Unity is if you're needing to work in a medium trust environment .
|