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

Shenzen's iterative ecosystem: parallel search vs. sequential optimization

https://twitter.com/bettercallmedhi/status/2027625247068065864
1•walterbell•4m ago•0 comments

Intelligence is a commodity. Context is the real AI Moat

https://adlrocha.substack.com/p/adlrocha-intelligence-is-a-commodity
1•adlrocha•4m ago•0 comments

Better-Auth Infrastructure Released

https://better-auth.com/pricing
1•tnkuehne•4m ago•0 comments

Going Founder Mode on Cancer

https://twitter.com/ElliotHershberg/status/2013340731965120952
1•wjb3•4m ago•0 comments

Cortex – turns questions into video explainers

https://cortexsolver-main.hf.space
1•FlaringRain•5m ago•0 comments

Ask HN: Alternatives to Reducto?

1•Eawrig05•6m ago•0 comments

Libre Solar – Open Hardware for Renewable Energy

https://libre.solar
1•evolve2k•7m ago•0 comments

You can use newline characters in URLs

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/
1•ingve•8m ago•0 comments

Show HN: Optimal: Cost effective infra with agentic inbox

https://github.com/agg111/optimal
1•aishwaryagune•12m ago•0 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
1•mschnell•12m ago•0 comments

Doctorow: "'Build it, they will come' is a trap." Leaving Big Tech / USA's Stack

https://pluralistic.net/2026/02/26/hanged-for-a-sheep/#as-for-a-lamb
2•replooda•17m ago•1 comments

I stopped paying others to "audit" my Adsense eligibility.I check it myself

https://www.indiehackers.com/post/i-stopped-paying-others-to-audit-my-adsense-eligibility-i-built...
1•allinonetools_•17m ago•0 comments

The easiest way to get out of a subscription is to get banned

https://old.reddit.com/r/UnethicalLifeProTips/comments/1rc5q9c/ulpt_the_easiest_way_to_get_out_of...
1•jnord•20m ago•0 comments

Show HN: Built a tool that turns your GitHub commits into build-in-public posts

https://www.smashlanding.xyz
2•TedOS•21m ago•0 comments

Hard drive prices have surged by an average of 46% since Sept 2025

https://www.tomshardware.com/pc-components/hdds/hard-drive-prices-have-surged-by-an-average-of-46...
1•walterbell•21m ago•0 comments

User Privacy: An Analysis of Frontier LLM Privacy Policies (2025)

https://arxiv.org/abs/2509.05382
1•walterbell•25m ago•0 comments

Show HN: OneCamp – Self-Hosted Slack/Asana/Zoom/Notion Alternative

1•akashc777•34m ago•0 comments

Follow the Science: Science, Uncertainty and Values in the Pandemic

https://markthegraph.blogspot.com/2026/03/follow-science-science-uncertainty-and.html
1•Khaine•37m ago•1 comments

Billy bookshelves as a retro motherboard "rack"

https://rubenerd.com/billy-bookcase-as-a-retro-motherboard-rack/
1•ingve•44m ago•0 comments

The Week the Dreaded AI Jobs Wipeout Got Real

https://www.wsj.com/tech/ai/the-week-the-dreaded-ai-jobs-wipeout-got-real-3ba5057b
1•Brajeshwar•45m ago•0 comments

What Are Your Guilty Displeasures?

https://www.hopefulmons.com/p/what-are-your-guilty-displeasures
1•aregue•46m ago•0 comments

The MySQL-to-Postgres Migration That Saved $480K/Year: A Step-by-Step Guide

https://medium.com/@dusan.stanojevic.cs/the-mysql-to-postgres-migration-that-saved-480k-year-a-st...
1•taubek•52m ago•0 comments

What's in a Name?..

https://sailsandcommas.com/2014/02/03/whats-in-a-name/
1•Curiositry•53m ago•0 comments

Byte-Pair Encoding

https://en.wikipedia.org/wiki/Byte-pair_encoding
1•tosh•53m ago•0 comments

Polymarket 5min market Trading Bot

1•Benjamin-Cup•54m ago•0 comments

Dr Pirker Bioimplant

https://news.ycombinator.com
1•ahuva•1h ago•0 comments

Apple Eats AI for Breakfast [video]

https://www.youtube.com/watch?v=9VZaI44odyg
1•mgh2•1h ago•0 comments

Finding value with AI and Industry 5.0 transformation

https://www.technologyreview.com/2026/02/26/1133707/finding-value-with-ai-and-industry-5-0-transf...
1•joozio•1h ago•0 comments

Fair shifts focus away from WordPress

https://coywolf.com/news/content-marketing/fair-quits-wordpress-but-one-of-its-best-features-rema...
1•taubek•1h ago•0 comments

Show HN: Ghostty Pane Splitter – Split terminal panes for AI coding agents

https://github.com/rikeda71/ghostty-pane-splitter
2•rikeda71•1h ago•0 comments