473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Method/proc for every type of call, or just one and let the client slice and dice?

So we'll have a SelectPens function and associated proc to bring back all
pens to the client. Now think about all the variations that might be needed
(many). For example, to show the pen feed sequence I'll need a subset of
fields and ordered by FeedSequence.

Option 1) I've seen some shops where they have a function (and associated
proc) for every slice and dice.

Option 2) I've seen some shops where they have a function for every slice
and dice, but then just use the one stpSelectPens proc (they then slice and
dice it in the business layer before returning to the client)

Option 3) I've seen some shops where they have a single function and proc
(stpSelectPens) and then the client can slice and dice all it wants to
present to the user

I'm leaning toward option 3. Any other opinions?

Thanks,

Ron
Mar 22 '07 #1
1 1309
Ronald,

Is there any way you could have your function in the lower levels take
some sort of filter? This way, you can have the business layer decide what
to pass for a filter and get the results that it needs, without having to
push a whole bunch of data over the line unecessarily (and waste processing
cycles as well).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ronald S. Cook" <rc***@westinis.comwrote in message
news:uS**************@TK2MSFTNGP05.phx.gbl...
So we'll have a SelectPens function and associated proc to bring back all
pens to the client. Now think about all the variations that might be
needed (many). For example, to show the pen feed sequence I'll need a
subset of fields and ordered by FeedSequence.

Option 1) I've seen some shops where they have a function (and associated
proc) for every slice and dice.

Option 2) I've seen some shops where they have a function for every slice
and dice, but then just use the one stpSelectPens proc (they then slice
and dice it in the business layer before returning to the client)

Option 3) I've seen some shops where they have a single function and proc
(stpSelectPens) and then the client can slice and dice all it wants to
present to the user

I'm leaning toward option 3. Any other opinions?

Thanks,

Ron


Mar 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: Chris S. | last post by:
Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would...
0
by: Rick | last post by:
I wrote a medium length stored proc that uses both temp tables and one cursor. I compiled and it ran fine. However, we reboot our machine every weekend, and on Mondays the stored proc gets the...
7
by: Együd Csaba | last post by:
Hi, I've a problem with some of my stored procs. My config is: RH7.1, Postgres 7.3.2 I had converted a few fields of a few tables from one type to another and after this I made all the...
2
by: Tim.D | last post by:
Hello people, Thanks to Serge, PM, Knut and a host of others I have now successfully completed my very first SQL Stored Procedure. Takes some 13mins or so to run, but that was expected as it...
5
by: sk | last post by:
Hi, I'm trying to override the Render method of my Page class. Are there any standard guidelines for this? Thanks. Shardul
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
122
by: C.L. | last post by:
I was looking for a function or method that would return the index to the first matching element in a list. Coming from a C++ STL background, I thought it might be called "find". My first stop was...
7
by: RubyRedRick | last post by:
I bought Crockford's "JavaScript: The Good Parts" yesterday to help build my JavaScript foo. On page 44, he gives an implementation of the curry function: Function.method('curry', function() {...
1
by: Chuck W1CEW | last post by:
So for years sites have been prototyped using Photoshop comps, and the web developer/authoring task was to slice and dice the format and images using tables and clear/transparent spacer gif's. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.