6,998 karma · joined Dec 14, 2008 (17y ago) · 1,808 submissions
comment 6y ago · link · parent
I am guessing the former as your example is possible with C++ but it doesn't seem like a great example as you are using units of measure for your types. There are languages that support those and obviously, in such a case, assigning centimeters or inches to a distance-typed variable is both ok. The type error would be in mixing distance and, say, weight.
comment 6y ago · link · parent
It's common for especially B2C corporations to have highly documented CSR policies. They will not work with suppliers that perform testing on animals. Or employ child workers. And they will not work with suppliers who have suppliers that do those things. The entire chain is potentially audited. I approve of this concept and I vote with my wallet.
This situation, however, is different. Whereas companies choose suppliers, they don't really choose customers. At least by some definition, the customers choose them. I know that this gets muddy because sales, but still. And I don't like the idea that companies should start auditing their customers. What if some company that deals with ICE uses Github? Or say someone who used to work at ICE formed a company -- is that company in the clear? Doesn't seem like a viable direction to me.
comment 7y ago · link · parent
That makes me curious: where would I go for more? /r/shadertoy is invite-only, and I'm not sure it's what I want?
EDIT: there's a Twitter feed: https://twitter.com/shadertoy
comment 7y ago · link · parent
It's in such a good place right now. With the exception of multi-monitor support (the only real issue with Electron, in my opinion, but a big one), everything about it is wonderful to the point where I feel that it can almost only get worse from here.
So far the team has been incredible, continuously improving without making it feel bloated and slow so hopefully my fears will continue to be put to shame for years. But yeah.
comment 7y ago · link · parent
849.
Regulating Technology Firms in the 21st Century(yang2020.com ↗)
1 points · by kristiandupont · 7y ago · discuss
comment 7y ago · link · parent
comment 7y ago · link · parent
I was a late riser until well into my thirties. Then suddenly something weird happened (well, not so weird sadly -- hormones shifting, I'm sure) and I started waking up early. Now, being up at 6am doesn't sound like some great accomplishment to me. Staying up past midnight on the other hand, now there's a challenge!
comment 7y ago · link · parent
For the record, I do think there are problems with Electron, just not the ones usually mentioned. A big (huge!) problem in my opinion is that two windows can't share JS context. It's the reason why VSCode is way behind in multi-monitor support for instance.
comment 7y ago · link · parent
Nobody is asking that, there's a crowd in here that restates the same three points about memory, performance and native UI about once a week.
I dislike waste, I have written assembly code for tiny processors. And yet, I run several Electron apps on my 8gb 2013 Macbook Air and it runs fine, especially VSCode. I am picking that over my previous choice which was native (vim), because I think it's better.
comment 7y ago · link · parent
I am just not sure what would be a good solution. I could scan your email for known entities or through a browser extension take a look at which sites you go to. Both would be much more problematic in terms of privacy than I would be comfortable with.
I suppose another model would be to only keep track of stuff that you manually enter but I doubt that would add enough value for anyone to care?
comment 7y ago · link · parent
More than anything, I fear that it will teach my parents that domains can look like anything, so that link in the email is probably fine.
comment 7y ago · link · parent
>It's conversations like these that make me lose my temper.
Everybody thinks the other side is brainwashed. However, judging from your statements, the people you support are currently overwhelmingly in power so maybe you can find some consolation in that.
comment 7y ago · link · parent
It's pretty easy (and a bit depressing) to see why: imagine seeing a headline that agrees with you politically. The candidate that you support did something good. Or the other side did something bad. It confirms, yet again, what you already know. But now, there is a little label that says that this may be fake. It's very easy to rationalize that the moderator is biased or doesn't know what they are talking or that this is simply what they want you to believe, isn't it? The bubble is real.
comment 7y ago · link · parent
The fallacy that if you have a lot of resources, you can make a good product is repeated over and over again and it's easy to see why. But the fact is that making high quality is hard, very hard. You can't just hire your way out of it. You can't just spend on tools or whatever. A small-ish team of talented people that work well together (that last part is important and not trivial at all) can accomplish amazing things. A dysfunctional team or organization can easily get stuck in a rut that is next to impossible to improve, no matter how many resources you throw at it.
861.
News Corp to supply headlines for Facebook's upcoming news tab(reuters.com ↗)
1 points · by kristiandupont · 7y ago · discuss
comment 7y ago · link · parent
comment 7y ago · link · parent
To me, "app" is an arbitrary grouping that I don't really care about. I have little mental projects in my head with a couple of windows related to them. That could be a browser window and an instance of vscode. The fact that I might have another set of windows that happen to use those same apps doesn't mean that I want them to pollute my z-index when switching back and forth.
Yes, I know about spaces or multiple desktops or whatever but for some reason those don't sit will with me.
comment 7y ago · link · parent
1) CB needs to know the file type because it inserts comments and those need to be of the right kind. So you need to have your file saved first.
2) Select a couple of lines of text, like a function or a class and click "Insert Section" in the edit menu. This will fold the selected text and collapse it to a single line.
3) Click "Child section" in the Go menu while the caret is on the folded line to go into the new section, and "Parent section" to go back.
comment 7y ago · link · parent
Sadly, I have not been able to convince anyone to use it in a team setting and on top of that, it is a very primitive code editor. There is some syntax highlighting and that's basically it. No VIM bindings and no IDE-like features. So I now use it as my org-mode text editor, with the occasional link to code or config files here and there, which works well.
comment 7y ago · link · parent
I've been using it for some 15 years and I don't think I will ever leave it. I do wish that other editors (vscode in particular) would adopt its folding style or at least enable it. Doesn't seem promising though (https://github.com/microsoft/vscode/issues/17904)