Hacker Newsnew | past | comments | ask | show | jobs | submit | rafark's commentslogin

Agreed. Not only do I think it’s worth it, i actually like that I can contribute. I’m getting so much good value for free I think it’s fair. It’s a win-win situation. The AIs get better and I get better answers.

This is a funny take. I love your optimism, but it's so extremely naive, it should have a name.

Not as much as current llms. But the point is that AIs are supposed to be better than us, kind of how people built calculators to be more reliable than the average person and faster than anyone.

The great thing about this pipe operator is that it accepts any callable expression. I’m writing a library to make these array and string functions more expressive.

For example, in php 8.5 you’ll be able to do:

[1,1,2,3,2] |> unique

And then define “unique” as a constant with a callback assigned to it, roughly like:

const unique = static fn(array $array) : array => array_unique($array);

Much better.


> |> array_column(..., 'tags')

This syntax is invalid. But it will be possible next year with the proposed partial function application rfc

array_column(?, 'tags')

https://wiki.php.net/rfc/partial_function_application_v2


> Why do people feel compelled to even consider it to be a battle?

Because words have specific meanings. There’s a specific expectation when using them. It’s like if someone said “I can’t install this app on my iPhone” but then they have an android phone. They are similar in that they’re both smartphones and overall behave and look similar, but they’re still different.

If you are told an api is restful there’s an expectation of how it will behave.


Words derive their meaning from the context in which they are (not) used, which is not fixed and often changes over time.

Few people actually use the word RESTful anymore, they talk about REST APIs, and what they mean is almost certainly very far from what Roy had in mind decades ago.

People generally do not refer to all smartphones as iPhones, but if they did, that would literally change the meaning of the word. Examples: Zipper, cellophane, escalator… all specific brands that became ordinary words.


> If you are told an api is restful there’s an expectation of how it will behave.

And today, for most people in most situations, that expectation doesn’t include anything to do with HATEOAS.


> I'd love to read what you think and which ways I can improve it (event the marketing/wording).

More on this, I I'd like to get feedback on whether it's intuitive or not (I went with a builder which is what I personally find intuitive but I'd love to hear what more seasoned (and unbiased) people think).


But why though? Claude is REALLY good at programming. I love it


100% yeah


> all who live within its borders are responsible for these actions.

That’s an insane take. The vast majority of their citizens are just regular people like you or me.


People who will suffer economically under sanctions or in this case from exclusion but who if the war isn't stopped may suffer explosive dismemberment or see their kids come home in a box.


Very interesting. I’ve been writing code for a while but if I’m honest I have no idea how code signing works. Any good resource on how it works especially in php?


It's just an Ed25519 signature of a file. The closest thing we have to runtime code-signing are Phar signatures. https://www.php.net/manual/en/phar.fileformat.signature.php


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: