HN user

oreilles

387 karma
Posts1
Comments106
View on HN

Webhooks would be much closer to a sane solution to this use case. Why would you spam a web server asking repeatedly wether something has happened or not, instead of just providing him with an adress so that he can simply let you know in due time ?

When we get Komooted 12 months ago

This article is about people who liked their company and their job and lost it all. It's something to lack empathy, but I'm always amazed that there are people so full of themselves that they will go out there and proclaim that they don't give a shit about other people's fate, as if it was something to be proud about.

It's set to 0 or 1 to enable/disable (can never remember which mapa to which)

That's crazy. Boolean logic is the most fundamental notion of computer science, I can still remember learning that in my very first course on my very first year.

Even if was a small % of the Apple lineup, the iPhone mini was one the best selling smartphones all brands considered. I for one switched to iPhone in 2020 specifically because there wasn't a single current-gen small form-factor Android phone anymore. I have a few friend that also made the switch with the 12 / 13 Mini for that reason.

The real reason the iPhone mini failed is not related to screen size, it's because its segment was canibalized by the cheaper alternative, the SE. The 2020 and 2022 sold like hot breads, wherehas their screen was almost an inch smaller than the iPhone mini. This is the proof that there a significant market for people who don't care about size and would gladly take the smallest option at a $100 discount from the regular one.

The poorest American state, Mississippi, is richer per-capita than most European countries, including France.

The state, maybe. The missisipian, not so much - considering their Human Development Index is right in between that of Hungary and Bulgaria, at the very bottom of the EU. How great is it to be able to buy expansive cars if you can't get access to education, healthcare, retirement, and will find yourself in the street if you lose your job.

The discussion is not wether Spotify will benefit from this situation in the long run or not, it's wether the users of the platform (both the listeners and the artists) should be happy with it and the answer to that is, thanks this lengthy article, demonstrably no.

Did you guys not read the article ? The problem arises because of the way the music is distributed on Spotify and the way it is licensed. Spotify make deals with the companies producing this stock music so that it can fill its popular playlists with while paying close to zero royalties. The consequence is a decline both in music quality on the platform and in artists rights, revenue, and ability to be listened to overall.

It is superior because you don't need to assign your dataframe to a variable ('df'), then update that variable or create a new one everytime you need to do that operation. Which means it is both safer (you're guaranteed to filter on the current version of the dataframe) and more concise.

For the rest of your comment: it's the best you can do in python. Sure you could write SQL, but then you're mixing text queries with python data manipulation and I would dread that. And SQL-only scripting is really out of question.

Yes, every time I write df[df.sth = val], a tiny part of me dies.

That's because it's a bad way to use Pandas, even though it is the most popular and often times recommended way. But the thing is, you can just write "safe" immutable Pandas code with method chaining and lambda expressions, resulting in very Polars-like code. For example:

  df = (
    pd
    .read_csv("./file.csv")
    .rename(columns={"value":"x"})
    .assign(y=lambda d: d["x"] * 2)
    .loc[lambda d: d["y"] > 0.5]
  )
Plus nowadays with the latest Pandas versions supporting Arrow datatypes, Polars performance improvements over Pandas are considerably less impressive.

Column-level name checking would be awesome, but unfortunately no python library supports that, and it will likely never be possible unless some big changes are made in the Python type hint system.

Dookie Demastered 2 years ago

Smaller creators are also doing it for money, and Green Day and Brain are also doing this out of funny memery.

When using Pandas appropriately, that is with method chaining, lambda expressions (instead of intermediate assignments) and pyarrow datatypes, you also get much faster speed and null values handling.

How is it any different than installing the package via pip ? Not only most people won't check the source before running the code, but there is also no way to be sure that the code shipped by pip is the one you read on GitHub...

Actually they had one, they released the Lightning connector by claiming they would stick with it for at least a decade. And they did exactly that.

Think of it in a real life context instead of a software context. Let's say you want to go inside a building and there's a bouncer at the entry. By presenting him your ID, he'll be able to authenticate you (determine who you are). Only then, will he decide to authorize you in, or not - depending of your right to do so.