Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rafark
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
rafark
6mo ago
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/
2.
▲
by
rafark
7mo ago
> 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
3.
▲
by
rafark
7mo ago
> 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 busi
4.
▲
by
rafark
7mo ago
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 han
5.
▲
by
rafark
7mo ago
> 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…
6.
▲
by
rafark
7mo ago
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 e
7.
▲
by
rafark
7mo ago
Under that definition any css class is a shorthand for inline styles
8.
▲
by
rafark
7mo ago
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.
9.
▲
by
rafark
7mo ago
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 elem
10.
▲
by
rafark
7mo ago
And thank god (or Adam) for that. Tailwind makes me much more productive.
11.
▲
by
rafark
7mo ago
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 l
12.
▲
by
rafark
7mo ago
Speaking of php slack was built with php until they followed Facebook with Hack (which is essentially a modern flavor of php)
13.
▲
by
rafark
10mo ago
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 questi
14.
▲
by
rafark
10mo ago
> 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 sou
15.
▲
by
rafark
10mo ago
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
16.
▲
by
rafark
10mo ago
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 w
17.
▲
by
rafark
10mo ago
>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 cor
18.
▲
by
rafark
10mo ago
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
19.
▲
by
rafark
10mo ago
> 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. Clou
20.
▲
by
rafark
10mo ago
> 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
21.
▲
by
rafark
11mo ago
They didn’t say it was the fastest. Just that the language per se is fast enough.
22.
▲
by
rafark
11mo ago
Nope. Php is sufficiently fast.
23.
▲
by
rafark
11mo ago
> Future generations are gonna look back at us for our treatment of animals, especially farmed animals, much the way we look back at our slave owning ancestors. A lot of people already do. Hopefully technology (robots) and science (lab g
24.
▲
by
rafark
11mo ago
Yeah it’s really good. A few weeks ago, some third party script was messing with click events of my react buttons so I figured I should just add a mousedown even to capture the click before the other script. It was late at night and I was e
25.
▲
by
rafark
1y ago
Agreed. People are being too harsh in this post
26.
▲
by
rafark
1y ago
How does your m1 run Tahoe overall? I haven’t updated because I fear it might have degraded performance?
27.
▲
by
rafark
1y ago
Just as a fun fact, React’s jsx is actually a port of XHP which was initially developed for PHP in 2009 I believe. This would explain why react’s components were class based at first (because php leans heavily towards class based OO program
28.
▲
by
rafark
1y ago
> What feature does it offer that other scripting languages don't? It has pretty much the best type support of all other similar languages (typescript is a different category). It also has the best implementation of class-based obje
29.
▲
by
rafark
1y ago
> You’re absolutely right — it’s pretty slow right now and needs optimization. Man the ptsd that AIs have given us from sentences like this.
30.
▲
by
rafark
1y ago
Correct. I’ve been using ai chatbots more and more instead of google search (I still use google quite a lot but considerably less than a year or two ago). ...but ironically that chatbot is Gemini from ai studio, so still the same company bu
More ›