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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

AntiX-26 released with 5 init systems

https://antixlinux.com/antix-26-released/
1•jandeboevrie•2m ago•0 comments

Paul Brainerd Dies at 78; Pioneered Desktop Publishing with PageMaker

https://www.nytimes.com/2026/03/21/technology/personaltech/paul-brainerd-dead.html
1•donohoe•3m ago•0 comments

Perimortem C-Section

https://en.wikipedia.org/wiki/Resuscitative_hysterotomy
1•davikr•4m ago•0 comments

Anand Shimpi Explains New Core Design in M5 Pro and M5 Max Chips

https://www.macobserver.com/news/apple-explains-new-core-design-in-m5-pro-and-m5-max-chips/
1•ksec•5m ago•1 comments

Jamie Dimon: AI 'will eliminate jobs,' but people with skills get opportunities

https://www.cnbc.com/2025/12/11/jamie-dimon-ai-will-eliminate-jobs-but-these-skills-will-get-you-...
1•cebert•5m ago•0 comments

Food, energy, and finance as the core control systems of geopolitics

https://creativedestruction.substack.com/p/the-most-effective-wmd-isnt-nuclear
1•jcarterwil•8m ago•0 comments

Show HN: Orchestrator, tmux-style split pane Claude sessions

https://github.com/MatchaOnMuffins/orchestrator
1•matchaonmuffins•8m ago•1 comments

iPhone spyware is everyone's problem now

https://www.axios.com/2026/03/21/iphone-spyware-is-everyones-problem-now
5•1vuio0pswjnm7•10m ago•0 comments

The GraphQL Goldmine: How to Reverse Engineer APIs for Scraping

https://norvilis.com/the-graphql-goldmine-how-to-reverse-engineer-apis-for-scraping/
1•zilton•15m ago•0 comments

A2i – A simple feed to keep up with AI drops

https://www.a2i.now/
3•markke•16m ago•0 comments

OpenAI is throwing everything into building an automated researcher

https://www.technologyreview.com/2026/03/20/1134438/openai-is-throwing-everything-into-building-a...
1•Brajeshwar•16m ago•1 comments

Infoporn

https://msx.horse/blog.php?b=blog%2F2026_03_17.nfo
1•mintplant•16m ago•0 comments

Crypto.com lays off 12% of workforce as latest company to cite AI in job cuts

https://www.cnbc.com/2026/03/19/crypto-com-layoffs-12percent-ai-job-loss.html
1•1vuio0pswjnm7•20m ago•0 comments

The future of SaaS is agentic

https://akashyap.ai/the-future-of-saas-is-agentic/
2•KashyapArjun•21m ago•0 comments

Show HN: JavaScript Performance Benchmarking

https://benchmarkstudio.net/en/
1•emurlin•22m ago•0 comments

Hero UI v3

https://heroui.com/docs/react/releases/v3-0-0
1•threatofrain•23m ago•0 comments

Why craft-lovers are losing their craft

https://writings.hongminhee.org/2026/03/craft-alienation-llm/
3•dahlia•23m ago•0 comments

AI Won't Disappear: Here's Why and What's Next

https://ahmd.io/blog/2026/03/19/ai_future_security/
1•ahmed-araby•23m ago•0 comments

SteamRT3: A 64-bit Steam client for Linux

https://store.steampowered.com/news/group/4397053/view/532125848715658035
2•Venn1•27m ago•0 comments

Welcome to the Stockyard of Unaffordability

http://charleshughsmith.blogspot.com/2026/03/welcome-to-stockyard-of-unaffordability.html
1•speckx•28m ago•0 comments

NY proposes removing QSBS tax breaks for founders

https://www.jdsupra.com/legalnews/new-york-proposal-to-tax-qsbs-gains-4562142/
1•theahura•29m ago•0 comments

Widely used Trivy scanner compromised in ongoing supply-chain attack

https://arstechnica.com/security/2026/03/widely-used-trivy-scanner-compromised-in-ongoing-supply-...
1•Brajeshwar•30m ago•0 comments

Vibe Code Builds You Can Try

https://hendersonmatthew.substack.com/p/4-vibe-code-builds-you-can-actually
1•alokDT•31m ago•0 comments

MCP Vulnerabilities Every Developer Should Know

https://composio.dev/content/mcp-vulnerabilities-every-developer-should-know
2•fagnerbrack•32m ago•0 comments

Accessing Hardware in Rust

https://ferrous-systems.com/blog/hardware-access-rust/
1•vinhnx•33m ago•0 comments

Do You Need a CMS?

https://joost.blog/do-you-need-a-cms/
1•taubek•37m ago•0 comments

Solod: Go can be a better C

https://antonz.org/solod/
1•begoon•37m ago•2 comments

Show HN: QueryPad – Browser SQL Playground for CSV, JSON, and Parquet Files

https://github.com/vericontext/querypad
1•kiyeonjeon•40m ago•1 comments

Show HN: Inner Warden – Self-Defending Security Agent: eBPF+LSM+XDP (Rust, 29MB)

https://github.com/InnerWarden/innerwarden/
2•maiconburn•40m ago•0 comments

Apple Announces New Mac Sales Record Following MacBook Neo Launch

https://www.macrumors.com/2026/03/20/apple-shares-mac-sales-achievement/
35•akyuu•42m ago•35 comments