HNHacker News
TopNewBestAskShowJobs

rafark

436 karma · joined March 26, 2017

submissionscomments
rafark··on Firefox Has Moved to Firefox.com
But Firefox is a for profit company worth millions? Why would you just donate it like that to a corporation? For the longest time I thought Mozilla was a non profit org but it doesn’t seem to be the case and they have millions in the bank? I would sell it for a fair price for both parties.
rafark··on Google will allow only apps from verified developers to be installed on Android
> This is the future; partially fuelled by malware, partially fuelled by the desire for platform control, and partially fuelled by government regulation. I would say it’s really 50% platform control, 50% government regulation.
rafark··on Why we still build with Ruby
It’s the same thing with php. I would say it’s probably because they are languages from the 90s, but then you have python and JavaScript which are from the same era too and people never question their relevance or “modernity”. All of these languages (even java) have been in constant development since then and all of them have modern features. Why are some considered modern and some outdated when they are all basically from the same era?

A truly modern language is Rust.

rafark··on When you're asking AI chatbots for answers, they're data-mining you
It’s not naive. The value these ai chatbots provide to me is extremely high.

I’ve been writing code for many years but one of the areas I wanted to improve was debugging, I’ve always printed variables but last month I decided to start using a debugger instead of logging to the console. For the past weeks I’ve only been using breakpoints and the resume program function because the step-into, over, out functions have always been confusing to me. An hour ago I sent Gemini images of my debugger and explained my problem and it actually told me what to do and it actually explained to me what the step-* functions did and it told me what to do step by step (I sent it a new screenshot after each step and told it to explain to me what was going on).

I now have a much better understanding of how debuggers work thanks to Gemini.

I’m fine with google getting my data, the value I just got was immense.

rafark··on When you're asking AI chatbots for answers, they're data-mining you
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.
rafark··on GPT-5
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.
rafark··on PHP 8.5 adds pipe operator
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.

rafark··on PHP 8.5 adds pipe operator
> |> 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

rafark··on Most RESTful APIs aren't really RESTful
> 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.

rafark··on Show HN: My Free WooCommerce Plugin for Custom Coupon URLs / Links
> 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).

rafark··on Amazon to invest another $4B in Anthropic
But why though? Claude is REALLY good at programming. I love it
rafark··on CSS gets a new logo and it uses the color `rebeccapurple`
100% yeah
rafark··on Linus Torvalds comments on the Russian Linux maintainers being delisted
> 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.

rafark··on ACF has been hijacked
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?
rafark··on What's New in Ruby on Rails 8
Yes it’s really good (it’s not awkward at all) and it’s optional if you don’t want to use it. It’s truly the best of both worlds.
rafark··on Filed: WP Engine Inc. v Automattic Inc. and Matthew Charles Mullenweg [pdf]
Yeah several spell checkers are context aware like grammarly (I haven’t used it in a long time though).
rafark··on COBOL has been “dead” for so long, my grandpa wrote about it
Why php though? Php is as old as java and very popular and constantly updated.
rafark··on If WordPress is to survive, Matt Mullenweg must be removed
> the WordPress logo is prominently displayed next to the "WP Engine" title

Pretty sure that Wordpress logo is just the stock logo that came with every Wordpress installation. The name wp engine was the website name of that Wordpress installation.

rafark··on WordPress.org bans WP Engine
They cannot. Wordpress is a fork of cafelog which was gpl iirc.
rafark··on WordPress.org bans WP Engine
>If feel bad for the people who took off work, went to WordCamp US and they keynote they got was a complete turd.

I feel like this is a half empty half full kind of situation. Some people might think like you but others might view it as probably the most memorable keynote in Wordpress history (because if all the drama).

rafark··on We spent $20 to achieve RCE and accidentally became the admins of .mobi
Have you ever heard of WooCommerce? It’s the market leader. It powers more stores than Shopify.
rafark··on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded
Except it’s literally the opposite. Chrome gets a lot of hate for being associated with google, but it’s always innovating and implementing the latest standards. Internet explorer, at least in it’s last years was the complete opposite.
rafark··on Ask HN: what are examples of successful "open-source alternatives"?
What about git? Wasn’t git developed exactly as an alternative to a commercial product? Git is probably the most successful open source alternative software, so much that it completely obliterated the competition.
rafark··on Understanding React Compiler
>For almost 10 years, the core react developers would repeat incessantly: React is a library, not a framework.

I always disliked the it’s a library not a framework debate. Isn’t any library a framework, technically?

rafark··on Understanding React Compiler
> The JSX idea is gold: introduce XML-like template syntax into the language to avoid need for foreign template language. Make XML templates valid at startup and even with proper types for TypeScript. This is very important advancement compared to text templates which are used everywhere else.

It’s really nice. It started in php as xhp in the late 2000s and was later ported to JavaScript as jsx.

rafark··on Ask HN: React, Vue or Angular?
Jotai is truly fantastic to prevent unnecessary rerenders. I’ve been using it in my new project and it’s very nice.
rafark··on Ask HN: React, Vue or Angular?
For my new project I wanted to try something new but I ended up going with React again. At the end it was the right decision for me because of the libraries I ended up using. The community/ecosystem is just unparalleled. Whatever library you need there’s a big chance someone has built it for React. If you’re learning a new concept or tutorial there’s almost always a section about implementing it in, or the examples are in react.
rafark··on Ask HN: Anybody else back on Laravel/PHP after 12 years of Express/Django/Flask?
> I have heard dreaded comments from *JS ecosystem users that the packages go to unmaintained state and there is just too much noise in the ecosystem. Very few packages thrive and live for longer periods... and eventually results in a lot of rewrites for newer engine support.

I would say most packages are somewhat maintained. But there are definitely a lot that don’t. Just last week I tried to install a few web worker packages and I couldn’t make any of them work.

rafark··on Tell HN: Chromium forks for legacy platforms are disappearing from GitHub
The beauty of git (everyone has a full copy of the repo). Although this being an installable browser targeted more towards end users I wouldn’t trust a repo from anyone other than the official maintainers.
rafark··on FrankenPHP: Modern PHP App Server
And charm.sh
← PreviousPage 2 of 9Next →