Readit News logoReadit News
allendoerfer commented on A new PNG spec   programmax.net/articles/p... · Posted by u/bluedel
georgyo · 6 months ago
File extensions are just a hint about what the file might be and have nothing to do with what the file actually is. If the server sets the MIME type, the browser will use that as the hint.

But even beyond that, most file formats have a bit of a header at the start of the file that declares the actual format of the file. Browsers already can understand that and use the correct render for a file without an extension.

allendoerfer · 6 months ago
What if the user wants to use the file outside the browser, where they do not have access to the HTTP headers?
allendoerfer commented on A new PNG spec   programmax.net/articles/p... · Posted by u/bluedel
jdiff · 6 months ago
Sometimes respected, largely ignored. URLs very often don't map directly to files served.
allendoerfer · 6 months ago
Images almost always do.
allendoerfer commented on A new PNG spec   programmax.net/articles/p... · Posted by u/bluedel
vbezhenar · 6 months ago
This problem was solved by HTTP since forever. Client sends `Accept` header with supported formats and server selects the necessary content with corresponding `Content-Type` header. You don't need any HTML tags for it.
allendoerfer · 6 months ago
What about file extensions?
allendoerfer commented on Why Koreans ask what year you were born   bryanhogan.com/blog/korea... · Posted by u/bryanhogan
bambax · 6 months ago
> The younger person also addresses the older person, usually with a title or another word that fits their relationship, but not their name. Only the older person addresses the younger one with their name. (There can be more nuance.)

I love this. I'm an old French guy and still can't quite accept when srangers in an email (or a machine, a system, a web form) adress me using my first name.

Being "on a first name basis" still has meaning for me -- or it would, if it had for anyone else, which clearly is absolutely not the case anymore.

allendoerfer · 6 months ago
Cultural imperialism.
allendoerfer commented on Ask HN: SWEs how do you future-proof your career in light of LLMs?    · Posted by u/throwaway_43793
allendoerfer · a year ago
> My prediction is that junior to mid level software engineering will disappear mostly, while senior engineers will transition to be more of a guiding hand to LLMs output, until eventually LLMs will become so good, that senior people won't be needed any more.

A steeper learning curve in a professional field generally translates into higher earnings. The longer you have to be trained to be helpful, the more a job generally earns.

I am already trained.

allendoerfer commented on Rewrite It in Rails   dirkjonker.bearblog.dev/r... · Posted by u/WuxiFingerHold
jonatron · a year ago
I think SQLAlchemy vs Django ORM was a 2007 blogging topic: https://www.b-list.org/weblog/2007/sep/04/orm-wars/
allendoerfer · a year ago
While it is not Django's responsibility to unite the Python ecosystem, continuing to rely on a tool a sizeable share of the community deems inferior to a popular alternative will keep these discussions open and results in the fragmentation OP is talking about.

Now of course it is not Django's responsibility to unite the Python ecosystem in the first place and they can value other factors and arguments as they see fit.

Although this very thread shows that there might have been something to it.

allendoerfer commented on Rewrite It in Rails   dirkjonker.bearblog.dev/r... · Posted by u/WuxiFingerHold
tomwphillips · a year ago
I agree.

Unfortunately every team I’ve worked in hasn’t seen the light and prefers FastAPI/SQLAlchemy/Pydantic (before FastAPI it was Flask).

My theory is that the initial learning curves are different: with FastAPI it’s quick and easy. You barely have to read anything. Django has a steeper learning curve. There’s a lot of reading involved. Type hints aren’t a big thing in Django, but they are in FastAPI, and the average full stack dev seems to like them.

Later on it’s totally different of course. With FastAPI you’re building it all from scratch, and it’ll be much worse than the Django solution.

allendoerfer · a year ago
Type hints are were the whole Python ecosystem is going, so using them is more integration at a deeper level than using an integrated framework, which is not relying on them.

SQLAlchemy was historically a much better ORM than Django's. It's layered architecture combined with Alembic does make a difference.

I still agree that using the integrated thing anyway is probably the right way to do it if you are working in a team. I also think Django should just adopt these components and we would not have the discussion in the first place.

