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

Is kill -11 even allowed?

[-] alr@programming.dev 29 points 8 months ago

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

[-] alr@programming.dev 3 points 8 months ago

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

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

[-] alr@programming.dev 5 points 9 months ago

Just what we've been waiting for!

[-] alr@programming.dev 29 points 9 months ago

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

[-] alr@programming.dev 57 points 9 months 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 3 points 9 months 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.)

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

view more: next ›

alr

joined 1 year ago