skysight-inc/HackerNews huggingface dataset:
I like DRY. Do Repeat Yourself. You can always refactor later, once the requirement/change is fully implemented.
>"why did you hire this guy in the first place, or why did you not fire him?"

Because many companies are actually looking for these guys following the principles to a T initially. It's only midway through they complain about them lacking flexibility, if ever. Then later everyone complains about the incomprehensible mess while a few go "that's the way things are, we just need smarter people to understand our solutions".

And of course, it takes them 10 years to do something with a huge team which only took a small team a few years.
They don’t (or didn’t) have Full Self Driving though. They were participating in a beta test program which had specific responsibilities that they agreed to.
The problem with DRY is that it doesn't tell you how many repetition is too many.

Here's my advice: don't refactor when you repeat yourself twice, refactor when repeat yourself _three_ times.

Having one chance to copy-paste before DRY'ing your code has been one of my most treasured coding tricks, it'll save you so much time and premature refactoring.
But that would mainly benefit kids from educated backgrounds, while kids who graduate late because of their life circumstances, might end up simply not finishing school or start their professional life in debt.

After reading some of the school- and homework-critic posts here and thinking I‘d agree with them I realize that school helps the overall population, especially less educated people who simply wouldn‘t invest more their time and energy in education otherwise while the highly curious and intelligent people are rather limited by it.
Opportunity costs are a thing.

Making children hate school is also a real risk.
No affiliation, but something I found on HN years ago was brain.fm:

https://www.brain.fm/

I've used it as a source of instrumental, good enough music. I'm not sure if the other "sciency" stuff actually worked. I didn't use it for a while now, partially due to a lack of macos native app.
FYI;

Human Papilloma Virus (HPV) Vaccines : https://en.m.wikipedia.org/wiki/HPV_vaccine
What a delightful strategy to propagate conflict toward resolution.
>Argument by Authority may be a fallacy, but it is significantly more persuasive than other arguments.

I looked at https://gordonc.bearblog.dev/ - I don't know why I would think this guy was any more of an authority on what was important than I am. So I'm not sure if anyone who thinks they're a programming genius would even care.
A truly excellent toolkit. The code is very readable and the developers are quick to communicate/respond on the forum or stackoverflow.

I wish more people used it instead of writing "apps" that are just a giant web browser with javascript and a hack to get menus working correctly, with fake UI widgets that don't respond like native window controls (no proper tab navigation, no moveable or resizeable dialogs, keyboard accelerators don't work).
> They are guidelines that are good to keep in mind, but no more than that.

How great dev life could be if everyone saw it like that.
I can't program with too much/little musical stimulation or without a driving beat, I also find repetition annoying and love symphonic and electronic elements.

So, if anyone is interested here's a random sample:

Roof - Big Spoon Instrumental Version
Theophany - Woods of Mystery
Power-Haus - P.I.M.P. Shyloom Remix
Nicholas Hooper - Umbridge Spoils a Beautiful Morning
Arkana - Umi and the Serpent
VOLO - Mystic
Apashe - More (Prelude)
.. incidentally just around that time tourism became a problem, especially in places like Venice.
This was standard in the Sowjet Union. If you think it’s too warm, you open the window.
Have you done a scientific review, or just talking out of your ass?
Yes, I have this problem. I listen to electronic music when I code. It usually helps me focus. That is, until some vocalist fades in the mix rambling some inane crap I am forced to divert my attention to. It's like any other interruption for me. The human voice is impossible to ignore. It irritates me to such a level I wonder whether I'm on the spectrum.
I'm pretty sure after 10 years most vim users stick to a vanilla 5 line config for this very reason.
A big joke indeed. Massive overhead has been created for what is a relatively small job. The Spacemen (because the Air Force has Airmen, right?) seem awfully concerned with all the trappings of being a separate military service than actually doing a job. What the US military needs is more unity, not less.

There is also significant lobbying for a "Space National Guard" too. Give me a fucking break.

Signed,
Crusty, grouchy Army (Reserve/National Guard) Officer
You'd like a Christmas Carol then.
Similar concept:
https://life-is-short.ad-si.com
On top of that - a lot of language specific content has to include sources in that same language.

(As an example, it would be absurd for lithuanian wikipedia to include sources in japanese - that would be not usable AND not usefull for the wikipedia readers, editors...)
Public health messaging has been excruciatingly slow here too, it's gradually being recommended more and more for males too in the last few years by public health agencies as an actual health intervention for males (previously the idea was more about reducing transmission to females). So yes, second this, everyone should get this vaccine, and it's probably not too late to get some benefit from it since there are multiple strains you can vaccinate against (you'll almost certainly have some strains if you're aged 20+ though). That said, for multiple reasons there's no real need to panic and rush out to get it if you're older and monogamous.
> I honestly don't understand how much slower arrays are. Its like 30x or similar.

