frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Concept Artists Say Generative AI References Only Make Their Jobs Harder

https://thisweekinvideogames.com/feature/concept-artists-in-games-say-generative-ai-references-on...
1•KittenInABox•1m ago•0 comments

Show HN: PaySentry – Open-source control plane for AI agent payments

https://github.com/mkmkkkkk/paysentry
1•mkyang•3m ago•0 comments

Show HN: Moli P2P – An ephemeral, serverless image gallery (Rust and WebRTC)

https://moli-green.is/
1•ShinyaKoyano•13m ago•0 comments

The Crumbling Workflow Moat: Aggregation Theory's Final Chapter

https://twitter.com/nicbstme/status/2019149771706102022
1•SubiculumCode•17m ago•0 comments

Pax Historia – User and AI powered gaming platform

https://www.ycombinator.com/launches/PMu-pax-historia-user-ai-powered-gaming-platform
2•Osiris30•18m ago•0 comments

Show HN: I built a RAG engine to search Singaporean laws

https://github.com/adityaprasad-sudo/Explore-Singapore
1•ambitious_potat•24m ago•0 comments

Scams, Fraud, and Fake Apps: How to Protect Your Money in a Mobile-First Economy

https://blog.afrowallet.co/en_GB/tiers-app/scams-fraud-and-fake-apps-in-africa
1•jonatask•24m ago•0 comments

Porting Doom to My WebAssembly VM

https://irreducible.io/blog/porting-doom-to-wasm/
1•irreducible•24m ago•0 comments

Cognitive Style and Visual Attention in Multimodal Museum Exhibitions

https://www.mdpi.com/2075-5309/15/16/2968
1•rbanffy•26m ago•0 comments

Full-Blown Cross-Assembler in a Bash Script

https://hackaday.com/2026/02/06/full-blown-cross-assembler-in-a-bash-script/
1•grajmanu•31m ago•0 comments

Logic Puzzles: Why the Liar Is the Helpful One

https://blog.szczepan.org/blog/knights-and-knaves/
1•wasabi991011•42m ago•0 comments

Optical Combs Help Radio Telescopes Work Together

https://hackaday.com/2026/02/03/optical-combs-help-radio-telescopes-work-together/
2•toomuchtodo•47m ago•1 comments

Show HN: Myanon – fast, deterministic MySQL dump anonymizer

https://github.com/ppomes/myanon
1•pierrepomes•53m ago•0 comments

The Tao of Programming

http://www.canonical.org/~kragen/tao-of-programming.html
1•alexjplant•55m ago•0 comments

Forcing Rust: How Big Tech Lobbied the Government into a Language Mandate

https://medium.com/@ognian.milanov/forcing-rust-how-big-tech-lobbied-the-government-into-a-langua...
3•akagusu•55m ago•0 comments

PanelBench: We evaluated Cursor's Visual Editor on 89 test cases. 43 fail

https://www.tryinspector.com/blog/code-first-design-tools
2•quentinrl•57m ago•2 comments

Can You Draw Every Flag in PowerPoint? (Part 2) [video]

https://www.youtube.com/watch?v=BztF7MODsKI
1•fgclue•1h ago•0 comments

Show HN: MCP-baepsae – MCP server for iOS Simulator automation

https://github.com/oozoofrog/mcp-baepsae
1•oozoofrog•1h ago•0 comments

Make Trust Irrelevant: A Gamer's Take on Agentic AI Safety

https://github.com/Deso-PK/make-trust-irrelevant
7•DesoPK•1h ago•3 comments

Show HN: Sem – Semantic diffs and patches for Git

https://ataraxy-labs.github.io/sem/
1•rs545837•1h ago•1 comments

Hello world does not compile

https://github.com/anthropics/claudes-c-compiler/issues/1
35•mfiguiere•1h ago•20 comments

Show HN: ZigZag – A Bubble Tea-Inspired TUI Framework for Zig

https://github.com/meszmate/zigzag
3•meszmate•1h ago•0 comments

Metaphor+Metonymy: "To love that well which thou must leave ere long"(Sonnet73)

https://www.huckgutman.com/blog-1/shakespeare-sonnet-73
1•gsf_emergency_6•1h ago•0 comments

Show HN: Django N+1 Queries Checker

https://github.com/richardhapb/django-check
1•richardhapb•1h ago•1 comments

Emacs-tramp-RPC: High-performance TRAMP back end using JSON-RPC instead of shell

https://github.com/ArthurHeymans/emacs-tramp-rpc
1•todsacerdoti•1h ago•0 comments

Protocol Validation with Affine MPST in Rust

https://hibanaworks.dev
1•o8vm•1h ago•1 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
5•gmays•1h ago•0 comments

Show HN: Zest – A hands-on simulator for Staff+ system design scenarios

https://staff-engineering-simulator-880284904082.us-west1.run.app/
1•chanip0114•1h ago•1 comments

Show HN: DeSync – Decentralized Economic Realm with Blockchain-Based Governance

https://github.com/MelzLabs/DeSync
1•0xUnavailable•1h ago•0 comments

Automatic Programming Returns

https://cyber-omelette.com/posts/the-abstraction-rises.html
1•benrules2•1h ago•1 comments
Open in hackernews

Ask HN: What docstring format do you prefer?

1•RS-232•4mo ago
Curious what you all are using for docstrings and your thoughts on Python doc tooling.

I personally like the brevity of typeless reStructuredText, but I see a lot of folks using Google.

Comments

stop50•4mo ago
I like the googlestyle with typehints a lot.
zahlman•4mo ago
This will probably be a minority view, but I actually usually prefer to avoid docstrings. Basically: documentation is for users, comments are for developers, so docstrings are in the wrong place. For a long time I've felt that they're an ill-considered "Although practicality beats purity" convenience, and I'm growing more convinced of this over time. Of course documentation is important, but I would rather write it separately.

* They create the temptation to go function by function to describe the interface. This can be the wrong choice even in reference documentation. For example, information about how to construct an instance of a complex class is probably better put in the class documentation itself, rather than split across documentation for `__init__` and for various "factory" class methods. In general, documenting dunders directly feels a bit weird, because they are typically part of the "public interface" but still not meant to be called directly. I don't want to explain how to use `__add__`; I want to explain what expressions can be used involving `+`.

* Speaking of explanation: docstrings really aren't a place where the other essential forms of documentation (as described in the Diataxis model — https://diataxis.fr/) can fit. Therefore, thinking of documentation as "the thing you put in the docstrings" trains you to write incomplete documentation.

* They normalize using no-effect string literals, which trains you to abuse that instead of writing proper block comments.

* In my experience, quite a lot of code written by others ends up using docstrings to "document" things that aren't actually intended to be part of the public interface. (This is perhaps a consequence of the previous point.)

* They spread out the code and mess with my mental context window. Yes, you can set up things like https://github.com/yhat/vim-docstring to hide them. I still find it a significant speed bump. Might have to do with my coding style.

* Tooling like Sphinx reads external files anyway. Yes, with a docstring the tooling can in principle verify that the parameter descriptions correspond to the actual parameters, and/or automatically generate a description of the signature. Those things are also possible by just explaining in the external file which function is being documented. For that matter, in principle, external tooling could set `__doc__` attributes at runtime. I'm not aware of any that do, but it's a project I've thought of.

* By default, docstrings end up in the compiled bytecode (since the code could inspect them at runtime). Comments don't. So you effectively ship two copies of that text (that isn't related to program correctness) to end users, who will probably get that information from your online documentation anyway. (Or from a third copy in "generated" documentation provided with the distribution.)