skysight-inc/HackerNews huggingface dataset:
I created https://wfh.dj so I can listen to new music from my subscriptions (>20m) without the youtube procrastination rabbit hole.
Mostly House, Electronic, Jazz (Stuff me and the team like to listen to while we work).

I mainly listen to the following channels:

- https://wfh.dj/c/UCJOtExbMu0RqIdiE4nMUPxQ/The-Lot-Radio

- https://wfh.dj/c/UCHdHhZ5o5iaqkHwcKh7_Kgw/Collect-Radio

- https://wfh.dj/c/UC5iaq-e3eigtnXm-x0eU3Mw/Djoon

- https://wfh.dj/c/UCaNd66xUJjX8VZT6AByVpiw/Underrated-Albums

- https://wfh.dj/c/UCal_TyiLk79vN9-OzEzUM6A/Kiosk-Radio

- https://wfh.dj/c/UC8TZwtZ17WKFJSmwTZQpBTA/My-Analog-Journal
100% agreed that the actual title is much better than the editorialized title.
WRONG. OOP is the most over rated
When you buy stuff on these digital stores, you agree to pay for an indefinite license to the content. So it can be pulled at any time.

Why would these stores use NFTs attached to ownership licenses when they could just reword their ToS to include ownership. They don’t want to sell ownership to begin with so they would never use NFTs either.
It's not a static world. Things are always changing. It's not the Data Wild West anymore.

As corporate robots get more and more entangled with the unintended and unpredictable consequences and costs of handling too much personal data, they start changing their behavior. It effects them as much as it effects everyone else. It effects their families, employees, customers, communities, countries etc etc. No one is immune

We scaled up systems so fast thanks to Moores law, cheap storage/network etc that issues scaled up faster than fixes. But past 5-6 years a lot more energy and resources are going into hardening, securing systems, quickly recognizing and reacting to issues, reducing the amount of unnecessary data being collected etc.

Learning takes time. That doesn't mean learning is not happening
That's one of the worst interfaces I've seen.
Just because it's text doesn't make it good.
I’d be very surprised to learn that you have both been there and had the opinion expressed in this comment
TikTok’s entire business is built on amplifying and broadcasting a select few “popular” voices, it is not unreasonable to expect that TikTok ensures that there isn’t some patently dangerously advice in these videos.

If they can master content distribution at scale, they must be asked to use some of their profits to police and control some of this content at scale. You cannot build a money making megaphone and then claim that everything yelled into said megaphone is free speech and shouldn’t be stopped.
Isn't it silly that there needs to be laws written to ensure consumers simply get what they paid for?
Right now it seems like airlines in Europe are selling enough tickets so that the airlines are at or over their capacity of handling passengers. Lots of lines and delays everywhere. Maybe the airlines just don't have the incentive to slow down their sales, etc, even if the airports are not ready with enough staff.
I meant the hippies that eventually became high ranks in finances/tech (in terms of pay and Buicks per garage ratio).
My principles are "be as stupid as possible" write it for someone stupider and comment it for someone even stupider and then maybe you'll have something maintainable.

