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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: LinkedRecords – A Server-Sovereign Alternative to Firebase

https://linkedrecords.com/
1•WolfOliver•2m ago•0 comments

Django ORM Standalone⁽¹⁾: Querying an existing database

https://www.paulox.net/2026/02/20/django-orm-standalone-database-inspectdb-query/
1•pauloxnet•4m ago•0 comments

Gentoo Linux moves away from GitHub due to AI

https://www.pcgamer.com/software/linux/after-microsoft-couldnt-keep-its-ai-hands-to-itself-a-noto...
1•majkinetor•6m ago•0 comments

Nvidia and OpenAI abandon unfinished $100B deal in favour of $30B investment

https://www.ft.com/content/dea24046-0a73-40b2-8246-5ac7b7a54323
4•zerosizedweasle•9m ago•0 comments

Show HN: Geo-lint – open-source linter for GEO (AI search visibility)

https://github.com/IJONIS/geo-lint
1•ijonis•9m ago•1 comments

The battle over Scott Adams' AI afterlife

https://www.businessinsider.com/scott-adams-death-ai-avatar-resurrection-ethics-debate-family-bac...
2•pseudolus•10m ago•1 comments

Sounds in the city: on the utility of acoustic landmarks

https://www.tandfonline.com/doi/full/10.1080/13658816.2026.2617940
1•thinkingemote•13m ago•0 comments

Show HN: E-Rechnung Push – E-Invoicing for German SMBs (ZUGFeRD/XRechnung)

https://e-rechnung-push.de
1•Contenagent•13m ago•0 comments

IR³Pidgins – Universal Language via Pure Flux

https://bitcoin-zero-down-2ea152.gitlab.io/gallery/gallery-item-neg-895/
1•machardmachard•13m ago•2 comments

The Existence and Behavior of Secondary Attention Sinks

https://arxiv.org/abs/2512.22213
1•thw20•13m ago•0 comments

Show HN: OkaiDokai, tool-level firewall for OpenClaw, Claude Code and Codex

https://okaidokai.com
1•cedel2k1•16m ago•0 comments

A Bug Is a Bug, but a Patch Is a Policy: The Case for Bootable Containers

https://tuananh.net/2026/02/20/patch-is-policy/
1•tuananh•17m ago•0 comments

Postgres for analytics: these are the ways

https://www.justpostgres.tech/blog/postgres-for-analytics
1•magden•18m ago•0 comments

Investigating Climate Change Adaptation

https://kit.exposingtheinvisible.org/en/climate-change-adaptation.html
2•Anon84•19m ago•0 comments

Show HN: From Clawdbot to OpenAI: Dissecting the supply chain that sold out

https://the-mind-of-ai.com/posts/openclaw-necropsy/
1•agentic-wiki•20m ago•0 comments

Show HN: Tamper-proof work verification with Ed25519 and RFC 3161 TSA

https://yourbeforeafterwork.netlify.app/
4•sudeshss•20m ago•1 comments

I used Claude Code and GSD to build the accessibility tool I've always wanted

https://blakewatson.com/journal/i-used-claude-code-and-gsd-to-build-the-accessibility-tool-ive-al...
3•todsacerdoti•23m ago•0 comments

Sam Altman says companies are 'AI washing' by blaming layoffs on the technology

https://fortune.com/2026/02/19/sam-altman-confirms-ai-washing-job-displacement-layoffs/
1•Betelbuddy•23m ago•0 comments

AWS Well-Architected Framework

https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html
1•Kinrany•25m ago•0 comments

Irish man detained by ICE Update – It's not as it seems

https://www.independent.ie/irish-news/its-a-mess-of-his-own-making-says-daughter-of-seamus-cullet...
1•cauliflower99•28m ago•1 comments

Airbus CEO Criticizes Pratt and Whitney over Engine Supply Issues

https://simpleflying.com/airbus-says-engine-delays-are-stalling-a320-deliveries/
1•Betelbuddy•29m ago•0 comments

Outreach domain for personalized cold emails? LLMs don't agree

1•BroTechLead•31m ago•0 comments

Show HN: Realtime Python Apps Without WebSockets and React Bloat (Stario)

1•bobowski•32m ago•0 comments

Using classic dev books to guide AI agents?

1•ZLStas•32m ago•2 comments

Show HN: Flask Is My Go-To Web Framework

https://www.flaskvibe.com/
1•astonfred•33m ago•0 comments

Professional Bitcoin Asset Tracing – Intelligence Cyber Wizard

1•amymcomass•33m ago•0 comments

Show HN: Stop Running Your AI Agent on a Laptop: Meet AgentClaw

https://medium.com/@journeypreneur/stop-running-your-ai-agent-on-a-laptop-meet-agentclaw-57ad68e8...
1•dtfortu•34m ago•0 comments

NASA chief classifies Boeing Starliner failure as Class A Mishap

https://text.npr.org/nx-s1-5719870
2•BostonFern•34m ago•0 comments

A Primer on Terrorism, Insurgency and Protest

https://acoup.blog/2026/02/13/collections-against-the-state-a-primer-on-terrorism-insurgency-and-...
10•JumpCrisscross•35m ago•0 comments

LLMs are expert movie script writers

https://butternut.click/blog/ais-are-expert-script-writers
2•Jacques2Marais•46m ago•0 comments