frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Google's Rust Style Guide

https://google.github.io/styleguide/rustguide.html
30•kaycebasques•54m ago

Comments

Thanemate•30m ago
Not trying to rain on someone's parade but, the only reason why would care about style guides nowadays is to feed them to our model of choice and let it do what it's supposed to be doing.

So it's not like I am willing to read through this and think to myself "I cannot wait to pick up some new ways of doing things". I'm the general to my agentic army now.

I guess you would code manually every now and then for your own enjoyment but at that point do you care about style guides written for scale?

gatlin•20m ago
Seems very much like your goal was to rain on a parade.
u1hcw9nx•18m ago
Not trying to rain on someone's parade, but the only reason I would care about HN comments nowadays is to feed them to my model of choice and let it generate the contrarian hot takes it's supposed to be generating. So it's not like I am willing to read through this thread and think to myself "I cannot wait to pick up some new ways of complaining about documentation." I'm the Editor-in-Chief to my synthetic pundit army now.

I guess you would type out a comment manually every now and then for your own enjoyment, but at that point do you really care about comments at scale?

---

EDIT (above is a joke) It's very important that every time you find something that is of no use to you, you write a comment explaining that this link is of no interest to you, discouraging people from things you have no interest in. Monoculture for all!

anonymous908213•17m ago
> I'm the general to my agentic army now.

What have you produced with your agentic army? Would you like to share with the class?

monocasa•15m ago
The point of style guides is to optimize for readability despite a cognitively diverse workforce coding in the same repos.

I would think they're probably even more meaningful in an agentic world.

Shitty generals can't review meaningfully review the work of their troops.

On top of that all, I just enjoy programming itself. It's less and less of the meat of a software job over time, but I was coding before I got paid for it, and I'll probably keep coding well after I can get paid for it.

smoe•14m ago
First paragraph: “includes guidance on API and implementation design”

It seems to me that if the intent is not just to produce code but also to operate it, having the different pieces behave in a similar, predictable way is kind of nice. Whether the software is written by AI or humans.

nimih•10m ago
I'm not sure I really agree with your main point (I think it's probably still important for LLM-generated code to be generally human-understandable, at least if you care about long-term maintainability), but setting that aside to answer this question:

> I guess you would code manually every now and then for your own enjoyment but at that point do you care about style guides written for scale?

I think they're still quite valuable in that case, for a couple reasons:

- When learning a new language (which happens much more frequently when writing code "for pleasure," as it were), "written for scale" guidelines still translate pretty well to "written for oneself" IME. At the very least, they tell you what to expect in code you read, and give you a reasonable starting point as you develop your own taste and stylistic preferences.

- I've noticed some open source projects beginning to institute anti-AI contribution guidelines, and such projects still benefit from codified style guides. Google obviously doesn't fall under this category themselves, but in other language ecosystems, their style guides tend to find use in OSS projects.

petersellers•10m ago
Are you saying that you don't ever look at the code once it's been generated?
yodsanklai•6m ago
This is what we do in my company, give the guidelines to the model. Unfortunately, the model isn't always following them and it's impossible to enforce them manually. There's too much code to review, the code is generally low quality, and is more often than not auto-approved by AI.

Unless you're working on your own project on which you have full control, or you have a strong authority figure in your company who cares about that, it's a lost battle.

It's sad for anyone who love their craft, but tbh I'm not even sure it matters anymore for most projects.

oddCopper65•18m ago
The enum-over-bool rule is the one I'd keep even solo, saved me a reversed flag in a cert validator once.
sebastianconcpt•5m ago
This is a sub-case of the general one that is narrowing the interpretation of things. A big infinite amount of things can be true or false, only one can be a Rust variant.
petcat•10m ago
At this point, is anybody writing new C or C++? It seems like they are sunset languages even at the big corps.
icase•9m ago
grownups with important jobs write C
tkz1312•7m ago
I've been extracting a lot of verified C from theorem provers recently.
neutronicus•4m ago
C++ seems alive and well in the defense space. The big contractors near me have tons of C++ job postings and I don't think I've seen a single one looking for Rust.
icase•9m ago
no amount of stylistic heterogeneity can make this awful language pleasant
sebastianconcpt•3m ago
The good emotions come with the confidence in the engineering quality that it gives you as output (once you overcome the friction, which AI can help you big time to achieve).
monocasa•6m ago
Can anyone expand on the chromium specifc guidelines on super tiny crates, particularly no nesting of modules/source files?

That feels like the ~2010 era of people saying that functions should be as small as possible. That lead me to reviewing a lot of code where every function was one or two lines and you couldn't actually see what was going on anymore through the layers of unneeded abstraction.

I want to give chrome the benefit of the doubt, but that seems really goofy.

CDC Ignored Request from States to Validate a New Measles Test

