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

We built a chat-with-data agent that doesn't AI generate SQL

https://inconvo.com/blog/how-we-built-a-chat-with-data-agent-that-doesnt-ai-generate-sql/
1•ogham•12s ago•0 comments

The Hunger Games Was Just Voted the 'Best Book Ever' by Goodreads Readers

https://parade.com/news/hunger-games-by-suzanne-collins-voted-best-book-ever-goodreads
1•randycupertino•40s ago•0 comments

Questions with an Art Recovery Specialist

https://anthonyamore.substack.com/p/10-questions-with-christopher-marinello
1•anthonyamore•47s ago•0 comments

EU Commission statement on the recent judgment of US Supreme Court

https://ec.europa.eu/commission/presscorner/home/en
1•Betelbuddy•1m ago•0 comments

Show HN: Tabularis – Rust/Tauri Database GUI with a JSON-RPC Plugin System

https://github.com/debba/tabularis
1•debba•3m ago•1 comments

Hyperscalers are funding buildout with debt rather than cash flow

https://www.cnbc.com/2026/02/23/big-techs-ai-bond-binge-shatters-unspoken-contract-with-investors...
1•Betelbuddy•3m ago•0 comments

The Wrong Apocalypse [pdf]

https://ionanalytics.com/wp-content/uploads/2026/02/The_Wrong_Apocalypse.pdf
1•monkeydust•4m ago•0 comments

Show HN: Restrict Kiro CLI access to your sensitive files

https://github.com/phcollignon/kiro-guard
1•phico•4m ago•0 comments

Accelerated FOMO in the Age of AI

https://www.0xsid.com/blog/accelerated-ai-fomo
1•ssiddharth•5m ago•0 comments

Staying Small Became AI Startups' Biggest Flex

https://www.wsj.com/articles/how-staying-small-became-ai-startups-biggest-flex-ec127320
1•Brajeshwar•5m ago•0 comments

Why do some places on Earth get more solar eclipses than others?

https://www.space.com/stargazing/solar-eclipses/why-do-some-places-on-earth-get-far-more-solar-ec...
1•Brajeshwar•6m ago•0 comments

'Universal vaccine' protects mice against multiple pathogens

https://www.nature.com/articles/d41586-026-00506-y
1•Brajeshwar•6m ago•0 comments

Misguided Optimization

https://seths.blog/2026/02/misguided-optimization/
1•thecosas•6m ago•0 comments

The rise and fall of peer review

https://www.experimental-history.com/p/the-rise-and-fall-of-peer-review
1•cs702•7m ago•0 comments

Show HN: I Built an Offline Productivity System That Connects Goals and Systems

https://gitgudapps.com/auratracker
1•vcool07•7m ago•0 comments

Elixir: A low floor high ceiling language for your projects (2022)

https://instadeq.com/blog/posts/elixir-a-low-floor-high-ceiling-language-for-your-projects/
2•surprisetalk•9m ago•0 comments

Interval Research Corporation: a 1990s PARC without a Xerox (2022)

https://instadeq.com/blog/posts/interval-research-corporation-a-1990s-parc-without-a-xerox/
1•surprisetalk•9m ago•0 comments

The Origins of Agar

https://www.asimov.press/p/agar
1•surprisetalk•9m ago•0 comments

A Brief History of the History of Science

https://asteriskmag.com/issues/13/a-brief-history-of-the-history-of-science
1•surprisetalk•9m ago•0 comments

Show HN: Ilove4o – a simple way to keep using GPT-4o

1•Tanjim•9m ago•0 comments

Building a Microkernel in Rust

https://blog.desigeek.com/post/2026/02/building-microkernel-part0-why-build-an-os
2•robinhood•10m ago•0 comments

Backblaze Launches B2 Neo to Power Surging Neocloud Market

https://www.backblaze.com/blog/announcing-b2-neo-the-storage-problem-neoclouds-dont-talk-about/
1•atYevP•12m ago•0 comments

The Gametank just smashed its crowdfunding goals

https://www.gamesradar.com/hardware/retro/the-gametank-just-smashed-its-crowdfunding-goals-and-im...
1•HardwareLust•12m ago•1 comments

AI – We are asking the wrong question

https://cagriy.github.io/AI-We-are-asking-the-wrong-question
2•cagz•13m ago•0 comments

Proximity to nuclear power plants associated with increased cancer mortality

https://hsph.harvard.edu/news/proximity-to-nuclear-power-plants-associated-with-increased-cancer-...
1•geox•13m ago•1 comments

Show HN: Fiscal – An Agent Friendly CLI for Actual Budget

https://fiscal.sh/
1•jelled•14m ago•0 comments

How to automate AI agents to read Jira tickets and create pull requests

https://old.reddit.com/r/programming/comments/1rcjgqj/how_to_automate_ai_agents_to_read_jira_tick...
1•that_guy_iain•15m ago•0 comments

Deep-Dive into LLM Fine-Tuning

https://fireworks.ai/blog/llm-fine-tuning
2•smurda•16m ago•0 comments

WebAccessBench

https://conesible.de/wab/
1•devinprater•17m ago•0 comments

From magic to literacy: ask LLMs for tools, not answers

https://lepiter.io/feenk/from-magic-to-literacy--ask-llms-for-tools-3ty9d76flf3sttsxp4vv7zvwv/
1•tudorgirba•17m ago•0 comments