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

eBay buys Depop for $1.2B in effort to lure younger shoppers

https://www.theguardian.com/technology/2026/feb/19/ebay-buys-depop-from-etsy
1•iamben•4m ago•0 comments

I Let Claude Read My Email

https://ericbrookfield.com/2026/02/20/i-let-claude-read-my-email/
1•surprisetalk•6m ago•0 comments

The Unbearable Weight of Cruft

https://www.joanwestenberg.com/the-unbearable-weight-of-cruft/
1•zdw•6m ago•0 comments

Cybernetic practices for design research pedagogy (2023)

https://onlinelibrary.wiley.com/doi/10.1002/sres.2974
1•andsoitis•7m ago•0 comments

Show HN: Routype – typed REST client in ~200 lines, no codegen

https://github.com/jbingen/routype
1•jbingen•8m ago•0 comments

Irish man detained by ICE [Update] – It's not what it seems

https://www.limerickleader.ie/news/national-news/2018902/daughter-of-man-detained-in-the-us-says-...
6•cauliflower99•11m ago•1 comments

Agent Compromised by Agent to Deploy an Agent

https://www.mbgsec.com/posts/2026-02-19-agent-repo-compromised-by-agent-to-install-an-agent/
2•chha•12m ago•0 comments

DHS Admits Its Website the 'Worst of the Worst' Immigrants Was Rife with Errors

https://www.cnn.com/2026/02/19/politics/homeland-security-worst-immigrants-website
2•TigerUniversity•13m ago•0 comments

The Stanford Emerging Technology Review 2026 [pdf]

https://setr.stanford.edu/sites/default/files/2026-01/SETR2026_web-260109.pdf
3•cantaloupe•14m ago•0 comments

How to Die Optimally – A Theory of Consumption When AI Takes Your Job

https://ngrislain.github.io/static/projects/ai-economics/ai-economics.html
2•ngrislain•17m ago•0 comments

ATAboy is a USB adapter for legacy CHS only style IDE (PATA) drives

https://github.com/redruM0381/ATAboy
3•zdw•19m ago•0 comments

Your tech or my tech: make up your mind quickly (2024)

https://berthub.eu/articles/posts/your-tech-my-tech/
3•pabs3•21m ago•0 comments

Show HN: Murl – Curl for MCP Servers

https://github.com/turlockmike/murl
4•turlockmike•23m ago•0 comments

Fork, Explore, Commit: OS Primitives for Agentic Exploration

https://arxiv.org/abs/2602.08199
3•wang_cong•23m ago•0 comments

Show HN: Are – Rule engine for JavaScript, C#, and Dart with playground

https://are-playground.netlify.app/
4•beratarpa•23m ago•0 comments

Show HN: AI Council – multi-model deliberation that runs in the browser

https://github.com/prijak/Ai-council
5•prijak•26m ago•0 comments

The decline of single-earner housebuyers in America

https://www.economist.com/united-states/2026/02/12/the-decline-of-single-earner-housebuyers-in-am...
4•hhs•29m ago•0 comments

Fediverse Discovery Providers

https://www.fediscovery.org/
2•riffraff•31m ago•0 comments

Org Structure Is My Opportunity

https://writing.nikunjk.com/p/your-org-structure-is-my-opportunity
4•walterbell•32m ago•0 comments

Google Lyria 3: Create custom tracks for any moment

https://gemini.google/overview/music-generation/
2•thatxliner•33m ago•0 comments

AI dev tool power rankings and comparison [Feb. 2026]

https://blog.logrocket.com/ai-dev-tool-power-rankings/
2•snowhale•34m ago•0 comments

Show HN: Natural language search across Kalshi and Polymarket (API and MCP)

2•helloiamvu•35m ago•0 comments

Piantor Pro Review: My RSI Journey and Switching to a 36-Key Keyboard

https://jovianmoon.io/posts/rsi-36-key-keyboard
2•fireflyman•35m ago•0 comments

Show HN: Open a Linux Container (for Mac)

2•dpweb•36m ago•0 comments

Flexport's take on the Supreme Court ruling on tariffs: What's next? Refunds?

https://www.flexport.com/blog/the-supreme-courts-ieepa-tariff-ruling-next-steps-potential-refunds...
3•stingrae•41m ago•0 comments

The Russian village that lost its men to war

https://www.bbc.com/news/articles/ce8n4l8elpgo
3•breve•42m ago•0 comments

The enviromental impact of using LLMs for writing code

https://treyhunner.com/2026/02/on-the-enviromental-impact-of-llms-for-coding/
3•lumpa•42m ago•1 comments

Xkcd: Suspicion

https://xkcd.com/632/
5•ravenical•44m ago•1 comments

TikToker Khaby Lame's $975M deal is riding on a crashing stock

https://www.businessinsider.com/tiktoker-khaby-lame-975-million-deal-riding-on-falling-stock-2026-2
2•pseudolus•49m ago•0 comments

The Quest for Clean Cargo

https://www.noemamag.com/the-quest-for-clean-cargo/
2•bookofjoe•50m ago•0 comments