In what context, under what operation? Depending on context, the difference makes sense and is what one would expect - tuples are immutable, with fixed size known at compile time, and stack-allocated; arrays are mutable, dynamic in size, and usually heap-allocated. That's why StaticArrays.jl [1] exists, for when you need something in between/the best of both worlds.

> I like Julia but its easy to write slow julia unless you keep the performance tips in mind.

I very much agree with this statement though. But following a very few basic ones like "avoid non-constant global variables", "look out for type instabilities", "use @views and @inbounds where it makes sense" gets you most of the way there, for eg. about 3-5x of the time a C program would take. Most of the rest of the tips on the Performance Tips [2] page are to squeeze out the last bits of performance, to go from 5x of C to near-C performance.

[1] https://github.com/JuliaArrays/StaticArrays.jl
[2] https://docs.julialang.org/en/v1/manual/performance-tips/
737 songs? Oh wow. My current list has 238 songs. I might end up getting some good stuff from your list. Thanks and cheers, mate.
Another commenter mentioned “NFT” and got downvoted to oblivion but I do think there is merit in considering new economic models that disrupt current platforms.

Not a new model where access to the media is restricted only to the purchaser - and corporations fight to maintain DRM and inevitably become gatekeepers of popular culture. Instead, a model where creator revenue is not tied to media access. See [1] and [2].

[1] https://www.billboard.com/pro/camp-chaos-songcamp-nfts-50-pe...

[2] https://mirror.xyz/herndondryhurst.eth/S-W2ZXRbrcy8bVGrKwMXS...
There are many types of homework and undoubtedly some are not useful. These fall into the category which we often refer to as "busywork" - they are assigned for the sake of assigning homework because that's what instructors feel they should do.

The useful kind of homework we can categorize as being helpful for the exam, and those which are useful even beyond the exam. In principle, they should be correlated, but there are also many ways to create useless exams too.
An old man once told me that an educated person can suffer shortages but will never be poor. He meant educated in the broadest sense of the word, including what de Botton is talking about.
I don't mean to take your suffering away from you, but just to point out that focusing on material things even in the near term is a choice. It doesn't cost anything to build relationships and invest in your mental health. It doesn't even take much time. It just requires conscious effort.
By traditional i meant protein subunit vaccines.
What's funny is that DRY was first popularised in the Pragmatic Programmer[0] book, and "coincidental" duplication is explicitly addressed right there on page 34, "not all code duplication is knowledge duplication... the code is the same but the knowledge is different... that's a coincidence, not a duplication."

[0] https://www.amazon.co.uk/Pragmatic-Programmer-journey-master...
I agree on that and i didn't take a whole lot of things into account. In fact, i'll add up another aspect: making a communuty dependent solely on a desalinated water transported either by pipe or vehicles of any kind from far away, while in theory resolves one problem, introduces several extra dependencies on the operators of the supply chain and potential risks associated with fuel prices, waste containment, prices of chemicals used, etc.

"That's to provide for coastal cities..." which is closer to actual viable application, provided that those cities have a backbone to rely on in case the supply chain slows down for whatever reason.

"...Improve the technology? Lower the level. Until it's bone dry. And then what?" Yeah, sounds pointless, i understand your point now.
> the purchaser does not know the price of something at the point of purchase.

This is only solvable for the cases where what needs to be done is completely known and certain in advance. Which for very complex human biological systems would not be the majority of cases, unless providers decide to only deal with health issues that fit that criteria and send everybody else to someone else.

