Readit News logoReadit News
Tcepsa · a month ago
Maybe it's spite-driven development, but I'd love to hear about someone who, upon learning that LLMs are suggesting endpoints in their API that don't exist, implements them specifically to respond with a status code[0] of "421: Misdirected Request". Or, for something less snarky and more in keeping with the actual intent of the code, "501: Not Implemented". If the potentially-implied "but it might be, later" of 501 is untenable, I humbly propose this new code: "513: Your Coding Assistant Is Wrong"

[0]: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Bluestein · a month ago
> "513: Your Coding Assistant Is Wrong"

You made me chuckle. Well played. Great stuff :)

May I, simply, also suggest:

HTTP 407 Hallucination

Meaning: The server understands the request but believes it to be incongruous with reality.-

LiKao · a month ago
Yes, it should definitely be in the 400 space of HTML error codes. As 400 -> "You are incorrect" while 500 -> "We messed up".
snthpy · a month ago
+1 for 513: Your Coding Assistant Is Wrong"

If we have 418, why not 513?

hi_hi · a month ago
I humbly request, if you are going to do this, please, please...use the 418 response. It deserves wider adoption :-)
Dilettante_ · a month ago
Bit of a pet peeve: 418 is clearly defined as "I am a teapot", not "whatever I want it to mean".

Please do not use it for anything other than its specified purpose, even if it is a joke.

