|
Hey, don't knock it - that blue pill turns it into a street party, apparently.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
If I have a choice, I will always take the red pill.[^]
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: I will always take the red pill.[^] Wikipedia claims it's from the Matrix, but I'm pretty sure Frank Miller used it first.
I shall google, later, then spend weeks complaining about wikipedia to everyone.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Yeah - I know what that poor guy must feel like.
I was responsible for two airport closing for the same reason.
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 hope you also were so nice to put up signs to explain the situation.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
The signs were knocked over and trampled by all the women headed my way. They took the red flashing lights as an invite.
It's a good thing I start the day with a good breakfast!
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 |
|
|
|
|
|
Hmmm. I discovered the roadrunner and the coyote on the cereal boy this morning. What does that say about my breakfast?
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: I discovered the roadrunner and the coyote on the cereal boy this morning. You're into bestiality?
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 |
|
|
|
|
|
Most problematic god - one in the birdhouse (9)
Slogans aren't solutions.
modified 1-Mar-17 8:37am.
|
|
|
|
|
erogenous
Eros - God
rest of putative "solution" not KSS.
|
|
|
|
|
Thorniest
Thor - god
i - one
nest - birdhouse
i in nest gives 'niest'
Thorniest is most problematic
|
|
|
|
|
We have a winner! Well done.
Slogans aren't solutions.
|
|
|
|
|
D'oh!
I spent about 20 problematic minutes trying to coming up with anagrams for "aviary"....
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
|
|
|
|
|
I am working with Xamarin forms and there is a problem with FormsAppCompat size after softkeyboard is shown on screen.
There is a bit of a fix copied verbatim all over the web which can (also) be found there:
Accommodating The On Screen Keyboard in Xamarin Forms - Xamarin Help
My particular beef is with those lines copied in so many places
int usableHeightNow = computeUsableHeight();
if (usableHeightNow != usableHeightPrevious)
{
int usableHeightSansKeyboard = mChildOfContent.RootView.Height;
int heightDifference = usableHeightSansKeyboard - usableHeightNow;
frameLayoutParams.Height = usableHeightSansKeyboard - heightDifference;
This looks painfully complicated, doesn't it? That's probably why it has been copied verbatim in so many places.
Now, as a thought exercise let's use those so called "evil and short and meaningless" variable names
int a = computeUsableHeight();
if (a != usableHeightPrevious)
{
int b = mChildOfContent.RootView.Height;
int d = b - a;
frameLayoutParams.Height = b - d;
what is immediately visible now?
well frameLayoutParams.Height = b - d = b - (b - a) = a hence the all thing can be simplified to:
int a = computeUsableHeight();
if (a != usableHeightPrevious)
{
frameLayoutParams.Height = a;
All of that to say that those "long and meaningful" variable names are really an hindrance...
|
|
|
|
|
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
|
Here's the likely truth
Everyone who likes the short (letter) var names
1) is 45 or older (you've read K&R )
2) codes alone and not as part of a team (it don't matter cuz it's write-once code)
3) All of the above
(but I'm kind of not laughing too, because when you read someone else's code like that you have to read it a few times).
I'd much rather read someone else's code <=1 time.
|
|
|
|
|
This is why programmers dislike COBOL. With 30-character names, programmers got tired of spelling out long names -- not that any used them -- and switched to C which is really COBOL but shortened by dropping off the trailing 4 characters.
You don't believe me? Where did record structures in C come from? COBOL! Where did pointers come from? COBOL, with the addition that you could ALTER a go to statement to point to a different location as the program executes!
|
|
|
|
|
|
Fer faarrrkkkks sake, you're in Australia, it's faarrrkkkking maths.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Super Lloyd wrote: All of that to say that those "long and meaningful" variable names are really an hindrance...
That greatly depends on the situation. If you use it locally, like in the example. I fully agree. If you need to use it elsewhere, however,...
|
|
|
|
|
That's the trouble. You end up with 7,000 private instances of a, b, and c.
Better is to use meaningful names that don't all start with the same characters (in this case "usableHeight"), and let intellisense do its magic.
nowUsableHeight and newUsableHeight aren't such a pain, but are clear enough.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
The problem isn't the length of the variable names. (Even though they might be some times)
The problem is that the original author didn't think all the way, but even worse, that everyone else is just copy'n'pasting.
Take a look at your refactored code with the original variable names:
int usableHeightNow = computeUsableHeight();
if (usableHeightNow != usableHeightPrevious)
{
frameLayoutParams.Height = usableHeightNow;
It's not that bad anymore is it?
|
|
|
|
|
or... if the Height is a field or a property without side effects in the setter:
frameLayoutParams.Height = computeUsableHeight();
|
|
|
|
|
I thought so as well, but if you follow the link in the OP you'll notice there's more code inside the conditional.
|
|
|
|