Search: .lenght - Github
github.com
Search: .lenght - Github
1–10 of 106 posts
Re: Search: .lenght - Github
#2Re: Search: .lenght - Github
#3Re: Search: .lenght - Github
#4A common typo, it seems. But I'm a bit confused as to why this was submitted.
if(somethingThatMightBeAnArray.length){
// do things with array
}
So misspelling of length can be making a lot of code out there behave in an unexpected way.Re: Search: .lenght - Github
#5A common typo, it seems. But I'm a bit confused as to why this was submitted.
I once worked at a company where a very early piece of code had a typo "properites" instead of "properties". This misspelling became institutionalized, and was used throughout the codebase because it was deemed too expensive to fix. And this was with a static language (with good IDE refactoring support)!
Re: Search: .lenght - Github
#6Re: Search: .lenght - Github
#7Re: Search: .lenght - Github
#8[deleted]
Re: Search: .lenght - Github
#9A common typo, it seems. But I'm a bit confused as to why this was submitted.
In a static language this would be flagged as an error. I assume something less than ideal happens in languages such as Ruby. I once worked at a company where a very early piece of code had a typo "properites" instead of "properties". This misspelling became institutionalized, and was used throughout the codebase because it was deemed too expensive to fix. And this was with a static language (with good IDE refactorin…
grep -R properites .Re: Search: .lenght - Github
#10Earlier quoted context omitted.
In a static language this would be flagged as an error. I assume something less than ideal happens in languages such as Ruby. I once worked at a company where a very early piece of code had a typo "properites" instead of "properties". This misspelling became institutionalized, and was used throughout the codebase because it was deemed too expensive to fix. And this was with a static language (with good IDE refactorin…
I'm confused as to why they couldn't simply: grep -R properites .
EDIT: Justly downvoted chastised for attempting humor without understanding.