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

State Department Cuts Price of Renouncing U.S. Citizenship to $450

https://www.nytimes.com/2026/03/15/us/us-citizenship-renounce-price-cut.html
2•vinni2•2m ago•0 comments

Show HN: What Is Your Face Worth in the Modeling Industry?

https://facemaxxing.vercel.app/
1•roozka10•3m ago•0 comments

Show HN: Whspe – We decomposed TTFB to build a real hosting quality score

1•gezginweb•3m ago•0 comments

Reddit Post 4

https://old.reddit.com/r/PisequaltoNP/comments/1rupoi7/practical_pnp_paper/
1•KaoruAK•4m ago•0 comments

Ghost Logits: Simulating missing partition mass in sampled softmax [pdf]

https://github.com/yousef-rafat/MaximusLLM/blob/main/docs/maxis.pdf
1•yousef_g•4m ago•0 comments

The Toyota 4Runner Trailhunter's Snorkel Isn't Even a Snorkel, So Be Careful

https://www.thedrive.com/news/the-toyota-4runner-trailhunters-snorkel-isnt-even-a-snorkel-so-be-c...
2•PaulHoule•5m ago•0 comments

UK Companies House security blunder leaves director data exposed

https://www.accountingweb.co.uk/tech/tech-pulse/companies-house-security-blunder-leaves-director-...
1•mmarian•5m ago•0 comments

Demos of 2025 from the Demoscene

https://laurent.le-brun.eu/blog/the-best-demos-of-2025-from-the-demoscene
2•laurentlb•6m ago•0 comments

Show HN: 3D Tic Tak Toe – More Challenging Then You Think

https://arthur-ficial.github.io/tictactoe-3d/
2•franze•8m ago•1 comments

LLMs can be absolutely exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
1•tjohnell•9m ago•0 comments

Show HN: A local-first genomic analysis toolkit

https://github.com/emrecolako/savior/
1•emre•9m ago•0 comments

BioNTech founders to depart, form new mRNA-focused company

https://www.statnews.com/2026/03/10/biontech-mrna-ugur-sahin-ozlem-tureci-depart-new-company/
1•brandonb•10m ago•0 comments

Claude-Code-Workflow – Orchestrate Multiple CLI Agents

https://github.com/catlog22/Claude-Code-Workflow
1•jeremyjh•10m ago•0 comments

ThoughtRAIL – A Multi-AI Thinkspace

https://thoughtrail.ai
1•codingnibble•13m ago•1 comments

you're getting rejected because you're lazy, not because you're unqualified

1•abadmos•13m ago•0 comments

. GotHub All the Things

https://x61.sh/log/2026/03/14032026191148-gothub.html
1•jnpnj•15m ago•1 comments

Framework 16 as a Server

https://nmm.ee/framework-16-as-a-server
1•askonomm•15m ago•0 comments

AI is helping choose targets in Iran war – now it's a target too

https://www.abc.net.au/news/2026-03-15/iran-war-ai-technology-data-centres/106443004
1•_kb•18m ago•0 comments

Show HN: Free SaaS churn and retention calculators

https://saucecode.co/tools/churn
1•robinweller•20m ago•0 comments

Continuum – GitHub Action that detects LLM drift in CI

https://github.com/Mofa1245/Continuum
1•Mofa1245•22m ago•0 comments

City Circles Quiz: guess a city and get them all within 500km

https://www.anita.garden/circles/
1•owodc•22m ago•0 comments

Why Do Engineers Wear a Ring?

https://alvinpane.com/essays/the-ring
4•alvinpane•23m ago•2 comments

Pywho – Python Environment Inspector

https://github.com/AhsanSheraz/pywho
1•ahsansheraz•23m ago•0 comments

What Trump Didn't Know About Iran

https://www.nytimes.com/2026/03/14/opinion/ezra-klein-podcast-ali-vaez.html
1•whack•25m ago•0 comments

Plotform – a booking and intake tool built specifically for tattoo artists

https://www.plotform.cc/
1•abdullah9•27m ago•0 comments

A Linux distribution designed to eliminate single points of failure

https://stagex.tools
1•wa008•27m ago•0 comments

Show HN: Pakkun – Vibeslop Git for ETL

https://github.com/sroerick/pakkun
1•sroerick•28m ago•1 comments

PulseMRR – Revenue analytics on 5,400 Stripe-verified startups

https://pulsemrr.app
1•4bdullatif•28m ago•1 comments

Is Office.eu a Scam?

https://blog.tomaszdunia.pl/officeeu-eng/
3•doener•29m ago•1 comments

The Science of Staging: Why the In-Between Is Where the Action Is

https://www.bassfinity.com/blog/pre-spawn-bass-reading-the-transition
1•jequals5•33m ago•0 comments