frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Trump announces a deal with Iran has been reached [video]

https://www.youtube.com/watch?v=-FWZLUs-hSQ
1•Bender•20s ago•0 comments

OpenAI Partner Network

https://openai.com/index/introducing-openai-partner-network/
1•ilreb•58s ago•0 comments

21 years and counting of 'eight fallacies of distributed computing' (2025)

https://blog.apnic.net/2025/12/08/21-years-and-counting-of-eight-fallacies-of-distributed-computing/
1•teleforce•2m ago•0 comments

The Agentic Development Lifecycle

https://www.voodootikigod.com/series/adlc
3•voodootikigod•7m ago•0 comments

Data Brokers: Unregulated Forensic Analysis

https://nooneshappy.com/article/data-brokers-unregulated-forensic-analysis/
1•njrc•9m ago•0 comments

The Joys of NMAP (2011)

https://theserpent.co.uk/posts/the-joys-of-nmap/
1•Eridanus2•10m ago•1 comments

Cosmos Claw: Hack on a Boat in SF (Nvidia Cosmos Based Social Media Manager)

https://github.com/manas15/cosmos-claw
1•manas95•11m ago•0 comments

Neurophos OPU

https://www.neurophos.com
1•peter_d_sherman•18m ago•0 comments

Show HN: My developer portfolio – web apps, dev tools and open-source projects

https://p32929.github.io
1•heliskyr2•19m ago•0 comments

Re-Reading Who Moved My Cheese

https://thuva4.com/blog/re-reading-who-moved-my-cheese/
1•thuva4•20m ago•0 comments

Show HN: Coding agent with algebraic memory (VSA) instead of RAG

https://github.com/vitaliyfedotovpro-art/raidho
1•astrumverum•24m ago•0 comments

ENS Domains .eth .box

https://ens.domains
1•modinfo•29m ago•0 comments

Show HN: Wtdb – give every Git worktree its own database

https://github.com/willhackett/wtdb
1•whh•34m ago•0 comments

Water Fluoridation in Australia

https://en.wikipedia.org/wiki/Water_fluoridation_in_Australia
1•nomilk•35m ago•0 comments

Tlbic: A shared prompt for humanity and the future of ASI

1•michikawa59•41m ago•0 comments

Mike Stonebraker: Disagreeing with Google, Postgres and Future Problems [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
1•teleforce•41m ago•0 comments

Oracle Cloud might start charing for their forever-free instances

https://old.reddit.com/r/oraclecloud/comments/1u4lzkk/new_free_tier_limits_confirmed_by_oracle_su...
2•bel8•46m ago•1 comments

Show HN: A-C Coupling – Deterministic Data Decomposition in O(n) with No Search

https://zenodo.org/records/20693980
2•A19dammer91•46m ago•0 comments

From Hookswitch to Grave

https://computer.rip/2026-06-14-hookswitch-to-grave.html
1•K7PJP•47m ago•0 comments

Terminal UIs Are an Abomination. AI Needs Better UX

https://medium.com/@balajibal/terminal-uis-are-an-abomination-so-are-chatbots-ai-needs-better-ux-...
2•rafaepta•47m ago•1 comments

Image Toolbox (T8RIN)

https://github.com/T8RIN/ImageToolbox/
2•unexpectedVCR•49m ago•1 comments

People quit because reality doesn't match the movie they created in their heads

https://timesofindia.indiatimes.com/technology/tech-news/quote-of-the-day-by-nvidia-ceo-jensen-hu...
2•teleforce•50m ago•1 comments

How Nvidia Dominates AI:11 Engineering Moves [video]

https://www.youtube.com/watch?v=vzM8mv1t_zM
2•skpothana•58m ago•0 comments

US and Iran announce deal to end military operations

https://www.bbc.com/news/live/cj0grpyg4v1t
45•vermilingua•1h ago•111 comments

Show HN: ItchCord – Discord Rich Presence for itch.io games

https://itchcord.vrma.dev
1•shredswap•1h ago•0 comments

Show HN: Morning Stack finds real job openings, tweaks resume and cover letter

https://morningstack.app/demo/
2•hillj23•1h ago•1 comments

Formal Methods and the Future of Programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/
1•dcre•1h ago•1 comments

Show HN: Grade your growth rate using Paul Graham's two-number math

https://www.brutal-audit.com/growth
1•smakosh•1h ago•0 comments

Telescope Rancher Who Manages Telescopes Each Night on a Texas Ranch

https://www.techeblog.com/telescope-rancher-texas-ranch/
2•mhb•1h ago•0 comments

Your ePub Is Fine. Kobo Disagrees. Blame Adobe

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
56•sohkamyung•1h ago•15 comments