1,846 karma · joined Jun 3, 2020 (6y ago) · 1,628 submissions
comment 6d ago · link · parent
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
But by this, I don't wanna say you should. It's also of course newer than what jQuery did, and might be inspired by it (just like Sizzle influenced the QuerySelector API, and CoffeeScript influenced arrow functions).
comment 6d ago · link · parent
And obviously, this is a design pattern that fits when a suitable supertype exists or xan be easily defined.
Thus, void methods are already fit for pretty much the same interface, and everything with a return value that shouldn't be of the type of that specific god-interface, doesn't fit well into a fluent interface, e.g. count().
You can be insistent on the pattern and make count() return `this` instead of a number, but that's where the pattern becomes blurry.
When I started web dev, fluent interfaces were everywhere, and the motivations, thinking about it, seem to converge about another, different thing: lazy evaluation.
This is what jQuery has in common with ORMs, I'd guess.
The development experience isn't even the most important thing, it's providing an abstraction between executing a query (hence jQuery) and chaining selectors.
Natrowing down snapshots is completely different from chaining selectors, and this is the common aspect between an ORM and a library working on the DOM.
Where it starts to feel icky, in both cases, is, when mutations are involved.
Then you have potential for confusion around when these mutations are commited.
In other words, since jQuery collections are, well not "live", like getElementsByTagName, also not snapshots, like querySelectorAll is (snapshot regarding the reference, not what it points at, of course).
jQuery combined the best of both worlds for many everyday applications.
But mentally working through an applications with complex mutations only was fun if your colleagues were disciplined.
jQuery "soup" when using many mutations, leveraging the DOM as a snychronized shared state, and mixing in some confusing closures anf loops, was also real.
I admire jQuery, but also don't miss debugging half-working giant files. Not a library issue, you can have similar issues with any library when working on dynamic frontend state.
Circling back to the point: I'm not sure whether a fluent interface is ideal for DOM manipulation.
But in any case, jQuery was used way beyond "DOM library". It was almost synonymous with "JavaScript" at some point, and putting huge blocks of imperative domain logic nested 5 closures deep into some event callback was an issue with jQuery just as it is an issue with React right now.
Same story, different day.
comment 1w ago · link · parent
Feels like we were already almost there because of ad blocking, without even considering AI agents and summaries. And I take no offense in ad blockers, I use them myself.
Sad thing about current public web "content" apps (be it newspapers or other formats) is that the paid versions often share all tracking features with the ad-financed version of the same service, when both are behind a login wall. Only fewer ads, at least hopefully no ads from other vendors / no intrusive brokered ads.
Self-advertisement going through the roof when accepting an offer for a paid subscription is another frequent annoyance though.
comment 1w ago · link · parent
And that's assuming they want to make clear what they are building on.
The stakes in the output go both ways: wanting to profit from IP and risking liability because of violating IP licenses.
What you're saying is already the status quo, but reality is that LLMs make it so easy to "paraphrase" code or simply .. ideas, too... so that the whole concept of IP is eroding. Because the sheer scale makes it almost impossible to distinguish specific things that cross the line from "learning from" to "copying IP".
I'm not really taking a specific stance here but acting as if it would be a solved problem seems hard to believe to me, especially since it is not a new discussion.
I thinl you could argue that the solution is that copyright or IP concepts are not working anymore, something many people already concluded before the LLM and AI explosion of the 2020s.
But that's not the state of the current law, right?
In addition, your claim that the user of an AI system is the only person who has any "stakes" also seems questionable to me, because after all, we are talking about output that the AI user already paid an AI company for to generate it.
edit: word choice
comment 1w ago · link · parent
The slice of software development that is purely "finding technical solutions" is shrinking.
You increasingly need to identify with the purpose of the software you are developing.
Spaces of detached "purely technical" software development are shrinking.
So you either say your job is to turn specs into software, then you need to aim at technically demanding tasks. Or you aim at being good at doing this at scale without being particularly involved with the purpose.
The pure "developing an efficient implementation of this clearly defined requirement" part of software engineering is retreating to spaces with really thanklessly complex or tight requirements, and even then, you need to be extraordinaly good.
The gray area between "software where the tiniest bug is a legal liability" and "software that seems cool, fix bugs later" is shrinking.
comment 1w ago · link · parent
(SCNR)
I guess you're hinting at the difference between model training (including RLHF etc) and models interacting with code, and improving on that.
I guess the real scenario is "simply" a coding agent pointed at code that integrates collected data, likely with the training code using distributed compute. And distributing the training input improvements is surely also already a solved problem, just maybe not OSS.
comment 1w ago · link · parent
> Thirty years ago, on November 11, 1996 the young Brazilian student Rafael Sagula posted the source code for his tiny HTTP download tool online. That was httpget 0.1: a little over 100 lines of C code. Bare bones source code with almost no error checks and limited functionality.
> httpget
> When I found the source code of that initial httpget release just days after Rafael put it online, I had no idea how HTTP worked
comment 2w ago · link · parent
The intro to your "scrollbars suck" section was cracking me up just like talktotransformer.com did in the early days :D
First crashed my Firefox and Safari on battery before I checked and realized that won't work. Behold, it works flawlessly now in Chrome!
> I like to think that I'm a good person. I'm not a bad person. I'm not a bad person. I'm
(guess I didn't miss out on the remaining 6 tokens^^)
comment 2w ago · link · parent
If someone else distributes my commits (or messages), I have no control over that, not any different from sending a physical letter?
I was saying "cloud-hosted" explicitly, and was speaking about what it means to have a remote control software?
Doesn't even matter much whether it's an Artificial Neural Network for the sake of my argument.
comment 2w ago · link · parent
Common problem: you might consider it trivial to define a rule that forbids access to any file path outside the working directory. Allowing "safe" shell access is already a heuristic, there is no way around it:
- shell scripting is Turing-complete
- there are platform-specific paths that need to be at least readable to perform trivial tasks: Everything is a File!
- security models to make such low-level file access transparent exist, and generally work, but: they are never perfect (container environments, chroot etc). Because...
comment 2w ago · link · parent
Guarding PII is an extra, I guess, and if you want to use a giant cloud-hosted NN to control software on your own device, there are very few default restrictions. And no matter what restrictions there are, when they go beyond prompting, they would have their own ShowHN.
comment 1mo ago · link · parent
Of course, it could be organic. I shortened my text a bit so it's not explicitly mentioned anymore, but I still wrote about "engagement algorithms".
It doesn't need to be a political influence dial at Meta's HQ.
Regardless of whether there is intentional influence by the platform, or the platform intransparently favors other actors who in turn use the platform, it's a problem. Even when the platforms just do it for simple financial reasons or political opportunism.
On HN, people are usually quick to lament to damaging effects of engagement optimization on public discourse.
I thought mentioning that I cannot judge whether Lula is a corrupt president (I assume that's what's meant by "criminal") is enough to make clear that I am not arguing for silencing opinions.
What I would like to see is addressing Social Media's role in weaponizing outrage advertisement using slander, and also, platforms getting away with not making transparent how they weight political advertisement in elections.
In my opinion, electoral advertisement should be regulated, and it is regulated, in many countries. This does not prevent you from sending memes on WhatsApp, it might prevent a platform from suggesting political memes to you when you did not explicitly seek out partisan content.
Regarding the rest:
Lula has been imprisoned because of corruption, Bolsonaro has been imprisoned because of his coup attempt.
Seems hard to argue about that in one-sided way, and I'm not gonna make any explicit stance here, I am not from Brazil.
It seems impossible to assess whether one of the two is in fact not guilty of the crimes they were charged for. What I did notice though were the election fraud claims, and consensus seemed to be that they are false. The coup attempt also seems to be undisputed.
The EU has sought out trade deals with Brazil, which was more easily possible with Lula, AFAIK.
I'm not gonna defend everything (sry, not "anything") the EU does here either.
My point was how the public deals with election fraud claims and coups.
And it does seem strange to normalize those openly, even 5 years after the capitol storm.
---
But, to be clear: I am not interested in advocating for Lula in Brazil, that's a Brazil problem and I don't know enough to have an opinion on this. Maybe a gut feeling, but it's easy to get rid of that by reading from the other side (e.g. about corruption, crime rates etc).
That was hopefully not something I said in my initial comment either, because viewing politics as a football match is not healthy, and Germany has its own problems which are more relevant to me - and yet, German politics would still not be something I want to comment about extensively here.
I only wanted to comment on the role of Social Media in political elections. The fact that coup attempts are now so openly normalized in many countries considered democratic (US, Turkey, Brazil)... might seem odd to me, but that's more of an "illusion of stability" thing I guess.
comment 1mo ago · link · parent
When in fact, it comes after
> The petition describes a GIF search on WhatsApp for the word “brasil.” The first result was an image of Flávio Bolsonaro. It showed his ticket number and identified his running mate.
> According to the records sent to the court, the same result appeared on three separate accounts. The groups use this to ask whether its top position comes from systematic ranking criteria.
> A similar check on Instagram also showed images of the senator among the first results. Users who searched for “brasil” found three images of Flávio Bolsonaro in the top positions
> On WhatsApp, a GIF search for the word “ladrão” (thief) returned a caricature of the president in a striped uniform, a reference to prison dress. Another result carried the message “Supporting the Workers’ Party is a mental illness.”
> On Instagram, a search for the same word showed a GIF reading “Vote 13.” That is the Workers’ Party election number, tied to Lula’s candidacy.
And you could also think that the authors would be for censorship and completely crazy, when in fact:
> They are not claiming that they have proven bias in Meta, choosing instead to posit the question to the Superior Electoral Court.
That's all ignoring the fact that Trump and the US openly support Bolsonora, who is in jail for attempting a coup after losing the election.
And Brazil, AFAIK, was a military dictatorship until, what, 40 years ago? To my knowledge, without a "hard cut" that would have investigated this part of the country's history.
I am not Brazilian, who knows, I can't tell whether Lula is corrupt, or anything, what I have not seen is proof of the election fraud claims put forward by Bolsonaro sr.?
Not irrelevant since his son of course rehabilitates him and wants to "correct the public record".
And also, imprisoning him of course was a strong move that also needs justification.
But it would be cool to limit political content on platforms with non-audited, non-public and intransparent engagement algorithms.
Just as it would be good to stop intransparent flow of big money into politics.
The latter is a sentiment that Trump catered to when he became president for the first time. Of course, only in a twisted, cynical way: "the system is broken, so I alone can fix it".
Regardless of anyone's political affiliation: Meta has a long history of not giving a shit whether their engagement algorithms at best... "damage" democratic processes, so I don't see any reason to be smug about it.
comment 1mo ago · link · parent
GitHub uses this metaphor, and, as another commenter already aptly described, it could be nothing more than a fancy name for namespaced branches, on the server side.
On the client side, "forks" are usually different repository clones with different remotes and a "coincidentally" shared history.
But you can also map forked repos to multiple remotes of the same repository for example, instead of folders.
Assuming that forks would live in separate clones/blobs on the server is not really based on anything, so I think the warning is a good middle ground between explaining what forks are and how they handle them, and giving actionable advice.
It's also better suited for PR:
"Fork me on GitHub"
vs
"Branch and push your own clone on GitHub, using our shared blob optimizations".
I think the warning is clear and there's nothing misleading about it, but others have already pointed this out and git can be tricky.
It's so good at providing the right level of abstraction to everyone though, it seems!
Similarly, GitHub invented the term "Pull Request" (aka PR, lol).
Not a git-owned term.
But "merge request" isn't a Git primitive either!
And, with Forks and Pull Requesrs, GitHub made a particular workflow in Git approachable to anyone!
I love GitLab, but people get confused by Merges, myself included, so the GH-enabled workflow of favoring ff-only merges, without merge commits, with quadi-linear history, became the norm and helped Git succceed!
But I also appreciate being able to do all kinds of different workflows.
So PRs were positive-sum PR at the time, I'd say. When they became popular, I was still taught Subversion and CVS at uni, alongside Git as "the new thing". Ar that time, many people considered the older systems simpler, and pondered SVN as the most reasonable middle ground between CVS and the decentralized concept of Git!
comment 1mo ago · link · parent
I think I've heard about it before, but my stint at university in linguistics is > 15 yrs ago, so I don't know much about it.
I remember recognozing Chomsky when later studying CS and formal language basics came up, bringing the Chomsky hierarchy.
Do you have some favorite links to share about the "step change" hypothesis? I remember reading some odd info-news article comparing brains among different species of homo; and and maybe also this particular hypothesis, but I'm not really informed.
That aside, I don't understand why this "onomatopoeia" couldn't be shared among different animals and humans:
> I think objects with these shapes make similar sounds in the real world. Sharp shapes make percussive sounds. Round shapes make softer sounds.
Claiming that animals had no language at all would obviously be false. But we still have reason to think (?) that the human languages are intertwined with the intelligence gap we observe between humans and other mammals.