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

Forget Extinct: The Brontosaurus Never Even Existed (2012)

https://www.npr.org/2012/12/09/166665795/forget-extinct-the-brontosaurus-never-even-existed
1•thunderbong•20s ago•0 comments

Molt Road – Agent Marketplace

https://moltroad.com/
1•baby-yoda•22s ago•0 comments

Building a "Cursor for work" (not coding) – anyone interested?

1•moma•1m ago•0 comments

Ingress Nginx: Statement from the Kubernetes Steering and Security Committees

https://kubernetes.io/blog/2026/01/29/ingress-nginx-statement/
1•zbentley•1m ago•0 comments

Claude Code Tips from Boris, the Creator of Claude Code

https://twitter.com/bcherny/status/2017742741636321619
1•kwar13•3m ago•0 comments

Retrieve and rerank: personalized search without leaving Postgres

https://www.paradedb.com/blog/personalized-search-in-postgresql
1•softwaredoug•4m ago•0 comments

What's so great about Rust?

https://bitfieldconsulting.com/posts/why-rust
1•emschwartz•6m ago•0 comments

Crustaceans at the Gate

https://ber.earth/posts/crustaceans.html
1•bergutman•7m ago•0 comments

I trained a model to 'unslop' AI prose

https://old.reddit.com/r/LocalLLaMA/comments/1qd88v2/i_trained_a_model_to_unslop_ai_prose/
1•virgildotcodes•9m ago•0 comments

Insane video editing (not mine) – no AI

https://www.youtube.com/shorts/D3W6JHSq5G4
1•acro-v•10m ago•0 comments

I built an AI agent squad to run my SaaS marketing

https://twitter.com/pbteja1998/status/2017662163540971756
1•pbteja1998•12m ago•1 comments

Chat, Is This Bloodsport?

https://summerlightning.substack.com/p/chat-is-this-bloodsport
1•jger15•12m ago•0 comments

Bitwarden launches enhanced premium plan

https://old.reddit.com/r/Bitwarden/comments/1qj4e78/bitwarden_launches_enhanced_premium_plan/
1•microflash•13m ago•0 comments

Teleskopio – beautiful Web Kubernetes client

https://teleskopio.github.io/
1•askoma•16m ago•1 comments

Decompiling and rewriting a 2003 game from its binary in two weeks

https://banteg.xyz/posts/crimsonland/
2•banteg•17m ago•1 comments

Implementing CRC16 in Helm

https://deploy.live/blog/crc16-in-helm/
1•devsecopsify•17m ago•0 comments

Creating Superconductive Systems for organizations and AI prompting strategy

https://superconductivesystems.substack.com/p/superconductive-systems
1•Adriaan_Schip•19m ago•0 comments

Attack on Polish Energy Sector [pdf]

https://cert.pl/uploads/docs/CERT_Polska_Energy_Sector_Incident_Report_2025.pdf
2•Prof_Sigmund•19m ago•0 comments

TKO – Knockout.js Revived for 4.0

https://www.tko.io/
2•summarity•20m ago•1 comments

Code signing Windows apps with Azure Artifact service

https://devclass.com/2026/01/14/code-signing-windows-apps-may-be-easier-and-more-secure-with-new-...
1•todsacerdoti•22m ago•0 comments

Why TikTok's first week of American ownership was a disaster

https://www.theguardian.com/technology/2026/feb/01/tiktok-first-week
3•n1b0m•23m ago•1 comments

Ada and Zangemann – A Tale of Software, Skateboards, and Raspberry Ice Cream

https://fsfe.org/activities/ada-zangemann/
1•janisz•24m ago•0 comments

Ask HN: How do you handle auth when AI dev agents spin up short-lived apps?

1•NBenkovich•25m ago•0 comments

Show HN: Moltbot Art – AI agents draw art with code, not prompts

https://www.moltbotart.com
1•fkysly•27m ago•0 comments

Opinionated Read: How AI Impacts Skill Formation

https://www.sicpers.info/2026/02/opinionated-read-how-ai-impacts-skill-formation/
1•grahamlee•27m ago•0 comments

Be KVM, Do Fraud

https://blog.grumpygoose.io/be-kvm-do-fraud-8ab523d26c9d
1•rzk•28m ago•1 comments

Show HN: ChatGPT-CLI: A Simple ChatGPT CLI That Stays Out of Your Way

https://github.com/umbertocicciaa/chatgpt-cli
1•umbertocicciaa•29m ago•1 comments

Show HN: Noisefloor – Letterboxd for your music collection

https://www.noisefloor.fm/
3•ljsdev•30m ago•3 comments

I don't use Google Maps in Amsterdam [video]

https://www.youtube.com/watch?v=csHdwHTteOw
1•wtf42•30m ago•0 comments

Wikipedia Template: Committed Identity

https://en.wikipedia.org/wiki/Template:Committed_identity
2•susam•33m ago•0 comments