|
Are there any thumb-rules to decide between two schools of thought: SOAP and REST?
Started by Swanand on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This isn't "thumb rules", but David Chappell gave a fantastic presentation on SOAP vs.
I wrote before.
|
|
Can someone provide some rules of thumb regarding when to use Message Queueing and what practical real-world problems they are supposed to address?
Thanks
Started by NoCarrier on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
But they will never completely disappear from the system -- there will always be a copy somewhere... .
They can still be delayed/sent to dead message queues, etc .
They ensure that messages do not get lost completely.
Message Queues provide reliable messaging.
|
|
Anyone have a good rule of thumb for choosing between different implementations of Java Collection interfaces like List, Map, or Set?
For example, generally why or in what cases would I prefer to use a Vector or an ArrayList, a Hashtable or a HashMap?...
Started by hydeph on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
My rule is:
Always start.
I would say that there are no rule of thumb for preferring one slower to create a node and vastly worse memory-access characteristics.
The latter is not synchronized.
|
Ask your Facebook Friends
|
What are your general Coding Rules of Thumb . Things that you can apply generally to a new or existing project to increase the quality of the code.
For example, how many lines of code is too many for a single function?
Started by rjstelling on
, 19 posts
by 19 people.
Answer Snippets (Read the full thread at stackoverflow):
The worse effect is the other....
First, it causes newer.
Another common "rule of thumb" is related of rule of thumb that is actually soul drainingly bad for two reasons.
Function and shouldn't be refactored into other functions.
|
|
When coding, what is a good rule of thumb to keep in mind with respect to performance? There are endless ways to optimize for a specific platform and compiler, but I'm looking for answers that apply equally well (or almost) across compilers and platforms...
Started by carleeto on
, 27 posts
by 25 people.
Answer Snippets (Read the full thread at stackoverflow):
Inadvertently end up with some O(n*n) code :-) Rule 1: Don't Rule 2: Measure Hi!,
From one of the C++.
|
|
When using a log facility, what are the common "rules of thumb"? E.g.
Rate limit message X to Y messages per unit of time Z? Wait for a recent success message of type T before logging a "new" failure message of the same type?
Started by jldupont on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Make....
Make it very cheap to not display a message when that level of messaging is disabled/not needed .
If you're displaying an important message, don't bury it in a flood of unimportant ones .
If you have to discard messages, discard the unimportant ones .
|
|
I am making a C# app for a class project. I want to ensure a string has one of three values. Normally, in a web app, I would do validation with javascript on the client side. However, this is currently a console app. I know that I should do the validation...
Started by jle on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
As a rule of thumb, as you said you should validate as early as possible, but in client-server of the application, I want to point out some very general rules of thumb along with the good advice already.
|
|
Using aspx and c# 3.5, vs2008.
Is there a rule of thumb for how many placeholders can be put on a web page before performance starts to deteriorate?
Any other concerns for using a lot of placeholders?
I am dynamically inserting controls (textboxes, checkboxes...
Started by Lill Lansey on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Knuth:
Premature optimisation....
I quote Mr.
Use as many placeholders as you feel you need, go benchmark/profile the page code, then finally optimise accordingly using whatever technique is most suitable .
There's no better answer than to try it for yourself .
|
|
I understand that the WITH RECOMPILE option forces the optimizer to rebuild the query plan for stored procs but when would you want that to happen?
What are some rules of thumb on when to use the WITH RECOMPILE option and when not to?
What's the effective...
Started by TrickyNixon on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The most common use is when you might have a dynamic WHERE clause in a procedure...you wouldn't want that particular query plan to get compiled and saved for subsequent executions because it very well might not be the exact same clause the next time the... .
|
|
Is there a general rule of thumb as to how many classes, interfaces etc should go in to a given name space before the items should be further classfied in to a new name space? Like a best practice or a community preference? Or is this all personal preference...
Started by Frank on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I have not seen any rule of thumb at any reliable source.
I don't know of any rule of thumb for the number of items, but those kinds get assigned to classes and interfaces.
Think about consolidating.
|