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

Red/Green TDD

https://simonwillison.net/guides/agentic-engineering-patterns/red-green-tdd/
1•tomwphillips•51s ago•0 comments

Who's in Charge? Disempowerment Patterns in Real-World LLM Usage

https://arxiv.org/abs/2601.19062
1•Gillesray•1m ago•1 comments

Show HN: Claudedash – real-time local dashboard for Claude Code agents

1•yunusemregurlu•8m ago•1 comments

OpenCrabs: AI terminal-native orchestration layer for software development

https://github.com/adolfousier/opencrabs
1•otterwise•11m ago•0 comments

Show, Don't Tell

https://blog.exe.dev/show-dont-tell
1•tosh•11m ago•0 comments

Raya: Compiled TypeScript with Go-Concurrency

https://raya.land/
1•adityapurwa•15m ago•0 comments

A fast Ruby code formatter build in Rust

https://github.com/sorafujitani/rfmt
1•walski•15m ago•0 comments

60 Year old vibe coder create revenue SaaS with vibe agent and vibe testing tool

1•Thorin_scout•17m ago•1 comments

Show HN: Launching for the full public on 17th May 2026

https://waitlist-j5z9.onrender.com/
1•Sechele•18m ago•0 comments

BrowserPicker: Smart Browser Selector for Windows

https://github.com/mortenn/BrowserPicker
1•Klaster_1•19m ago•0 comments

Magical Mushroom – Europe's first industrial-scale mycelium packaging producer

https://magicalmushroom.com/index
3•microflash•19m ago•0 comments

Apixies – 39 utility APIs (SSL, DNS, email, QR, PDF) behind one key

https://apixies.io
2•bicibg•22m ago•1 comments

Investigating an LLM generated C compiler

https://shape-of-code.com/2026/02/22/investigating-an-llm-generated-c-compiler/
2•rsaarelm•23m ago•0 comments

Which web frameworks are most token-efficient for AI agents?

https://martinalderson.com/posts/which-web-frameworks-are-most-token-efficient-for-ai-agents/
3•martinald•24m ago•0 comments

Is the Swipe Era Over?

https://www.nytimes.com/2026/02/22/podcasts/the-daily/is-the-swipe-era-over.html
2•vednig•27m ago•0 comments

Show HN: Mellon – Free local speech-to-text for Mac with phonetic corrections

https://voice.mellon.chat/
2•xavpoon•28m ago•1 comments

Three thoughts on the future of writing software

https://twitter.com/awnihannun/status/2025752613749399609
2•tosh•28m ago•0 comments

Pope tells priests to use their brains, not AI, to write homilies

https://www.ewtnnews.com/vatican/pope-leo-xiv-tells-priests-to-use-their-brains-not-ai-to-write-h...
34•josephcsible•29m ago•5 comments

Zlinter – An Extendable and Customizable Zig Linter

https://github.com/KurtWagner/zlinter
2•TheWiggles•31m ago•0 comments

Show HN: DoFast – I built a tool that shows me my next best action

https://dofast.xyz
1•gisverygood•32m ago•1 comments

Show HN: I made and app to stop living on autopilot

https://apps.apple.com/us/app/unpilot-stop-doom-scrolling/id6756385928
1•pabloschz•34m ago•2 comments

Clip to source: contextualizing Instagram reels by building a search engine

https://mrks.se/clip-to-source/
1•maekoos•35m ago•0 comments

Snake Charmer – A nicer way to view Python docs

https://snake-charmer.work/3.14/tutorial/appetite
1•spikepuppet•36m ago•1 comments

Show HN: Code Lantern– A self-hosted, local code-analysis and visualization tool

https://github.com/Tjindl/code-lantern
1•tjindl•38m ago•0 comments

Scheme 9 from Empty Space (2014)

https://t3x.org/s9book/index.html
2•emigre•41m ago•0 comments

Show HN: Fast, browser-side PDF merger with no file uploads to server

https://webaitool.net/merge-pdf.php
2•shahidsj•42m ago•0 comments

Visualize PostgreSQL plan alternatives using eBPF

https://github.com/jnidzwetzki/pg_plan_alternatives
1•f00dball•43m ago•0 comments

Nebula Commander: A self-hosted control plane for Nebula overlay networks

https://github.com/NixRTR/nebula-commander
2•teekert•43m ago•0 comments

Out of Light Adjust Share: Caravaggio, La Tour, and the Art of Attention

https://harpers.org/archive/2026/03/out-of-light-nicole-krauss-caravaggio-georges-de-la-tour/
2•prismatic•43m ago•0 comments

Show HN: Labhlabs – What Happens When LLMs Trade the Indian Market?

https://labh.openkuber.com/
3•sasponn•44m ago•0 comments