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•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

China's Edge in an Oil Shock: Electric Cars and Renewables

https://www.nytimes.com/2026/03/14/business/china-oil-cars.html
1•doener•2m ago•0 comments

$ABSURD – a meme coin built on one idea: everything stopped making sense

https://pump.fun/coin/Gt4w8KVwy7aPztiUm27YwsQgchzbS3srK8JYNpTpump
1•AbsurdCoin•4m ago•0 comments

React Quizzes for Preparing Interviews

https://www.reactchallenges.com/quizzes
1•DuffmanCC•10m ago•0 comments

You've got the LLMs to code, now you need the glue

https://codin.ro/youve-got-the-llms-to-code-now-you-need-the-glue-1-n/
2•CodinM•11m ago•0 comments

Spain's PM calls for end to UNSC veto power, criticises US over global conflicts

https://tribune.com.pk/story/2597072/spains-pm-calls-for-end-to-unsc-veto-power-criticises-us-ove...
1•vrganj•12m ago•0 comments

Show HN: I built a card-based eldritch IT support game in React

https://dadbodgames.itch.io/it-never-ends/devlog/1388428/building-a-system-for-the-absurd-why-it-...
1•euphoric_series•14m ago•0 comments

Jeff Bezos Upended the Washington Post

https://www.nytimes.com/2026/03/14/business/media/washington-post-jeff-bezos-layoffs.html
2•doener•14m ago•1 comments

Ronin – A Security Toolkit

https://ronin-rb.dev
1•Alifatisk•19m ago•0 comments

RAM kits are now sold with one fake RAM stick alongside a real one

https://www.tomshardware.com/pc-components/ram/fake-ram-bundled-with-real-ram-to-create-a-perform...
2•edward•21m ago•0 comments

"I've spent so many hours wasted on plugins"

https://www.musicradar.com/artists/ive-spent-so-many-thousands-of-hours-wasted-on-plugins-it-just...
1•latexr•21m ago•0 comments

Living with Jagged ASI

https://langkilde.se/blog/living-with-asi/
1•langkilde•23m ago•0 comments

Show HN: Colota – Open-source, self-hosted GPS tracker for Android

https://github.com/dietrichmax/colota
1•daturbod•26m ago•2 comments

Michael Burry worries about "structural manipulation" of Nasdaq-100 for SpaceX

https://twitter.com/michaeljburry/status/2032483200404992209
2•adrianmsmith•26m ago•0 comments

I built a free automation engineering calculator library

https://automationcalculators.net/
1•jacolotti•26m ago•0 comments

Two long-lost episodes of 'Doctor Who' have been found

https://www.nbcphiladelphia.com/entertainment/entertainment-news/two-long-lost-episodes-doctor-wh...
1•breve•29m ago•0 comments

UCP Protocol: The Internet Has 100M Shops and No Front Door

https://askucp.com/blog
2•defencetechhn•32m ago•0 comments

Show HN: Prove your SaaS isn't abandonware to boost checkout trust

https://www.gitpulse.dev/
1•bombashell•34m ago•3 comments

Memory should decay. I've gotten pretty good at this with age

https://stackresearch.org/blog/memory-should-decay/
2•dnmacon•42m ago•0 comments

America and Israel built military targeting machines

https://www.economist.com/international/2026/03/11/how-america-and-israel-built-vast-military-tar...
2•edward•42m ago•0 comments

Show HN: AgentArmor – open-source 8-layer security framework for AI agents

https://github.com/Agastya910/agentarmor
2•AgastyaTodi•42m ago•1 comments

I prompt-injected a bot on social media to complain about Jira

https://bsky.app/profile/sheep-cat.bsky.social/post/3mgxjskxyj224
1•chadders13•45m ago•0 comments

The Lord of the Rings: an allegory of the PhD? (2003)

http://danny.oz.au/danny/humour/phd_lotr.html
1•stared•47m ago•0 comments

Building an AI startup in Bristol while working a regular job

https://www.indiehackers.com/post/building-an-ai-startup-in-bristol-while-working-a-regular-job-b...
1•nyataai•48m ago•0 comments

Mathematics Distillation Challenge – Equational Theories

https://terrytao.wordpress.com/2026/03/13/mathematics-distillation-challenge-equational-theories/
3•picafrost•48m ago•0 comments

Ask HN: When I submit my "Show HN" still toonew?

1•krishSingaria•56m ago•3 comments

The debt beneath the AI build out

https://om.co/2026/03/09/the-debt-beneath-the-dream/
3•rwmj•58m ago•0 comments

ChinaDocs – Official Government Documents of the People's Republic of China

https://www.chinadocs.org/
2•dluan•1h ago•0 comments

Starlink Militarization and Its Impact on Global Strategic Stability

https://interpret.csis.org/translations/starlink-militarization-and-its-impact-on-global-strategi...
3•msuniverse2026•1h ago•1 comments

Claude Code: 32K issues, 49% bot-closed – one bug cluster's lifecycle

https://gist.github.com/azkore/934e5387579efb17e1080402efedf13d
2•azcore•1h ago•1 comments

Ask HN: Is Another Editor Needed?

2•gethly•1h ago•1 comments