skysight-inc/HackerNews huggingface dataset:
Some time ago, I would have agreed with you about Adapters, Factories and so on. But now, I'm not so sure.

My team inherited a code base that wasn't really legacy - maybe two years old - with a very simple business logic: Collect data from one REST service, save it in a "cache" database and answer to requests from another one. Seems completely simple, and the code wasn't awful, either. However, there was no abstraction, no layers, nothing: The REST controllers knew exactly what the DB looked like and contained a large part of the collection logic. There was a client for the collection, but it was very low level and exposed everything. Additional domain logic was smeared over five to ten levels of hierarchy.

In the end, each apparantely simple feature we had to add took days instead of hours because we had to touch so much code. The principle of locality was completely absent.
In the end, we rewrote large parts of it so that you don't have to change the REST controller anymore if the DB schema changes.

My personal lesson was that you should always have some abstraction, even if the service's task is so simple. Things will change, and you must be prepared for that. If every part of your code knows all the other parts, you're doing it wrong. Have clear interfaces and boundaries (and models) so that changes can be localized. Of course, that doesn't mean that you should implement something like: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris... .
Gatsby shines when you combine multiple sources - Twitter, Instagram, YouTube feeds along with blog articles as a simplistic example. With GraphQL you have ultimate control over all of it and can organize automate it sensibly without writing custom plugins.
Many Chinese make the same negative characterization. The most famous of these cases is probably the milk powder scandal.

Now, Western companies are no saints (e. g. VW Diesel scandal). But a better system of checks and controls keeps them accountable.
A considerable portion of Mono's original developers & current maintainers are on Microsoft's payroll and have been since the acquisition of Xamarin years ago. Because large portions of .NET and C# stewardship moved over to the .NET foundation, community members have a formal role in the development of both as well.

So in practice, 'pulling the rug out from under' Mono (or .NET Core) users would be pulling the rug out from under paying customers.
Show HN: Arduino Full Stack Tutorial – Deploying a React App on the ESP32
The technology isn't a fundamental change, it's just a more deadly weapon.
I wouldn't. They prefaced their statement with "I seem to recall", which is a sufficient acknowledgment of the author's own uncertainty toward the statement that follows.

I applaud the poster for stating that the veracity of his memory is debatable instead of certain. I wish people would do it more often.
Dapper is quite good middle ground.

The flexibility and performance of full SQL, without having to write all the mapping boilerplate by hand.
Even if you decide MVC is not needed, it's just as likely you won't need jQuery either. Vanilla JS is pretty powerful and cross browser complaint these days.
An interesting perspective, however I do not believe that the Internet is democratising.

I regard democracy (and capitalism) as being an industrial-era approximation of solutions to the institution-alignment-problem (analogous to the AI alignment problem, but for governments and corporations). Both of these have their own failure modes; In the case of democracy, the failure mode is that people do not know objective truth, and can be fooled by propaganda. The Internet allowed cheap mass propaganda for as long as spam has existed, and this has become worse as propoganists learned to use internet friendly memes.

If you take away (or corrupt) the electorate’s knowledge, I do not think it is okay to continue to call it “democracy” even if they all still vote.
Dictators have one mind; Oligarchies have a handful, or scores. AI (as is, not scify) is (I think) a multiplier or leverage for a mind. The open societies differentiation is potentially millions or billions of minds. To realise that differentiation open societies have to create a population that has it's own mind, and develop a substrate that supports individual thinking, and of course manage the interaction and flow of all these minds. This is where the internet started to get interesting, but has now run into sand - most people still lack the tools and opportunities to think for themselves, while this is true they can be dominated.
I've only ever bought used Corollas and Yarises. Cheap to buy. Cheap to maintain. Cheap to run. Always reliable. What's not to love?
Web Design Trends Can’t Hide in 2019
It has been tried in the world history many times and is currently being tried in some parts of Somalia. Most of people do not prefer that, so if you do, maybe you should move there?

My guess is that we are about to see "No True Scotsman" very soon after I post this.
Wind output is highest in Winter.
> Not long ago there was an interesting article on research that showed that if we simply replaced fossil fuel infrastructure with clean alternatives as the former reaches end of life, that would be enough to hold warming to under 1.5 C.
>No need to force early retirement of fossil fuel infrastructure. If you've already got a coal plant, a gasoline car, etc., it's OK to keep using it, as long as we can commit to your and everyone else's future plants, future cars, etc., being clean.

That is a gross misrepresentation of said research.

The idea was that yeah, if in theory you don't add any new fossil generation then it might work out.