I think the problem of not being able to accurately predict the required care is an intrinsic part of health care. Some of it actually is taken care of in some way, for example, if you go to ER they will only fix any immediate urgent issues and then send you home. Or, they send you home after n days in the hospital no matter what (example links: https://www.ombudsman.org.uk/sites/default/files/page/A%20re... or https://pubmed.ncbi.nlm.nih.gov/12568426/).

> When consumers are informed and can force suppliers to compete with each other,

Uhm... how do you imagine this would happen? Genetical engineering so all humans become standardized clones with identical completely predictable issues? I think you severely underestimate the inherent unpredictability. Simple stuff like teeth cleaning can be a price known in advance, or coming in only to renew a prescription for a known health problem, but many, most?, of the "real" issues are not.

OR, what would happen if you enforce this is that the MDs would be forced to press the cases into the pattern. They may think they should order an additional test or imaging procedure after actually looking at the patient, but since it's not in the pre-approved plan it would not get paid, so they don't, only things that were known before any doctor looked at the person get treated and only using the predicted methods.
This is the reason I've given up on "owning" digital content on online platforms. At this point I will not purchase movies or tv-shows, only stream them on streaming platforms. Studios are shooting themselves in both feet by making it impossible to truly own content. By implementing customer hostile licensing models for digital purchases people will move towards streaming instead which generate far less income than selling the content à la carte.
Private copy levy alows private copies of content.
"A private copying levy (also known as blank media tax or levy) is a government-mandated scheme in which a special tax or levy (additional to any general sales tax) is charged on purchases of recordable media.
source: https://en.wikipedia.org/wiki/Private_copying_levy

Sweden has such a private copy law. You pay a tax fee on USB and other storage media such as hard disks but the fee includes the right to make private copies.

"Privatkopieringsersättning"

EU version
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...
"(38) Member States should be allowed to provide for an exception or limitation to the reproduction right for certain types of reproduction of audio, visual and audio-visual material for private use, accompanied by fair compensation. This may include the introduction or continuation of remuneration schemes to compensate for the prejudice to rightholders."
None of your points are technical critiques. Sufficiently restrictive governments have had little trouble enforcing bans against end to end encryption or enforcing internet restrictions for the vast majority of the population either. Computer code will never protect you from a bullet to the head. The lesson here is that technological solutions are not a replacement for politics and real-world power struggles. They can however be a tool.

> How is this even close to true. There are multiple exchanges right now that have locked up people’s money and don’t allow them to access it.

There is nothing wrong with the existence of custodied services, but - give your money to someone else and you are relying on them (and the legal system) to get it back. So what?

> Cryptocurrency is banned in China and is basically inactive there. How did it evade censorship?
> To the extent it’s “censorship proof” in some areas right now is because the censoring entities simply don’t give a shit about it.

It is guaranteed that there are Chinese citizens holding and transacting in crypto everyday. To confiscate these assets or to block these transactions poses certain challenges to authorities. This is what the decidedly non-garbage tech ensures.

It is also challenging to find individuals who have USD under their mattress, which is why cash is extremely useful and civil libertarians should fight for its survival.

> USD requires only 1 side to have gone through a much easier process to acquire it. Whereas crypto requires both sides to go through it.

Note that this is not correct. Wallet-creation is not a physical action; a wallet is merely a sufficiently random number you pick for yourself, in your head if necessary.
Did similar non-maliciously. I was on a remote island and wanted a standing desk - they're heavy AF. Amazon sellers kept cancelling the order.

...amazon warehouse on the other hand worked no questions asked despite questionable economics
Sounds like https://dangerzone.rocks/
Definitely! In ruby it’s even easier for most gems where source == build
Yes, I've heard more people say that the pandemic has helped make Amsterdam more liveable. But the same kind of backlash that is hitting Venice might happen there too. Essentially the pandemic has given us a short term window on alternative modes and some of those will hopefully stick (such as: work from home and a general reluctance to travel).

Agreed on the wealthy expats and that the locals will likely not return to the inner city. There just is too much money involved. I grew up all over Amsterdam and checked the prices for each of the places where I lived (that info is public) and was quite shocked to see that in spite of being fairly well off I probably could only afford the smallest (a 55 square meter apartment on Ferdinand Bol straat).
As someone who thinks PulseAudio is conceptually flawed, I don't really get the way old linuxers hate on systemd. I mean ok, from a user perspective certain common things in systemd could have been friendlier, but I always got the things I needed to work and it is clearly a powerful system. While I don't really like the way Poettering handles projects, I think nobody who does open source software deserves that kind of hatered for a piece of software they have written.

Usually if you don't like a piece of software, you just don't use it. And this is the core of the problem: If I got the critics correctly the problem has more to do with the way this has been "forced" onto the community. Most criticism on the substance has been just bias colored by this aspect or people being like "I was used to the old system, now I need to learn something new".

The latter is of course a totally valid point. If you want people to change their habits, you need to give them a clear reason why and — more important — they need to want to change that habit themselves.

The same greybeard friend of mine who still complains on systemd happily adopted pipewire. Why? Because he saw a clear benefit in doing so and nobody forced this onto him.

Critica might argue Pöttering now going to Microsoft is proof that he always has been the devil, I'd argue it is proof that a certain kind of culture can drive people out of open source. I could imagine a different kind of universe in which the communications between the systemd devs and the rest of the community had been different and we would not only have gotten a better systemd, but maybe also a Pöttering who would not go to MS.

The saddest thing about the whole affair is that it has a stifeling effect on new devs. Who would dare to write another systemd after that? Certainly not me.
Could this be used by an EU country to effectively limit free movement?

Imagine Berlin enforces an €1000000000 entry fee, except on people meeting certain criteria. All residents of Germany are exempt, everyone who gets what effectively amounts to a Visa is exempt, everybody else has to pay up, except the amount is so ridiculous that nobody will actually do so.

As an EU citizen, I'm a bit concerned by this.
> so they are just a token that gives the owner to a claim to a movie via some external system.

Yes, but that's exactly what you don't get with a central database. There is no way to use your Sony-database-entry to access the movie from whoever holds the rights right now. Companies also go out of business or change plans, so that central database will cease to exist in the future anyway.

With an NFTs you have a proof of ownership. You still would need a service to honor your NFT token, but NFT usage would be the very thing that makes those services possible to exist in the first place.

We have seen with MP3 that this can work, just in that case the MP3 itself was used as the ownership token to move content to other services. With movies that doesn't work, as companies don't even give you a raw file of a movie, but they might be willing giving you NFTs, as those don't circumvent the DRM measures they have in place.

Either way, NFT are of course only a small piece of the puzzle here, there is a lot of supporting infrastructure that would need to be build and that nobody is building right now. And given the energy usage and cost of blockchains, it's not really usable for your $3 movie anyway. So it's not a workable solution at the moment. But even with all it's faults, it's still the closest thing to a possible solution for digital ownership that we have.
The reasoning behind discouraging premature optimization makes no distinction between "micro optimizations" and any other kind, the purpose of this guidance is to minimize wasting time building unnecessarily complex solutions based on untested performance assumptions.
And for the NHS at point of use (when you can get to the to of the queue): 0$ 0$ 0$ 0$ 0.....

Genuine wishes of good luck to those in dealing with that system and may you avoid it for as long in life as possible.
Boris Johnson is expected to resign as prime minister today
Content producers get to decide the economic model. They effectively have a monopoly on content people want to watch. And they've decided that Widevine/PlayReady/FairPlay DRM is what's required. And all of those require by design an online server to enable access to the media.

All of those services will one day deprecate/retire their servers, and all paid content downloaded to your devices today will become unplayable. Your granddaughter won't be able to watch any films she finds on your old iPad she finds in the attic 100 years from now.

Unless you can convince studio execs that they will earn more money with your new economic model, it's going nowhere.
That's why (big) business usually do a cost analysis of breaking the law. Profit is the goal. It seems that a lot of people forget about that.
I love the idea of randomly billing corporations for my online 'work' based on arbitrary hourly rates. For example I've reviewed a few places on Google Maps. Based on the methodology used for this, I can apparently just charge $20/hr to Google for my work.
Have you ever heard about OpenEHR? https://www.openehr.org/
This true, but it is not very helpful advice for a novice programmer. DRY is popular because it is easy to follow. There are even tools which look for similar chunks of code in multiple places (and some companies put such checks in CI which IMO a bad idea).
Where do you stash your receipts? Somewhere you'll find them in two years time when challenged to prove you paid for something? Think that solution scales through the entirety of society?

Sony could make a blockchain/NFT solution to their problem and everyone would be happy - it'd be future-proof, licenses would be in-perpetuity, and nobody would have to pay much for the effort. Heck, it'd even give pirates a way to become legitimate service providers.

Sony et al., are not doing this, because of antiquated business ideas that serve more as dark patterns than anything else.
Or deliberate, as everybody knows that pineapple doesn't belong on pizzas :-)
I had a general guidelines in my previous company which I follow to this day to great results.

If a piece of code is duplicated thrice, it's ok. If a piece code is duplicated four times, then you must extract it.
I'm at most a 2x developer and?definitely have solutions in mind.

For one thing, pizza recipes are either dynamically built by the customer or they are just fixed recipes.

Having individual functions for different predefined pizzas is not really dry enough for me.

I would have a pizzas.yaml file, and a get_pizza_recipe("id"). Maybe I'd even read pizza data from an excel spreadsheet directly for ease of editing and sharing by management if needed.
I don't think that describes any of the homework i got at the high school or middle school level.
I don't think that's coincidence. Cheap air travel opened a window on the world and absolutely ruined a lot of places. To the point that if you haven't visited Machu Picchu the consensus is that you haven't really lived. Tourists are roaches, they bring some much needed income to some places but they utterly ruin others, crowd out the locals, cause living spaces to be converted into hotels and make it impossible to buy food and drink at normal prices for the people that live there.
But that is one of the underlying features of crypto, the ability to transfer coins without accountability.
I don't know why the hate, both systemd and Pulseaudio are great, at least better than what was before them and improved Linux desktop quite a bit.
just treat things as suggestions. stop turning things into unmovable laws. dry - if you are constantly writing the 90% of something multiple times, maybe look to see if you can genericitize it.
Yes, they tread different paths.
RedHat sells support (RedHat Enterprise Linux), develops enterprise ready software and gives unbranded, not supported versions to the community to play with and use it.

GitLab sells SaaS, provides a free self-installable community supported version, and accepts contributions from community.

They're pivoting to a more closed model, which I don't like, but it's still possible to get the community version, the code and play with it.

All in all I think many possible different ways to monetize an free and open source project. They work differently than we get used to over the last century, but it's possible.