(Important note: stupid is not incompetent - it's a proxy for clarity, composability and rational structure without becoming formal, rigid, overly orthodox or academic about it)
I prefer the Daft Punk soundtrack for Tron Legacy.
Those items are probably never resold. They just throw them.

Mattresses are big. They stand out when left on the side of the road.
As always in there cases I have question to ask - where were the parents? Why they let their children use TikTok unsupervised that young?
Even if you trust the contracts, I do not get why you would want to own anything DRMed. That ties you to a platform and a technology at a given time. You may want to move away from this platform and the technology may not be playable in the future.
> It never makes economic sense to tear down a house if you're paying for it (above the land value).

The land value is the key. Often, houses in the 50s-80s were built in what was suburbs or actual small villages back then, with enormous land surrounding them because land was cheap. Nowadays, the urban areas have grown and grown, and with them the desire for space for people to live on - even here in Europe, in Munich for example, land values exploded over the last 20-30 years. Think of like the land price not only doubling or tripling, but increasing tenfold or more since the houses were built.

Say you have land with a house that was worth 50.000 $ when it was constructed... and now, the land alone can be worth millions. So you tear down the existing house that's in the middle of the plot, build four new houses on it, each one bigger than the old one, and sell three of the four houses to pay for your new home and a nice chunk of cash. Or you rent the houses out for absurd amounts of money and never have to work a day in your life again.

And that happens not just with houses 50 years or older. Here in Munich, I've seen this happen with houses younger than me, simply because land values went up so immensely.
This. The clean code principles should be considered within the specific context of the situation. They are guidelines that are good to keep in mind, but no more than that.

The article gets this wrong by considering DRY as some kind of dogma and then discovering some situations where it doesn't work well. And then of course some commenters here get it wrong by only looking at situations were it does work well.
It's the same religious discussion again as FP vs OOP, static vs dynamic typing, no code vs full code etc. etc. The real answer to each of these is always 'it depends'.
www.google.com/ncr (No Country Redirect)
You've caught me out! I've never come home exhausted from deracking frozen coho salmon for 12 hours. I've never gone without food for days to ensure that I could make rent at the end of the month. I've never agonized over 20 cents. I've never taken 3 hour bus rides to work.

Oh no, wait. The opposite.

The poor live in a completely different world from the middle class, who live in a completely different world from the rich. And the philosophers generally live in the world of the rich, to preach to the world of the middle class. For the poor, there's only religion.
"There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies, and the other is to make it so complicated that there are no obvious deficiencies.”

Simplicity is hard.
Finally a use for blockchain!
You're getting downvoted, but this is barely a caricature.

Here's the man himself holding forth on interior design. Apparently people who like minimalism are compensating for their inner emotional chaos, and people who like rustic country stylings want a break from being overwhelmed by technology. People who have ornate gold everywhere are terrified of being poor.

It's silly pseudo-psychological nonsense - all opinion, with no empirical basis.

Worse, it ignores the existence of competitive status display and class identification.

Worse than that, he's clearly writing about himself and generalising to other people.

There's an entire book of this. If you want to learn nothing about taste or architecture - but more than you want to know about Alain de Botton - you can read it.

https://www.npr.org/templates/story/story.php?storyId=646338...
Doesn't lambda get controlled via sales and marketing?
As usual when the HPV vaccine is mentioned, I want to stress how important it is to get it, for anyone but those that absolutely do not have sex. HPV can cause warts and serious cancers in the mouth/throat, anus, penis and vaginal tract/cervix. Warts alone can be a severe mental and physical burden requiring several visits to a dermatologist and potentially extremely dangerous medicine like Imiquimod.

The HPV vaccines protect against the most dangerous of the many known HPV strains. The HPV vaccines are even assumed to be a therapy for infection already present. Many people have at least a few HPV strains somewhere in their body. Almost everyone who engages in casual sex has them.

HPV has been promoted primarily for women, to protect against cervical cancer, but men are also at risk: It can cause cancer at/in your penis, anus and throat! MSM (men having sex with men) are especially at risk.
> The problem is that these two pizzas just happen to have the same crust, sauce and cheese.

The problem with analogies is that they are often bad. Don't don't specify that you want tomato sauce and regular cheese when you order your pizza because that's the default.
TLDR: If you do DRY in moderation it’s great (as the OP explicitly says).
There'd be an economic trade off where the longer the queue the more likely competition can serve customers if products are somewhat fungible.
Ask HN: How to survive for a long time in one organization?
I work in organization for a long time (8+ years) and I really like it. I had a good growth path, and it's still exciting.

But my problem is that similar to memory leak, I'm facing with the time leak.
I spend a lot of time on meetings, or provide support to systems that nobody else knows about. Some of the I wrote, some of them I just get known and I left alone.

It's hard to get rid of that legacy baggage, so that I think a "fresh start" will be the only option to get some air - but it's almost impossible to stay in one company and have a fresh start.

If you are for a long time on one company: How did you survive? How do you optimize your time?
The best principle is KISS https://en.wikipedia.org/wiki/KISS_principle

> "Keep it simple, silly", "keep it short and simple", "keep it short and sweet", "keep it simple and straightforward", "keep it small and simple", "keep it simple, soldier", "keep it simple, sailor", or "keep it sweet and simple".

It's true that often, complexity is praised...
Actually, it's worse than that because it's all gone digital except to get anything done relies upon ten separate, disparate computer systems all designed by different contractors and a third of them are down for maintenance. Oh, and we're filling out PDF forms that represent formerly paper forms and shoving them in a database.
The FTL:Faster Than Light soundtrack by Ben Prunty is what I've been using for the last few years.
Charities are also overflowing with goods. They keep the nicest items and the rest end up on the trash heap anyway.
Fundamentally businesses have no morals, and everything is just an equation based on profits. If it makes economical sense to do this, many a business would be inclined to do it.

Not saying that it’s right, but it’s definitely completely understandable why we need laws to protect consumers.
They get very, very hot, so their conversion efficiency falls sometimes as low as 12%. They also get dusty, which can cut conversion by as much as 80% again unless you dust frequently. And, getting so hot, their useful lifetime is reduced to as little as 20 years.

Float them on a reservoir instead, and conversion efficiency is improved to as much as 23%, lifetime increased to... nobody knows yet. Evaporation is reduced. Biofouling underneath is reduced. Some wildlife prefers the shade, under. Turtles like to climb up on the edge. And, cleaning is easy. (Search: "floatovoltaics")

Float them on a canal, likewise; the evaporation and biofouling reductions are extra important there. California estimates they could generate 12 GW on its canals, and prevent millions of gallons of evaporation loss every year.

Stand bifacial (double-sided) panels in fencerows on cropland, running north-south, far enough apart to drive a tractor and stuff between. They pick up morning and evening sun, while protecting crops from heat stress and cutting evaporation. Some crops yield more, few less. When you have plenty of crop land, you don't need them to pick up every last bit of sun; you have plenty of room, so they can be spread out. You could grow berries or cherry tomatoes under, whatever else you grow. They don't get so hot in fields, either, and the vertical mounting keeps dust off. And they produce revenue year-round. (Search: agrivoltaics)

They also do well in pasture, where the livestock keep the weeds down.

On some crops, you want them horizontal above the plants to protect from freak hailstorms, heavy downpour, and harsh noonday sun.

We all like parking under solar panels in parking lots, where they keep the rain off on our way to the car, and keep it from getting too hot inside. And, they make roofs last longer; not just on houses, but on warehouses, factories, airport terminals, malls, what have you.

Finally, deserts are usually a long way from where people want the power.

There is absolutely no shortage of places to put solar panels where they will work better and longer, and do other good besides.
"C is faster/smaller/... than C++" hasn't been true in a long time.

I would argue that the time you need to invest to get something done correctly in C is a cost you can avoid with (modern) C++
> Mistake 1: Switch from DRY to premature optimization.

"Premature optimization" is largely a bogus concept, because the meaning of "optimization" has shifted a lot since the concept was first created.

People now use optimization to mean "sensible design that does not needlessly waste resources".

In this meaning of optimization, "premature optimization" is a bogus concept.

You should absolutely ALWAYS write non-pessimized code by default.

What the original concept referred to is what people now call "micro optimizations". Sure, premature micro optimizations is often a waste of time. But this is irrelevant to the context of this discussion.
SpaceVim aka "I like Vim's 1337 h4x0r creds, but I want to use it like I use VS Code."
The dream I have is that they do not sack us with taxes that later on they use to violate our rights.

First thing is to remove a lot of the economic power and legislative power states have and hardening security in devices is also good news. But the problem is also that they have so much money and power that they can misspend money to target people and violate their rights because yes.
Is there any information why this is the case for covid, but not some other vaccines? What makes all the Covid vaccines so very bad at their job? Is it just the mutation speed of covid?

e.g. the pox vaccine some people received 50 years ago still seems to protect against monkeypox now and the HPV vaccine also seems to provide long lasting protection ("at least 10 years, probably more").
> Please read the 911 report.

From a quarter of a century ago? Before they founded an entire new department? Really not sure it’s relevant for how things are done today.
I once worked on a project that was basically a simple My Account application/area for a train ticket retailer.

The backend itself held no data, but whoever built the backend had gone full service layer, with models and adapters to the upstream services that hold the data.

The result was a backend that was a pain in the ass to change, necessitating whole trees of file changes to build features.

So we started inlining everything. We just took it back to the request handlers. We started fetching, mutating and returning the data in the request handlers. Suddenly a change became modifying one function. Every endpoint was unique and didn't depend on anything else. Things became easy.

Halfway through the migration, someone got our effort reviewed by a principal engineer who told me "it wasn't SOLID", and my contract wasn't renewed. It didn't dishearten me.

Software design is meant to make change easier and proudly adding abstractions can be a bad thing.
In this case, the problem is with a bug creeping in:

crust: "thyn",

DRY is about avoiding this class of cut-and-paste bugs too. Or with changing a string to a token, as it should have been:

crust: THIN

The code isn't even correct. It's mixing JavaScript and Python. I'm also not sure why you'd declare functions for each type of pizza; that's data. I'm not sure about the context, but the right way is:

def make_pizza(crust=THIN, toppings=[], cheese=REGULAR, sauce=TOMATO)

and then in each call, to override.

make_pepperoni_pizza()

is bad code compared to

make_pizza(toppings=[PEPPERONI])

All of the code in this post is horrible, and has easy solutions.

I feel dumber for having read this post, and even dumber for having responded.
This is cool, simple but fun.

One improvement I'd suggest is using an international date format (yyyy / mm / dd) or perhaps a dropdown for months.

Even with the date placeholder text I managed to mess up the date!
The article in question relates to an incident with a bridge to a proof-of-authority sidechain that was controlled by a multisig. I have not looked deeply at Axie but it is possible that a rollup could replace their bridge and sidechain tech, and their need to "prove" the authority of validators that were upholding the side chain.
DRY and Once And Only Once isn’t about slavishly identifying similar code blocks. It’s about trying to arrange your code so that a single idea is expressed in a single place.

The initial API here is actually quite nice - there’s a good separation of abstraction and specification, and I can see all the information about an individual pizza in one place. The idea of making a pizza and the recipe for each pizza exist once in their respective places.

It’s true that a common pitfall is to prematurely create abstractions before having concrete examples of how they’d be used. But DRY is a _refactoring_. It’s something you do to an existing codebase to better clarify its design, not necessarily something to strive for ahead of time. Much better to extract abstractions from existing examples.

I always remember the tale Ron Jeffries tells of Kent Beck actually _introducing_ duplication to allow both pieces of code to be refactored. Duplication can be an opportunity to refactor towards a clearer design, but it’s not a mechanistic thing to do without thinking.
Is this a part of a bigger story or a made-up dialogue created specifically for this post?
The first code example doesn't make sense. There is no good reason to write code like that which hardcodes payloads for different types of pizza. It's a realm of data. Realistically, those payloads will either be constructed by user in the UI, or they will be provided in json file as predefined variants.
Yeah I mean it's pretty bad, but the upside is that it will run everywhere without having to install anything and there are lots and lots of answered questions out there if you run into issues. Which I doubt is true for Nim. Using niche stuff means you're on your own in terms of support.

And with how dependency happy everything is these days, I avoid trendy projects like the plague.
> I feel the need to remind Northern hemisphere people that it's Summer

You are paradoxically right to remind us, because some of us are puzzled about this climate we seem to be thrown in in usual places. I have never in the past summers had to go at 1500m altitude (4000..5000ft) to say "ok, now the conditions are comfortable enough", but for exceptional days.

Oh, I do remember that evening many years ago in which I came to doing absurdities to get "at least a ludicrous idea of a tiny increase of fresh air" in the unbearable weather. It was summer, all right. It lasted dozens of hours, not months; it was August, not May.
I know it is a very polemic topic but I genuinely think abortion is a crime, not a right.

Not anything against LGBTQ or the like, though.
Is there a reason why I wouldn’t use this as default?

I hate most iMessage functionality and I will be happy to get rid of it for security. The rest also seems reasonable?
That was the bad old days. Things got better under Nadella. Just like they got steadily more evil at Google. There are no big corporations you can trust in the long term, but at least MS is behaving reasonably well right now.
This seems to mimic, or at least rival, Google's Advanced Protection Program which has been running for a few years to offer similar protections to Google/Android users.

My concern about enabling this would be that I'm unsure how much this puts barriers in place to prevent the owner of an account regaining access should it be stolen by a threat actor (i.e. could this backfire on the account owner?).

It's still unclear to me how much Apple really protects against (for example) sim swaps to take over an iCloud account - and the documentation around when they'll truly insist on having something like a Recovery Key if it's enabled is sparse. It almost reads as if the right amount of begging will socially engineer access to a locked iCloud account by a threat actor with the right personal information to hand, which if coupled with Lockdown mode, seems pretty dangerous to the true account holder.
Due to my evolving licensing disagreement, I use torrents for all my movies and TV show watching needs.
Crisis reaches technology in Portugal: Remote fires 9% (lang PT)
I live and grew up around the Nieuwmarkt, and completely disagree with this take. Sure, it is expensive, and sure, there are quite some tourists, but it is extremely liveable and nowhere near Venice levels.
,,To solve my sauce issue, maybe I could use an OOP style and have a PizzaOrderer class that can be subclassed for each pizza type, allowing each type to override sensible sauce/crust defaults.''

No, DRY doesn't mean that you should create classes just to prove your (invalid) point.
I never have :-) Sometimes to my detriment, but most of the time it works out in my favor.
In my case when I was junior I tried to be very smart and try to DRY a lot, but I found that most of the times is better to write "dumb" code and repeat yourself if the complexity is not worth, also as you stated if your function is used in a lot of places for slightly different things is just so easy to break something without noticing and also harder to test.

