Better HN
topnewbestaskshowjobs
Log inSign up

RUnconcerned

219 karma · joined Mar 22, 2024 (2y ago) · 63 submissions

Submissions

comment 1y ago · link · parent

There's nothing stopping an HTTP API from returning both HTML and JSON from the same endpoint. Just have the client send "text/html" or "application/json" in the Accept header, depending on what it needs.

comment 1y ago · link · parent

What other language ecosystems have had this happen systematically? This isn't even the first time this month!

comment 1y ago · link · parent

DHH switched from Mac to Linux and is in the process of experimenting with his setup, but since he's famous within tech, it's getting a lot of attention. There's really nothing special about it.

comment 1y ago · link · parent

In my first job I had to work with healthcare software and it horrified me. There is a standard for interop, HL7, but every system implements HL7 in its own special way so there are "integration engines" to massage the data so that they all conform to the same standard.

It's a gigantic grift.

comment 1y ago · link · parent

> has a better understanding of your codebase, with more full-stack functionalities

Can you elaborate on what this means?

comment 1y ago · link · parent

It reads like they asked the AI how it could help and just pasted whatever it said

comment 1y ago · link · parent

I'm not sure RCT ever had a modding community, but it's predecessor, Transport Tycoon Deluxe, did. TTDPatch[0] had several gameplay and quality of life improvements, but it was eventually superseded by OpenTTD[1].

[0] https://www.ttdpatch.net/

[1] https://www.openttd.org/

comment 1y ago · link · parent

As an european, the US doesn't appear to be very friendly to me, or rather, their friendliness is conditional on the EU acting like a vassal state (or vassal federation). The current US administration doesn't even pretend like that's not the case, but past administrations acted like this as well.

China seems very much like a more straightforward and predictable trading partner.

comment 1y ago · link · parent

Whereas devices made in the west are, of course, entirely trustworthy[0][1].

[0] https://www.theguardian.com/books/2014/may/12/glenn-greenwal...

[1] https://www.washingtonpost.com/graphics/2020/world/national-...

comment 1y ago · link · parent

> The one exception I'd say in the UK are MG EVs, which for some unknown reason some of my fellow Brits have some sort of affinity to as a brand.

I have news for you about MG, it's been a Chinese company for almost 20 years now.

comment 1y ago · link · parent

While I agree that the value of LLMs is wildly overstated, I disagree that it is less useful than bitcoin mining, which is entirely useless. At least LLMs can produce usable output.

comment 1y ago · link · parent

> Ironically, the author could well benefit from running this slop through an llm to make it more professional.

Have you considered that it is not the intent of the author to appear professional? That running it through the Slop Generator would obfuscate their intent to be snarky towards those who outsource all their thinking to Slop Generators?

comment 1y ago · link · parent

Shipping the chips back to Taiwan to be packaged so they can then be shipped back to the United States for sale is a positive? What are you talking about?

comment 1y ago · link · parent

The majority of people care about the quality of their work when they are starting off. Not caring is a learned behavior. When you repeatedly get reprimanded for it, you learn not to care as a way of protecting your mental health from taking even more damage.

comment 1y ago · link · parent

It's because the caloric intake is greater than the expenditure. You won't lose weight if you're active but eating more calories than those you expend. Is this not common knowledge at this point?

comment 1y ago · link · parent

It's because what you see as the inferior approach involves less effort and friction for the developers.

When you are told to separate general code improvements to another PR, or worse, to not do them, and create a Jira task for them so they can be adequately prioritized, it just saps your will to do so. You just won't do any improvements that fall outside the scope of the feature, because even just thinking about the hoops you have to jump through to get work done is mentally draining.

comment 1y ago · link · parent

Looking into this

comment 1y ago · link · parent

Your best answer for "a much more useful world" is... easier development of crypto gambling? That sounds like an actively worse world to live in to me, to be honest.

comment 1y ago · link · parent

This reminded me of Asimov's short story "The Feeling of Power" https://hex.ooo/library/power.html

comment 1y ago · link · parent

This is neat. I had a recent need to do something similar, but ended up using Grist CSV Viewer[1], which I think is a bit more feature complete. I had ChatGPT create an HTML file that would let me paste the CSV instead of loading a specific file and it worked pretty well while being more convenient than loading the CSV into Google Sheets or whatever.

[1] https://www.getgrist.com/csv-viewer/

comment 1y ago · link · parent

I dunno about what you wrote, but here is one that clearly violates what OP said!

https://godbolt.org/z/Y4Yjb7z9c

clang notices that in the second loop I'm multiplying by 0, and thus the result is just 0, so it just returns that. Critically, this is not "exactly and only what the programmer specifies", since I very much told it to do all those additions and multiplications and it decided to optimize them away.

comment 1y ago · link · parent

Optimizations are not "exactly and only what the programmer specifies and no more". They actually fall into the "more" category, believe it or not.

comment 1y ago · link · parent

I'm pretty sure Wiremock (https://wiremock.org) lets you configure both the response body and headers.

comment 1y ago · link · parent

Wow, this is still being developed? I still recall the Heavengames forum thread that spawned it...

comment 1y ago · link · parent

could also be "4" or 4! 4 seems like it would be the most evil option, honestly

comment 1y ago · link · parent

This is primarily for computer chess, where the draw rate is even higher than in super-GM level chess. It's an alternative to having engines play from a preset position where one side starts with a significant advantage, which is what usually happens in computer chess tournaments. It's essentially the subset of Chess960 positions that don't need modifications to the castling rule, and thus should work on all engines without requiring any changes to the code.

comment 1y ago · link · parent

This was developed mostly for computer chess, where games are often played starting from preset positions, where one side already has a significant advantage. The top chess engines, when playing each other from the regular starting position, which is very equal, will almost always draw (especially in time controls where they have an increment of one second or more), so we humans have to force them to play lines that they would never go into so that the games aren't all draws (and while some games can be exciting and still drawn, that is not the case with most of the lines the engines will pick when playing from the start position).

This is essentially just a subset of the Chess960 positions that don't require any modification to the castling rule.

comment 1y ago · link · parent

mithril is hardly the new paradigm of the year

comment 1y ago · link · parent

Actually, when literal communists run your government, you become China-rich, as OP put it. Contrast China's economic development with that of India's post 1950.

comment 1y ago · link · parent

Imperialism is when you take all the resources capitalists poured into your country because you had horrendously low labor costs and use them to develop yourself into an economic superpower rather than meekly continuing to be the factory for cheap crap for western nations. Got it.
123