4 ms·
Single letter variable names annoy me so much. Every programmer uses an editor or IDE with autocomplete. Just use a damn name that describes the thing, if it's
by rudedogg 6y ago
Single letter variable names annoy me so much. Every programmer uses an editor or IDE with autocomplete. Just use a damn name that describes the thing, if it's a little long no one cares.
CS papers are the worst in my experience. I know lines have to be kept short, but I think some people believe a tiny code block makes them look like a better programmer.
I like how Swift does it[0] — it reads nicer than any other language I've used.
[0]: https://swift.org/documentation/api-design-guidelines/ https://swift.org/documentation/api-design-guidelines/
- wahern 6y ago> Every programmer uses an editor or IDE with autocomplete. This is news to me. I use JOE and, occasionally, vi (sic). But when I use short variable names it's often because they're idiomatic and expressive. In C for example, i, j, n, src, buf, cp, etc. Many moons ago I used IDEs. Eventually I tired of installing, configuring, and maintaining bespoke environments. I'm confident I'm not alone.
- rudedogg 6y agoIt's cool you have found a workflow that works for you, but I don't think there are many people using JOE or (plain) vi to write software. https://insights.stackoverflow.com/survey/2019#technology-_-most-popular-development-environments https://insights.stackoverflow.com/survey/2019#technology-_-... I can't imagine working that way myself. I need syntax highlighting, code completion, and go to definition at the minimum. Another newer feature I like is spelling and grammar checking of code comments. Edit: Have you given Sublime Text 3 a shot?
- wahern 6y agoThe breakdown of "All Respondents" (i.e. all programmers) into Web, Mobile, and SRE/DevOps is telling. Let's just say that it's a big world. People programming Excel spreadsheets aren't using vi, either. I won't dispute that.