skysight-inc/HackerNews huggingface dataset:
I agree most programmers are too quick to write before they read, but I'm not sure why it has to be "for fun". Reading code takes effort, just like understanding any new complex thing. The primary virtue here is patience. It's a lot like debugging actually: the goal is to understand.

Setting aside the "for fun", of course I read my co-workers' code, but also I read my dependencies' code quite often. In particular when you have something that is meant to be extended, the docs never completely cover all the use cases, and the quickest way can be to start reading.

Some examples from my own recent work are reading code from the Ruby gems devise, devise_token_auth, and spree, and also reading Django class-based views (all things meant to be extended). One trick I've learned in Ruby is `cd $(bundle show spree_core)`. From there you can grep, find, read, even add your own `puts` or whatever.

Actually I have been reading some code for fun: Postgres! I have an extension that adds temporal foreign keys, and I'm slowing porting it from plpgsql to C. Reading the code for standard foreign keys is very helpful. Same thing for a lot of other extensions I've written in the last few years. It has helped me a ton to read others' extensions and the core code.
Those employers who employ illegals do not require such a SSN. It's the whole point of employing illegals, to not have the regular overhead.
https://www.eugdpr.org/more-resources-1.html

(links to actual text at http://data.consilium.europa.eu/doc/document/ST-5419-2016-IN... )
The New HPE Sheriff Lays Down the Hybrid IT Law
If you're going to do that, just ship to a state without taxes and then go pick up the item.
He/she meant in pure taxes
> But I think there's a lot of value in optimising for distance.

i definetly agree to this, spending time on travel is pure waste. One of the best decisions for my personal health and my career was getting a job which is located 10 minutes from my home by bicycle. The amount of free time you have left because you spend a lot less time traveling should not be understated. Also, i find commuting very boring and stressfull, and living close to work has done wonders for my mental health aswell.
A bit less than two decades ago, when I was still living with other (post-graduate) students we got a flyer which announced a low price for Compact Fluorescent Lighting compatible with our rented house. We went into the living room where there was a whiteboard, and worked out the TCO of these more efficient lamps over their lifetime compared to just the ongoing cost of our incandescents (since we had these already we didn't need a total cost).

We then immediately set out to purchase an entire house full of CFLs. They were still going years later when we split up and each took our share, I still have one somewhere, maybe in my living room.
Don't you need to beat inflation?
It was tied to GDP, and GDP can grow close enough to forever. Nobody is investing in power plants based on what might happen in 500 years.
I borrowed a FLIR to check my house insulation, inevitably screwing around will happen. Also images.google.com is full of FLIR people pix. In summary the outside of clothing is much colder than skin, surely blankets are similar.
Indie Hackers: Get help with bootstrapping a profitable side project
I frequently go to Quito and the radiation you get from the sun at midday (bang on the equator, thin atmosphere) feels equivalent to about 10 chest x-rays per second.

I guess that counts as cosmic radiation.
Dart was basically Google's CoffeeScript, a compile-to-JS language that was supposed to sand off JavaScript's rough edges while still running in any web browser with JavaScript support. It didn't catch on, and one of the reasons is that this is right around the time when CoffeeScript started to fall out of favor, JavaScript got a lot of new features that alleviated enough of the pain points that people didn't want to deal with debugging code that was compiled into JavaScript, and stuff like Emscripten and TypeScript moved into the space. So it feels like the state of JavaScript has moved on by where Dart was, it still have enough JavaScript influence that the JavaScript haters don't really want to touch it, it's not enough like JavaScript for JavaScript enthusiasts to really like it, and there's no community around it so if you want to work in it and Google hasn't provided a library or framework that does what you want you need to roll your own.
I don't think they meant trench foot per se. If you lie in a bath, your wet skin goes soft and is relatively easily rubbed/peeled away around the extremities (toes, fingers).

I've noticed similar softening when walking with sweat/rain-soaked socks. Also assumed it was the condition people talk of which makes keeping feet dry on jungle expeditions so important.
Efficiency has been increasing but overall residential and commercial electricity usage is till increasing (very low rate) but industrial usage is actually declining.

https://www.eia.gov/electricity/monthly/epm_table_grapher.ph...
The Great Recession.

The current demand flatness is only temporary, esp. when we are ushering into the world of Electric Cars and 3D printers.

There is a hungry beast lurking its called "The Data Center". As the Data Center count increases over the future, we will also see raise in demand.

Over all, my bet is Jevons paradox will stand the test of time.
I addressed this group in my OP:

> Another type stays rational about drugs, despite how easy it is to let the honeymoon period trick them into believing that there are only positives and no downsides. They don't tend to lean on the psychological defenses mentioned above. They also tend not to abuse drugs chronically or end up dependent.
How Putin meddles in Western democracies, why the West’s response is inadequate
rPi and pi-hole is probably the best option here these days. Friends often ask how their phone is so much nicer when they visit than at home. :D I've converted a couple.

I don't think trying to convey what ad or script blocking choices they should be making really works with non-tech folks any more. To be fair it was always a bit of a stretch...
SV is rather provincial, as are Boston, etc, so it's a bit amusing that anyone would presume that NYC, with all its flaws, would suffer from some kind of SV-envy, that it somehow aspires to be one of those boorish enclaves. Certainly, NYC is glad it has a tech sector that is growing, but it a bit difficult to imagine a major city without a tech sector. The occupational diversity alone makes it a microcosm. A tech monoculture inspires images of a 21st century Lehigh Valley.
As came up last time, this is the mirror image of the way the US treats anyone anywhere in the world running a gambling website.
How does the opt-out work? Is it simply turning off the notifications or is it also not storing the match when it recognizes your face? Clearly it doesn't know who you are (as an opt-out participant) until it scans the image.
> It’s hard to believe anyone doesn’t know they are responsible for paying their own sales tax on out of state transactions.

I really wish you were being facetious. I get the feeling you'd be very surprised to learn about your fellow citizens and their knowledge of American tax laws.

> Ignorance of the law is never an excuse for breaking it.
I disagree. From the perspective of someone who doesn't know the law, how are they supposed to follow it? Even an intelligent and competent person doesn't know all the laws, especially in America. I would wager that every person in this forum has broken at least one law without knowing it.
Tech Takes on Trump as Supreme Court Looks at Data Stored Abroad
Theoretically, in the steady state where revenue and profits are fixed, the stock price wouldn't go up but you could reinvest the dividends. Whether this is a good investment depends on the profit margin.

In the real world, the average lifespan of a company in the S&P 500 is under 20 years. [1]

[1] https://www.cnbc.com/2017/08/24/technology-killing-off-corpo...
def not clearer. I know we are all supposed to be smart here, but maybe use more common words and language. People come from a lot of different backgrounds here.
Intel Introduces ‘Intel AI: In Production’ Program to Bring AI Devices to Market
I think they're saying that code on NPM may be written with a bunch of experimental Babel features or in some niche language like Elm, and then translated to vanilla JS. In those cases, you might find code that's been machine translated or minified in node_modules, not the original source.
What happens to your static variables at the start of the program?
In my experience a lot of BigCorps in my area (SFBay) already do that. The inevitable morning meetings filled with status updates, daily standups and plans for the day. Also with people beeping in and out, "sorry I was on mute" and all the associated nonsense that goes with it. No work gets done until after 10am...
> You can learn a lot about why programming is such a shit show by reading the comments on this one.

Dunning-Kruger is real.

For more information on what the hell happened in this thread:
https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect

Edit: Just to be clear, I'm referring to the same comments you are, not your comment. I'm amazed at how many people can just immediately dismiss this because it uses Dart while not even knowing much of anything about Dart.

I also can't respond to anything more yet beyond editing because I've been rate limited (for being an asshole, it was well deserved).
No, It validates the theory that Craig is a conman.
what an odd way to say that.
Fun trivia: cloud chambers were invented by a Scot to investigate the formation of clouds while he was based on top of Ben Nevis (the UK's highest and possibly most cloud covered) mountain.

I will remember this fact to cheer myself up next time I am on a misty Scottish mountain top!
Exactly.

Except when you get in a situation with 100 vehicles, 12 of which need help, and you have 10 drivers.

Oops. Someone died.
The pretty text underline came out really bad on Win10 + Firefox 58.0.2, as well.
I'm all too familiar! I used to pad any routines with five NOPs at the start, just in case I needed to add a jump, or call, to handle something I'd not forseen.
Calculus: Intuitive Explanations
Much appreciated! I've began training my replacement.
Software Workers Union
This doesn't make sense to me. Wouldn't that make every id that is one to one or one to many with a customer PII? That seems absurd.

A user alias on some random site would meet that criteria, assuming they took name/address/etc when you signed up.

Unless PII has some other significance than I'm interpretting it to have?
Mine was the same, it was already set to off.
On the flip side, I always need an inflatable pillow or a pillow section built into my inflatable mattress when I'm camping, otherwise I need to sleep on my backpack or a pile of clothes or something. Can't sleep without a pillow for the life of me.
The comparison of the JS output is not entirely fair considering it's likely trying to generate ES5 compatible JavaScript and thus "emulating" classes rather than using the built-in classes available in ES2015 and later.

The output of Babel (which translates newer language features to older versions like ES5) is actually even more verbose because it adds some runtime error handling:

https://babeljs.io/repl/#?babili=false&browsers=&build=&buil...

JavaScript classes build on prototypes with constructors and use prototypal inheritance under the hood, but they're more than the sum of their parts and can be a useful abstraction.

I'd argue that the article is right that in most cases it's probably cleaner in TypeScript to simply use an interface or type alias instead of a class, but although some people like (for example) Eric Elliott have very strong feelings to the contrary, classes are a useful language feature for certain scenarios and avoiding them at all costs can result in worse code than knowing when to use them.
IMHO they need to offer an officially sanctioned legal VPN for those with such Visas. It is too annoying as a technical worker doing research to reside in an environment where access to information is unpredictable.
I don't get your objections. Cap&trade and carbon taxes are specifically about emissions, not about energy consumption. They seem to match exactly what your want.

I don't see any movements in the EU against energy usage per se; I see a movement against pollution, and against waste of energy (which is essentially a form of pollution).
Google Photos has had it on for years -- not sure what the big deal here is?!?
It's vastly easier to fix an already established public transit system than implement a new one in the United States.

I honestly doubt another subway system will be built in a new city within the next decade, which is pathetic for other reasons.
The Big Apple to small oranges.
So I decided to try combining the way you did it with what I did before, and I came up with this method, which is effectively equivalent to the 4x AA in the top-level comment:

void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
bool evenFrame = (iFrame % 2) == 0;
float x;
float y = 0.25;
if(evenFrame) {
x = 0.25;
}
else {
x = -0.25;
}
vec3 c1 = getColor(fragCoord + vec2(x, y));
vec3 c2 = getColor(fragCoord + vec2(-x, -y));
vec2 texCoord = fragCoord.xy / iResolution.xy;
vec3 texColor = texture(iChannel0, texCoord).rgb;
fragColor = vec4(mix(texColor, (c1+c2), 0.5), 1.0);
}
So...

What happens if a "self driving car" gets a speeding ticket? Who is liable? The owner of the car? The programmer? The manufacturer?

What happens if it gets into a wreck? Same question.

How do self-driving cars respond to police? Do they pull over?

Call me skeptical but it really seems like there are far more issues with this than we realize...
> Does it have any advantages over React Native?

It's not JavaScript.
Ignoring the question of whether there's even a morally correct action here, why not keep the worthless car you already have instead of replacing it with a newer one? That £10,000 will pay for a lot of petrol, car tax and repairs.
Ask HN: Downsides of using css variables (vs preprocessor)?
I recently learned about css variables, and am wondering what any real downsides are from the field. Seems to remove the need for an extra preprocessor step with sass or whatever.
I'm not sure that's entirely true, especially for domestic energy consumption. 10 years ago, I had a CRT TV, incandescent bulbs, and a washing machine that was probably about an F on the EC's ratings. At work, I used a computer with a big CRT screen (actually, maybe just an LCD by then) and a processor that used about 40W just sitting there. And 20 years before that, my parents also had a CRT TV, incandescent bulbs, and a similarly inefficient washing machine. These were likely a LITTLE more inefficient, but nothing much.

Now I have an LCD TV that uses well under half the power of a CRT, LED bulbs which use about 5% the power of incandescents, and an A-rated washing machine that uses about a half the power of the old-fashioned ones. At work I use a computer with an LED-backlit LCD monitor and a modern processor that idles at practically nothing.

For most people who had "all mod cons" 20 years ago, they're using less electricity today than they were then.

Electric cars are the one wrinkle, and I think they will drive electricity usage upwards. Other than that, though, domestic use is declining for the middle class, and commercial and industrial use are too in many cases. An awful lot of electricity usage 20 years ago was essentially waste, and we're getting quite good at eliminating that.
I am curious, if you offered a service that allowed users to post their own data to your service. How do you protect against customers posting data that violates the GDPR. I.e. peoples personal information being posted in plaintext?

Is this type of case covered by the GDPR?

Also how are things like access logs supposed to handled according to the GDPR? Our software records all requests made to our API, they log your userid, ip address, and what you were trying to do.

We have clients who are in the US who required the above feature for auditing purposes.
Right. How many people will be horribly injured or die in ‘the incident’ that leads to the lawsuit that gets these companies to take this stuff seriously.
Linear Algebra: Intuitive Explanations
SAML authentication bypass vulnerability disclosure
PHP7 Throwable Exceptions errors
The moon’s getting a mobile data network
The memcached amplification attacks reaching 500 Gbps
Homeschool Creative Writing Courses-A Writing Curriculum
I have used them both for a very long time but I'm trying to get away from uMatrix because, even though I love the fidelity of control it gives me, it seems to be utterly broken since Firefox Quantum and will not load any frames, unless it is completely disabled from the Add-ons page.

I've been patient for months but it still isn't fixed, thus I'm trying to shed my dependence of it if uBO can offer me the same thing on its own.
Back in those days, gasoline/petrol cars had much worse emissions than they do today. They've since been cleaned up a little when it comes to smog-forming emissions. Diesel hasn't.
Got it, however tap water is far more sanitary than jungle water, also walking around is going put a lot more stress on your skin than sleeping. Also, there is a difference from having a damp cloth on you and having water sloshing though your boots.

Historically the only option was to be constantly setting though a heat wave for days at a time. Though drying sweat leaves behind a lot of salt which does help simply being a little damp is not a huge deal.
I trained myself when sleeping on a cot to not need a blanket because it was so hot but immediately after returning to a bed I started using a blanket again. I can still sleep on a cot though with no blanket. I think you can train yourself with context to sleep with our without a blanket.
Sure, but does Elixir have the exact same tutorial?
> Is it just me or is the obvious biggest problem in capitalism that you always need to have growth?

I'm not sure what you're talking about.

In capitalism investors want profits.

In this specific industry, for ultra-specific reasons, profits need growth. This isn't the case 99% of the time.

But even if investors go away, the companies will run fine without them. They'll just have low stock prices.

There's no need for growth anywhere in this equation.
> And petrol cars don't smell?

I at least find the smell of diesel actively unpleasant; petrol isn't something I'd choose to smell all the time but it's still nowhere near as bad.
This is in no way equal to having a 'class A { ... }' that you'd instantiate with 'new A()'. In module b, the const a will not be of 'type A', but a plain object with signature of '{ a: string }' for which A is an alias. That's very different because a plain object is not an instance - you can't use instanceof, try to console.log() it and an instance of a class and you'll see the difference.
No it's unprovable and completely unscientific, but reactions on this topic seems to prove that it's a widely shared opinion and a fact to consider if Google wants Flutter to succeed.
Non-mobile link: https://en.wikipedia.org/wiki/Air_shower_(physics)
This makes sense, but you also have to think of the other side; there are a lot of people who have been victims of sexual misconduct but there was not enough evidence to convict the perpetrator. Don't those people have the right to REMEMBER what happened to them, and tell people about what happened to them if they want to?
>I think we'll see a rising speed limit as the risk becomes more and more mathematical.

Risk and speed limits are already mathematical. See the 90th percentile rule. If self driving cars makes obvious the disparity between the letter of the law and actual practice then the law will get changed.

Pretty much the only stakeholders that want the current mismatch between 90th percentile speed and speed limit are the cops who want a pretext to go fishing and the states that want revenue.

Self driving taxis, delivery vehicles, etc that are doing (for example) 55mph "because the law" when the road should really be an 80 is a terrible user experience, especially on roads with mixed human/ai traffic. Insurance, self driving fleet owners, car companies, etc all have a huge incentive for self driving cars to be able to get from A to B just as fast as a human car. Nobody will take your self driving taxi if a human taxi is faster and comparably priced.

We'll see a higher speed limits because the automakers, fleet operators, etc will lean on the states and if that doesn't work they'll lean on the feds (nhtsa, dot and similar) to lean on the states to set limits that are actually consistent with the 90% rule.
Thought this link was relevant here due to a couple of things that are coming our way in the U.S: (1) upcoming Supreme Court ruling that may destroy public unions, and (2) the Koch's upcoming plan for national right to work law to destroy blue state private unions:

https://splinternews.com/organized-labor-is-in-a-life-and-de...
Google Photos' was only within your account, and didn't assign any of the faces to you unless you manually assigned it as "me". Later they included the option (via opt-in) to have Google suggest that your friends share with you photos that have you.

Facebook's is platform-wide, and you don't have the option of tagging faces but not assigning them to you or to specific people.
The efficiency of the devices people use has been increasing but the prices of electricity have been rising during the same period so efficiency from the perspective of the consumer is not increasing.

The mechanism by which increasing efficiency would increase consumption is lower prices and if that is missing then consumption won't increase.
> A Privacy Impact Assessment (PIA), which is required under GDPR for data-intensive projects [...]

What is a "data-intensive" project?
They're still in development and testing
funny how billions of dollars brings out the worst in people (or the worst people)
> directly from scripture without intermediaries

Either scripture itself was written down by intermediaries or you're already presupposing the existence of deities. (Those deities also require an explanation or you really are just talking about faith without evidence.)
How do you think code that parses XML makes the UI elements?
Very true, but that’s partly because they believe NOx emissions were lower than they really were, thanks to cheating. I like to think that if they’d realized the magnitude of the non-CO2 issues, they would have taken a different path.
I admit it was a bit of an afterthought. :)

If we are in a world of rising interest rates, it suggests upward cost pressure downstream of companies who exploited the low interest rate environment to load up on cheap debt.

Hypothesis would be companies and sectors with highest debt to income ratio would be most vulnerable and point us in the right direction. A quick google search showed utilities were indeed the ones with highest debt ratios, followed by "industrials."

If this were all true, might also suggest that merely equity financed companies could exploit that structural differential.

It's part of the reason I am still a tesla/musk believer, as I think this is his underlying play.
"Okay, you need to brake n-" ECONNRESET
But what about the EVolution? In case you missed it, it's booming[1].

[1]: https://www.iea.org/publications/freepublications/publicatio...
You mean like the GDPR ?
"In the particle's reference frame, the photon would move away from it at the speed of light."

For some reason I've never been able to wrap my head around this. Anyone know a good explanation for this stuff?
I was trying to say that one shouldn't expect a sober, reasonable discussion about pro / cons of any programming language here. (As every discussion of anything Go has amply shown)
Vulkan is coming to macOS and iOS, but no thanks to Apple
dart2js is a very small sliver of what Dart is.
uMatrix: https://addons.mozilla.org/en-US/firefox/addon/umatrix/