Many English words are borrowed from other languages — even common ones, like “pencil” or “shoe”. We still can’t quite agree on many of the rules — is a preposition really such a bad thing to end a sentence with? There’s no central governing body for the language, as there is with Spanish, so nobody can formally say what’s right or wrong. Those attributes also give English a rich vocabulary and flexible syntax that makes for some clever wordplay and beautiful poetry. They can also make English pretty hard to learn.
Learn the rules, then learn to break the rules.
Learn another language.
var myVar = "foo"; is the same thing as saying
string myVar = "foo";. Either way, your code will fail if later on you try to set
myVar = 42. It’s a nice, concise way to write code in a strictly-typed language.
var keyword, I try to set variables to sensible initial values, even if I don’t actually expect to use those values. For example, if I know a variable is going to contain a string, I might set its initial value to
At the time, I was proud. I’d made the better argument! I’d won! Now, I regret being such a know-it-all. I wish I’d listened a little more. I had been working with WordPress and writing lots of PHP, and I could’ve learned a lot from someone who worked with a different (and admittedly more modern) stack.
Help Build the Future.