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

Nano Banana Pro-Studio-Quality AI Image GeneratorNano Banana Pro

https://bananapro.pro/
1•guowuzong•42s ago•1 comments

Alternatives to MinIO for single-node local S3

https://rmoff.net/2026/01/14/alternatives-to-minio-for-single-node-local-s3/
1•birdculture•1m ago•0 comments

One can mock the righteous, but Google won't index it

https://philip.greenspun.com/blog/2026/01/17/one-can-mock-the-righteous-but-google-wont-index-it/
1•mhb•1m ago•0 comments

Corporate Governance Authoritarianism

https://www.businesslawprofessors.com/2026/01/corporate-governance-authoritarianism/
1•_delirium•6m ago•0 comments

ComfyUI – Overview

https://docs.comfy.org/development/overview
1•eustoria•6m ago•0 comments

The Malloc Maleficarum (2005)

https://seclists.org/bugtraq/2005/Oct/118
1•todsacerdoti•6m ago•0 comments

The thing that brought me joy

https://www.stephenlewis.me/blog/the-thing-that-brought-me-joy/
1•monooso•7m ago•0 comments

From culinary dud to stud: how Dutch plant breeders built a brussels sprouts boo

https://www.npr.org/sections/thesalt/2019/10/30/773457637/from-culinary-dud-to-stud-how-dutch-pla...
2•fanf2•8m ago•0 comments

U.S. Habits That Shock the Rest of the World

https://www.buzzfeed.com/jennaguillaume/strange-american-customs
2•eustoria•8m ago•0 comments

How Computers Work

https://www.aweineverything.com/how-computers-work/
1•tadaspetra•9m ago•0 comments

The crisis whisperer: how Adam Tooze makes sense of our bewildering age

https://www.theguardian.com/business/2026/jan/15/the-crisis-whisperer-how-adam-tooze-makes-sense-...
3•hackandthink•12m ago•0 comments

Facing the Paradox of Software Visualization

https://dundalek.com/entropic/softviz-paradox/
1•vitalnodo•12m ago•0 comments

Darwin Core

https://en.wikipedia.org/wiki/Darwin_Core
1•tosh•12m ago•0 comments

Musk seeks up to $134B from OpenAI and Microsoft in 'wrongful gains'

https://www.cnbc.com/2026/01/17/musk-lawsuit-opena-microsoft.html
2•dhfbshfbu4u3•14m ago•0 comments

Show HN: Xarticles – Browse X articles by category

https://xarticles.io/
1•vierj•19m ago•0 comments

FreeBSD 15.1 Aims to Have KDE Desktop Installer Option

https://www.phoronix.com/news/FreeBSD-15.1-KDE-Desktop-Option
2•mikece•19m ago•0 comments

Raising money fucked me up

https://blog.yakkomajuri.com/blog/raising-money-fucked-me-up
2•yakkomajuri•21m ago•0 comments

AWS databases now live on Vercel Marketplace and v0

https://vercel.com/blog/aws-databases-are-now-live-on-the-vercel-marketplace-and-v0
1•braebo•21m ago•0 comments

Show HN: Interactive timeline of US Military bases and interventions, 1900–today

https://metaphorician.com/american-empire
1•metaphorician•22m ago•0 comments

QucsStudio: A free and powerful circuit simulator

https://qucsstudio.de/
1•teleforce•22m ago•0 comments

I Used Claude to Build a Transcription Bot That Learns from Its Mistakes

https://www.macstories.net/stories/how-i-used-claude-to-build-a-transcription-bot-that-learns-fro...
2•tosh•23m ago•0 comments

Reverse Engineering a Biometric Attendance Machine

https://www.onlydarshan.com/posts/first_blog
2•leon3rd•24m ago•0 comments

ICML Experimental Program Using Google's Paper Assistant Tool (PAT)

https://blog.icml.cc/2026/01/14/icml-experimental-program-using-googles-paper-assistant-tool-pat/
1•fahrbach•25m ago•0 comments

Show HN: Upseated – Swap airplane seats with other passengers

https://upseated.com/
1•ndshrubs•25m ago•1 comments

Automation Isn't Innovation

3•geroge_kyaw•30m ago•0 comments

Writes vs. Talks About Software

https://substack.com/inbox/post/184880745
3•markferree•30m ago•0 comments

Trump vows tariffs on eight European nations over Greenland

https://www.reuters.com/world/europe/trump-vows-tariffs-eight-european-nations-over-greenland-202...
4•TechTechTech•32m ago•0 comments

My free biohacking database with AI matching turns 1

https://dopamine.club/
2•ainthusiast•36m ago•1 comments

Worse Than the Dot Com Bubble

https://www.wheresyoured.at/dot-com-bubble/
2•abhi_kr•36m ago•1 comments

Ask HN: Best book(s) to learn Assembly as a first language

1•abkt•36m ago•0 comments