https://www.nytimes.com/2026/10/21/health/measles-test-cdc.html
1•gumby•1m ago•0 comments

Show HN: Twigg Links – go/ links defined in a file in your repo

https://twigg.vc/docs/v/2/blog/twigg-links
1•mark-glue•3m ago•0 comments

Who's Winning AI, a live scoreboard for the AI race

https://whoswinningai.com/
1•mielve•4m ago•1 comments

Ford to City: Drop Dead

https://en.wikipedia.org/wiki/Ford_to_City:_Drop_Dead
1•bryanrasmussen•5m ago•0 comments

4.7% of Open Source Projects Have One or Two Maintainers

https://hagen.rip/articles/4.7%25%20of%20Critical%20Open%20Source%20Projects%20Have%20One%20or%20...
1•APoorStudent•5m ago•0 comments

AI Early adopters share their views on AI status

https://automato.substack.com/p/where-is-ai-heading-in-october-2026
1•josmor•5m ago•0 comments

NOAA fabricates data for more than 30% of the 1,218 stations that dont exist

https://wattsupwiththat.com/2024/04/12/hidden-behind-climate-policies-data-from-nonexistent-tempe...
1•bilsbie•6m ago•0 comments

Multicore TypeScript, Inspired by Rust's Rayon

https://geastack.com/blog-parallel-typescript
1•arbayi•7m ago•0 comments

Do minor curl vulnerabilities in the open

https://daniel.haxx.se/blog/2026/10/20/do-minor-curl-vulnerabilities-in-the-open/
1•birdculture•7m ago•0 comments

AI Portability in 2026: Breaking Up Is Hard to Do

https://peckjon.substack.com/p/ai-portability-in-2026
1•peckjon•8m ago•0 comments

The AI-Hacking Apocalypse Began Last Night

https://www.theatlantic.com/technology/2026/10/ai-hacking-apocalypse-began-last-night/689106/
2•zzzeek•10m ago•0 comments

Tinder Reverse Engineered

https://twitter.com/TheDonAyo/status/2112591782857109809
1•mrkn1•14m ago•0 comments

Ollama flint requires 0.40.8 but most recent is 0.40.7

1•roscas•15m ago•0 comments

Show HN: Yantra – Interactive step-by-step diagrams as one offline HTML file

https://github.com/niyankhadka/yantra
1•niyankhadka•17m ago•0 comments

Developers Are Dumbing Down Their Smart TVs

https://www.extremetech.com/electronics/developers-are-dumbing-down-their-smart-tvs
2•speckx•18m ago•2 comments

NPWS ask for vigilance after red kite poisoning in Carlow

https://www.rte.ie/news/regional/2026/1021/1596338-red-kite-carlow/
1•austinallegro•19m ago•0 comments

After automation: Solo founding will be the default

https://every.to/thesis-statements/julian-weisser
3•rmason•21m ago•1 comments

Ask HN: Caution on using AI security platforms for repositories.

1•BehanPrW•22m ago•0 comments

Claude Duet

https://claude.com/resources/articles/claude-duet
5•zaevlad•25m ago•2 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
1•mooreds•26m ago•1 comments

Research Preview of Claude Duet

https://twitter.com/claudeai/status/2112984664256241837
1•davidgomes•26m ago•1 comments

How to Fix PHP2Shell (CVE-2026-109618 and CVE-2026-109619)

https://containersecurity.dev/blog/how-to-fix-php2shell
1•aerabi•28m ago•0 comments

Vulnerabilities in PHP Affecting Cisco Products: October 2026

https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-php-octobe...
1•speckx•28m ago•0 comments

4 Wheel Steering Is a Nightmare

https://simulation.michelin.com/canopy/technical-articles/4-wheel-steering-is-a-nightmare
1•shpx•30m ago•0 comments

iPhone Duo Review with CT scan [video]

https://www.youtube.com/watch?v=o1qc29t04GI
1•tekacs•31m ago•0 comments

Plex laid off the whole player team

https://forums.plex.tv/t/2026-20-0-beta-ios-and-tvos-4k-dovi-hdr10-won-t-play-infinite-spinning-c...
42•zzyzxd•34m ago•19 comments

Ask HN: How will programming language design change as more code comes from AI?

2•pelican0•34m ago•0 comments

LLM-D 1.0 Takes Open-Source Kubernetes AI Inference into Production

https://techstrong.ai/ai-infrastructure/llm-d-1-0-takes-open-source-kubernetes-ai-inference-into-...
2•CrankyBear•34m ago•0 comments

Show HN: Is there a YC advantage for sales?

https://elegant-chebakia-7aee64.netlify.app/
1•30minAdayHN•35m ago•0 comments

A story of a Figma bug that wasn't a bug at all (2021)

https://aresluna.org/this-is-a-story-of-a-figma-bug/
1•jllyhill•35m ago•0 comments