0
35
alr

@programming.dev

alr 58 points 3 years ago

You forgot "don't say 'thank you for pointing out that we were sending social security numbers to everyone who visits our website that anybody could stumble across,' but rather 'you will be prosecuted to the fullest extent of the law, hacker!'" Courtesy of the Missouri Department of Education.

path: 0 3393118, hotness: undefined, score: 58, children: 0
alr 29 points 3 years ago

NEMA has called them "plugs" and "receptacles" for decades.

path: 0 3385195 3393139, hotness: undefined, score: 29, children: 3
alr 19 points 3 years ago

If you're random Joe Schmoe who happens to need a database, I don't expect you to contribute. But when you're of the largest tech firms in the world...

path: 0 8652816 8653432 8653808 8656545 8657086, hotness: undefined, score: 19, children: 0
alr 9 points 3 years ago

Rather than messing with the EventListener, wouldn't it be easier to just throttle the function that it calls? You can find a bunch of articles online that will explain how to implement a throttle (and also a debouncer, which is similar, but not quite what you're looking for; a throttle allows a function to be called immediately unless it's already been called too recently, while a debouncer waits every time before calling the function and restarts the wait timer every time someone tried to call the function).

path: 0 3356914, hotness: undefined, score: 9, children: 0
alr 7 points 3 years ago

So Java is kinda slow. Its "everything is a class" mentality has lost favor as first-class functions have become popular through languages like JavaScript (no relation to Java) and Python. Even C++ has them now.

Independent of the language itself, Oracle (the company that owns Java) has become unpopular in the industry recently as they changed the way the Java Development Kit was licensed, making it significantly more expensive, and for being on the wrong side of the Google v. Oracle suit. (Literally everyone, from the OSF and the EFF to the "big five" tech companies took Google's side.)

path: 0 625889, hotness: undefined, score: 7, children: 9
alr 7 points 3 years ago

They've already been on strike. They went on strike on the 5th. They're asking people to refrain from voting, close voting, and accessing review queues.

path: 0 94257 108693, hotness: undefined, score: 7, children: 0
alr 7 points 3 years ago

That was just crazy. And instead of owning up to it, they doubled down on the whole thing by having GPT invent fake rulings which they could claim to have cited and wrapped up the whole shebang by revealing that the attorney who filed the stupid thing wasn't the person who "wrote" it and hadn't even read it and therefore shouldn't be held accountable for its contents.

path: 0 95320 108993, hotness: undefined, score: 7, children: 1
alr 6 points 3 years ago

The Danish word for 99 is nioghalvfems, which literally means "nine and half five." Which you could be forgiven for assuming meant 11½. The trick is that a) "half five" actually means 4½, as in half less than five, and b) it's implied that you're supposed to multiply the second part by 20. So the proper math is 9 + (-½ + 5) * 20 = 99.

path: 0 845447 847500 874212, hotness: undefined, score: 6, children: 0
alr 6 points 3 years ago

It actually makes some sort of weird sense if you can get past the inconsistent labeling. Since it's a daycare, each option is probably an enrollment period, and they are arranged in reverse chronological order. Still weird, but perhaps not as outrageous as it initially appears.

path: 0 4883831, hotness: undefined, score: 6, children: 0
alr 4 points 3 years ago

Check what your testing organization is using first. We're using Selenium at work, except for one small team that used Cypress because they couldn't be bothered to find out what the test of us were using, so now that team is faced with either maintaining their own version of the CI pipeline and their own tooling (and not having anyone to ask for advice) or rewriting all of their tests. Not an enjoyable choice to have to make.

path: 0 3355858 3356353, hotness: undefined, score: 4, children: 0
alr 4 points 3 years ago

Thank goodness.

path: 0 643753, hotness: undefined, score: 4, children: 0
alr 4 points 3 years ago

Just what we've been waiting for!

path: 0 3427560, hotness: undefined, score: 4, children: 0
alr 4 points 3 years ago

If you think French is bad...

// Danish
farve = "#(9+½+5)FFAA"
path: 0 845447, hotness: undefined, score: 4, children: 2
alr 3 points 3 years ago

Of course, the correct way to quit Vi is ^Zpkill vi.

path: 0 873962, hotness: undefined, score: 3, children: 0
alr 3 points 3 years ago

I got news for you. If you're not a citizen of the country you're located in and you don't have a work visa for that country, you're probably working illegally, whether or not your employer realizes. (Some exceptions for EU citizens, Canada, etc.)

path: 0 3175153 3175299 3383103, hotness: undefined, score: 3, children: 0
alr 3 points 3 years ago

Why don't we copy their code and see how they like it?

path: 0 108817, hotness: undefined, score: 3, children: 1
alr 3 points 3 years ago

For the benefit of anyone reading this later, the function to check end-of-file should be feof, not foef.

path: 0 4850914 4902048, hotness: undefined, score: 3, children: 1
alr 2 points 3 years ago

I'm on Hover. They'll host and email inbox for you, but not a website.

path: 0 3414521, hotness: undefined, score: 2, children: 0
alr 2 points 3 years ago

I know this will come as a shock to a lot of people, but a lot of software doesn't do CI/CD. Especially CD. Basically only webapps can do CD, although Dropbox is close with weekly releases. A lot of enterprise and industry software still does quarterly or even semiannual releases. Hospitals, banks, and government agencies in particular have stringent vetting procedures that mean they can spend months verifying and approving a new major version before upgrading, so there's no point throwing one at them every couple weeks.

path: 0 3438555 3440774 3440930 3442999 3450779, hotness: undefined, score: 2, children: 1
alr 2 points 3 years ago

This 100%. Part of my job is writing test cases, which can be extremely repetitive. With multiple cursors, I can frame out a dozen or more cases simultaneously and then go through and fill in the details. It significantly reduces typing time.

Also, if you work with any sort of XML or HTML, learn Emmett abbreviations and learn them properly. It will take you an hour to learn them properly, but they save so much time over typing tedious tags longhand. Being able to type html>(head>meta[charset=utf-8]/+title{My page})+body saves so much time over

<html>
    <head>
        <meta charset="utf-8"/>
        <title>My page</title>
    </head>
    <body>

    </body>
</html>
path: 0 1233808 1238834, hotness: undefined, score: 2, children: 1

thanks for using Leebra!

go to feed...