[-] expr@programming.dev 6 points 1 month ago

Paw Patrol is a very fascist show meant to teach fascist ideology to kids, just so you know: https://www.cnn.com/2017/12/22/health/thomas-tank-engine-paw-patrol-fascist-cartoon-strauss/index.html

This isn't a criticism, it's easy to for stuff like this to slip past parents' radar. But I'd strongly recommend switching to a different show.

[-] expr@programming.dev 6 points 3 months ago

Why in the ever-loving fuck would it do that? My hatred of Go only continues to grow.

[-] expr@programming.dev 6 points 3 months ago

Only if using JSON merge patch, and that's the only time it's acceptable. But JSON patch should be preferred over JSON merge patch anyway.

Servers should accept both null and undefined for normal request bodies, and clients should treat both as the same in responses. API designers should not give each bespoke semantics.

[-] expr@programming.dev 6 points 3 months ago

There are a number of blue cities in the Midwest. What's the lowest temp you want? I live in Lincoln, Nebraska and it's pretty great: nice weather most of the year, low cost of living, blue city, tons of parks. Only downside is dealing with red state bullshit from the state government.

[-] expr@programming.dev 6 points 5 months ago

You're just a truly awful person, aren't you?

[-] expr@programming.dev 6 points 5 months ago

It sounds funny but it's not an uncommon phrase.

[-] expr@programming.dev 6 points 7 months ago

https://en.m.wikipedia.org/wiki/Regular_language

HTML is famously known for not being a regular language. An explanation isn't required, you can find many formal proofs online (indeed, a junior year CS student should be able to write a proof after their DS/algo/automata classes).

This very old post is funny because despite it being so famously known as being irregular, stack overflow questions kept popping up asking how to use regular expressions to parse HTML, which you can't do.

[-] expr@programming.dev 6 points 8 months ago

It's not the case that viruses can't exist on Linux, it's just very improbable through normal usage. The key difference is that the overwhelming majority of software installed on Linux is through a package manager, which is a tool that downloads software from a maintained, trusted, and vetted repository of software. So instead of googling "Firefox download", clicking on (hopefully) the right link (and getting this right gets harder and harder with Google fucking up search results), and downloading the software from the website, you simply execute a command in your terminal like apt install firefox (for Debian-based systems, command can vary by distro you're using) and it pulls the software from a trusted repository. This alone eliminates the most common attack vectors, since usually Windows users get viruses by downloading random executables off the internet.

Generally, the way you get viruses on a Linux system are through finding/exploiting vulnerabilities in software which is very hard to pull off generally and are usually resolved fairly quickly once they're discovered (And of course, Linux is not unique in this respect, any computer can be target of such attacks).

[-] expr@programming.dev 6 points 8 months ago

It's less of an issue of reviewing all packages than it is that this causes DOS in the first place. It's pretty damn stupid that you can't unpublish packages others depend on, and the whole recursive dependencies thing makes the situation a lot worse than it otherwise would be. Neither of these are issues with other package registries.

[-] expr@programming.dev 7 points 9 months ago

This true, though Republicans have gerrymandered the districts so bad that it almost always ends up as all Republican anyway. Look at how crazy this looks: https://en.m.wikipedia.org/wiki/Nebraska%27s_congressional_districts#/media/File%3ANebraska_Congressional_Districts%2C_118th_Congress.tif.

For some fucking reason, Lincoln (a liberal city that's the second largest in Nebraska) is in the same district as a bunch of rural towns that I would have to drive for hours to get to. Sarpy county, which most consider to be a part of Omaha (and again, is about an hour-ish drive from Lincoln, was recently switched to our district because they are largely conservative, and they redrew it just before we were supposed to be electing our new congressperson (which, by the way, was a special election because the previous Republican congressman was convicted of felonies relating to lying about foreign campaign contributions, go figure). A democrat swept Lincoln, but lost because they piled on enough rural counties in the fucked up map. Republicans have no respect for democracy.

[-] expr@programming.dev 6 points 11 months ago

Huh, my local Walgreens is usually like 1-2 pharmacists, 3-4 techs, and 2-3 people for non-pharmacy.

[-] expr@programming.dev 7 points 1 year ago

It's a pretty natural consequence of other languages simply not having a concept or word for the thing that we're trying to abstract over, so better names simply don't exist. I've yet to see anyone come up with a better name than "monad" for the concept. Same for monoids. We may as well use the names that come from math and are already used extensively rather than trying to invent some new name that would invariably be misleading anyway.

Every single programming language is chock full of jargon that is basically meaningless to anyone unfamiliar with it. It's really no different. The only difference is that monads are fundamentally an unfamiliar concept to many imperative programmers, particularly because programming in that style pretty much upends a basic assumption imperative programmers tend to have (namely, that the semantics of sequencing operations is a global, immutable property of programs).

view more: ‹ prev next ›

expr

joined 1 year ago