Yet think for a moment what that would mean. Stopping all car production today, no new gas/oil wells, no new steel mills and cement factories (technologies where clean alternatives don't practically exist at scale). Stopping any kind of fossil fuel plant construction even in developing countries. All of that now.

This isn't a plan that is realistically feasible to implement (even though it would probably be the right thing to do).

So yeah, it totally makes sense to shut down existing particularly dirty fossil fuel plants, because it's not particularly realistic to completely stop the production of new fossil fuel infrastructure immediately.
Jquery is messy on a large scale, but on a small scale it allows you type far less code than pure JS. On small to medium size projects, it's entirely reasonable to remain the best tool.
Yea I was on a project where a professor lent us a Trimble GPS (I think they ran $2k ~ $4k at the time). It had a backpack, synced up with a tower at the local airport and gave us information down to a couple of centimeters.
Are you not mixing it up with Concurrent Pascal?

I don't remember Turbo Pascal ever having similar to coroutines and I used all versions up to Turbo Pascal for Windows.
If you want an account of these times written in modern English, "The Time Traveller's Guide to Restoration Britain" is a lively and entertaining read: https://www.amazon.co.uk/Time-Travellers-Guide-Restoration-B...
The exertion of control doesn’t even have to be blatant or physical. If social credit is a determining factor in an individual’s ability to function effectively in society, e.g. by way of credit ratings and access to opportune employment, there’s a clear risk of increased self-censorship and conformance, thereby debilitating serious political opposition even in its infancy.
> It looks like it's a Harvard-architecture core. That means separate buses for data and instructions, which is not common outside of embedded or specialized systems.

I'd point out that WASM is also Harvard architecture so that's not so exotic anymore
I use .NET on and off since the pre-beta days (priviledges of working at an MSFT partner) and never seen anyone use Paket, other than on F# tweets.
well this is your basic game loop, and serves as an introduction to the topic. there are lot of things that were just skimped, for example you'd still need an event loop to capture input and store them for the process input method, or you risk losing fast key presses.
Solar is not very volatile, it's basically a cos^2 around mid-day + local cloud cover changes. The biggest issue is actually a bad forecast for the peak output (essentially the "mist" forecast), as the differences spread over the whole day.
There's a special place picked out for George Soros. Really special.
The trend seems to suggest that AI will make us think less critically, not more. The singularity posits a massive intelligence boost, the likes we can't comprehend. But what if instead it makes us all fools, unable to think for ourselves and determine true/false or right/wrong?
Congrats! Google is still fantastic. You'll have a blast and learn a ton.

Sidenote, anyone have an extension to hide all HN headlines with a keyword filter?
Does your GPC comply with the GPDR?
Actually because of the diesel scandal VW is the best positioned "normal" car company for a success in EV market at this point.

In order to recover their image they were forced to announce and actually work on full line-up of electric vehicles and their target is 2020. Even with delays that's going to be sooner than any other company. They've been working on the technology for quite some time. Porsche Taycan and Audi e-tron are to come out this year AFAIR.

Also those are EVs that actually look like cars and not kitchen appliances from Axiom (Wall-e movie spaceship) which is something I also think is missing from the market. I can't comprehend what the car companies try to achieve with the designs and separate models.

Right now I can choose between petrol and diesel for my Golf, Volvo V40 or Hyundai Elantra. Just add electric power train to the offering and be done with it. I want EV for the performance, cost savings, environment or whatever other reason might be but I don't want any of the dorky design cues most EV vehicles present.

EDIT: typo
Huh ... so that answers my big question: What about Rear-wheel-drive and AWD cars? AWDs are difficult to dolly. Tow truck drivers (that don't own flatbeds) have to either disconnect the rear differential or put dollies under the wheels.
We are paying renewables to shut down production, so the grid does not collapse.

Actually seeing the green partys propaganda, and their ability to hold two opposing views at once, while still beeing voted for, has turned me partially away from democracy.

A creature that decides upon its gut feelings like a animal and the power thirsty populists who use these feelings, with that you can not govern anything.

The old greeks where right- the emotinal, the insane and the slaves should not be allowed to vote.
History has already answered this numerous times. AI is a tool much like a semi-automatic rifle or the printing press. The people who understand it well have an accelerated advantage over those who do not. It is both a good and bad thing depending upon who wields the tool. Like any force multiplier it will be misunderstood (magic) and improperly regulated by both open and closed societies alike.

Like with any tool the real victors will be those who adapt it to solve basic immediate problems: a utility.
Hopefully it passes but with modifications that make it sensible. We need to constantly re-evaluate and update copyright law and rules for the ever evolving Internet but at the same time attempt to avoid limiting innovation. Not an easy task but I believe in EU in this case.
You can put any value on the parcel and it won't matter in the slightest. You can declare the value to be $1M and it has no bearing on the final customs charge paid. Chinese shops have been sending everything declared as "gift" with $1 value and customs officials don't give a shit - the parcel is opened and the official makes an assessment on the worth of the item - if it roughly matches what the shipping document says, that's what they send you an invoice for. If it doesn't, they ask for supporting documentation(receipts of what you paid for the item) and then calculate customs charge off that.
If this social credit or indirect influence is perfectly fair, it's not really a problem. However, it's very likely it will be unfair to some, and create tension and unrest that will lead to the same problems we have without AI.
Standard library functions are well understood because they are shared between all projects using a language. Their naming doesn't even need to be descriptive, because people will learn them regardless.

But functions which only exist in your project are a completely different beast. It is often very difficult to capture what they do in the name, even when you try to - especially for the higher level functions, which do a whole lot of things (by calling other functions). And, even if the name was originally good, it could become misleading when new use cases are added later - I found this problem very often when working on legacy codebases.

Using lots of small functions isn't a panacea, and is completely different from functions in the standard library.
Your comment made me read the whole article. And it is truly amazing!

They've been able to replicate Hawking radiation in the laboratory!

From the article -

>> "Our most important finding, perhaps, is that black holes are not something out of the ordinary, but that they closely resemble what light pulses do to ordinary light in fibers,"
> Actually because of the diesel scandal VW is the best positioned "normal" car company for a success in EV market at this point.

How can you so easily come to that conclusion? One could equally conclude, that they've cheated us once, and they'll do it again.
Single LED Takes on Both Light-Emitting and Detecting Duties
Additionally:

1. “Jewish” is not a race, it's a religion.

2. How do we know, and what does it matter, how religious those people are?
And I found this: http://www.visionofbritain.org.uk/travellers/

Which has Celia's book (or most of it) with the locations marked on maps, and books by dozens of other early travellers around Britain.
It's not more deadly. Weapons of mass destruction already exist. The difference isn't increased ability to do harm, it's increased ability to target harm. It's no fun being dictator when all your subjects are dead, so old-fashioned WMDs are of limited use. Sufficiently advanced AI lets you selectively kill the troublemakers without harming the compliant subjects, and without having to rely on potential competitors for your dictator position. This is a fundamental change.
Sad to see that so many smart people in our industry lend themselves to work for Facebook. There are great tech innovations that come out of Facebook, but that doesn't weigh up to the damage they are doing to society.

Sam Harris has released two great podcasts that discuss how Facebook, and other companies like them, choose to earn money from, amongst other things, radicalising and polarising people in our societies:

https://samharris.org/podcasts/146-digital-capitalism/
https://samharris.org/podcasts/145-information-war/

and to some extent:
https://samharris.org/podcasts/144-conquering-hate/

I recommend these highly.
"I face my self this problems to be productive" etc.
A good anecdote about this: I once wrote a file_lock function for a company that took about 15 minutes to complete. The function name was something like "file_lock". But then, it had to be modified to work on Mac and Windows. Then again, had to double re-entrance from the same thread. Again, it had to be modified to lock files for network files, FTP files, you name it.

I worked on that initially tiny function on and off for two years. Anyone just reading the function title and comments along the way could easily assume it did things that it didn't.
Yeah, it's really nice!
> The whole thing wasn't economically useful or necessary from the very beginning

That's your claim. Enough people here have been thinking the opposite.

> otherwise it wouldn't have needed massive subsidies that made Germany have the most expensive electricity in Europe.

Actually Germany a) does not have generally the most expensive electricity in Europe - check out industry prices for electricity in Europe.

If you followed recent protests in France, then you have seen that is also about higher energy prices for the public - which has been kept artificially low so far.

https://www.euractiv.com/section/electricity/news/yellow-ves...

b) its also useful to make energy expensive - it helps to keep energy consumption low and the money gets invested back into modern infrastructure, research&development, build-up of new industries, ...

