News for hackers. Stuff that matters.
Re:The Rise of Whatever by chrismorgan on Friday July 04, 2025 @03:23AM (#44462001)
> Like, just to calibrate here: you know how some code editors will automatically fill in a right bracket or quote when you type a left one? You type " and the result is "|"? Yeah, that drives me up the wall. It saves no time whatsoever, and it’s wrong often enough that I waste time having to correct for it.

I have not yet figured out why anyone would choose this behaviour in a text editor. You have to press something to exit the delimited region anyway, whether that be an arrow key or the closing delimiter, so just… why did the first person even invent the idea, which just complicates things and also makes it harder to model the editor’s behaviour mentally? Were they a hunt-and-peck typist or something?

In theory, it helps keep your source valid syntax more of the time, which may help with syntax highlighting (especially of strings) and LSP/similar tooling. But it’s only more of the time: your source will still be invalid frequently, including when it gets things wrong and you have to relocate a delimiter. In practice, I don’t think it’s useful on that ground.

Re:The Rise of Whatever by BlindEyeHalo on Friday July 04, 2025 @03:44AM (#44462150)
I think it is practical when highlighting text and then pressing " once puts quotes and the start and the end of the highlighted region.

But I agree that in normal input it is often annoying.

Re:The Rise of Whatever by matejn on Friday July 04, 2025 @03:49AM (#44462189)
I hate that even more, especially since Visual Studio introducted it. I had the habit of selecting some text, and then typing to replace it. Now when my replacement starts with a parenthesis or quote, the text just gets surrounded instead!

Maybe this is just an XKCD moment https://xkcd.com/1172/ ...

Re:The Rise of Whatever by jeffhuys on Friday July 04, 2025 @04:02AM (#44462267)
I think for the feature of wrapping, it is useful enough + just typing a->backspace->" is easy enough that I think it's a net win
Re:The Rise of Whatever by pxc on Friday July 04, 2025 @02:14PM (#44466722)
But there have been sensible bindings for doing this forever, e.g.: https://github.com/tpope/vim-surround

There's no need to break normal editing behavior.

Re:The Rise of Whatever by tehnub on Friday July 04, 2025 @03:52AM (#44462206)
Pair programming with coworkers over the years, many seem to have trouble with the keyboard, to the point where pressing right parenthesis is a significant burden and they don’t use right or down arrow to get out of the span but actually move their hand to their mouse and click out.
Re:The Rise of Whatever by Cthulhu_ on Friday July 04, 2025 @04:11AM (#44462327)
I've said it in another comment (might be here or Reddit, I don't even know anymore) and it feels like basic skills are just overlooked or taken for granted these days - computer use, mouse / keyboard / typing skills, reading comprehension, writing ability, communication skills, etc.

I'm nowhere near a hiring position but if I was I'd add assessing that to the application procedure.

It feels like this is part of a set of growing issues, with millennials being the only generation in between gen X / boomers and gen Z that have computer skills and can do things like manage files or read a whole paragraph of text without a computer generated voice + RSVP [0] + Subway Surfers gameplay in the background.

But it was also millennials that identified their own quickly diminishing attention spans, during the rise of Twitter, Youtube, Netflix and the like [1].

I want to believe all of this is giving me some job security at least.

[0] https://en.wikipedia.org/wiki/Rapid_serial_visual_presentati...

[1] https://randsinrepose.com/archives/nadd/ (originally published 2003, updated over time to reference newer trends)

Re:The Rise of Whatever by nyarlathotep_ on Friday July 04, 2025 @08:18PM (#44469100)
> read a whole paragraph of text without a computer generated voice + RSVP [0] + Subway Surfers gameplay in the background

Quite literally laughed out loud at this. I still cannot believe this is a thing people actually do; I thought it was a joke "genre" at first.

Re:The Rise of Whatever by piker on Friday July 04, 2025 @03:54AM (#44462218)
Okay, so optional accessibility issue?
Re:The Rise of Whatever by thasso on Friday July 04, 2025 @05:06AM (#44462686)
I'm shocked every time I go to City Hall and wait while the clerk types my name letter by letter with two fingers. Doesn't he do that every day?! How as it never occurred to him or anyone else that maybe, just maybe, they would benefit from a typing course. It’s just one example of a pattern I’ve noticed with a lot of office workers.
Re:The Rise of Whatever by jjcob on Friday July 04, 2025 @06:49AM (#44463335)
Maybe it's not that important? Taking 5 seconds vs 2 seconds to type a name is probably not that much of a difference? Especially when most of the time you are typing stuff that you need to ask how to spell anyway?
Re:The Rise of Whatever by chrismorgan on Friday July 04, 2025 @07:34AM (#44463593)
It’s not five seconds versus two; it’s fifteen, and with more mistakes remaining at the end (which will sometime waste hours down the line). Because your inferior typist can’t keep up with the phone number being told them, and lose their place in the digits; and are having to concentrate so much on their typing that they don’t correctly interpret what you say to them; and so on. It’s a compounding effect.

Poor typists always slow down processes, and frequently become a bottleneck, local or global. If you can speed up a process by only ten seconds per Thing, by improving someone’s typing skills or by fixing bad UI and workflow, you only have to process 360 Things in a day (which is about one minute per Thing) to have saved an entire hour.

It can be very eye-opening to watch a skilled typist experienced with a software system that was designed for speed, working. In more extreme cases, it can be that one person can do the work of ten. In more human-facing things, it can still be at least a 50% boost, so that two skilled people can beneficially replace three mediocre.

Re:The Rise of Whatever by johnnyanmac on Tuesday July 08, 2025 @06:44AM (#44498798)
Not to be be too caustic, but that above commenter really did embrace the whole spiriton on why "Whatever" is rising. That utter numbness to how inefficient this method truly is is a symptom (which is odd, since these sorts of topics are fixated on optimizing workflows).

We seem to value the actual craft less and less with each passing day. so everything slows down overall.

Re:The Rise of Whatever by jjcob on Tuesday July 08, 2025 @08:19AM (#44499290)
What I was getting at was that maybe typing speed is not the bottleneck. You have to look at how much time the clerk spends typing vs. eg. talking to the customer, clarifying details, explaining the process, reviewing documents, etc. If they spend 5% of their time typing, then even speeding up their typing speed by a factor of 5 will only lead to a 4% speedup, assuming they are fully booked (ie. no wait time between clients).
Re:The Rise of Whatever by LoveMortuus on Tuesday July 15, 2025 @05:24AM (#44569425)
The answer to most of this question is just this: "Because it's good enough."

It's good enough, it gets the job done and does not cause enough friction for the person to feel the need to improve. Complacency.

Re:The Rise of Whatever by arkh on Friday July 04, 2025 @07:56AM (#44463753)
> right or down arrow

If you have to use multiple keyboards, arrows, end, home etc tend to be at different position on the keyboard. Almost no better than using a mouse.

That's were old school vi / emacs shine. CTRL? Always same area, so ctrl-f to go forward? Same gesture whatever brand of a laptop I have to work on.

Re:The Rise of Whatever by _thisdot on Friday July 04, 2025 @04:06AM (#44462300)
I have this turned on in my code editors and Obsidian. The main advantage is reducing the cognitive load. You don’t have to double-check whether you remembered to close your string, bracket, or parenthesis — it’s just there.
Re:The Rise of Whatever by elric on Friday July 04, 2025 @04:10AM (#44462320)
The cognitive load of typing two quotes? Golly. That term is starting to take on "whatever" meaning, apparently.
Re:The Rise of Whatever by _thisdot on Friday July 04, 2025 @04:45AM (#44462536)
The cognitive load of keeping track of all the open delimiters.

In my perceived experience, every time a delimiter is opened, it automatically closes, allowing you to move away from it without thinking.

Even in places where this is not available (Slack, comment boxes, etc.), I close the delimiter as soon as I open it

Re:The Rise of Whatever by Cthulhu_ on Friday July 04, 2025 @04:12AM (#44462333)
You don't have to anyway, a syntax error will show up on your screen pretty much immediately.
Re:The Rise of Whatever by _thisdot on Friday July 04, 2025 @04:46AM (#44462544)
Which I'd like to avoid as early as possible
Re:The Rise of Whatever by sonofhans on Friday July 04, 2025 @03:27AM (#44462030)
Preach it. I’d rather hit right bracket than right arrow.
Re:The Rise of Whatever by arkh on Friday July 04, 2025 @08:01AM (#44463775)
Maybe the origin is the fact not everyone uses qwerty mappings.

On a french keyboard, ~#{[|\\^@]} all require the "alt gr" modifier key which is usually just right of the space key. So totally outside the realm of shift, caps lock, ctrl or alt.

Re:The Rise of Whatever by cess11 on Friday July 04, 2025 @03:53AM (#44462213)
My REPL-style interfaces don't have it while my editors do, I don't feel either is particularly special and there are little pros and cons with both.
Re:The Rise of Whatever by atemerev on Friday July 04, 2025 @03:28AM (#44462032)
Because otherwise it would break syntax highlighting until you finish writing the string. And no, sorry, I like my syntax highlighting, I won't turn it off.

This feature is useful for me. So are LLMs. If someone doesn't want to use this or that, they are not obliged to. But don't tell me that features that I find useful "suck".

Re:The Rise of Whatever by chmod775 on Friday July 04, 2025 @03:49AM (#44462186)
> Because otherwise it would break syntax highlighting until you finish writing the string.

You can always insert the second " as a ghost(?) character to keep syntax highlighting working. But it's not like any modern language server really struggles with this anyways.

Re:The Rise of Whatever by willvarfar on Friday July 04, 2025 @03:48AM (#44462183)
Sad this is downvoted, because syntax highlighting is a very plausible explanation for this editor behaviour.

You can perhaps imagine an editor that only inserts the delimiter if you type the start-string symbol in the middle of a line.

Re:The Rise of Whatever by rasur on Friday July 04, 2025 @04:18AM (#44462368)
Emacs user here, and the whole "electric-mode" stuff (for matching parens or other balanced pairs of things) I find really quite useful. And closing a pair is usually something like shift+enter, which is quite simple (but also - at least in Emacs - generally completely configurable). I think the benefits outweigh the pitfalls, personally.

Can't speak to other editors though.. I don't want to sound like I'm trolling, but they generally feel quite clunky, compared to Emacs (ducks, runs ;p )

Re:The Rise of Whatever by bbarnett on Friday July 04, 2025 @05:01AM (#44462644)
There's nothing wrong with emacs. Both vim and emacs are just targeting different segments of humanity, that's all. Vim is clean, concise, slim, where as emacs is more bulky, cluttered, stifling.

It's just matching, and reflecting the way different humans think, and reason, that's all.

(yes, said in jest)

Re:The Rise of Whatever by matsemann on Friday July 04, 2025 @04:21AM (#44462389)
> and it’s wrong often enough

How is it ever wrong, though? If I insert a (, and then a {, and the editor appends so that it's ({}), that's always ?correct. Can it ever not be.

Maybe because on a Norwegian keyboard { is a bit awkward, but I like it. Then even if we're 5 levels deep with useEffect(() => {(({[{[ I can just press ctrl+shift+enter and it just magically finishes up everything and put my caret at the correct place, instead of me trying to write ]}]})) in the correct order.

Re:The Rise of Whatever by Kon5ole on Friday July 04, 2025 @05:11AM (#44462725)
>How is it ever wrong, though?

Whenever you edit something existing that already has the ), ] or } further down and you end up with a ()), []] or {}}. Or when you select some text that you want to replace and start with a quote only to end up with "the text you wanted to replace" instead of the expected ".

I never notice when it works but get annoyed every time it doesn't, so I feel like it never works and always sucks.

I guess it's muscle memory and some people are used to it, but it feels fundamentally wrong to me to have the editor do different basic editing things based on which character is being pressed.

Re:The Rise of Whatever by jltsiren on Friday July 04, 2025 @05:04AM (#44462659)
Most editors are not smart enough to do it consistently right. For example, VS Code often inserts extra quotes when I try to break "long string" into "long " + something() + " string". And when I try to write a half-open interval [a, b) in a comment or within a string, the editor inserts an extra ].
Re:The Rise of Whatever by rcxdude on Friday July 04, 2025 @04:43AM (#44462525)
It certainly can, because it doesn't necessarily know where the closing brace should be, especially when inserting as opposed to writing a completely new line. I'm often deleting random crap in the editors I use with the 'feature' as I'm adding delimiters. '"' tends to be even worse, because the distinction between opening and closing is not obvious.

e.g.:

(a + b > c) -> ((a + b > c) -> (()a + b > c) -> no, I was aiming for ((a + b) > c)

(it sound like you're talking about a different feature/implementation, though, since in the annoying case there's no 'completion' shortcut, it just appears)

Re:The Rise of Whatever by Attrecomet on Friday July 04, 2025 @11:08AM (#44465211)
> can just press ctrl+shift+enter and it just magically finishes up everything and put my caret at the correct place, instead of me trying to write ]}]})) in the correct order.

I think here you are talking about a different thing -- completion of already started parentheses/"/whatever with content in-between, not the pre-application of paired braces or quotation marks, as the author did, no?

Re:The Rise of Whatever by charles_f on Sunday July 06, 2025 @01:10AM (#44478008)
I can't count how many } I've deleted across the years because of that feature
Re:The Rise of Whatever by 8n4vidtmkvmk on Friday July 04, 2025 @04:34AM (#44462450)
I hated this feature until I realized I could just type the closing quote anyway and it wouldn't double up. Doesn't seem to bother me now that I'm used to it. Once in awhile my editor tries to get too clever and messes things up, but not often
Re:The Rise of Whatever by whoisyc on Friday July 04, 2025 @05:52AM (#44463009)
That’s what GP said about “harder to model the editor’s behaviour mentally” though. In a dumb editor you type a quote and you get a quote, in a “smart” editor whether or not you get two quotes, one quote, or no quote at all is context dependent and more confusing.
Re:The Rise of Whatever by kzrdude on Friday July 04, 2025 @07:43AM (#44463659)
I definitely agree, it's so annoying.

I found one place where it makes sense, but it's kind of because of other design choices.

The Typst collaborative web editor automatically doubles "" and $$ and so on. It also breaks document preview/compilation if you have mismatched braces (of some kinds and not others) or mismatched $$. So the delimiter doubling actually helps you having a smooth valid document for a greater fraction of the time while live-editing, but it only really matters when you are collaborating with someone and both furiously typing at the same time.

(if the awesome Typst people are reading this: it's still wrong to not have an option to disable this. I'm deleting so many misfired "" insertions per day..)

Re:The Rise of Whatever by feelamee on Friday July 04, 2025 @08:15AM (#44463863)
[delayed]
Re:The Rise of Whatever by kqr on Friday July 04, 2025 @08:47AM (#44464038)
I've never noticed some editors do this because I always type both opening and closing symbols at the same time, and then back up into them if I want to fill them out. I think I learned it from my father and just anecdotally I make mistakes of unbalanced symbols nowhere near as often as others.
Re:The Rise of Whatever by pxc on Friday July 04, 2025 @02:12PM (#44466698)
> But it’s only more of the time: your source will still be invalid frequently, including when it gets things wrong and you have to relocate a delimiter. In practice, I don’t think it’s useful on that ground.

Maybe it's like a pale imitation of structural editing? There are editing modes for some editors that more or less ensure the syntax is always valid as you edit, and they of course include this feature.