skysight-inc/HackerNews huggingface dataset:
To help figure out when to DRY or leave wet i like to use the rule of 3. Where a piece of code needs to be repeated 3 times before it is DRYd up. You can adjust this number from 3 to whatever you would like.

What I really like about rule of 3, vs rule of 2, is that it allows more time to go by that may lead to the two pieces of code no longer being identical as requirements change. Which would either remove the need for the abstraction or allow for a more accurate abstraction.
I think this comes down to a level of experience.

If you're writing and enterprise app and lean back in your chair and start to think about speeding things up with loop unrolling and avx instruction sets then you're doing the premature optimization thing.

But trying to limit large nested loops is easy fruit that doesn't take much effort to pick.
I use AlpineJS for reactivity. Along with JS Template literals[1], I can reach quite close to the ergonomics of having react like re-usable functional components without bringing in the whole complexity of react ecosystem. Works quite well for smallish projects.

For styling I pick up Bulma CSS if I need some more complex components (tabs, modals etc.) or TailWind if I just want to pepper a little styling here and there. All this loaded directly from CDN. No build step, no server etc required. You easily do debugging from browser console.

I have made a few internal tools like this which my co workers use everyday.

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I feel like if KDE really wanted to build hardware specifically for KDE then they would and SHOULD bring in Qt Developers (The QT Company) onboard for the best optimizations of the desktop environment....
Have you ever seen the complete opposite? non-DRY all over the place? No variables or constants defined, same values manually inserted all over the code? Or same code with slight differences duplicated all over the place. - When you see that, you'll realize how useful the DRY principle is.
Sure, they always argue that you are only "renting" them for a one-time-fee, and that the rent agreement could end at any time for any reason.

But them using the word "purchased" in this very announcement (not a mistranslation btw) gives weight to the argument that this is intentional deception of the customer. An even easier case in Germany, where courts acknowledge that customers don't read the terms of service, so any "surprising" terms hidden in the TOS aren't legally binding.
For sure! System definitely matters, running tactical combat in PbtA won't work, just like trying to shoehorn relationships and inner turmoil into 5e.
Scheme and Lisp already existed.
DRY has the same idea as modules. Write once and re-use it.

This article is the result of someone exploring a new idea and cussing it out because he has to change his ways. I've been there countless times.

DRY is not overrated. DRY is a time saver in the long run.
Why is this even on top of the 1st page, how new are you to development anyway?

Sorry but I'm really getting pissed off by people wasting my time with useless articles lately. It's getting out of hand.
> aesthetically wxWidgets (like many other UI libs) is not for 2022

wxWidgets applications are supposed to look native on every platform... what's the issue? Personally, I find apps with weird GUIs that don't look at all like the rest of the system very irritating. I would prefer developers to spend more time implementing features, and less making bling-bling UI things.
That just isn't the case.

And I am sorry to say but the many countries have made great strides on running their countries on more and more renewable energy sources.

In 2018, Scotland generated 98% their energy from wind alone.

Denmark 72%, Germany 45%, Uruguay 97%, Norway 93%.

It's a whole patchwork of solutions, depending on geography.

