|
I have a love/hate relationship with ESRI
... I love hating them!
Fortunately, these days that's an SEP (Somebody Else's Problem - therefore invisible) as I don't have to touch their stuff myself!
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
I keep doing that with Outlook to refresh the mail list...should be using F9, damnit!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Although not disastrous switching between Borland and Microsoft is annoying, F9 and F5 are opposite !
|
|
|
|
|
Now the time to reconfigure Visual Studio keys...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I was doing Javascript for about 3 months before I realised it had a forEach function.
I got it into my head it didn't, so my older code is littered with me looping through arrays like this:
for(var i = 0; i < myArray.length; i++){
var thisItem = myArray[i];
}
Instead of:
myArray.forEach(function(thisItem){
});
Maybe I should have taken that job at Mcdonalds
|
|
|
|
|
Ah well, I've seen worse.
Every project has "before-we-knew-X-stuff"
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
For is generally faster than foreach , but I guess if you were interested in speed you wouldn't be using Javascript.
|
|
|
|
|
So I could just claim my older code is my newer code and say I switched to for loops to make it faster?
Nice.
|
|
|
|
|
|
You can also do this...
for(var i in myArray){
var thisItem = myArray[i];
}
Jeremy Falcon
|
|
|
|
|
Did not know that either, thanks
|
|
|
|
|
Which works well until you include an external library that extends Array.prototype with a custom property.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
What you're saying is pointless. If I screw with existing members of a native type then duh of course things will break. Only a fool would write a lib that did that, so there's no point in even pointing it out. With that being said...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
Array.prototype.remove = function(member) {
var index = this.indexOf(member);
if (index > -1) this.splice(index, 1);
return this;
}
var myArray = ['poppy', 'sesame', 'plain'].remove('poppy');
for(var x in myArray) console.log(myArray[x]);
</script>
</head>
<body>
<p>Oh gee, common sense gets ignored again.</p>
</body>
</html>
Jeremy Falcon
|
|
|
|
|
|
|
The thing is, the "wrong" way you were doing it was probably faster.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I should never have doubted myself
|
|
|
|
|
It took me a while to figure out that on my wife's laptop I need to use Fn-F5 , then I come back to my computer and start hitting Win-F5 .
|
|
|
|
|
My laptop does that too! I hope I won't have the same problem you have...
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Thank you for sharing! I needed that!
"Go forth into the source" - Neal Morse
|
|
|
|
|
|
In this era of international hacking why expose critical lob information to the internet? Cut the cord to in-house servers...
|
|
|
|
|
?? huh?? What do you mean - put everything in the cloud?
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
I think he means have no internet connection attached to critical business systems.
|
|
|
|
|
I read that the IT security was only a "handful fo people (aka five) and the security policy was outdated and only a joke. And it wasnt the first breach, so they were alarmed about attacks.
After reading that I only got sarcastic like a old men: "They only got what they deserved"
Press F1 for help or google it.
Greetings from Germany
|
|
|
|