skysight-inc/HackerNews huggingface dataset:
If the function was truly linear having a long function wouldn't be so bad. But it actually isn't, the example contains multiple branches!

Will people bother testing all of them? Or will they write a single test, pass in a pizza and just glance at it actually working? My guess is the latter, as testing multiple branches from outside is often tedious, vs testing smaller specialized functions.
Have you tried reading code instead of smelling it?
I have Yubikey nano in my laptop, desktop, and Linux PC. All of them are still going strong. I have four Yubikeys on my keychain, two of which I bought in 2014, and they also are still working without issues. None of my keys have ever failed.
Related post currently on the front page: "What is Dimensional Analysis", https://news.ycombinator.com/item?id=37493955
Yeah, cannabis contains a multitude on cannabinoids: THC, CBD, CBN, CBG and CBC. These high-thc & low-cbd strains fuck you up immensely.

Not saying you should never use weed, if I go to Amsterdam, I will for sure use it but I don't bring it back home with me. Smoking once every couple of months will not harm you at all, IMHO.
I don’t agree that’s what TDD does. You spent inordinate amounts thinking about how you should want it to be, when you could just write it, find where and what about it you dislike, write it again and have actual good code. Also called WET. You spend less time with better results that way and you gain what OP was talking about in the process.
I apologize for not coming across as being in good faith. I’m just saying that religion takes many varied forms, and it might be within the realm of possibility to use duck typing when thinking about them.

My original point still stands though, not as a matter of combating your viewpoint, but just as an observation, that I bet even the most seemingly iron-clad definition of religion will still have lots of weird and unexpected edge cases.
I tried out the monospace font for terminal use, but some of the punctuation characters have terrible spacing, including : and ., so things like

abc::xyz

and

some_expression
.method()
.method();

look awful.
Plex has been collecting user data for awhile now. The notice recommends hosting your server at home, tying the consumed media to a specific ip that can be used to tie to a specific person.

Honesty, I think Plex is a honeypot and is going to be used to start massive legal suites against people.
Shout out to https://instacalc.com/ . It's like a simple spreadsheet or calculator but with awesome support for dimensional analysis -- you can attach any units you want to a quantity and it will track it throughout the calculations, and do a best-faith effort to figure out conversions / "what you meant".

For example, here's a quick scratchpatch I used for calculating memory bandwidth / CPU transfer rates: https://instacalc.com/56842
> at .20c

Zero of them would be paying $0.2 per instal. Probably much closer to $0.03-0.05.

Nobody could ship games in the Switch using the personal edition and nobody who understands basic math would be paying $0.2 even after these prices go into effect
I still have functioning Thinkpads from 2011. They run well with SATA SSDs and minimal Linux distros, and they're handy in the garage or on a workbench where you might not your expensive devices lying around but need to reference technical data.
What kind of "agency?"
Keep reading, that limit doesn't apply to bonus depreciation.
>Life itself is the leading cause of death.

It only takes a volcano, earthquake, tsunami, viruses (which are not living organisms) and other such events, for life not to be a leading cause of death in a region for a good while.

And let's not mention meteors...
I have been working on a system for programming some specialty hardware on customer premises for a while, and most of it was written in a pseudo-language implemented by another backend programmer. Think BASIC-like implements in a YAML file, with arbitrary python inserts here and there.

Despite the code being not very visually attractive (long corridors of imperative statements reading and writing from SMBus addresses), I was always surprised how easy it was to maintain the code, and how quickly I could get back "in the zone" after not working on it for months.

There is something painfully trivial about old clunky languages that makes them somewhat easier to get back into. The cost in abstraction capabilities is obvious though. The only reason I can afford to write concise, linear, imperative code for this project is its narrow, specialized scope that most of modern programs cannot afford to limit themselves to anymore.
I wonder if their forced login puts them in a position where they’re going to end up doing surveillance and betraying their users that are pirating content.
The only reason is amd partnership, not overall performance gain. Things may smooth out in upcoming months/years as they patch it.
You made a grammatically correct point but I’m not sure it’s logically sound.

Human Twitter posters are members of society. How is it possible to wave off Twitter as not a problem in society when Twitter users exist as part of society?
> Also, what happens if you pass a pizza to those functions twice? Are they idempotent or do you end up eating cinder?

That is surely about state and mutable data, not code structure. And factored code makes it _easier_ to write more stateless code.
I wouldn't say it's indistinguishable - the lower case L has a curved bottom.
> In 2019, Plex launched an ad-supported streaming service of movies, television shows and music that is accessible from its applications. [1]