So I agree with you, as developer you should know when do duplicate code and when DRY, but overall try to maintain your code as simple as possible, that makes also easier to maintain.
Basically my ADHD means that if I like the music I am listening to I will stop focusing on what I am doing and instead focus intently on the music, if I hate the music I am listening to I will stop focusing on what I am doing to turn off the music and then be pissed off at whatever connotations are raised in my head regarding the music, finally if I find the music bland and boring I will do ok but sooner or later I will hate it because why would someone make such bland and boring music?
The models of the world that we construct are very, very rough approximations. Don't hold on to them too tightly. They may be useful, but they are wrong in many important ways. There is always more to learn about the world and its vast complexity.

Emotions are as important as analytical thought. They are another form of information processing -- they aren't arbitrary. Thought doesn't occur without emotion. You need both. This can be a scary and difficult lesson to learn if one has difficult emotions that have been suppressed. It took me years to work through suppressed emotions, and I'm not fully done yet. A good therapist can help, but they can be hard to find.

Don't take yourself too seriously :) Be gentle and compassionate whenever possible. Especially to yourself. We treat our friends with kindness and love, but ourselves with bitterness and hate -- try to treat yourself like your own best friend.

Ask yourself -- and continue asking as the years go by -- what is a good life? Try to live like that.

Humans aren't meant to be alone. We evolved as a social species. Seek out others to spend quality time with. Forming connections can be difficult in the modern world, but one good social bond can change your life.

---

The above was a very quick brain dump. Hopefully it is helpful in some way :)