|
Stop listening to bass? Hmm, I'll have to mullet over...
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I don't want to force you to quit, but I may have to exercise some mussel.
/ravi
|
|
|
|
|
Abalone, I don't believe you.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Are you unwell Sir? Have you taken your gills?
... such stuff as dreams are made on
|
|
|
|
|
and did the mermaid serve you?
Installing Signature...
Do not switch off your computer.
|
|
|
|
|
I seal what you did there!
|
|
|
|
|
That's otterly shamuful!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You'd prefer some otter joke?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I squid you not when I say that would be a ray of hope.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I really think you otter.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
You otter drink water instead.
Someone's therapist knows all about you!
|
|
|
|
|
Dugong get it then - Walrus'ed off our feet at the moment.
|
|
|
|
|
(Programming Survey Of The Whenever I Feel Like It)
Example (example only, don't ask what or why):
Processing.Fire(this, new ProcessEventArgs()
{
FromMembrane = fromMembrane,
FromReceptor = fromReceptor,
ToMembrane = membrane,
ToReceptor = target,
SemanticType = obj
});
vs.
Processing.Fire(this, new ProcessEventArgs(fromMembrane, fromReceptor, membrane, target, obj));
Which form do you prefer? Why?
The former form from which I observe my style seems to be the preferable format. Not sure why though.
modified 13-Oct-17 10:04am.
|
|
|
|
|
because the second wont compile? (missing close bracket)
Installing Signature...
Do not switch off your computer.
|
|
|
|
|
Lopatir wrote: because the second wont compile? (missing close bracket)
Fixed. The second one was hand-written rather than from a working example.
|
|
|
|
|
A. Explicit params are good vs implicit [by position] but your symbol names take me to... youtu.be/zAlNrtcPCLw one of the most annoying songs in recent history
... such stuff as dreams are made on
|
|
|
|
|
|
I would like the bottom form if the number of parentheses matched. The top form is more difficult to match up what belongs with what. My real preference would be:
(
this,
new ProcessEventArgs()
{
fromMembrane,
fromReceptor,
membrane,
target,
obj
}
)
|
|
|
|
|
Jim_Snyder wrote: I would like the bottom form if the number of parentheses matched.
Wow, people's eyes are good. Fixed, but still inline. But I like your version.
|
|
|
|
|
For some Markdown Formatting reason, I cannot get Processing.Fire to display in the block.
|
|
|
|
|
Jim_Snyder wrote: For some Markdown Formatting reason, I cannot get Processing.Fire to display in the block.
Bizarre. Works for me!
[edit] Oh, in you're example. Yeah, I was wondering about that. [/edit]
|
|
|
|
|
Depends - if I can reasonably name the variables "almost like" the argument names (e.g. "targetReceptor" instead of "target") and if I have no reason to use an expression as parameter then I go for the second form because I don't feel the first form would increase the clarity of the code.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
The first sort of feels clunky but it is much safer.
Someone will one day insert a field in the middle of the others and the thing will go kaboom(I hope I am not being too technical in my language here).
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
GuyThiebaut wrote: insert a field in the middle of the others and the thing will go kaboom
Good point.
|
|
|
|
|