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

Minnesota court justice quietly negotiated deal over ICE enforcement in courts

https://www.startribune.com/white-house-minnesota-supreme-court-chief-justice-quietly-negotiated-...
1•hn_acker•2m ago•1 comments

Bending the CLOS Mop for Java-Style Single Dispatch

https://atgreen.github.io/repl-yell/posts/clos-mop-dispatch/
1•atgreen•2m ago•1 comments

Play CSS-defined animations with JavaScript – KeyframeKit

https://keyframekit.berryscript.com/
1•barhatsor•5m ago•0 comments

The Mythology of Conscious AI

https://www.noemamag.com/the-mythology-of-conscious-ai/
1•MindGods•12m ago•0 comments

The Tears of Donald Knuth

https://cacm.acm.org/opinion/the-tears-of-donald-knuth/
1•todsacerdoti•12m ago•0 comments

ChatGPT Sees the World

https://twitter.com/elonmusk/status/2025265181266153606
1•anonymousiam•13m ago•0 comments

Show HN: Aeterna – Self-hosted dead man's switch

https://github.com/alpyxn/aeterna
2•alpyxn•13m ago•0 comments

'Peanut butter' pay raises could cost companies their top performers

https://www.cnbc.com/2026/02/22/peanut-butter-pay-raises-could-cost-companies-their-top-performer...
2•cebert•14m ago•0 comments

Show HN: GitHub Issues in the Terminal

https://github.com/JayanAXHF/gitv
2•frxgfa•14m ago•0 comments

Robots, Grannies and Meaning-Adjusted Work Days

https://twitter.com/notevenwrongg/status/2025656572458746156
2•georgestrakhov•17m ago•0 comments

The Geometry of Tostitos Scoops

https://chip-tech-rob.zocomputer.io/
2•kousun12•17m ago•1 comments

American Oversight Sues Trump Admin for Directing Agency Staff to Shred and Burn

https://americanoversight.org/american-oversight-sues-trump-administration-for-directing-agency-s...
2•stopbulying•18m ago•1 comments

Intentional Overuse Is an AI Coding Learning Strategy

https://www.jedi.be/blog/2026/intentional-overuse-is-an-ai-coding-learning-strategy/
2•henrik_w•18m ago•0 comments

Show HN: Try any terrible idea, ChatGPT still leads with praise

https://chatgpt.com/share/699b5c8e-59bc-800c-84f3-f066d2b5c669
2•logicallee•19m ago•0 comments

Quick takes on Feb 20 Cloudflare outage

https://surfingcomplexity.blog/2026/02/21/quick-takes-on-feb-20-cloudflare-outage/
2•emschwartz•25m ago•0 comments

Interpassivity

https://en.wikipedia.org/wiki/Interpassivity
1•maayank•25m ago•0 comments

Read Locks Are Not Your Friends

https://eventual-consistency.vercel.app/posts/write-locks-faster
2•emschwartz•26m ago•0 comments

I was wrong about AI

https://beabetterdev.com/2026/02/21/i-was-wrong-about-ai/
2•beabetterdev•26m ago•0 comments

Ask HN: Chromebook Leads for K-8 School In Need?

1•techteach00•27m ago•0 comments

It's impossible for Rust to have sane HKT

https://vspefs.substack.com/p/its-impossible-for-rust-to-have-sane
2•emschwartz•30m ago•0 comments

Bit-Fields

https://mocelik.com/c/bit-fields/
2•todsacerdoti•30m ago•0 comments

Factory-built housing hasn't taken off in California

https://www.latimes.com/california/story/2026-02-14/factory-built-housing-hasnt-taken-off-in-cali...
13•PaulHoule•33m ago•10 comments

Ask HN: Cognitive Offloading to AI

1•daringrain32781•33m ago•2 comments

Show HN: Upti – Track cloud provider incidents and get alerts

https://apps.apple.com/us/app/upti-cloud-status-monitor/id6757987553
2•ismailperim•33m ago•0 comments

Green lumber fallacy in software engineering (2022)

https://www.chrisbehan.ca/posts/green-lumber-fallacy-in-software
6•mooreds•34m ago•3 comments

Realistic Adversarial Testing of Computer-Use Agents in Web-OS Environments

https://arxiv.org/abs/2505.21936
2•yakkomajuri•35m ago•0 comments

Show HN: G13u.com An automated SRE for AI apps

https://g13u.com/
3•gerom•36m ago•1 comments

Documentary about Mozilla Firefox at pwn2own (part 1) [video]

https://www.youtube.com/watch?v=YQEq5s4SRxY
2•todsacerdoti•37m ago•0 comments

Ask HN: Do US presidents have less fiduciary liability than CEOs?

2•stopbulying•38m ago•6 comments

As a non-coder(HR professional) I built my first website all by vibe coding

3•VidhiKesarwani•40m ago•2 comments