HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rafark

no profile record

comments

rafark
·3 miesiące temu·discuss
Will you look at it. Another Wordpress “killer”. Wordpress has that market share because it can be easily installed in a wide variety of servers and because of its plugin ecosystem of dozens of thousands of plugins and huge flexibility/customizability. Wordpress is one of the most flexible pieces of software out there and none of the competition seem to get why Wordpress is so popular.
rafark
·4 miesiące temu·discuss
> Are they doubling down on local LLMs then?

I love the push to local llms. But it’s hilarious how apple a few years ago was so reluctant to even mention “AI” in its keynotes and fast forward a couple years they’ve fully embraced it. I mean I like that they embraced it rather than be “different” (stubborn) and stay behind the tech industry. It’s the smart choice. I just think it’s funny.
rafark
·4 miesiące temu·discuss
> Your last statement is false. A shady merchant never gets to keep the stolen money.

Or any merchant for that matter. Chargebacks (from bad actors) are one of the most annoying things when you sell online when you’re a honest legit business. Stripe even charges you a penalty fee on top of that.
rafark
·4 miesiące temu·discuss
I said exactly this a few days ago elsewhere. It’s disappointing that they (and often other American companies) seem to restrict their “respect” and morals to Americans only. Or maybe it’s just semantics or context because the topic at hand is about americans? I don’t know but it gives “my people are more important than your people”, exactly as you said in your last paragraph
rafark
·5 miesięcy temu·discuss
> there could be a point where we can use them to just make arbitrary UIs and interactive media with raw SVGs

So render ui elements using xml-like code in a web browser? You’re not going to believe me when I tell you this…
rafark
·5 miesięcy temu·discuss
Omg yes finally someone acknowledges this. I am always pointing out how react and jsx are a port of XHP. This is why react was class based at first (because php is a class based OO language).

Hack was created later though. XHP was a php 5 extension created around 2008
rafark
·5 miesięcy temu·discuss
Under that definition any css class is a shorthand for inline styles
rafark
·5 miesięcy temu·discuss
Thanks for proving the point. I haven’t even seen that element rendered and I already have a good mental picture of what it is and what it looks like.
rafark
·5 miesięcy temu·discuss
Because button is literally anything clickable. Not everything is a boxed button. You cannot just globally add a style to <buttton> and call it a day. For example, an upvote (^) button, a close (x) button, etc. A lot of clickable elements aren’t inside a [click me] box
rafark
·5 miesięcy temu·discuss
And thank god (or Adam) for that. Tailwind makes me much more productive.
rafark
·5 miesięcy temu·discuss
Correct. Every char outside of a php tag is treated as output, like in a templating engine. So if you start with spaces in a non template file (class definition etc) the spaces will be sent as output which messes up the http response.

Id love to have a dedicated file extension for source files only, like .p or something that disables the php tags because in this day and age the vast majority of php files aren’t templates
rafark
·5 miesięcy temu·discuss
Speaking of php slack was built with php until they followed Facebook with Hack (which is essentially a modern flavor of php)
rafark
·7 miesięcy temu·discuss
Really? That’s actually a very narrow view to think that AIs need to rely on code examples of some third party forum.

AIs will be good enough to understand the docs and source code alone, just like the human answering a stackoverflow question.
rafark
·7 miesięcy temu·discuss
> the docs don't cut it

Yet. By the time stackoverlow shuts down, AIs will be powerful enough to take data from docs or just from the source code alone. I mean the new version of opus is pretty good at understanding my front end source code. I think that should be the goal of AIs (that they are so advanced they don’t need to read code examples from a third party website like stackoverflow)
rafark
·7 miesięcy temu·discuss
How many of those are actual active users though? I created my account when chatgpt 3.5 was launched because it was a novelty but haven’t used it in a long time. I use Claude and Gemini but I’m somehow counted in that 1 billion figure
rafark
·8 miesięcy temu·discuss
Would it though? I’ve been thinking about this for a while.

What about introducing a new file extension for this? Something like MyClass.p so that .php is for classic syntax and .p Can support newer syntax? You could support old codebases while at the same time support better syntax.

It’s probably too much for the core php team to maintain both though
rafark
·8 miesięcy temu·discuss
>Like the match keyword, enums, closures etc. They are half-baked versions of what could be powerful and expressive features.

The problem is that the php project is maintained by (mostly) unsponsored contributors. There’s not a giant corporation behind it. Each of these new features are designed by a couple people (per rfc) and then discussed and voted by other contributors. The match keyword, for example, is consider as the future scope of this rfc which is still being worked on: https://wiki.php.net/rfc/pattern-matching

Also, a lot of these half baked features are designed to be implemented in steps because of what I said in my other paragraph and to increase the odds of being accepted (it’s well known that it’s hard to get an rfc accepted and a lot of good ones haven’t been able to pass the voting phase).

When you consider this, it’s amazing that we get so much from so little.
rafark
·8 miesięcy temu·discuss
Your second option was rejected years ago I believe. The pipes were designed to work alongside this rfc that was supposed to be in this new version (8.5) but due to time constraints it had to be delayed and it’s currently being voted https://wiki.php.net/rfc/partial_function_application_v2
rafark
·8 miesięcy temu·discuss
> The examples in TFA are terrible and I don't get why it was necessary to jump the gun by submitting that article instead of actually waiting for the release and the official release page with more carefully designed examples.

Clout.
rafark
·8 miesięcy temu·discuss
> just about everyone knows how to navigate in vscode by now.

I don’t know and honestly I hate the assumption of the software industry that everyone knows or uses vs code. I stuck to sublime for years until I made the switch to Jetbrains IDEs earlier this year.

I quickly looked up the market share and VS code seems to have about 70% which is a lot but the 30% that don’t use it is not that small of a number either.

Like I get it it’s very popular but it’s far from the only editor/IDE people use.