allendoerfer commented on Once You Try a Four-Day Workweek, It's Hard to Go Back   bloomberg.com/news/articl... · Posted by u/sarego
supportengineer · a year ago
I am working from home and this reminded me to check the laundry
allendoerfer · a year ago
Do not disturb my deep work phases with your HN comments!
allendoerfer commented on IRS Direct File adds 12 additional states, covers more tax situations in 2025   irs.gov/newsroom/irs-dire... · Posted by u/toomuchtodo
mulmen · a year ago
New Zealand has a population of 5.2 million people with a GDP of $247 billion. The United States has a population of 340 million people and a GDP of $27,940 billion ($27.94 trillion). New Zealand would be the 24th largest US state by population and the 30th by GDP. New Zealand has a smaller population than New York City. New Zealand’s economy is smaller than Denver, Colorado’s and would be the 19th largest city by GDP in the US.

It’s just not even remotely close to the same scale of problem. The United States has the largest economy in the world. It’s larger than the next three (China, Germany, Japan) economies combined.

I’m glad New Zealand was able to achieve their goal but I don’t see what it has to do with the US.

allendoerfer · a year ago
New Zealand is also 4 places ahead of the US in terms of human development[0]. It would not make sense for the US to look at a country this much more developed. It should rather compare itself to its peers, e.g. Slovenia. /s

[0]: https://en.wikipedia.org/wiki/List_of_countries_by_Human_Dev...

allendoerfer commented on iPhone 16 is much easier to repair   engadget.com/mobile/smart... · Posted by u/vincentchau
chongli · a year ago
I'm still unclear about what you mean by not allowing "branding." Consider the following two scenarios, the first one with branding and the second one without:

1. "Hey what do you think of the new Apple iPhone 16?"

"It sounds interesting, I heard they made it easier to repair."

2. "Hey what do you think of the new Apple iPhone 16?"

"What is an Apple iPhone? I have never heard of such a thing!"

Clearly this is a rather extreme example, but I hope it illustrates what I am talking about. Branding, for Apple, involves putting their logo everywhere they can and advertising on TV, in magazines, on billboards, etc. If you disallow all of those things then it becomes much more reasonable to imagine a world in which scenario 2 is possible.

So maybe we don't want to go that far. But then where do we draw the line? Is it okay for Apple to put their logo on their stores? Is it okay for them to advertise a new iPhone on TV or in magazines? Or not? Or do you take a finer-grained approach and allow some kinds of ads but not others? Must an ad be purely informational with no music or flashy graphics/video?

I'm honestly not even clear on what the goal is with such a regime. How do you know when the law is working as intended or when it is failing to do so? Apple has succeeded in marketing themselves as an iconic fashion brand (right up there with LVMH, a European brand). Do you think such fashion brands should cease to exist? Why or why not?

allendoerfer · a year ago
The original topic of this thread was environmentalism and Apple having a greener image than they deserve, while they are just a corporation (like all others), which is following its incentives. Now, I never said I wanted to outlaw branding. I am just stating that corporations can escape the fair competition of the market by playing a meta game doing things like advertising or lobbying.

What I am suggesting is to keep the markets and let corporations follow incentives to make the best products, while trying to limit these meta games. This thread shows an example where this is arguably already working. I am suggesting to do more of it, e.g. make corporations publish reports of how they are actually doing in that regard, maybe even as a sort of disclaimer next to their own branding efforts.

I just want our rules to be a little stricter when it comes to false advertising and fraud. Why should a corporation be allowed to say: "We care for communities in America." This is not true. They care for shareholder value. There should be a disclaimer like: "We care for our community. We have no independent proof to back that up. Our main objective as a for-profit is to maximize profits. We are making XX $ / year and have in the past moved our production facilities to the cheapest location."

I am exaggerating here and am not providing a finished solution, just trying to illustrate what I mean.

> But then where do we draw the line?

That is in fact tricky, but I think our society as whole should move a little closer to facts.

u/allendoerfer

KarmaCake day3528February 12, 2014View Original