frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•8mo ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•8mo ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•8mo ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•8mo ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•8mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Challenger: The disaster five people saw coming

https://www.abc.net.au/news/science/2026-01-28/space-shuttle-challenger-disaster-nasa-explosion-v...
1•Brajeshwar•45s ago•0 comments

A Lesson in Coexistence

https://aeon.co/essays/lessons-in-pluralism-from-a-17th-century-african-town
1•Brajeshwar•1m ago•0 comments

Drawings of the elements of CMS detector, in the style of Leonardo da Vinci

https://cds.cern.ch/record/1157741/
1•nill0•1m ago•0 comments

Tiny sensor could transform head injury detection

https://medicalxpress.com/news/2026-01-tiny-sensor-injury.html
1•PaulHoule•1m ago•0 comments

Modernizing Virginia's Court Notification System to Reduce Failures to Appear

https://www.rstreet.org/commentary/modernizing-virginias-court-notification-system-to-reduce-fail...
1•hn_acker•3m ago•0 comments

Ask HN: Can a MMO be vibe coded?

1•radicalethics•4m ago•0 comments

Trump claims secret 'discombobulator' weapon was used to help capture Maduro

https://www.msn.com/en-us/news/world/trump-claims-secret-discombobulator-weapon-was-used-to-help-...
1•zaikunzhang•4m ago•0 comments

Show HN: EloLup – where a reaction interface became a way to consume content

https://elolup.com/
1•Strugly•5m ago•0 comments

Show HN: Simple, elegant, beautiful HTTP error status pages [CSS only]

https://github.com/AntiKippi/errorpages
1•AntiKippi•6m ago•0 comments

Slopcraft and the LLM Society

https://habla.news/hodlbod/tools-for-anti-conviviality
2•jonstaab•7m ago•0 comments

Show HN: We built a cheaper, simpler 24/7 proactive agent than moltbot

https://memu.bot/
1•k_kiki•7m ago•0 comments

Show HN: Prefill – Partial application for React components

https://www.xoid.dev/blog/introducing-prefill
1•onurkerimov•8m ago•1 comments

Show HN: Universal DeepSeek OCR 2 – CPU, MPS, CUDA Support

https://github.com/Dogacel/Universal-DeepSeek-OCR-2
1•dogacel•8m ago•0 comments

A Scheme Primer (2025)

https://files.spritely.institute/papers/scheme-primer.html
1•thomasjb•9m ago•0 comments

Show HN: We built a type-safe Python ORM for RedisGraph/FalkorDB

2•hello-tmst•9m ago•0 comments

Controlling your (personal) data with a Solid-based data vault is reality (2025)

https://medium.com/ing-blog/controlling-your-personal-data-with-a-solid-based-data-vault-is-reali...
1•terespuwash•11m ago•1 comments

Dole Kemp 96 Web Site

https://www.dolekemp96.org/main.htm
11•DamnInteresting•11m ago•1 comments

We Found 5 Ways to Hack Any Developer Using Google Gemini CLI

https://twitter.com/Zaddyzaddy/status/2016532572650733820
1•zaddyzaddy•14m ago•0 comments

Removing analytics from all my sites

https://baty.net/posts/2026/01/removing-analytics-from-baty-net/
2•tolerance•16m ago•0 comments

Linux kernel community has a contingency plan to replace Linus Torvalds

https://github.com/torvalds/linux/commit/102606402f4f5943266160e263c450fdfe4dd981
2•speckx•17m ago•1 comments

Show HN: BarrierX: Win back lost enterprise deals by analyzing that others close

https://barrierx.ai/
1•IAMsterdam•17m ago•0 comments

Software Has Its Lean Manufacturing Moment

https://mediansofproduction.substack.com/p/software-has-its-lean-manufacturing
1•arcsincosin•17m ago•1 comments

Principles for Human-Rights Centred Application of the DSA: A Global Perspective

https://www.eff.org/document/principles-human-rights-centred-application-dsa-global-perspective
2•hn_acker•18m ago•1 comments

Excessive Bold

https://martinfowler.com/bliki/ExcessiveBold.html
1•TangerineDream•18m ago•1 comments

Ukraine says more than 80% of enemy targets now destroyed by drones

https://www.defensenews.com/global/europe/2026/01/28/ukraine-says-more-than-80-of-enemy-targets-n...
10•Geonode•19m ago•0 comments

Clawdbot and the Era of AI in a Box

https://www.hadijaveed.me/2026/01/28/clawdbot-beyond-the-hype/
1•hjaveed•21m ago•1 comments

NetNewsWire 7.0

https://netnewswire.blog/2026/01/27/netnewswire-for-mac.html
1•petecooper•22m ago•0 comments

China lags behind US at AI frontier but could quickly catch up, say experts

https://www.theguardian.com/world/2026/jan/28/china-lags-behind-us-at-ai-frontier-but-could-quick...
1•c420•23m ago•0 comments

Show HN: A tiny typing game to keep your fingers moving

https://chaart.itch.io/typestraw
2•the_real_tjaart•23m ago•0 comments

Namebase Has Been Acquired

https://twitter.com/NamebaseHQ/status/2015465500126412988
1•tosh•23m ago•0 comments