TIL (about the Dark Arts of HTML)
-
@remi said in TIL (about the Dark Arts of HTML):
purely phonetical alphabet (english)
-
About the term TITSUP:
*That's a Total Inability To Support Usual Performance, rather than any anatomical reference.
Was this a joke to cover up a slightly crude sounding term? Probably. Do I care in the least? NOPE!
Filed under: I'm always TITSUP in the morning before my first coffee, Performance is usually restored by the time I get a "good morning" message from @Boner
-
-
@Onyx said in TIL (about the Dark Arts of HTML):
Was this a joke to cover up a slightly crude sounding term?
Yes. Tits up is a British phrase meaning broken.
@Onyx said in TIL (about the Dark Arts of HTML):
Do I care in the least? NOPE!
-
@loopback0 said in TIL (about the Dark Arts of HTML):
Yes. Tits up is a British phrase meaning broken.
I am aware. The acronym excuse is a new one to me though.
-
@Onyx I got curious, so I looked up the etymology:
Seems to have originated at some point in the 20th century, with the rise in military aviation, so probably around WWII.
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
TIL there's a 10 minute waiting period between email confirmation notices.
: Hmm, I should make accept the invite to mafia-players.
: Email not confirmed!
: Clicks notification
: Email confirmation sent.
: Weird, I don't seem to --- dammit, his email is set to something weird
: updates email
: How do I send another confirmation? clicks around for a bit, gives up
: starts a new thread Ben, how do I confirm my email? clicks submit
: Email not confirmed!
: clicks notification
: Please wait ten minutes between confirmation email requests.
:Well, now I know why I got a confirmation email for @vote a week ago.
Which I mindlessly clicked anyway because I figured it was something like that.
-
» rex = new RegExp('^foo') ← /^foo/
» 'foobar'.startsWith(rex) ← TypeError: Invalid type: first can't be a Regular Expression
TIL:
» rex[Symbol.match] = false ← false
» 'foobar'.startsWith(rex) // String#match() no longer complains ← false
Now
» '/^foo/bar'.startsWith(rex) ← true
seems to be the same as just doing:
» '/^foo/bar'.startsWith( (/^foo/).toString() ) ← true
But... WHY WOULD YOU DO THIS??
You could use Symbol.match for this, I guess:
» shorterThanSeven = { [Symbol.match]: function(s) { return s.length < 7; } } ← Object {}
» ['foobar'.match(shorterThanSeven), 'foobarqux'.match(shorterThanSeven)] ← Array [ true, false ]
But again... why??
-
TIL about Thug Notes.
-
@Greybeard
Those are amazing. Though maybe I'm just culturally appropriating myself some 'hood lit.
-
@izzion Have an indulgence. Thug Notes is awesome.
-
TIL there's a part of Reddit that permanently looks like our 2017 April Fools (and worse!):
EDIT: Screenshot for future proof:
-
TIL @cloak15 was almost an accessory to selling child pornography, but he failed at it.
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
TIL @cloak15 was almost an accessory to selling child pornography, but he failed at it.
My curiosity is telling me to ask for the details, but the rest of my brain strongly disagrees.
-
-
@Yamikuronue And yet another reason why "child" pornography laws which treat this case the exact same way as actual kiddie porn are highly questionable. It's easy to accidentally distribute or view porn showing a 17-year-old.
-
@asdf I agree. We're weirdly harsh on borderline cases in the US, often to the point of ruining lives over an innocent misunderstanding.
-
@JBert said in TIL (about the Dark Arts of HTML):
EDIT: Screenshot for future proof:
No repro, but the logo on the top corner pretends to load slowly.
-
@Zecc It still appears to curve for me using Firefox, Pale moon and Chrome.
I'm not going to try it in IE or Edge though...
-
TIL the Vivaldi forums use NodeBB.
-
@anonymous234 Seems appropriate for a browser that doesn't have a mobile version.
-
TIL Go doens't support method overloading; every method's name has to be unique when fully qualified. When pressed for a reason, they showed taste and elegance by going with the classic "because it's hard" defense rather than the expected "idunwanna".
-
@Yamikuronue Does it at least have the decency JS does and allow you to specify argument lists without having to make them part of the method signature?
-
@RaceProUK No.
func (fp *Provider) FlagInit() (*sql.DB, error) { //snip } func (fp *Provider) ParamInit(s string, u string, pw string, d string, p int) (*sql.DB, error) { //snip } func (fp *Provider) StructInit(c Connection) (*sql.DB, error) { //snip }
We're discussing better naming patterns, but ultimately it'd be nicer if they were all just called
init
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
Go doens't support method overloading; every method's name has to be unique when fully qualified.
Does it support default values for parameters? If it does, I think the decision is somewhat reasonable.
-
@Yamikuronue Ah.
TIL the makers of Go can't be bothered to solve a problem the makers of C++ solved 34 years ago.
-
-
@Yamikuronue can you pass a generic object, and have the function determine which of its properties have values and respond accordingly?
-
@anotherusername Generic objects? Nah. Structs though. With everything of type string, and things set to empty string when they're "unset". It's very C.
-
@Yamikuronue
Well, I mean, we have to have some language that has all of the underlying capabilities of C, but is hip enough thatmodernyoung programmers will actually learn and use it.
-
@anonymous234 said in TIL (about the Dark Arts of HTML):
TIL the Vivaldi forums use NodeBB.
For a slightly bigger surprise, try https://forum.qt.io/
They have some nice customizations too, IIRC.
Their migration from the previous platform is nowhere near as good as ours was though. Bunch of broken markup in old threads...
-
@izzion Our consensus on my team is that Go is impractical for doing just about anything with, though it's halfway decent at microservices; however, it's best at attracting hipsters, so that's why we're pushing forward with it. We want to hire more people with neat berets and strong opinions on their coffee.
-
@Yamikuronue would an array work, then?
-
@anotherusername Strongly typed, but shove it all in strings and you're golden.
-
@RaceProUK said in TIL (about the Dark Arts of HTML):
TIL the makers of Go can't be bothered to solve a problem the makers of C++ solved 34 years ago.
Not that I have a very high opinion of Go, but overload resolution can be counterintuitive, so it's not completely unreasonable not to allow overloading at all to remove a possible source of errors.
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
Our consensus on my team is that Go is impractical for doing just about anything with
That was also my verdict. It's not a low-level language (garbage collection!), but it lacks important features of high-level languages, so I have no clue which niche they this language for.
-
@asdf Microservices. And showing off. It's got built-in libraries for web stuff, making it clear where their heads were at when they designed it, but it lacks just about everything you'd need for a larger web-based application. It's designed to be fast to compile, support TDD, and compile down real tiny, but not handle a lot of dependencies (so you want very small single-purpose modules instead).
-
@Yamikuronue said in TIL (about the Dark Arts of HTML):
Go is impractical for doing just about anything with
so..... it more properly belongs on esolangs.org instead of in production code?
yeah, i'd believe that.
-
@Yamikuronue I really hope Rust kills Go at some point. Its design is superior in so many ways, plus it's an actual replacement for C and not simply pretending to be one.
-
@asdf Did they get Rust to the point where it is practical to use it for a GUI toolkit yet? The last time I looked, they got all hung up over what exactly owns what and so tangled themselves into a state where they managed to believe that GUIs were formally impossible with their ownership/mutability model. Or something like that. Now let's be quite clear, GUIs are difficult, especially at the toolkit level. They tend to be far more asynchronous than most people are used to (even those used to writing services or parallel codes) and so break many assumptions. But that's no excuse for a language being unable to support one, especially if that language is making a pitch to replace C and C++. (Higher level languages can just delegate to a lower-level library.)
-
@dkf said in TIL (about the Dark Arts of HTML):
Did they get Rust to the point where it is practical to use it for a GUI toolkit yet?
I don't know of any GUI toolkit written exclusively in Rust, only of bindings for common toolkits. So: No clue.
-
@dkf said in TIL (about the Dark Arts of HTML):
Higher level languages can just delegate to a lower-level library.
They could delegate it to a C library, but being unable to provide one is evidence they are doing things wrong.
-
@Yamikuronue Is Go's compiler written in go?
-
@wharrgarbl said in TIL (about the Dark Arts of HTML):
They could delegate it to a C library, but being unable to provide one is evidence they are doing things wrong.
The existing GUI toolkit bindings do delegate the work to C libraries. In fact, using a C library from Rust (and integrating that into the
cargo
build) is incredibly easy. You're making incorrect assumptions about a language you obviously don't know...
-
@asdf said in TIL (about the Dark Arts of HTML):
so I have no clue which niche they this language for.
-
TIL one of my favorite actors has a really low opinion on his own work
-
YIL: Youtube Dark Mode.
Enabling YouTube's dark mode is simple enough, here are the instructions:
Chrome users: Press ctrl + shift + i to open the developer sidebar while you're on the YouTube home page and press the console tab. Firefox users: Press ctrl + shift + i and type allow pasting.
Paste document.cookie="VISITOR_INFO1_LIVE=fPQ4jCL6EiE" and press enter.
Refresh YouTube and click your profile image (or the three dots) in the upper right and select Dark Mode.
-
@wharrgarbl said in TIL (about the Dark Arts of HTML):
They could delegate it to a C library, but being unable to provide one is evidence they are doing things wrong.
Indeed, they do (AIUI). But since the pitch of Rust is “like C and C++ but better because SAFETY!” there's something horribly wrong if they can't make a native one, even if only as a proof of concept. Now, there are other good reasons to delegate to an existing library for this sort of thing, the foremost of which is that GUI toolkits are a PITA to write; they really take a lot of code. They're also remarkably hard to test properly; there's a lot in there that requires people to test by hand, sometimes with rather specialised skills, and most GUIs are highly sensitive to the OS environment in complex ways too.
But the suspicion remains that Rust is actively unable to write a GUI at all, that its model of ownership and sharing just isn't able to cope. It's perilously close to being the sort of thing I'd call an academic wankfest, and I work for WTF-U…
-
@dkf Does even Python have a full Python GUI library?
-
@wharrgarbl Well, it has a GUI library written in C for a completely different scripting language that no one uses anymore, which of course depends on a full interpreter of that language being included in Python, if that's what you're asking!
But seriously, there are a lot of Python GUI toolkits, and yes, some of them are written in Python, like Toga or Flexx (even if it runs in the browser), but they're not exactly the most popular ones.
Edit: even bigger list