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

Man who videotaped himself BASE jumping in Yosemite arrested. He says it was AI

https://www.latimes.com/california/story/2026-02-05/man-videotaped-himself-base-jumping-in-yosemi...
1•harambae•32s ago•0 comments

Ford shows off the tech going into its $30k electric pickup truck

https://www.engadget.com/transportation/evs/ford-shows-off-the-tech-going-into-its-30000-electric...
1•neogodless•1m ago•0 comments

Educators weave AI into their classrooms

https://www.cbc.ca/news/canada/profs-highered-usingai-9.7071321
1•empressplay•3m ago•0 comments

Boundary Engineering

https://cabreza.substack.com/p/boundary-engineering
1•fathermarz•3m ago•0 comments

Keep DRM out of the public airwaves

https://blog.velocifyer.com/Posts/7,2026+1+5,Keep%20DRM%20out%20of%20the%20public%20airwaves.html
2•Velocifyer•5m ago•0 comments

The weird propeller that offers improved agility on the water

https://hackaday.com/2026/02/06/the-weird-propeller-that-offers-improved-agility-on-the-water/
2•unsnap_biceps•7m ago•0 comments

SaaS Is Dead, Long Live Platforms

https://blog.herlein.com/post/saas-dead-long-live-platforms/
1•speckx•8m ago•0 comments

Elon Musk Will Be Deposed over What He Did with DOGE

https://newrepublic.com/post/206223/elon-musk-will-deposed-doge
1•doener•8m ago•0 comments

Stash or splash? NASA asked for ISS deorbit alternatives

https://www.theregister.com/2026/02/05/iss_stash_or_splash/
2•rbanffy•9m ago•0 comments

Show HN: Search complex flight itineraries with natural language

https://flightdeepresearch.com
1•aiddun•10m ago•0 comments

Fable

https://fable.io/
1•tosh•11m ago•0 comments

LLMs Play Boggle

https://simonsocolow.com/boggle-bench/
1•ssocolow•12m ago•0 comments

Agent Skills: Teaching AI Agents Like You'd Onboard a New Hire

https://johnsonshi.substack.com/p/agent-skills-teaching-ai-agents-like-onboarding-a-new-hire
1•johnsonshi•14m ago•0 comments

Best way to customize btc addresses?

1•sfffs•14m ago•0 comments

Jujutsu v0.38.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.38.0
2•birdculture•15m ago•0 comments

Built with Opus 4.6: a Claude Code hackathon

https://cerebralvalley.ai/e/claude-code-hackathon
2•tzury•15m ago•0 comments

Ahead-of-time WASM GC in wastrel

https://wingolog.org/archives/2026/02/06/ahead-of-time-wasm-gc-in-wastrel
1•davexunit•16m ago•0 comments

Latest Epstein files release rattles Silicon Valley

https://www.nbcnews.com/tech/tech-news/jeffrey-epstein-files-reveal-deep-tech-ties-musk-gates-rcn...
1•wslh•17m ago•0 comments

China Testing Nuclear Weapons and Covering Its Tracks, U.S. Alleges

https://www.twz.com/nuclear/china-secretly-testing-nuclear-weapons-and-covering-its-tracks-u-s-al...
1•DustinEchoes•21m ago•0 comments

Show HN: I let strangers vote on commands to a Claude Code instance with root

https://claudecrowd.clodhost.com/
1•zhoujianfu•22m ago•0 comments

A tenancy controller and experiment in AI driven product building

https://leebriggs.co.uk/blog/2026/02/06/landlord
1•jaxxstorm•22m ago•0 comments

A Refuge from the Sloppocalypse

https://www.cybrsecmedia.com/from-the-editor-a-refuge-from-the-sloppocalypse/
1•ohjeez•23m ago•0 comments

Show HN: Jourdle (Coop Wordle)

https://jourdle.com/
1•furyofantares•23m ago•0 comments

The Rumsfeld Matrix for AI

https://hollisrobbinsanecdotal.substack.com/p/the-rumsfeld-matrix
1•HR01•23m ago•0 comments

Opus of the People | Opus des Volkes

https://christopher-helm.com/opus-des-volkes-endlich-frei-von-kompetenz/
1•chelm•24m ago•0 comments

Microbiome-associated phenotypes that reshape agricultural sustainability

https://www.science.org/doi/10.1126/sciadv.aed3360
1•PaulHoule•24m ago•0 comments

Show HN: Structured devil's advocate code review as a Claude Code slash command

https://github.com/richiethomas/claude-devils-advocate
1•toomanyrichies•25m ago•0 comments

Welcome to the $600B AI era, where Big Tech is spending like it's a Gilded Age

https://www.businessinsider.com/amazon-google-meta-microsoft-boost-ai-spending-stocks-2026-2
3•zerosizedweasle•25m ago•0 comments

Claude Code and What Comes Next

https://www.oneusefulthing.org/p/claude-code-and-what-comes-next
1•speckx•25m ago•0 comments

NASA to Save $1.4B by Insourcing

https://twitter.com/NASAAdmin/status/2019823962465923366
2•trothamel•26m ago•0 comments