[-] alr@programming.dev 20 points 7 months 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...

[-] alr@programming.dev 8 points 1 year ago

Is kill -11 even allowed?

[-] alr@programming.dev 29 points 1 year ago

On the other hand, the OOM killer is worst of all: "kill process or sacrifice child."

[-] alr@programming.dev 5 points 1 year ago

Just what we've been waiting for!

[-] alr@programming.dev 29 points 1 year ago

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

[-] alr@programming.dev 57 points 1 year 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.

[-] alr@programming.dev 10 points 1 year 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).

[-] alr@programming.dev 4 points 1 year 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.

[-] alr@programming.dev 6 points 1 year ago* (last edited 1 year 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.

[-] alr@programming.dev 3 points 1 year ago

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

[-] alr@programming.dev 4 points 1 year ago* (last edited 1 year ago)

If you think French is bad...

// Danish
farve = "#(9+½+5)FFAA"
[-] alr@programming.dev 9 points 1 year 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.)

view more: next ›

alr

joined 1 year ago