HNHacker News
TopNewBestAskShowJobs

ggorlen

145 karma · joined July 10, 2019

submissionscomments
ggorlen··on Moderation strike
Regardless of whether it's doomed to fail, the content these "computer advances" are creating on the site is definitely garbage at the present time. I've flagged hundreds of posts, mostly brand-new users attempting to rep farm. A huge percentage of the answers are flat-out incorrect or have little to do with the question.

Banning all moderation without consulting the community is not a step towards coexistence, it's a step towards turning the site into a dumping ground for stale LLM spew in the name of engagement.

Companies like Stack Overflow seem to care less about the quality and accuracy of the site's content as long as the engagement numbers look good. Unfortunately, a lot of users don't seem to care about quality, either, which is how we've wound up with the current state of affairs where just about every social platform is increasingly flooded with bot spam, misinformation, scams and junk.

By banning low-quality posts, including unverified LLM answers, the site can secure a future for itself as a bastion of quality. Or it can turn its back on the experts that built the content that's used to train the LLMs and hope that LLM quality improves enough that expert humans aren't necessary.

Even if that gamble works out for them and LLMs do mostly replace humans as some commenters optimistically seem to expect, then there'll still be no need for Stack Overflow, as one can simply ask an LLM directly. That's why effectively dumping human experts for LLMs seems like a failed business model either way. The best approach to move forward seems to be to carve out a space that provides unique value that LLMs can't and ride that until LLMs make significant advances.

Disclosure/context: I'm a daily SO answerer on strike, among the top ~4k users by rep overall. I'm pretty sure most folks who are dismissing the problem don't monitor tag feeds or curate queues enough to see the flood of blatantly wrong LLM answers spamming in from new accounts.

ggorlen··on Moderation strike
Having flagged hundreds of such answers before SE suppressed LLM moderation, I can vouch that they stick out like a sore thumb:

- they're all written in the same style ("It looks like you're trying to do convert a string to an integer...") - they have perfect grammar - they're often/usually wrong - they tend to be tone-deaf to the question or are answering a different question than asked - their formatting is often poor by virtue of copy-paste from ChatGPT and the author's lack of familiarity with markdown - they're usually posted by new or new-ish users that have few reputation points (ostensibly, their goal is to farm reputation rather than help curate a quality resource) - they're posted in large quantities (a dozen or more in an hour) that'd be virtually impossible for a human to churn out (especially a brand new user!) - they're posted in random tags that show no clear connection from one to the next--most answerers are subject matter enthusiasts or experts and stick to a narrow range of tags - they tend to contain hallucinations obvious to SMEs, like invoking methods that don't exist - the code is plain wrong when executed - the code style is "boring"/"vanilla" and tends to steer clear of idiomatic language features that a seasoned programmer would employ and has few formatting quirks that a human might use - the code is often heavily commented in a predictable and artificial manner - the explanation after the code and overall layout/flow of the post is often the same - they tend to be dramatically different than the user's normal answers, which have typos.

As you'd expect, it's difficult to _prove_ that a particular answer was generated by an LLM (the fact that LLMs can't reliably detect themselves is part of the problem--they're inaccurate!). However, the possibility of occasional false positives (SE has provided no actual evidence of this being an issue), seems a necessary price to pay, and could be solved in a more balanced manner than prohibiting all LLM moderation. SO would be unusable if it became a stale cache of mostly-incorrect LLM spew, which is what SE's new moderator guidelines seem to be OK with.

If I want an LLM answer, I'll ask an LLM. I can then prompt engineer and iterate. If I want a human answer, I want to be able to ask on SO so I can be guaranteed I'm "speaking with a human".

Disclosure/context: I'm a power-user on strike.

ggorlen··on 'Do' More with 'Run'
I agree that `run()` is more readable than an IIFE if you remove all context and history from the analysis. But the IIFE is a well-known idiom to JavaScript programmers, so readers will not have to pay a cognitive "what is `run()` do?" penalty in order to understand the code.

New abstractions have a cost, and "clever" abstractions tend to confuse the average developer more than the benefit they provide.

If there's a problem with an IIFE (yes, they can be abused), the usual approach is to replace it with a named function definition. This works in their React example as well--rather than (necessarily) creating a new component as they suggest, the standard approach is to add a named rendering helper in the function closure that returns JSX.

ggorlen··on Stack Overflow CEO announces 10% reduction in force (58 employees)
> It's kind of related because AI tools are for better or worse going to eat up a bunch of these question/answer responses from tools like Stack Overflow for developers, particularly for trivial things.

I don't see the connection between 58 people being laid off and a rep farming howto.

If the parent commenter is trying to initiate a discussion about whether AI is a contributing factor in this round of layoffs at Stack Overflow, that's relevant and welcome, but I don't see any indication of that from the post.

