|
raddevus wrote: 843 People Upvoted this Comment 844 now.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I think that's what they call "soft trolling".
|
|
|
|
|
soft?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
If you compare it to Eddy Vluggen's trolling, I think you'll agree that it's soft.
|
|
|
|
|
You are evil
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
ZurdoDev wrote: 844 now.
I'm putting you in a special box.
[ ZurdoDev ]
Ok, just glad to know where you are.
|
|
|
|
|
raddevus wrote: I'm putting you in a special box. As well you should. My momma says I'm special.
But in seriousness, there are times when globals make sense. That's all the comment was saying, I believe.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
ZurdoDev wrote: But in seriousness, there are times when globals make sense. Agree...
But if python really behaves as raddevus is saying, then it is a bit odd and might give problems faster than in other languages regarding to this topic
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
No, but also injection is a kind of global behavior in the broadest sense
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
0x01AA wrote: No
Good, I will continue talking to you then.
0x01AA wrote: but also injection is a kind of global behavior in the broadest sense
Ok,I might concede on that point. However, writing the code to do injection is far more extensive than just writing:
extra = "i am global"
Barriers to entry are necessary.
Imagine if anyone could just flip a switch and turn off gravity!?!
Oh, man, you'd never get any work done because your keyboard would keep floating into the clouds.
|
|
|
|
|
Global constants, yes.
Global variables, no.
|
|
|
|
|
Greg Utas wrote: Global constants, yes.
Global variables, no.
Ah, great point! +5 points for the Globals.
|
|
|
|
|
Global variables being defined by you... still might be ok.
Every variable being global in the whole file / "class" where they are defined without you making it on purpose... is looking for problems.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
modified 26-Jun-20 19:55pm.
|
|
|
|
|
Nelek wrote: Global variables being defined by you...still might be ok. Am I really that much of a paragon?
|
|
|
|
|
It might be useful to avoid "out" parameters or overcomplicating things
I think it is like "goto" using it with moderation can be helpful and a still a "good" approach, use it without care and you will shoot in your foot or somewhere worse.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Some people consider singletons a type of global variable, but I have no qualms about using them freely. Only having one of something sometimes makes sense and doesn't mean that encapsulation has to be violated.
|
|
|
|
|
Global vars matter.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
AAAaahhhh!!!
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Ever the lighter-of-bonfires, John .
Software Zen: delete this;
|
|
|
|
|
My job is to color outside the lines.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
|
|
Shouldn't that be:
var a='matter', b='matter', c='matter';
|
|
|
|
|
Perfect!
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|