Click here to Skip to main content
15,914,070 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Kornfeld Eliyahu Peter18-May-14 16:57
professionalKornfeld Eliyahu Peter18-May-14 16:57 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
kalberts18-May-14 22:10
kalberts18-May-14 22:10 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Dan Neely19-May-14 2:35
Dan Neely19-May-14 2:35 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
gggustafson19-May-14 4:09
mvagggustafson19-May-14 4:09 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg18-May-14 16:59
Colborne_Greg18-May-14 16:59 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Pete O'Hanlon18-May-14 20:20
mvePete O'Hanlon18-May-14 20:20 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg19-May-14 8:26
Colborne_Greg19-May-14 8:26 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Pete O'Hanlon19-May-14 8:35
mvePete O'Hanlon19-May-14 8:35 
Colborne_Greg wrote:
You do understand that we are working with event driven programming right?
That's a very narrow point of view, focused on one technology set. At no stage did Marc state he was asking about an event. And while there is a point of origin, there's no guarantee that he is responding to an event - you may have noticed that Marc was talking in a generic sense, hence the reason he mentioned ROR. So, in the case of doing something like processing a batch input on a file, forcing the programming model to use an event signature doesn't really make sense.
Colborne_Greg wrote:
You should always be making your code generic as it can be understood by everything, and your procedure should be tread safe - which means everything you need should be passed as a parameter.
And that is why my response, at the top of this thread, stated that I would normally wrap things up into an object.
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg19-May-14 8:42
Colborne_Greg19-May-14 8:42 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Pete O'Hanlon19-May-14 8:56
mvePete O'Hanlon19-May-14 8:56 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg19-May-14 9:04
Colborne_Greg19-May-14 9:04 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Pete O'Hanlon19-May-14 9:11
mvePete O'Hanlon19-May-14 9:11 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg19-May-14 9:55
Colborne_Greg19-May-14 9:55 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Colborne_Greg19-May-14 8:51
Colborne_Greg19-May-14 8:51 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
PIEBALDconsult18-May-14 18:12
mvePIEBALDconsult18-May-14 18:12 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? PinPopular
_Maxxx_18-May-14 19:02
professional_Maxxx_18-May-14 19:02 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Jörgen Andersson18-May-14 20:30
professionalJörgen Andersson18-May-14 20:30 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
CPallini18-May-14 21:43
mveCPallini18-May-14 21:43 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
kalberts18-May-14 22:33
kalberts18-May-14 22:33 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
BobJanova19-May-14 1:13
BobJanova19-May-14 1:13 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Tony Moffatt19-May-14 1:36
Tony Moffatt19-May-14 1:36 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
BobJanova19-May-14 6:58
BobJanova19-May-14 6:58 
JokeRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
Kirk 1038982119-May-14 3:51
Kirk 1038982119-May-14 3:51 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
patbob19-May-14 5:57
patbob19-May-14 5:57 
GeneralRe: Best Practice Question - How do you prefer to pass a bunch of options to a function? Pin
RafagaX19-May-14 9:35
professionalRafagaX19-May-14 9:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.