> The storage requirements are massive

That's a very shallow study about a non-goal (100%). A more detailed study from 2013:

https://www.agora-energiewende.de/fileadmin2/Projekte/2013/s...

a shorter english version

https://www.agora-energiewende.de/fileadmin2/Projekte/2013/s...

The current big picture of the Energiewende for 2030...

https://www.agora-energiewende.de/fileadmin2/Projekte/2017/B...
> often a causality in older codebases

Did you mean casualty?
No. Coal danger is always marginal and diffuse if you can’t detect the pollution with your senses. Not so with radiation.
Yes, what I describe above is something that would follow the social credit system. The social credit system is I think a great tool to keep the masses at bay and for their micro-management. But I think that very powerful people will mostly stay outside of it. Those are the danger #1 for any dictator. Xi right now has purged their ranks of anyone too dangerous but any avid follower can turn into someone who betrays the trust from above given the right circumstances. Part of the job of a dictator is to make sure that those circumstances are avoided for their powerful underlings e.g. by giving them acces to spoils and riches.
If I may, I'd like to invite you or someone on your team to read a couple of chapters of John Reppy's Concurrent Programming in ML and try Vesa's excellent delivery in https://github.com/Hopac/Hopac.

I'm not clear if you absolutely have to use TPL but CML is likely just a better model for tackling concurrency and Hopac is orders of magnitude more efficient than F#'s async.
> the problem an acquirer has is porting the existing users over to a new messaging infrastructure.