Advertising, and operating their own streaming service, presumably involves business partnerships with entities that may not look fondly on self-hosting?

[1] https://en.wikipedia.org/wiki/Plex_Inc.
Source code isn't written to be executed by computers, it's written to be read by other humans.

Source code tends to be very far removed from how computers execute anything, so I wouldn't use that as a justification for any sort of code style.
Nice ! We were at a ridiculous situation where Google had released ChromeOS Flex, which would allow installing the latest OS on devices older that many Chromebooks that went out of support (and it was marketed as such). I joked that they should release ChromeOS Flex for out of support Chromebooks, but official support is much better of course.
> everyone else would now be more profitable with Unreal

To be fair only F2P games that makes less than ~$2 per user might be more profitable. For almost everyone else above the 1 million threshold Unity would still be cheaper.
It takes a registry hack for the server and I couldn’t figure out how to make a PS5 client work without signing in.

It’s bloated garbage compared to Emby and Jellyfin.
Thank you for the feature request.

We usually just send users the documentation of ingesting the data in CSV or NDJSON format (Newline Delimited JSON). We don't actually get many requests for data downloads in Parquet format. I think we have a few customers where we deliver the data in parquet format directly to their cloud storage bucket.

But keep an eye out for our emails if we announce the parquet data downloads. I will talk with the folks about this.

BUT, there are some good news.

At least for the free database, we deliver the data directly to data warehouse platforms. Not even storage buckets. And we supply a good amount of documentation.

We have the free database in Snowflake, GCP, Kaggle, and Splitgraph, and we are working on a few more deals. For the free database, atleast, we are working on better things than parquet. Like literally one-click solution to bring the IP data to your data warehouse.

Kaggle: https://www.kaggle.com/code/ipinfo/ipinfo-ip-to-country-asn-...

Snowflake: https://app.snowflake.com/marketplace/listing/GZSTZSHKQ4QY/i...

If you want to use our free IP database on Google Cloud or BigQuery, please send us an email (support@ipinfo.io) and mention that the DevRel sent you from HN. I can easily set you up with the free IP database in GCP/BQ.
your overall point is valid, but it’s somewhat misleading to compare single core performance alongside total SoC power.
Onshore production already mostly happens, and it’s for superior non Big 3 vehicles like Toyota and Tesla. To me, it looks like the Big 3 autos are floundering severely, are the only ones unionized, and this strike / 40% pay increase demand is only going to further cripple the big 3’s ability to compete in the market. Ford and GM have already completely ceded sedans while Chrysler is a hollow shell
Same here (second wife) and the thing is once OKCupid did it's job you didn't need it anymore - and that was a good thing.

The problem is that when you choose eternally needing customers you have to switch to the types of people who will never have a long term relationship - which Tinder style apps work better for.

But those kind of people also drive away the ones looking for a long-term partner.

Really sounds like poisoning the well.
They allege that there were bomb threats.
Weed lowers sleep quality and completely destroys REM sleep. There are numerous studies confirming this. Over time, your brain and body will be deprived of good quality sleep.

If you met me in real life before I was an addict, you’d think that I’m the most ambitious person, sharp thinker, completely normal with no mental issues. No alcohol addiction. Never done any drugs. Never smoked cigarettes.

You wouldn’t think of me as someone who should never use weed. That’s what’s scary about weed addiction.

PS. There’s almost no difference between a sativa and indica anymore. They’re all hybrids. Most of the time, it’s just placebo. That’s why edibles don’t label whether it’s sativa or indica. Just THC content.
The example code would be less distracting if it at least attempted to stick to the pizza metaphor in a meaningful way and weren't subpar Go code.

`prepare` is a horrible name for a function. I would expect a seasoned Gopher to call it something like `NewPizzaFromOrder`.

I don't see any reason for putting `addToppings` in its own function. If you have to have it, I personally would have made it a method on Pizza something like `func (p *Pizza) WithToppings(topping ...Topping) *Pizza { /* ... */ }`. Real pizza is mutable, so the method mutates the receiver.

Why is a new oven instantiated every time you want to bake a pizza? You should start with an oven you already have, then do `oven.Preheat()`, and then call call `oven.Bake(pizza)`. You can take this further by having `oven.Preheat()` return a newtype of Oven which exposes `.Bake()` so that you can't accidentally bake something without preheating the oven first. Maybe elsewhere `Baker` is an interface, and you have a `ToasterOven` implementation that does not require you to preheat before baking because it's just not as important.

