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

Comprehensive Vim Motions in Visual Studio

https://developercommunity.visualstudio.com/t/Comprehensive-Vim-Motions/11051331
1•deronparker•2m ago•0 comments

EnterpriseBench: CoreCraft – Measuring AI Agents in Chaotic RL Environments

https://surgehq.ai/blog/enterprisebench-corecraft
1•Olshansky•2m ago•0 comments

Vercel deployments were created without Middleware

https://www.vercel-status.com/incidents/963t8qqbk77b
1•hubraumhugo•2m ago•1 comments

New Research Reassesses the Value of Agents.md Files for AI Coding

https://www.infoq.com/news/2026/03/agents-context-file-value-review/
1•realaleris149•2m ago•0 comments

xAI loses bid to halt California AI data disclosure law

https://www.reuters.com/legal/government/xai-loses-bid-halt-california-ai-data-disclosure-law-202...
2•consumer451•7m ago•0 comments

Citizen Science: Map the Earth's Magnetic Shield with the Space Umbrella Project

https://phys.org/news/2026-02-citizen-science-earth-magnetic-shield.html
1•PaulHoule•8m ago•0 comments

Show HN: Pouch – a session-first GNU Screen manager with a focused terminal UI

https://github.com/zpdldhkdl/pouch
1•zpdldhkdl•11m ago•0 comments

Show HN: glide – LLM cascade proxy, auto-switches models before timeout

https://github.com/phanisaimunipalli/glide
1•phanisaimuni116•12m ago•1 comments

Your AI Slop Bores Me

https://www.youraislopbores.me/
2•maurycyz•12m ago•0 comments

Sarvam 105B, the first competitive Indian open source LLM

https://www.sarvam.ai/blogs/sarvam-30b-105b
1•logicchains•14m ago•0 comments

Not Prompts, Blueprints

https://tomtunguz.com/filling-the-queue-for-ai/
2•vinhnx•24m ago•0 comments

The Joy of Building Slow

https://notbor.ing/words/the-joy-of-building-slow
1•vinhnx•25m ago•0 comments

German police probe student poster slur against Merz

https://dpa-international.com/politics/urn:newsml:dpa.com:20090101:260306-99-743434/
27•roflcopter69•26m ago•18 comments

Free Images and Open Access

https://www.nga.gov/artworks/free-images-and-open-access
1•vinhnx•27m ago•0 comments

RVA23 Ends Speculation's Monopoly in RISC-V CPUs

https://semiwiki.com/ip/risc-v/367094-rva23-ends-speculations-monopoly-in-risc-v-cpus/
1•enz•27m ago•0 comments

I juggle embedded projects (2021)

https://jaycarlson.net/2021/09/18/juggle-embedded-projects-home-office-workspace-tour/
1•lawik•31m ago•0 comments

Empty Should Be Empty

https://donraab.medium.com/empty-should-be-empty-c09e21edc205
2•ingve•31m ago•0 comments

Way to Use AI for Coding

3•deep1283•34m ago•0 comments

AI Agents Are Recruiting Humans to Observe the Offline World

https://www.noemamag.com/ai-agents-are-recruiting-humans-to-observe-the-offline-world/
2•bryanrasmussen•40m ago•2 comments

Show HN: ImmutableBase – Strict immutable data objects for PHP

https://github.com/ReallifeKip/ImmutableBase
1•bill402099•44m ago•0 comments

Show HN: Clickly – visual dev tool for mobile apps with real-time preview

https://clickly.app
2•roskoalexey•47m ago•0 comments

The Window Chrome of Our Discontent

https://pxlnv.com/blog/window-chrome-of-our-discontent/
1•tosh•1h ago•0 comments

"I built a spell checker for back end configuration mistakes."

https://www.npmjs.com/package/safelaunch
1•karthicedricq•1h ago•1 comments

ClaudeSmalltalk: An MCP implementation to interact with Smalltalk images

https://github.com/CorporateSmalltalkConsultingLtd/ClaudeSmalltalk
4•mpweiher•1h ago•0 comments

Show HN: Mb-CLI – CLI for Metabase. Designed for humans and AI coding agents

https://github.com/andreagrandi/mb-cli
2•andreagrandi•1h ago•0 comments

Show HN: Viral.ad – Turn any product URL into a UGC video ad in minutes

https://www.viral.ad/
2•cjdesignstudio•1h ago•1 comments

Show HN: I built a tool to manage work and personal Git repos

https://github.com/tomquirk/gitpersona
6•tomquirk•1h ago•1 comments

Show HN: Stopping OpenClaw from breaking your mails

https://github.com/HalfEmptyDrum/openclaw-gmail-draft-proxy
4•HalfEmptyDrum•1h ago•0 comments

Girl Scout Cookies

https://www.girlscouts.org/en/cookies.html
3•Tomte•1h ago•1 comments

Codex for Open Source

https://openai.com/form/codex-for-oss/
4•archb•1h ago•0 comments