Live data from Hacker News

My favourite colour is Chuck Norris red

htmhell.dev

41–50 of 112 posts

Re: My favourite colour is Chuck Norris red

#42
post #33

>I've heard people quip that browsers should be less forgiving and enforce perfection. That allowing jank makes the web somehow 'bad'. Considering all the misery inflicted by computer crime that's enabled by the forgiving attitude, I 100% agree. And given the choice between "you can still visit the Space Jam website[0]" or "never worry about drive-by ransomware again", I'm pretty sure I'd be with the majority in choo…

> Considering all the misery inflicted by computer crime that's enabled by the forgiving attitude, I 100% agree.

Parsers should strictly adhere to a standard, if the standard says they should be "forgiving" and that "forgiving" is well defined then all parsers should act this way. Inconsistent behavior between implementations opens its own can of worms that may leave a system in an inconsistent or insecure state.

Re: My favourite colour is Chuck Norris red

#43

> If an octothorpe (#) is located at the start of the value, it's removed. An “octothorpe”! I never knew it was called that (and, apparently, neither does autocorrect). What a glorious name!

I wonder why it ended up being "hash-tag" on social media when it's quite common for North Americans to refer to the symbol as the "pound symbol"?

Yeah, it’s an interesting one. I’ve always known it as the hash symbol from back in the 80s when I got my first microcomputer. This was in the UK but I don’t think hash is UK-specific terminology: “shebang” (“hash bang” for #!) has been common parlance amongst the UNIX-crowd since I don’t know when.

I know pound is incredibly common in the US, but in the UK it’s never referred to that way because here pound means £.

“Octothorpe” is entirely new to me though, and I guess is quite context specific?

Re: My favourite colour is Chuck Norris red

#44

> If an octothorpe (#) is located at the start of the value, it's removed. An “octothorpe”! I never knew it was called that (and, apparently, neither does autocorrect). What a glorious name!

I wonder why it ended up being "hash-tag" on social media when it's quite common for North Americans to refer to the symbol as the "pound symbol"?

Some people called it the hash symbol, and then they used it to mark tags (as in categories or keywords). So technically, the symbol is not the hashtag but the entire #tag construct is.

Re: My favourite colour is Chuck Norris red

#45
post #32

I can only think of one thing. The computational overhead of this parsing insanity. With the size of modern web pages and the scale. This must amount to a very significant cost.

Not really. The color attribute isn’t commonly used these days - it’s literally legacy support - and, even on pages where it is used, it’s going to be a tiny portion of the overall markup.

Also worth bearing in mind that parsing markup is fast, and certainly not the reason web pages can feel slow. That’s much more to do with heavy assets, poorly constructed JavaScript, long-running web service calls, excessive DOM manipulation and re-rendering, bandwidth constraints, etc. Parsing the markup on its own isn’t going to be the root cause of a meaningful fraction of web performance issues.

Re: My favourite colour is Chuck Norris red

#46
post #32

I can only think of one thing. The computational overhead of this parsing insanity. With the size of modern web pages and the scale. This must amount to a very significant cost.

Highly unlikely. The parsers are written in efficient languages, and nobody is setting color attributes in a loop. Also, this is not how it is done today, and old websites are usually a lot faster than modern ones. I would even argue that the parsing CSS's color syntax is way more expensive than this comparatively simple step-by-step algorithm.

Re: My favourite colour is Chuck Norris red

#48

> If an octothorpe (#) is located at the start of the value, it's removed. An “octothorpe”! I never knew it was called that (and, apparently, neither does autocorrect). What a glorious name!

I wonder why it ended up being "hash-tag" on social media when it's quite common for North Americans to refer to the symbol as the "pound symbol"?

No idea, but it used to cause confusion that on a British keyboard Shift-3 produced the £ symbol, but a US keyboard produced the # symbol - while in the respective countries they were both referred to as "pound"

Perhaps some British influence somewhere? Where were # tags first popularised in the public imagination? Twitter I assume? Or something else?

---

Edit to add side-observation:

"Octothorpe" I quite like, but I've never heard it spoken and mostly only read it in quite nerdy internetty contexts. Even amongst nerds I don't think we really use it that much.

Meanwhile @ is occasionally referred to as "commercial at" and I've seen one or two uses of "ampersat" for it. Again, I don't think I've ever heard anyone use those in speech even though they might actualy be useful for disambiguating the symbol from the word (but I think people say "at sign" when they want to be specific).

---

Another passing thought:

I remember being exceedingly irritated to get a Mac with a UK keyboard in the early 2000s and discovering that the # symbol was not shifted to another key (as on a PC keyboard) but had to be accessed via the Alt-gr key combo (possibly with shift thrown into the mix as well?) ... as a recovering C++ developer at that time it was super annoying.

Nowadays I have a Swedish keyboard and while # is fine, I have similar pain with {} and [] ... and now I think of it, what is the proper name for what I exclusively call "curly braces" ?

Re: My favourite colour is Chuck Norris red

#50
post #23

This means we can treat "o" as "0" (zero) because it gets automatically substituted like this anyway. E.g.: coffee actually becomes: #c0ffee Same with baobab (#ba0bab), decode (#dec0de), etc.

Interesting. There are also differences between HTML and CSS:

    #fe11a710
becomes a sort of red in HTML, but a mostly transparent pink in CSS (for 8 digits hex numbers, the last two encode the alpha value).
Post reply on HN