Stack Overflow and LLMs have different use cases, with some overlap. They're complimentary resources. SO is not a free code-writing service, although it's often been mistaken for and abused as such. "How do I create a list of HTML Bootstrap cards for my whatever app", would be closed as off-topic. It's basically a work request for a freelancer or an LLM. The goal of SO is to curate a repository of programming knowledge based on focused, specific, well-researched technical questions. It's served me very well in this purpose over the years and continues to post-LLM boom. Many questions deal with up-to-the-date issues that are beyond LLM training sets, and crowd-vetted answers generally don't hallucinate.

I'm happy to see LLMs take care of the trivial cases you mention. They're good for many drudge tasks. Typos, syntax errors and misunderstandings that would be resolved by a quick glance at the docs or an LLM are not really a good fit for SO, unless they're common. Prompting an AI should be among the expected prerequisite attempts before asking SO.

A recent personal example of SO at its best was a question[1] based on a regression bug caused by a couple-day-old deploy to the Puppeteer browser automation library, a tag I answer questions in daily. I reproduced the problem, forked the repo, fixed the issue, opened a PR and the patch was deployed to NPM the next morning. Given the same input, LLMs will pretend like they know what they're talking about and give you the run-around endlessly, providing random, plausible-looking nonsense for as long as you have patience to put up with it. Only humans can handle this type of problem at the moment. And this isn't an isolated example.

> hearing that this is possible stings because it really cuts through the veil.

Cheating with LLMs is not possible currently. These answers stick out like a sore thumb. It's just more work for the community to clean up the LLM garbage being dumped on us. I'm not sure what "veil" you're referring to--the reason LLMs are banned is because they don't meet the site's standards for quality and accuracy. If LLMs were objectively better at doing what SO does across the board, SO would be a ghost town by now.

Some day, LLMs may well replace humans (fully, or to a large extent) at programming, but I don't think it'll happen as soon as commenters seem to imply, judging by the quality of LLM answers I've seen and my experience using ChatGPT. And if LLMs do replace humans, fine, life will go on, but that day hasn't arrived yet so it's premature to bury human programming Q&A in general or SO specifically.

[1]: https://stackoverflow.com/questions/75292123/why-does-puppee...

ggorlen··on Stack Overflow CEO announces 10% reduction in force (58 employees)
I'm not sure if this comment is a joke or not, but please don't do this. Stack Overflow is trying to curate a resource of high-quality questions and answers. The rule is that content is created by humans, generally subject matter experts.

LLMs are banned for a reason. I flag dozens of LLMs answers a week for removal. These answers are a serious problem for accuracy and cleaning them up is a waste of time for moderators and normal users. Most of these answers are flat out incorrect. People using this technique or are interested in rep farming generally don't know how to review the answer, or they'd write it themselves. If OP wanted an LLM answer, they'd just ask an LLM directly. They're there to ask human SMEs.

It seems to me one's time in life is better served by actually learning useful technical skills rather than trying to game systems to the detriment of the commons for fake internet points, although I guess in this day and age the latter gets you further (see: https://news.ycombinator.com/item?id=35885342 "My friends who cheated in interviews are getting promoted").

Anyway, parent comment has nothing to do with the linked topic and seems inconsiderate of the people laid off.

ggorlen··on Angular v16
> I don't see any signs of that though.

Even if we take it for granted that package downloads are hidden, how should we account for the ~40% drop in new questions in the Angular tag on Stack Overflow since its peak in 2018?

https://insights.stackoverflow.com/trends?tags=angular%2Crea...

In the Stack Overflow developer survey last year, Angular was 52% loved versus 68% for React and 63% for Vue. Can we find a way to dismiss this as well?

https://survey.stackoverflow.co/2022/#section-most-loved-dre...

On the freelancing platform Codementor, based on rough sampling, there have been about 338 Angular requests in the past year versus 2098 for React (6x).

Sure, Angular won't die outright because the enterprises that have adopted it will need ongoing support, but this seems like a weak metric for growth. For enterprises selecting a tech stack now, choosing Angular chops the hiring pool by a significant factor. I don't see evidence of advantages Angular offers overcoming that.

On the other hand, React has gained new life through frameworks like Next.js and maintained relevance. React's popularity is not just individual engineers making a disproportionate amount of noise on blogs. React hooks are the most established unit of construction for making components at this point across web, mobile, desktop and command line. That won't last forever, but there are too many signs of Angular trending out and React trending upward to dismiss.

