frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

LLMs don't understand my code, cuz I didn't comment

3•fdlinly•5h ago
Wanted to share this small but mighty lesson with y'all. I wrote a clever code to solve a problem using a greedy approach, and had GPT and Gemini and Claude to review it. Gemini said my code is functionally correct but the logic isn't right. The other two LLMs said my code was wrong. Even though my code has correct output for all of the test cases they came up with. Ok, glad I was confident enough in myself, and went through my logic again, and started ADDING COMMENTS! Now, they finally got it and all said it's a smart approach and 100% correct.

Lesson? Always comment on your code! Not just for your future self, but also for the LLMs (and the enviornment - since we won't continue the back and forth to waste inference costs.)

Comments

coldtea•4h ago
>Now, they finally got it and all said it's a smart approach and 100% correct

Did they "get it", or did they just say it's correct, without having a similar level of not getting it as before?

MonomaOS: A Python-based command-line OS-like environment (v0.0.1)

https://github.com/fotiszaharia/monomaOS
1•fotis203•1m ago•1 comments

Glass bottles found to contain more microplastics than plastic bottles

https://phys.org/news/2025-06-glass-bottles-microplastics-plastic.html
1•XzetaU8•2m ago•0 comments

AI Expert for Kortix Suna AI Project

https://www.suna.so/
1•MeySon•3m ago•1 comments

The Ethical Compiler: Addressing the Is-Ought Gap in Compilation (PEPM 2025) [video]

https://www.youtube.com/watch?v=72w9c2fFxW8
1•matt_d•5m ago•1 comments

The AGI economy is coming faster than you think

https://www.freethink.com/artificial-intelligence/agi-economy
1•levlaz•7m ago•0 comments

It's time for California home prices to fall

https://www.ocregister.com/2025/06/20/its-time-for-california-home-prices-to-fall/
1•harambae•10m ago•0 comments

Of Course ML Has Monads (2011)

https://existentialtype.wordpress.com/2011/05/01/of-course-ml-has-monads/
2•Bogdanp•11m ago•0 comments

BYOK – Bring Your Own Keyboard

https://byok.io
2•kevinbluer•16m ago•0 comments

Have a heavy awkward metal sled delivered to you

https://sled.meteoscientific.com/
1•robputt•16m ago•0 comments

A Free Clone of Civilization Game – C-Evo

http://www.c-evo.org/
1•d_silin•20m ago•0 comments

Computer Science via Hip Hop [video]

https://www.youtube.com/watch?v=E31dkN1Lqzo
1•4b11b4•28m ago•1 comments

Show HN: AI based app building with browser containers

https://bunnies.build
1•dinwal•31m ago•0 comments

The Cult of Personality and Its Consequences

https://en.wikipedia.org/wiki/On_the_Cult_of_Personality_and_Its_Consequences
2•handfuloflight•37m ago•0 comments

Ask HN: How did you meet your co-founder?

1•kwar13•38m ago•1 comments

Ocarina of Time Randomizer

https://ootrandomizer.com/
1•nickswalker•48m ago•0 comments

Docs = Product = Marketing

https://jasongg.com/posts/20230302-docs-as-marketing/
2•jasong•49m ago•0 comments

Future of Work with AI Agents

https://futureofwork.saltlab.stanford.edu
1•nnx•51m ago•0 comments

Augmented Vertex Block Descent (AVBD)

https://graphics.cs.utah.edu/research/projects/avbd/
1•bobajeff•52m ago•0 comments

Ask HN: How would you design internet 2.0 to make it personal again?

1•frogperson•54m ago•2 comments

I Tried Browsing the Web Without CSS (2019)

https://css-tricks.com/that-time-i-tried-browsing-the-web-without-css/
1•pabs3•57m ago•2 comments

Nano-vLLM: A lightweight vLLM implementation built from scratch

https://github.com/GeeeekExplorer/nano-vllm
1•platers•59m ago•0 comments

Contextual: Scalable RAG Agents

https://contextual.ai/
2•handfuloflight•1h ago•0 comments

Ask HN: It's "software 3.0" time, why is community knowledge hidden in Discord?

3•consumer451•1h ago•5 comments

Rare Earths and China

https://tphuang.substack.com/p/rare-earth-and-china
1•decimalenough•1h ago•1 comments

PG&E power shutoffs start for parts of Northern California, outages expected

https://www.cbsnews.com/sacramento/news/pge-june-2025-public-safety-power-shutoffs-northern-california/
2•Alupis•1h ago•1 comments

Stealth Flying Wing Emerges at Secretive Chinese Base

https://www.twz.com/air/massive-chinese-stealth-flying-wing-emerges-at-secretive-base
6•Alupis•1h ago•0 comments

New SOTA Web Agent beats even Operator with human intervention

https://www.rtrvr.ai/blog/web-bench-results
2•arjunchint•1h ago•0 comments

Spellbook: Legal AI

https://www.spellbook.legal
1•handfuloflight•1h ago•0 comments

Samsung Embeds IronSource Spyware App on Phones Across WANA

https://smex.org/open-letter-to-samsung-end-forced-israeli-app-installations-in-the-wana-region/
95•the-anarchist•1h ago•41 comments

Commentario: Add comments to your web page or blog

https://comentario.app/en/
1•indigodaddy•1h ago•0 comments