3 ms·
Chances are if you're explaining this to someone they have less experience than you so they wouldn't be in a position to tell you that this is a bad practice.
by ebbv 14y ago
Chances are if you're explaining this to someone they have less experience than you so they wouldn't be in a position to tell you that this is a bad practice.
Like I said, objectively, you're just moving the extra work from moving around the last element to moving around the first element. You're not really saving any time. Plus even if you accept the argument that you are saving time (pretend you live in a world where you never move the first element) the time you save is negligible.
If you hadn't resorted to this ugly syntax, you should have developed habits that lead you to fix your commas whenever you move the last element around.
Obviously you can do what you want, but if you were on my team, I would not allow this syntax.
- btilly 14y agoLike I said, objectively, you're just moving the extra work from moving around the last element to moving around the first element. Except that moving the last element (more specifically appending after it) is by far the more common operation. And when you mess up on the first element, it is visually obvious that you have done so. If you hadn't resorted to this ugly syntax, you should have developed habits that lead you to fix your commas whenever you move the last element around. I worked with SQL for years, and never developed the habit reliably enough. Once I was introduced to the idea of the leading comma, I noticed the difference. Obviously you can do what you want, but if you were on my team, I would not allow this syntax. Then let's both be glad that I'm not on your team, because there are some co-workers that I don't want to have to put up with.
- rosser 14y agoTo speak frankly, you seem pretty belligerent in your crusade against the comma-firsters. For whatever reason, this is apparently holy war territory for you, and you're willing to make assumptions about me as a person, and my abilities as a technologist, based on where I put a goddamned comma. Thanks for that.