Without changing the code, I'd also reorder the declarations to be more what you'd expect (so you don't have to jump up and down the page as you scan through functions that call each other).

IDK I have to leave now but there are just so, so many ways in which the code is already a deeply horrible example to even start picking apart the "which is more readable" debate.
Very interesting and deep analysis of GPU utilization.
Infuse is great especially coupled with jellyfin, there's also MrMC but the presentation is nowhere near as good.
But what if I'm coding for the correct future?

Maybe there's a way where I can code for every possible future with minimal effort. I'm talking about a pattern that isn't a form of premature optimization. Just a rule.

Your way of coding is, coding for the most probable future. Distinctly different of coding for every possible future.
A foundation model for generalizable disease detection from retinal images
>From a bank/fund perspective

From a consulted a bank perspective - I noticed that the examples were pretty darn intuitive that hey this is obviously illegal but for some reason they wanted to have people sit through a multiple choice form and 45 minute tutorial on banking ethics to make sure nobody did it, and also that one of the negative outcomes that was mentioned in breaking the code of ethics was that the bank would experience problems in the media that would make the whole thing which seemed like a good idea not worth it.
That's not true, most of the money is spent here and very little to take care of the family that's been left back home.
Otherwise how can they survive here, think about immigrant kids education, housing, healthcare, retirement.
Microsoft Azure the only other cloud provider to run Oracle's database services
That article misrepresents what happened with the stock
You’ll be waiting a long time.

The manufacturers are acting as a surveillance cartel. If they all spy on you there’s no way to opt out without a change in privacy legislation.
What baffles me is how this was published. Which human at MSN didn't read this before putting it out there?

I feel sure in saying that someone had the chance to read it but didn't... but the idea that it was published automatically after being prompted is so bad that I'm struggling to find words for it. It's like having a workplace near-miss because someone set up industrial equipment wrong. It's like a comedy prequel to Terminator that shows how Skynet was born. It's like turning your bread to ash because you set your toaster to the wrong setting and stepped outside.
The only real issue I've seen with Jellyfin has been some stuttering on older clients (specifically, very old and crappy webOS TVs). I'm not sure whether this is a weak hardware problem, a network problem, or something else. Other than that, it's been very smooth.

(Context: I was a Plex user and self-hoster for about 7 years, and switched to self-hosted Jellyfin about 2 years ago.)
Obama famously snubbed Cornell West, but he still got re-elected and then his milquetoast veep got elected. Dr. West is now running for president, which sounds like it should test your theory that Democrats cannot offend the extreme left. Do you actually think he'll draw enough votes for (R) to win? I don't.
I just dug into the details. Yes, it looks pretty legitimate: copyright remains held by the individual contributors without a Contributor License Agreement, they are sponsored by a true non-profit foundation with robust non-profit policies and suitably non-profit legal status in the Netherlands, their money and important assets like the Godot trademark itself are held by a mixture of that non-profit foundation and (possibly as a transitional matter) the longstanding free software non-profit charity in the US which was their primary legal home for 7 years.

I was formerly heavily involved in the leadership of the other major US non-profit charity that does this kind of fiscal sponsorship (and which maintained a friendly and collaborative relationship with the charity that Godot previously used). They’re not scamming you in the way of a lot of executives at VC-funded for-profit startups (and their acquirers) when they make entirely legally unenforceable statements about what will or won’t happen in the future which they don’t necessarily even believe themselves.
Would you hate it if it was really, really easy to answer?
I am really heartbroken by your response, I always feel the world/society should fight planned obsolescence. people/planet over profits. and then I see a person responding with a joke (I hope you don't mean it) when we(society) have means to make products last but some corporation chose profits against it and then greenwash with 5min mother earth videos.
I know you are aware/heard of planned obsolescence.
some people complain, these corporations have to maintain and it costs them, but those people don't realise We are gifted with wonderful opensource community like (pixelexperience os maintainers). These corporation can design it to make it easy for opensource community to maintain it after EOL.

Since you are here in HN, there is high probability you are one of the geeks in industry. I hope you fight for "planet/people over profits".
Pretty confusing, the banner image shows zeros with the dash to distinguish them from O's, in the example of the page there aren't any dashes.
You said a mandate that the last hour of the work day be set aside for socialization, but also it should not be mandated?

I think you’re just going to annoy people who would rather go home and people who would rather use that hour to work.
Interesting that Plex is taking on the risk here, rather than the service provider that hosts the content (or more accurately, the user who hosts content on said service provider).

I suspect they'd prefer to pass the hot potato to Hetzner but their lawyers told them otherwise.
Pretty much. And same thing will happen with Video creation/streaming. Creating video and broadcasting it to the planet is unsustainable if everyone is doing it.
> I don't think you're characterizing the results accurately, particularly point #2. I don't think they really had a way to measure #3. #1 is just obviously true but doesn't add much.

Maybe not, but #2 was from a blog that specifically looked at the data of messaging: how many men received messages, how many women received messages.

IIRC, nearly all the women received messages and sent messages, while only about 10% of the men received messages while all of the men sent messages. I don't really see any other way to interpret data showing that both men and women sent messages at about the same rate, but only about 10% of men received any messages.

Now I don't have the blog handy (and I rather wished I did), but my takeaway #3 was from reading all the blogs available, in basically one marathon sitting, not from one particular blog.
Show HN: Slash Saber – endless game made in ThreeJS and Vue
Slash Saber is open source: https://github.com/honzaap/SlashSaber

Blender files for some of the 3D assets are available in the GitHub repository.

I am open to any feedback.
Exactly. Start with the straight-ahead linear approach and factor out once it's unwieldy.

Same thing for copy pasta funcs -- the first copy is fine, the second one may be too, but after that consider extracting to a parameterized func (a permutation of the Go Proverb "A little copying is better than a little dependency.")
Oh my god, stemroller.app is 1.85 GB (weights only 350 mb) electron python pytorch ffmpeg and 10 MB webapp. This is state of modern app development. But it works, nonetheless.
Citations:

Gov. policy not representing the people: https://www.texasmonthly.com/news-politics/texas-primary-ele...

Energy system insanity: https://www.cnn.com/2023/06/22/politics/texas-power-grid-hea...

As for texas being a beautiful state, I have no citations, just good memories from my many visits. I will grant you that there are a growing number of oil extraction / fracking hellscape in the state.
Plan Your Next Event with Emmanuel Katto Uganda – Evening Standard
Emmanuel Katto's reputation extends beyond Uganda's borders, as he has become a sought-after event organizer in the East African region. His work has not only made a significant impact on the local event industry but has also contributed to promoting Uganda as a premier destination for hosting exceptional events.
I noticed that people have already contributed great insights on readability and testability aspects which were my first thoughts as well on reading this blog.

However, I do believe that there is no one right answer to this argument. And the right answer is with that team who in the end have to read, write and maintain that code. The metrics that I collect with my co-workers who work on same code base as me are

* What is the cognitive load to grasp the code for members in the team?
* How easy is it to onboard a new member to this team?
* Are we able to move fast and have confidence in the code changes we make?

In my opinion, metrics like these are usually the ones most of us care about in the end.
Maybe, maybe not. For our particular case it would have been mostly wasted effort.

I found that I like to write tests at the level of abstraction I want to keep an implementation stable. I'd be totally fine if someone went in and changed the implementation details of that long process if needed. We cared that stuff got cleaned up at the end of the process, that the output matched certain criteria, that certain user interaction was triggered and so on... In that case it made more sense to test all our expectations for a larger scope of code, rather than "fix" the implementation details.

Tests usually "fix" expectations so they don't change from build to build. Tests don't ensure correctness, they ensure stuff doesn't alter unexpectedly.
Emmanuel Katto's expertise extends beyond logistical finesse; he possesses an innate sense of aesthetic sensibility, ensuring that every event he oversees is a visual and sensory masterpiece. He carefully curates themes, decor, entertainment, and logistics to craft a seamless and memorable experience for clients and attendees alike.
Well either way, it seems Meta is about to at least find another billion from WhatsApp once they begin to monetize it with Ads or an ad sharing model with channels or if those channels start with a membership / subscription for joining a channel and Meta takes a cut from it.

Won't be surprised to see this actually work well for Meta.
There’s Bevy if you like Rust.
wow, I have a very similar problem but I have always considered it more like a motorcycle slowly revving in the distance than a washing machine. It does occasionally stop and then start again without a clear pattern.

Rather than the drastic attempts at vibration dampening the author took, I discovered the problem was in my head by spending time in very distant locations and noticing the issue remains.
That actually depends on the jurisdiction and the specific loan terms! For example, in California, mortgages are generally non-recourse, which means that the lender can take back the collateral (the house) upon default, but can't go after the borrower's remaining assets or property to make up any remaining deficit after liquidating the house.

That said, in this case you're correct: the article's subjects live in Colorado, which does not allow non-recourse mortgages.
Citigroup starts layoff talks after management overhaul – sources