docAvid

joined 2 years ago
[–] docAvid@midwest.social 1 points 2 years ago

Oof lol, takes on a new meaning

[–] docAvid@midwest.social -3 points 2 years ago (3 children)

I'm not saying Trump's any kind of actual "stable genius", but he's not as dumb as he acts. Just like George W Bush did, he plays social media, exploiting what I like to call the "pro wrestling fallacy" that liberals fall for every time.

Back in the nineties, seemingly educated, largely-Democrat-leaning people would talk about how dumb wrestling fans were, since it's all obviously faked. The largely-Republican-leaning wrestling fans knew it was fake, it's a show ffs, they aren't five year olds, and they naturally felt really insulted, contributing to the growth of a divide that we see today - redcaps against the rest of us. You'd even get people passionately arguing that it's real, maybe to feel like they're kind of part of the show, maybe just to troll the "liberal elitists" who were looking down on them.

Every time Dubya said something like "misunderestimated", "is our children learning", or "catapult the propaganda", we all made fun of it, it was talked about on the talking head shows, maybe even a bit on Saturday Night Live. To us, he looked dumb, but his messages got more circulation, his name was said more, and the people who already felt this (actually ivy-league educated scion of a wealthy elitist family) was just a regular guy they could have a bear with, people who could empathize with not having the perfect words all the time, they felt like we were making fun of them - which, in a way, we were. They loved him for being one of them.

In a lot of ways, Trump has just taken that to the next level. He's a master of getting us to attack him, in a way that make large parts of the country love him, and it works.

[–] docAvid@midwest.social 2 points 2 years ago

Yeah, I'm not even a python dev, I knew what dropwhile did immediately from the name. Some people just don't want to learn anything new, ever.

[–] docAvid@midwest.social 4 points 2 years ago

I interpret it a bit differently. After all, a variable declared with var isn't really more capable of being rebound, or bound to more values, than one declared with let. However, it is possible, with var, that setting a variable in one place could change it unexpectedly in another, so Rose Noble coming out as trans could cause Jordan Peterson to also suddenly be a woman.

[–] docAvid@midwest.social 1 points 2 years ago* (last edited 2 years ago)

Oh, I like Emacs, alright. I spend more time in Emacs than in my partners.

[–] docAvid@midwest.social 1 points 2 years ago

Straight to nerd.

[–] docAvid@midwest.social 2 points 2 years ago

Lost and confused nerd.

[–] docAvid@midwest.social 2 points 2 years ago

A scripting language is certainly a programming language. In fact, it can be hard to even draw a line at all. PHP is just-in-time compiled, and has static analysis tools that can catch errors that are normally considered "compile-time" - scripting language or no? Is Typescript compiled? Are JVM bytecode and WASM just very low level scripting languages? Can you write a powerful web application using BASH? What even is Lisp, in this context? "Scripting language" is a poor abstraction, really.

[–] docAvid@midwest.social 4 points 2 years ago

A lot of us did, actually.

[–] docAvid@midwest.social 17 points 2 years ago (1 children)

when you would literally get a slip of paper that showed you the lyrics.

Insert "If Those Kids Could Read, They'd Be Very Upset" meme here.

[–] docAvid@midwest.social 2 points 2 years ago* (last edited 2 years ago) (1 children)

I mean, that's just a bad library interface. With a halfway decent interface, you can do something like

query('insert into foo (status, name) values (:status, :name)', ent)

No orm required. With tagged templates in JS, you can do

q`insert into foo (status, name) values (${ent.status}, ${ent.name})`

Even wrap it in a function with destructuring to get rid of ent:

const addFoo = (q, {status, name}) =>
    q`insert into foo (status, name) values (${status}, ${name})`

Typescript can add type safety on top of that, of course. And there's the option to prepare a query once and execute it multiple times.

Honestly, the idea of manipulating XML queries, if you mean anything more fancy than the equivalent of parameter injection, sounds over-complicated, but I'd love to see a more concrete example of what you mean by that.

[–] docAvid@midwest.social 1 points 2 years ago

Postgres has the having clause. If it didn't, that wouldn't work, as you can't use aggregates in a where. If you have to make do without having, for some reason, you can use a subquery, something like select * from (select someCalculatedValue(someInput) as lol) as stuff where lol > 42, which is very verbose, but doesn't cause the sync problem.

Also, I don't think they were saying the capability having gives is bad, but that a new query language should be designed such that you get that capability without it.

view more: ‹ prev next ›