Nuclear is not this magic bullet, and just means flipping a switch, it has a major cost, logistical, technological and risk overhead associated with it. If you are France, great, but they have been doing Nuclear since the beginning, it doesn't mean that the world has to do the same, when far simpler, cheaper and safer alternatives are in abundance.
I don't think you're getting very good answers here, but the real answer is there is a split between strategic and tactical intelligence (and operational, but that's kind of in the weeds to distinguish from tactical). Military departments don't generally operate their own strategic intelligence assets. They get the information they need from the CIA, NSA, and NGA, the same as the president and anyone else who needs that level of information.

At the tactical level, though, military units need to be able to operate fairly autonomously. This can go pretty deep down. It means a division of the Army may have aerial recon assets, signals interception devices, and such with an operational range of, say, 500km or something, but not things like spy satellites that can cover the entire globe. Down at the company level, they may even have their own assigned scouts with some limited remote recon tech, but then the range will be much more limited. The point is they can use that stuff within their own area of operations without needing to deconflict with other users, having full local authority over tasking. Tasking of national strategic assets like spy satellites, on the other hand, needs to be done at a level of clearance and authority that has visibility into what all of the nation's military units are doing at any given time, as well as some idea of what they're going to be doing in the future.

This is why we have national intelligence agencies, but each branch of service and even individual combined arms units also have their own intelligence sections. It's similar to why local police departments have their own detectives and don't just ask the FBI to perform all investigative duties for them (more to it in law enforcement because there are also different laws at each level of government, but still some similar ideas).
The problem with nuclear right now is that even if we decide to massively increase the share of nuclear power in the energy mix (in itself a very good idea), it will take a lot of time to build up the human technical capital necessary to plan, build, and operate these plants. This should have been started 5-10 years ago, and new graduates woukd be ready.
Not to mention physical plant which also takes many years to finish. My worry is that once the energy crisis becomes completely obvious, with people shivering in blankets, govts will panic and push through emergency building plans, cutting all corners.
I've found that novelty, (new-to-me at least) to be much more distracting than the presence of lyrics, whether that be a new artist or a new song order. As my unit of listening is usually an album, I'll briefly notice album transitions, and shuffle on an album will be jarring, but the 2nd or 3rd time I've heard an album it's successfully backgrounded for the duration of the album.
Version 1.0 generics, still better than nothing, though.
Yup - I owe my above-average native fluency to my mother's incessant correcting, and my English proficiency to countless kind strangers on the internet.
The jobs market still favors workers, despite fears of an economic slowdown
The biggest issue with DRY is commitment to a bad abstraction just for the sake of not copy-pasting some code. Abstractions should be liquid while you're figuring out the best way to model your problem, and DRY can often be a culprit in having a model that's a bit too rigid.

Obviously YMMV.
Not sure what you are referring too to be honest.
Body Margin 8px
Where do you live that still has restrictions?

I guess China still has some and that majorly affects the supply chain, though a lot of the inflation seems due to the war in Ukraine which is unrelated to COVID or restrictions.

But I also think COVID itself is affecting the economy, because of the increase in sick time.
It depends if purchase is defined in the countrys laws. Otherwise it can be defined as anything within the purchase contract.
Valve rarely has to pull games in this case, the agreements they have with developers seem to protect them. I can't remember the last time a game was removed from people's Steam libraries.

However, developers do have the ability to replace games in your library, so often an original game will be replaced with a low-quality remaster.
Designing a better pricing page
It's complicated further now by gamification. My daughter's school doesn't assign homework until a certain grade, and minimally at all. But they're encouraged to use many apps on different subjects that are structured as games, which she really likes.

Reading this post, I realized it's very fuzzy whether she's doing homework: she's not doing it in the traditional sense, but if you include these apps, which cover all the same content, she's doing them all the time.
None. I cannot understand why. Like all linux-preinstalled laptops.
The only exception are Dell XPS line.
and these are from outside India like you were claiming?

My point was there was sufficient Hindu diaspora outside but it has not been involved with violence of religious nature and are mostly considered model minorities.

The problem in India is well known, and it is an actual issue there. Although, I will add all of the events you mentioned have precursor events to them as well; not that that justifies anything.
Far from it, Go was designed to be optimizable form the start. The GC was obviously not optimal, but the language semantics were such that the GC can be replaced with a better one with relatively minimal disruption.

Of course one can't release optimal code from version one, that would be absurd.

Also your last sentence is extremely condescending.
Subtle bug in that toppings has a mutable default argument [1].

[1] https://docs.python-guide.org/writing/gotchas/
For very small values of "resign".

> He will stay on as caretaker leader until October,

That's 4 months in which he can still cause immeasurable damage and
embarrassment.

And then what?

I'm sure he will have to be dragged out kicking and screaming like a
toddler having a tantrum when the birthday party is over.
Here a couple of my first impressions:

- The site is waaayyyy too slow, I would be gone before it even loaded.

- Things on the site don’t match up, Top 1% of freelancers and then show rates between $18 and $40 an hour?!?

- The first person (Evgeniy) you see on the page looks like a dud (should have a more charismatic picture) maybe have one of the others first

- The name is horrible, even if the intention had nothing to do with Cis gender, that is what people will associate it with. Just don’t fight that uphill battle.
How is the serviceability? Can you swap ssd / battery?
Would also throw in a couple suggestions:

- Jean Michel Jarre, early albums like Oxygene and Equinox

- All India Radio, their Desert Tapes has been one of the best to code with IME
Technically, you're still not removing taxes from the equation, because the state owned nuclear plants in France are also funded by taxes, it's just not taxes that are added to the cost of units of electricity.

Which actually makes sense, if you have a high upfront cost, constant output source iike nuclear, taxing each individual unit makes no sense since the marginal cost is effectively zero up till you need to build a new plant. Whereas if you burn coal or gas, you want to incentivise people to cut back for cost, carbon and pollution reasons.

An even more sensible approach would be to tax the carbon directly and charge more for peak electricity since that contributes more to the infrastructure requirements, which I guess both countries will already be moving towards as is the current trend in most places.
this looks like it's aimed at creative types, graphics rendering and video editing on ARM would be painful

ARM is situated firmly within the efficient end of the efficiency-power Venn, whereas this pushed towards sharing the middle with powerful
If I’m not mistaken the original point of dry is to not repeat data/state, rather than not repeating code.

Being dry about state is actually really useful (essential!), where state can be derived it should be, rather than stored as a new variable. Being dry about code is often less useful in my day to day coding, but I’m not a library designer I just make apps /2c
When it comes to nuclear, no story is better than the story of the Zwentendorf Nuclear Power Plant in Austria.

It was built, finished, ready to start providing 692 MW of power.

But was prevented with a referendum on 5 November 1978 by a narrow majority of 50.47% against.

So they didn't start it.

They instead replace it with Dürnrohr Power Station, a termal power station burning coal and gas.

The push for ideological purity that prevented them from accepting a less-than-perfect choice, lead to getting stuck with the worst-possible choice when reality came knocking. It's a cautionary tale for all ideologically “passionate” people, of which we have far too many in today's society.
> same user validation in 2 places, changing it in 1 place may lead to issues, which are difficult to discover.

Disagree. Quicker discovering issues difficult to discover is actually a good thing.

> Its more difficult to build context of the implementation, if one needs to jump from file to file.

Agree.

In general, I personally look at DRY as "It takes time to implement and/or understand it, but when it's done then it works and it will last."
"It takes time" is something your boss won't like, but that's (mostly) not an issue if working on open source SW. No boss -> no pressure -> higher quality.
As I heard today again on the radio, the narrative is "to get energy whatever the weather, we cannot rely only on wind and solar".

I'm surprised that they haven't heard of the possibility of energy storage.

Both already available storage solutions, and the many other solutions in development, are largely enough to enable wind/solar and other renewable sources to replace fossil fuels, without relying on nuclear.
I fondly remember the Ember.js docs.

They were awesome, but all the code examples where DRY to the max, it was quite funny.
Redux is absolutely not a requirement for "simple" front-end dev. There are many simpler, less boilerplate-y, and more modern ways to manage state in a React application. See https://blog.logrocket.com/modern-guide-react-state-patterns...
A while ago I decided to change my usual music lists.

First of all I decided to listen to opera. I started with Mozart then went with whatever sprang to mind or Youtube's recommendation sidebar. I'm now a fan of Puccini (predicatble?) and Nixon in China is amazing.

I also decided to listen to all of Rolling Stone magazine's top 500 albums ever. After listening to each I made a short review on twitter. I managed 2-3 a day. It was impossible to "properly" listen to them, but at least I was getting through them. I paused at 60, and should really restart.

I also listen to In Our Time on Radio4, arguably the original podcasts and certainly (one of?) the best. They have been curated into collections (philosophy, history, religion) and I'm getting an education through Melvyn Bragg (also one of the best chairs in audio). Again, it's not properly listening, but I pick up much more than I get by not listening.
There's no technical or legal reason that the word "purchase" doesn't imply an irrevocable, transferable license (for one person at a time), as well as the requirement that the "seller" makes the licensed good indefinitely available to license holders (for a fee appropriate to cost of doing so).

If they don't like that, don't call it a purchase. Anything less is just eroding the meaning of the word.
The number one thing you can do is write up your “hat” in the organisation that you want to pass on and make it as easy as possible for someone else to occupy it.

If there are aspects of your job, like the legacy systems you are talking about, that only you know about, you need to start the process of documenting those systems so that someone else can take them over.

This isn’t just raw documentation, but you need to build the “how to” guide for them.

Focus on one system first and then present it to the CEO and tell them that you have written up this function because you want to help remove the key person risk of knowledge being only in your head. Also tell them why you are doing it (you want to grow further into the company to bigger opportunities).

As a business owner, I can tell you that this sort of initiative is greatly appreciated and valued.

Once done on a hat, get it to a more junior engineer and help them get in control of that part of the job.

Then repeat as many times as needed.

Even if you don’t find someone to take over some aspect immediately, doing this is very therapeutic anyway and also means that when the opportunity does arrive for you to hand it over, you can!

This will also declutter tour mind and help give that “fresh start” you are after as you won’t have to remember everything.
The major problem with Blu-ray is ensuring authenticity. There are so many fakes out there.
So true... some people seem to appreciate the their "aesthetics", but many 2022 UIs are just much worse than what we used to have with... Windows 3.1, or System 7 on Mac. They had uniform keyboard shortcuts (at least Windows, no idea for Mac which I used only very rarely), uniform window controls, applications that didn't need a 150 MB runtime... the worse, is that this is still possible today, just many people don't even bother to try doing it.
> I don't like any of those things.

Why though?

> Also IRC definitely supports links, haha.

Oh how do you set the text of a link? Do IRC clients support markdown syntax these days?
Solar and wind alone won't work without support by gas or other non-renewable sources. Try to find a single scientific study that gives a detailed overview of how the German energy mix is supposed to work and that explains how supply will be matched to demand 24/7 all year round. None exists. The whole "Energiewende" is built on the hope that either our neighbors will produce the necessary base capacity to stabilize our energy grid, or that a miracle storage technology will somehow be invented in the next 10 years.

I can recommend "Sustainable Energy: Without The Hot Air" [1] by a Cambridge professor, it goes into great detail about the problems of matching electricity demand to supply day- & year-round.

1: https://www.withouthotair.com/
I really like the ultra simple approach of MVP.css (https://andybrewer.github.io/mvp/). It looks better than no styling at all and doesn't require me to get into Bootstrap. Only minimal html tags needed. Perfect for small side projects.
> age like wine

No pun intended?
Show HN: A dependency injection library based on Go 1.18 Generics
You're right.

It's directly (and I believe explicitly) modelled on the Americans with Disabilities Act. The ADA creates a model in which private citizens can and do bring lawsuits against all types of organisations for any type of harm they can define.

This has spun out a cottage industry of disabled people who's full time occupation is visiting everything from websites to restaurants, being harmed and bringing lawsuits. While that may sound like a bad thing, it is in fact a very very cost effective way of enforcing the law quite effectively without bureaucratic bloat. Strangely, it's been quite successful. The history of why this decision was made is very interesting.

For all your devs, this is why large American companies care so much about accessibility on their websites - because it creates an almost unlimited liability on their end if you do it badly. Companies now scan websites for accessibility as soon as they're launched, then others will buy the set of companies which 'fail', then visit those sites in order to be harmed. It's an interesting little cottage industry which keeps legitimate disability rights enforced quite nicely without too big a government.
Add 'Yakkety Sax' to the list
From the article: "gas-fired plants built through 2030 will be recognised as a transitional energy source as long as they are used to replace dirtier fossil fuels such as oil and coal."

"The technical screening criteria ensure that any new gas-based power/heat plant (or refurbished combined heat and power plant or heat/cool plant) is either below the technology-neutral 100g CO2/kWh life-cycle emission threshold (i.e. using Carbon Capture and Storage technologies) or meets a number of stringent conditions and obtains a construction permit by 2030." -- Questions and Answers on the EU Taxonomy Complementary Climate Delegated Act covering certain nuclear and gas activities
Fun fact: it was named "wxWindows" when it launched.
Or the name for the new intergovernmental military, probably not the best in current times
There's a large tradition of having texts translated into Russian, whereas English speakers would very rarely read anything translated from another language.
If you order from Apple in the EU (to a friends place for example) you get a choice of keyboards. Apple generally ships direct from China for online orders. I have a US keyboard Mac purchased in Spain.
Nuclear does have a cost problem in the sense that costs have not really dropped since forever, which is not boding well for a technology (unlike, for example costs for solar). So I can accept people arguing that way - but could also still argue for nuclear as an expensive baseload technology.

The whole taxonomic discussion is a distraction anyway. We are long past some simple carbon reduction path making a dent (and also coming at high costs), so in the end will be about mitigation and even attempts at geoengineering - as usual politics are way behind the curve.
I've written about just this subject as part of a series on my toolkit for building tiny apps. I use Material UI... React bindings for Material: https://link.medium.com/qPechTPYsrb
The groups you mentioned have little to do with India. Some of the groups responsible in India were dealt with and some are still active mostly outside now.
https://gcc.gnu.org/legacy-ml/gcc/2005-11/msg00888.html

> This code is licensed under a BSD-like license [8], and LLVM itself will not initially be assigned to the FSF. If people are seriously in favor of LLVM being a long-term part of GCC, I personally believe that the LLVM community would agree to assign the copyright of LLVM itself to the FSF and we can work through these details.

The leads of the project offered LLVM to the FSF and the offer was ignored because of Stallman's incompetent approach to email.

https://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00...

GCC's irrelevance and LLVM's dominance of the field are definitely his fault (even if there are other factors involved.)
Not if you cut ancient forests to heat your house to 24C in the winter https://www.spiegel.de/international/europe/illegal-logging-...
Tell HN: You can drag to change the size of the text box for HN comments
Drag the bottom right corner of the text box. I just discovered this by accident and my mind is blown.
Even sillier, why are there subtitles for languages available in some countries, but not in others, even on the same service? If I'm in Brazil watching a Netflix show (even some Netflix originals), I don't see the same amount of subtitle options if I was in India. Absolutely bonkers.
Aliens could send quantum messages to Earth, calculations suggest
LeCun being LeCun.
yes, u r right."StoneDB is optimized for OLAP applications" is actually describing the StoneDB column store engine of StoneDB DMBS.
Consider it's a nation that reinvented a crappy version of a metro with bunch of teslas in a very unsafe tunnel, I don't think you can expect reasonable answers. /sarcasm

I know it's hard to develop actual efficient solutions due to the cost of buying land, creating new infra. So you go for the cost efficient route instead of the practical efficiency.