latentsea · a month ago
I think it's a good representation of a hallucination.
Bluestein · a month ago
(on that note, I'm putting the kettle on :)
hamish-b · a month ago
I like seeing what users are currently viewing the same page, but man the constant jostling of users coming and going made it hard to read the post.
seanlinehan · a month ago
I have this little bookmarklet in my bookmarks bar that I use constantly. It removes all fixed or sticky elements on the page and re-enabled y-overflow if it was disabled:

javascript: (function () {document.querySelectorAll("body *").forEach(function(node){["fixed","sticky"].includes(getComputedStyle(node).position)&&node.parentNode.removeChild(node)});var htmlNode=document.querySelector("html");htmlNode.style.overflow="visible",htmlNode.style["overflow-x"]="visible",htmlNode.style["overflow-y"]="visible";var bodyNode=document.querySelector("body");bodyNode.style.overflow="visible",bodyNode.style["overflow-x"]="visible",bodyNode.style["overflow-y"]="visible";var nodes=document.querySelectorAll('.tp-modal-open');for(i in nodes) {nodes[i].classList.remove('tp-modal-open');}}())

JimDabell · a month ago
They have been called “dickbars” before [0].

> Kill-sticky, a bookmarklet to remove sticky elements and restore scrolling (174 comments)

https://news.ycombinator.com/item?id=32998091

[0] https://daringfireball.net/linked/2017/06/27/mcdiarmid-stick...

Deleted Comment

consumer451 · a month ago
Same here. Right-click the page and choose Inspect (or Inspect Element). Click the Console tab, paste this code, and press Enter:

    document.getElementById("presence")?.remove();
If you want to know why this is happening in your brain, it's likely a prey/predator identification thing. I would like to think that being so distracted by this just means I have excellent survival instincts :)

https://www.pnas.org/doi/10.1073/pnas.0703913104

https://en.wikipedia.org/wiki/Salience_%28neuroscience%29

theendisney · a month ago
Can just right click remove node.
addandsubtract · a month ago
uBlock Origin also lets you "zap" elements away. No console fiddling required.
HexDecOctBin · a month ago
Reminded me so much of a game called Chess Royale that I used to play, the avatars and the flags (screenshot [1]). It was really good too; and then Ubisoft being Ubisoft, they killed it even though the game had bots and could have been made single-player.

[1]: https://game-guide.fr/wp-content/uploads/2020/02/Might-and-M...

krackers · a month ago
isn't this the page that used to have cursors everywhere in the background? I think the distracting design is some intentional running joke at this point
nine_k · a month ago
Try "dark mode" foe further trolling.
YesBox · a month ago
I tried uBlock's element zapper and ended up playing a furious game whac-a-mole :D
paulmooreparks · a month ago
Same here. I don't have the time or patience to hack the page like the siblings comments suggest. There are more articles on the web than I will ever be able to consume in my lifetime, so I just close the tab and move on when the UX is aggressively bad.
airstrike · a month ago
It's hilarious but I literally can't click on their gh or patreon links because of it
rf15 · a month ago
natural selection at work
JimDabell · a month ago
I found Safari’s “hide distracting items” feature was necessary to finish the article.
jahsome · a month ago
Inatant tab close for me. So obnoxious.

The idea is kinda cute, but the implementation is aggressive.

cnnlives · a month ago
Maybe if the background color on all pages was a heatmap of the current top line of the page, so that you could see where people were reading and how many were reading, it would be better?

Also, what if it played slow and brooding music when fewer people were reading and epic action adventure music when many people were reading it?

How about if the page mined bitcoin and the first person to enter a page made a percentage higher percentage of the next person’s bitcoin and less of the next one, like a multi-level marketing mining strategy?

mathiaspoint · a month ago
That heatmap idea sounds really neat actually.

Deleted Comment

promiseofbeans · a month ago
It's pretty fun seeing what countries people are from. If you hover, it tells your their city as well!
akst · a month ago
I ended up using safari remove distracting content, which seemed to work nicely.
Kapura · a month ago
i literally opened the developer console to delete that element from the page. no surprise somebody who has no idea how to make a readable website is getting bullied by a chatbot.
spacemadness · a month ago
Certainly not built to help those with ADHD in mind.
lagniappe · a month ago
Its the bottom 20px or so, with a lot of content above it. Move the window down slightly.
_carbyau_ · a month ago
The article literally starts with:

"Any person who has used a computer in the past ten years knows that doing meaningless tasks ..."

I guess this is demonstrating another variant of that. Admittedly, not one I'd seen before so +1 for novelty even if -20 for distraction.

throwaway290 · a month ago
that webmaster should ask himself, if it is so easy implement does it mean you SHOULD implement it? I just immediately closed the page.
pwdisswordfishz · a month ago
I wonder if it's GDPR-compliant.
wiseowise · a month ago
Why wouldn’t it? It’s anonymous and he probably doesn’t store the data.
abtinf · a month ago
> We see the same at Instant: for example, we used tx.update for both inserting and updating entities, but LLMs kept writing tx.create instead. Guess what: we now have tx.create, too.

Good. Think of all the dev hours that must’ve been wasted by humans who were confused by this too.

RandallBrown · a month ago
If tx.create didn't exist, why would any hours be wasted by this?
delifue · a month ago
> for example, we used tx.update for both inserting and updating entities, but LLMs kept writing tx.create instead. Guess what: we now have tx.create, too.

If a function can both insert and update, it should be called "put". Using "update" is misleading.

loloquwowndueo · a month ago
Upsert?
theendisney · a month ago
Lets just do all variations and have the llm guess it right the first time.
user_of_the_wek · a month ago
Crupdate
eggn00dles · a month ago
put implies overwriting instead of updating.

upsert is for you insert/update.

pas · a month ago
update already means overwriting.

semantically PUT is exactly upsert.

upsert is update + create if not exists, which is exactly PUT

any update without overwrite is "append" or "extend" (or something else)

jaredcwhite · a month ago
Sorry, we will reach the heat death of the universe before I alter a single line of code simply because some LLM somewhere extruded incorrect synthetic text. That is so bonkers, I feel offended I even need to point out how bonkers it is.
tdstein · a month ago
I don't agree with the thesis of this post. It is begging the question of if we have to do what computers want.

> Millions of people create accounts, confirm emails, ... not because they particularly want to or even need to.

These were design choices made by humans, not computers.

t3rra · a month ago
You are so generous to call this even "thesis" lol. I read that line and I closed the page. haha
tdstein · a month ago
Only from lack of a better word (:
debarshri · a month ago
Recently i had an interesting chat with my team around coding principles of the future.

I think the way people will write code will not be around following solid principles or making sure your cyclometric complexity is high or low, nor it would be about is your code readable or not.

I think future coding principles would be around whether your agentic ide can index it well to become context aware, does it fix into the context window or not. It will be around the model you use and thr code it can generate. We will index on maintainability of the code, as code will become disposable as rate of change will increase dramatically. It will be around whether your vibed prompts matches the code thats already generated to reach some accuracy or generate enough serendipity.

meepmorp · a month ago
If it were somehow a human that was consistently and confidently handing out made up programming advice about one's products, would companies still respond by just adding whatever imagined feature and writing a vaguely bemused blog post about it?
loloquwowndueo · a month ago
Maybe I can start pretending I’m an LLM and see if that gets me a pass when I make silly mistakes or hallucinate in entirely the wrong direction. As long as I look confident doing so.
lazide · a month ago
We don’t talk about PMs here. (/s)
eapriv · a month ago
Isn’t this the whole shtick of Mr Martin, author of “Clean Code”?
guelo · a month ago
If that human was giving advice to 90% of your customers you just might.
hobs · a month ago
No they would confidently assert they need the dumb thing you keep saying.