frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Use keyword-only arguments in Python dataclasses

https://chipx86.blog/2025/06/29/tip-use-keyword-only-arguments-in-python-dataclasses/
17•Bogdanp•4h ago

Comments

flakes•1h ago
You could argue the same thing (forcing kwargs) for all Python functions/methods, although, that would make using your APIs very annoying. The `__init__` method for dataclasses are just another method like any other.

As a general rule of thumb, I only start forcing kwargs once I'm looking at above 4-5 arguments, or if the arguments are similar enough that forcing kwargs makes the calling code more readable. For a small number of distinct arguments, forcing kwargs as a blanket rule makes the code verbose for little gain IMO.

masklinn•2m ago
> You could argue the same thing (forcing kwargs) for all Python functions/methods, although, that would make using your APIs very annoying. The `__init__` method for dataclasses are just another method like any other.

While that is self evident at a technical level, it is not quite so from a clarity / documentary perspective: “normal” functions and methods can often hint at their parameters through their naming but it is uncommon for types, for which the composite tends to be much more of an implementation detail (of course neither rule is universal e.g. the composite is of prime importance for newtypes, and indeed they often use tuple-style types or have special support with no member names).

Radioactive Bling: The Atomic "Bomb" Ring from KiX

https://globaltoynews.com/2022/06/24/radioactive-bling-the-atomic-bomb-ring-from-kix/
1•thunderbong•13m ago•0 comments

It took 45 years but spreadsheet legend Mitch Kapor finally got his MIT degree

https://www.bostonglobe.com/2025/06/24/business/mitch-kapor-mit-degree-bill-aulet/
1•jnord•13m ago•0 comments

Development Containers

https://containers.dev/
1•ingve•14m ago•0 comments

2025 State of Foundation Models [video]

https://www.youtube.com/watch?v=RwaLaDtTqag
1•simonebrunozzi•18m ago•0 comments

LetsEncrypt – Expiration Notification Service Has Ended

https://letsencrypt.org/2025/06/26/expiration-notification-service-has-ended/
2•zdw•22m ago•1 comments

The Cubic Kilometer Problem

https://fromtheprism.com/cubic-kilometer-problem.html
1•voxx-ai•23m ago•0 comments

Bought an Ampere Altra System

https://marcin.juszkiewicz.com.pl/2025/06/27/bought-myself-an-ampere-altra-system/
2•pabs3•32m ago•0 comments

Wellsaid Review

https://coquitts.com/blog/wellsaid-review
1•kamatour•37m ago•0 comments

Thank You Apple (WWDC25)

https://jhan.bearblog.dev/thank-you-apple-wwdc25/
1•logistra•38m ago•1 comments

Silicon Valley Insider Exposes Cult Like AI Companies [video]

https://www.youtube.com/watch?v=8enXRDlWguU
2•mgh2•39m ago•1 comments

Bring Me Problems

https://codingfearlessly.com/bring-me-problems
1•mmozuras•41m ago•0 comments

Listen to RFC 2119

https://ericwbailey.website/published/you-must-listen-to-rfc-2119/
1•srijan4•42m ago•0 comments

The Traditional Prinner

https://essaysonmusic.com/the-traditional-prinner/
1•brudgers•57m ago•0 comments

The Basics of Closed Jar Terrariums

https://www.instructables.com/The-Basics-of-Closed-Jar-Terrariums/
1•langur•1h ago•1 comments

Something 'deeper' than Emacs, or am I looking for a unicorn?

3•willschetelich•1h ago•2 comments

Make GIFs engage a new audience

https://www.itsnicethat.com/articles/flow-creative-met-office-giphy-weather-christopher-cumulonimbus-animation-project-120924
2•timetodine17•1h ago•0 comments

The Decline of Legacy Media, Rise of Vodcasters, and X's Staying Power

https://www.conspicuouscognition.com/p/the-decline-of-legacy-media-rise
3•skmurphy•1h ago•1 comments

Show HN: Cheesy Mamas: Local only code editor with Git and Bash support

https://osf.io/5xs9a/?view_only=66fd58eb0ace40ec91b98736af4ad62c
4•LambriniWorks•1h ago•0 comments

Wireless earbud company Nuheara enters administration

https://7news.com.au/news/wireless-earbud-company-nuheara-enters-voluntary-administration--c-15629962
1•KnuthIsGod•1h ago•0 comments

Is Geo Replacing SEO?

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

Ask HN: How did low contrast text become so pervasive?

4•mr-pink•1h ago•3 comments

Gridfinity: The modular, open-source grid storage system

https://gridfinity.xyz/
12•nateb2022•1h ago•1 comments

Rust success story that killed Rust usage in a company

https://old.reddit.com/r/rust/comments/1kp74t2/rust_success_story_that_killed_rust_usage_in_a/
1•scapbi•1h ago•0 comments

Seagull hitches ride on a garbage truck for 80 miles to find food

https://www.axios.com/local/san-francisco/2025/06/04/hitchhiking-seagulls-san-francisco-climate-change
3•greesil•1h ago•2 comments

British F-35 jet stranded at Indian airport, concerns over classified tech

https://www.independent.co.uk/asia/india/f35-stealth-fighter-jets-emergency-landing-kerala-b2776413.html
3•cebert•1h ago•0 comments

Show HN: Natural Language Sprite Animator

https://gametorch.app/sprite-animator
1•gametorch•1h ago•0 comments

Is AI the End of Dating Apps?

https://www.psychologytoday.com/us/blog/dating-in-the-digital-age/202506/is-ai-the-end-of-dating-apps
2•geox•1h ago•1 comments

Marijuana dramatically increases risk of dying from heart attacks and stroke

https://www.cnn.com/2025/06/17/health/marijuana-heart-death-wellness
3•josephcsible•1h ago•1 comments

Blue Origin successfully completes 13th crewed suborbital flight

https://abcnews.go.com/US/blue-origin-successfully-completes-13th-crewed-suborbital-flight/story?id=123320375
2•Bluestein•1h ago•0 comments

Integrating with ClickHouse MCP

https://clickhouse.com/blog/integrating-clickhouse-mcp
1•tzury•1h ago•0 comments