If you're selling it, it would be your job to port it. This wouldn't be the purchaser's job, it would be Facebook's job. It would be like expecting someone to dismantle a bed your selling on eBay. No one in their right mind would agree to dismantle it for you unless you were giving it away.
George Orwell made much the same point in 1945:

http://www.orwell.ru/library/articles/ABomb/english/e_abomb
In the very example in the OP, the abstraction adds lines of code: function calls, function signatures, possibly return statements. I think many programmers associate abstraction with having less code (which is almost always good, under reasonable circumstances of course), and this translations into a love of abstraction even in cases where it doesn't simplify things or lead to less code.
The Nazis’ First Victims Were the Disabled
How could the US be left behind as a second-tier player? There's no scenario where that happens short of total collapse.

It'll have 400 million people in an integrated single market, with the dominate culture in a liberal democracy. The rest of the world isn't actually ever going to learn Mandarin the way it has English. The language is far too difficult for that to occur and there's very little benefit to doing so. Which is also why that isn't happening right now despite China having the world's #2 economy. The growth of Mandarin outside of China is almost non-existent.

Liberal democracies in Europe are going to take their marching orders from an authoritarian dictatorship? Zero chance of that. China's system is fundamentally incompatible with liberal values, it will always cause an us-vs-them conflict.

China's authoritarian, repressive system will also not allow it to ever become culturally dominate. Few countries will accept the requirements that come with that pact. Just their lack of any gradient of free speech guarantees they can never become culturally dominate.

There are no other great powers in Western culture that can supplant the US. Germany, the UK and France are not suddenly going to increase their populations by 4x or 8x such that they'll become enormous powers with massive economies (and able to pay for a powerful military with global projection). Canada and Australia are also out of the running from the start due to that.

Japan hasn't had economic growth in decades and has a declining population with an even worse government debt situation than the US. They have no military of consequence. Nothing about their situation looks primed to change any time soon.

South Korea looks to have a potent future, however their population is far too small to become a superpower.

India has a GDP per capita of $2,000. Their biggest worry has to be getting caught in the low income trap, not even the middle income trap which is what China is about to get stuck in. India could do most things right and still not be a superpower 40-50 years later. It'll take two decades for them to catch up to where Russia is at today in global positioning when it comes to politics / influence / military, and Russia is now very far away from being a superpower.

So who else is left? Nobody. It's the US and China with everybody else a million miles away. Countries with liberal values - which is nearly every single high GDP per capita country - are all going to align with the US perpetually, so long as it remains on the liberal democratic side. That liberal alignment is political, economic and military. China has no real allies other than North Korea. Being a superpower without having all the advanced, liberal, rich countries as allies, leaves you as a paper superpower boxed in at every turn; whereas the US can project globally nearly at will precisely because it has so many alliances with other advanced, liberal, powerful nations.
Not a fundamental change. There are plenty of tools for selectively targeting individuals (e.g., guided munitions, watch lists, teams of agents that monitor your every move). It could potentially reduce the resources required for such selective targeting, but if past dictatorships are any indication, these resources are not the limiting factor.
For both good and bad it doesn't matter if you give me an apple or orange, they are about the same size so, but you might have problems giving me an banana. Example:

const len = x => x.length;
write() is part of Unix, not C.
Speaking as somebody who used to lead enterprise sales teams, my take is a) the company did not know how to do enterprise sales properly b) they raised far too much capital. If you bootstrap (most great enterprise software companies were bootstrapped) you cannot afford to deviate too far from customer needs.
Zombie Cults Jinn Theocracy GoK
Abstractions should reduce complexity, which often correlates to LOC, but is not necessarily so.
> When all is said and done, advertising is also the basis for Google’s business model; with one fundamental difference: advertisers on Google choose their segmented targets based on many variables, but Google will never give them the identity, address or personal data of its users, which it zealously guards, applying far superior security to do so than most of its competitors.

This article starts off well, but then it reveals its true colors.
5 stars for update.