News for hackers. Stuff that matters.
Re:Rust is a hard way to make a web API by rudedogg on Friday January 15, 2021 @11:19PM (#25799994)
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/

Re:Rust is a hard way to make a web API by wahern on Friday January 15, 2021 @11:31PM (#25800054)
> 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.

Re:Rust is a hard way to make a web API by rudedogg on Friday January 15, 2021 @11:44PM (#25800115)
It'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-_-...

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?

Re:Rust is a hard way to make a web API by wahern on Friday January 15, 2021 @11:55PM (#25800162)
The 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.