ggorlen··on I Like Powershell
Good point about strict mode. However, I've collected a few gotchas[1] that I don't think strict mode helps with (as seems to be the case with languages that offer strict mode, it's not enough). If you're curious and have time to take a look and let me know what I might have misunderstood, I'd appreciate it.

I think I'm missing which problem your code solves. There are a few array issues in my gotcha journal. Adding types like [object[][]] doesn't seem to help with getting PS to understand nested arrays with 1 element, for example, and $foo = @(42) is the array declaration syntax I usually use.

[1]: https://gist.github.com/ggorlen/1e337f211f508124321c8bc7c1d2...

ggorlen··on Deduplicate a slice in Go, use sort or a map?
Small nitpick:

    if !encountered[elements[v]] == true {
is a double negative and hard to understand. I'd write it as

    if !encountered[elements[v]] {
or if you must use the bare bool,

    if encountered[elements[v]] == false {
ggorlen··on I Like Powershell
The point is, if a developer is resorting to another language just to write a 20 line script with a data structure, a loop and control flow, that's a failure of the shell. I don't want to have to use anything other than PS to script on Windows, but I'm often forced to in order to be productive.

It's not saying much for the language that Windows sysadmins use PS primarily. Like Bash, the reason people use it is availability, not language virtue. See last year's Stack Overflow developer survey, where Bash was more popular than PS (29% (Bash) to 12% (PS)[1]) and loved (57% (Bash) to 43% (PS)[2]).

I don't like Bash. I'm using it as a yardstick to show how disappointing PS is.

[1]: https://survey.stackoverflow.co/2022/#most-popular-technolog...

[2]: https://survey.stackoverflow.co/2022/#technology-most-loved-...

ggorlen··on I Like Powershell
Case sensitivity isn't a major deal, but it's another example of the designers trying too hard to be clever and "user friendly". A good scripting language should try to reduce friction relative to other programming languages, most of which are case sensitive.

I'd like to see a native OS scripting language that has a low bar of entry, isn't silent on undefined variables and other common mistakes, imposes syntactical consistency like Go or Python, has decent basic data structures and isn't riddled with pitfalls. PS isn't that language.

If Bash and PS were good, it'd be so much easier to bring non-programmers into the command line so they can automate tasks and hack on their systems. Unfortunately, these languages aren't doing that, much less passing the usability test with most programmers who'd just assume script with Py, Perl, JS, or whatever their preferred language is.

ggorlen··on I Like Powershell
The author has a few good points. I want to love PS as well, but in practice it has too many gotchas and pitfalls that seem to pop up every time I write a script more than a few lines.

Sure, all languages have these, but the ones in PS feel nastier and more subtle than most, compounded by the fact that it's not a language I use more than once every few months and should be easy to pick up and put down.

Basic stuff like parens, commas, function calls, casting, variable interpolation and arrays are frequently surprising. Many behaviors fail silently.

For example, arrays with 1 element behave differently than arrays with 2+ elements. PS is "smart" and treats the 1-element array as a scalar. Why? I've wasted hours dealing with arrays in PowerShell.

See this post for a sampling of the problems: https://stackoverflow.com/a/69644807/6243352

Even without the gotchas, case insensitivity, optional abbreviations, optional parens, etc, make PS scripts harder to read and debug than they need to be. PS feels like a mashup of many of the most confusing parts of PHP and Perl and adds its own fresh mess on top. Adding parameters and resolving a few of Bash's failings isn't much of an achievement given ~20 years of time to design it properly. Neither language is as easy to work with as it should be.

ggorlen··on Your "simulation" might not need state
Their code uses Date.now() but wouldn't it be better to use the high-resolution timestamp[1] passed as the parameter to the requestAnimationFrame callback[2]?

[1]: https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResT... [2]: https://developer.mozilla.org/en-US/docs/Web/API/window/requ...

ggorlen··on Mozilla Emails Sagan Ipsum to Hundreds of Thousands of Subscribers
Unsubscribing after this spam didn't seem to work. I still received their follow-up apology.
ggorlen··on The Essential Philip K. Dick
PKD was largely a product of his time in terms of gender roles, but his short story "The Impossible Planet" may be a counterexample.
ggorlen··on Show HN: I made a modern web UI for Hacker News
> Also annoying that a single new line doesn't do anything, you need to have two. Doesn't make sense at all.

This is how markdown works, so it feels natural to me (although then the differences from markdown become apparent...)

ggorlen··on Survey: Are there any BA's in the HN readership, and if so why do you visit?
It might be worth editing the title as well. I clicked in to figure out what it meant. Bachelor's degree didn't make much sense...
ggorlen··on The Door-Aeolian Harp (2009)
More sculptural instrument recordings:

- https://www.discogs.com/master/1368351-The-Wind-Harp-Song-Fr...

- https://www.discogs.com/lists/sculpturalunique-instrumentsso...

- https://www.discogs.com/artist/841187-Stephen-Cornford

ggorlen··on You can read my blog posts using curl
Looks fantastic! I can't read the post, but I think you can simplify the 10 print Python code to

  while True: print(choice("\\/"), end="")
(the `format` call doesn't seem needed and `choice` works on any iterable, including strings of characters).

Al Sweigart has a repository of "scroll art" similar to 10 print that might interest you: https://github.com/asweigart/scrollart

← PreviousPage 2 of 2