Hacker Newsnew | past | comments | ask | show | jobs | submit | sorrythanks's commentslogin

Unless the designer removes the id, or the engineer introduces new output that is not styled.


Yes. Mostly because:

• JSX is well understood by a lot of developers • support is already built in to text editors • it is understood by typescript


almost all code looks like nonsense when you're unfamiliar with it


question: why not make all strings multi-line, and drop a syntax/concept?


maybe i'm too far gone, but this doesn't even feel hacky to me. the key needs to be a unique number, -1 and 1 are two different numbers.


Yeah but how many of those customers were relying on the key not being a negative number?


Assuming the API was properly documented as returning signed int, that’s not my problem. Abuse of the API or misunderstanding of the API doesn’t trump running out of space.


Exactly. I mean, if the end solution is to convert to a big int, who’s to say that some customer didn’t assume it would always be 32 bits and blow up then, too.

This does highlight the fact that 32 bit is just a small number these days. Personally, I prefer UUIDs instead of incrementing integers for primary keys since they also scale out without having to have global coordination, but at least choose a 64-bit number.


Yes. It's just so much easier to create a UUID client-side, use that to identify data in temporary UI state and commit without having to worry about getting the incremented identifier.

I find this significantly reduces decision fatigue. Deciding which hack to use for temporary identifiers is not much fun.


i don't understand the connection


type in your own accent, it works when we talk


It sometimes work when we talk.


"console", "terminal" and "terminal emulator" all refer to the same thing. "shell" is the read-eval-print-loop interface you use to work in the terminal.


Please don't confuse the novices. A console is either a special kernel device or a UI subsystem; a terminal is a physical piece of kit; and a terminal emulator is an application that runs on a general purpose computer that emulates one of the aforementioned pieces of kit.

* https://jdebp.uk/FGA/tui-console-and-terminal-paradigms.html

* https://jdebp.uk/Softwares/nosh/guide/commands/freebsd-conso...

* https://jdebp.uk/Softwares/nosh/guide/commands/linux-console...

* https://jdebp.uk/Softwares/nosh/guide/commands/linux-vt.xml

* https://blog.bruchez.name/posts/televideo-912-terminal-1/


You're assigning a rigidity to these terms that they simply don't have. A "console", in the oldest sense of the term, is any place where a user interfaces with a computer, or more broadly with any kind of machine.

>Borrowed from French console (“bracket”, noun), from consoler (“to console, to comfort”, verb). Sense of “bracket” either due to a bracket alleviating the load, or due to brackets being decorated with the Christian figure of a consolateur (“consoler”), itself perhaps a pun on the first sense (alleviating load). Originally used for the bracket itself, then for wall-mounted tables (mounted with a bracket), then for free-standing tables placed against a wall. Use for control system dates at least to 1880s for an “organ console”; use for electrical or electronic control systems dates at least to 1930s in radio, television, and system control, particularly as “mixer console” or “control console”, attached to an equipment rack.

A "terminal" is a text-only console. For a long time, "terminal" and "console" were synonymous. By metaphor, in the same way that a "desktop" is not a desktop, referring to a terminal emulator as a console is perfectly acceptable, and everyone will understand what is meant.


On the contrary, I've quite explicitly pointed out that a console is one of several things, in contrast to the false claim that these are all just the same thing. Go back and read the FGA.

A console is not even necessarily the same abstraction as a terminal, let alone always synonymous with a terminal emulator, and "referring to a terminal emulator as a console" is not only not perfectly acceptable, it is downright erroneous on all of the platforms on which Kitty runs including the platform used by unpopularopp where XNU's console is very specifically a serial or video special kernel device. You are confusing the novices, too.


>"referring to a terminal emulator as a console" is not only not perfectly acceptable

To clarify, you don't like it.

>it is downright erroneous on all of the platforms on which Kitty runs

You make it sound like saying something "erroneous" (which of course I don't agree it is) is some kind of magic spell that does something. "Kitty is a console." What, what did that do?

>You are confusing the novices, too.

Uh huh. Literally no one is confused by these terms, you're just disagreeing with the usages. Say to someone "open up an xterm console" and I guarantee you they will understand that you want them to start an instance of xterm, not that you're having a stroke.

>XNU's console is very specifically a serial or video special kernel device.

If a system uses a word to refer to something specific, that doesn't co-opt the meaning of the word. An "XNU console" and a "console" in the broad sense are distinguishable concepts.


Technically true, but I’ve never heard anyone say “open a terminal emulator and type…”


You've only been within earshot of slipshod people. (-: And you are typing below a headline that calls the thing a terminal emulator, so you cannot really say that you've never encountered one referred to as such.


Because people say "open a command prompt". That can be a terminal emulator, a kernel console on screen+keyboard, a terminal via serial port console, or a ssh connection, and usually it doesn't matter which.


At least Microsoft finally stopped making people think (on Windows NT, no less) that these were "DOS prompts", though, which used to be a very common misnomer.

* https://jdebp.uk/FGA/a-cli-is-not-a-dos-prompt.html

You'll rarely find them actually called "command prompt" on the operating systems that Kitty runs on, though, including the operating system that unpopularopp uses. That's largely a Microsoft-ism, and one that has in fact been quietly eroding in the Microsoft world for years since the advent of PowerShell and Microsoft Terminal, with people now more and more writing and talking about opening "PowerShell" or "Terminal" rather than opening "command prompt".

On the operating systems that Kitty runs on, they're called terminal emulators, especially in their own doco and blurbs (as with Kitty, here), and when it comes to desktop menus usually (in contrast to the Microsoft Windows "command prompt" shortcut) have their actual names (Konsole, XTerm, UXTerm, RXVT Unicode, and so on being listed under their names, with GNOME Terminal and its derivatives and Apple's Terminal being somewhat exceptional rather than the rule).


> Please don't confuse the novices

<Proceeds to dump a bunch of irrelevant minutia and links>

Lol my man I don't think you're the right person to be taking advice from on how to not confuse people.


If your only examples of terminals are in museums, I'm taking over the word.


their point is that it has not yet taken place, so shouldn't be talked about using past tense


There are things that are true


Sure. But there is no objective arbitter of truth.

In a similar vein, if I'm standing at a train station discussing some topic with a friend on which we have different opinions w.r.t facts, I would not feel comfortable if a stranger would come up, insert themselves into our conversation and start unasked to "correct" one of us (or both). Occasionally and if it's done very politely, maybe. But if that happened every time I'd be seriously annoyed. Correct or not.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: