Hacker Newsnew | past | comments | ask | show | jobs | submit | tinyhitman's commentslogin

Could be to allow use of local variables that do not leak into the scope this code is executed in. That's what I use this pattern for.


pro tip: no longer necessary

    { let count = 50; const interval = setInterval(() => { addSnakeNode(); if (--count <= 0) clearInterval(interval); }, 100) }


And polluting the global variable namespace hardly matters when using the console.


I don't know. As a developer there would be even more reason to be curious as to why the release binary is an order of magnitude slower then what is seen in development.


At release it was "working fine, same as in dev".

It slowed down gradually as the JSON manifest of optional content grew.


> and each app is isolated in a different user id

I always liked this idea; but wouldn't you run into issues with file permissions? And if not, wouldn't that mean that the program in question would have access to all your files anyhow, removing the benefit of isolation?


When I'm using Office, the files come from a shared directory accessible as Z:

I use scripts to automate everything - including allowing wine to use Xwayland (because until I start the application I want, its userid is not allowed to show content on my display)

If you want to try using wine with different user ids, try to start with a directory in /tmp like /tmp/wine which is group writable, with your windows app and your user belonging to the same group.


Cool, hoping this will become more common and easier done with help from distro's!


delaying SLA


This is at least a multi-million dollar payout (if they admit to it).

All GitHub Pages say

> We're having a really bad day.

> The Unicorns have taken over. We're doing our best to get them under control and get GitHub back up and running.


At the moment, all github services seem to be restored, and the github status indicates that the problem is still ongoing. I don't think it's related to the SLA, but rather to the monitoring, which is not live. There are a few minutes of delay.


Seems slightly unproffesional for a massive company like Github/Microsoft.


I disagree. This hurts no one, and not everything needs to be sanitized and painted over with bland corporatespeak.


I don't think they were asking for corporate speak. But at least I would find a plain technical error message like "cannot contact file server" much more respectable than something like "unicorns are hugging our servers uwu".


This “ironic” and “humorous” style of errors and UI captions is the actual new corporate speak. I’d prefer dumb error messages rather than some shit someone over the ocean thinks is smart and humorous. And it’s not funny at all when it’s a global outage impacting my business and my $$$.


It's closer to the truth than you usually get. They're having a bad day, it's completely true. It's the start of my day, but I guess this is the middle of the night for them. There's no such thing as unicorns, but that just highlights the metaphorical nature of the remaining claim - getting Unicorns under control means solving their problems. Normally "professional" corporate speak means avoiding saying anything whose meaning is plain on its face and disconfirmable while avoiding the implication that the company is run and operated by humans. This is a model. (Obviously the came up with the message in advance, which just goes to show that someone in the company is well enough rounded to know that if it is displayed, they're having a bad day.)


GitHub is (was?) a Rails application, so it was probably originally running behind Unicorn [0], if it isn’t still. So the unicorns are (were) real.

[0] https://en.wikipedia.org/wiki/Unicorn_(web_server)


I'm sure I do.


In the garbage language that we dont use anymore. Right? Right!? :)


Unfortunately, due to budget cuts, we could not afford to vanquish all of the antiques in the architecture. We do have an infinite spell of Ben Gay, however....


s/spell/supply/


You think 2.add(2) is more trustworthy?


well yeah but there's that legacy system, the replacement isn't ready for GA yet so...


Sane, but I'm greeted with a three-eyed avatar, lol.


All male too :(


I don't think so.


Its not strictly the same. '1' is a number whereas '!0' is a boolean.


I hate that language a bit more now


With steamcmd (the steam client CLI) one can download whatever version of their owned games they want.


In theory. In practice, it's a headache getting that thing to work.


Maybe prompt the user with a "use clean" or "use as-is" button (and "cancel").

and maybe a custom option; where you can toggle what is cleaned and whatnot.

and provide a "remember for this domain".


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: