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•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

What Makes the Intro to Crafting Interpreters So Good?

https://refactoringenglish.com/blog/crafting-interpreters-intro/
1•mtlynch•24s ago•0 comments

Show HN: YaraDB Python Client – A clean interface for my custom WAL-based DB

https://github.com/illusiOxd/yaradb-client-py
1•ashfromsky•1m ago•0 comments

Dedicated Agents for devs who have had enough of context Archaeology

https://www.weppo.co
1•safoan_eth•1m ago•0 comments

OnlineOrNot's lessons from Cloudflare's outage on 2025-11-18

https://onlineornot.com/onlineornot-lessons-from-cloudflare-outage-2025-11-18
1•rozenmd•3m ago•0 comments

How to work with Product: At the tea table

https://blog.nilenso.com/blog/2025/11/18/how-to-work-with-product-at-the-tea-table/
1•sriharis•3m ago•0 comments

The paradox is that when I accept myself just as I am, I change

https://www.henrikkarlsson.xyz/p/diaries
1•jger15•5m ago•0 comments

Show HN: I made a landing page component picker

https://landinggo.com/tools/landing-page-component-picker-quiz
1•bkrisa•6m ago•0 comments

Europe's cookie nightmare is crumbling. EC wants preference at browser level

https://www.theverge.com/news/823788/europe-cookie-prompt-browser-changes-proposal
2•nopakos•7m ago•0 comments

Show HN: tweakcc (OSS)–customize Claude Code's system prompt and LSP and /title

https://github.com/Piebald-AI/tweakcc/releases/tag/v3.1.1
1•bl-ue•8m ago•1 comments

Show HN: Hypercamera – a browser-based 4D camera simulator

https://dugas.ch/4d_creatures/4d_camera.html
1•chronolitus•8m ago•0 comments

Maurizio Cattelan Golden Toilet Sells for $12.1m At Sotheby's

https://www.artnews.com/art-news/news/maurizio-cattelan-america-sothebys-sale-toilet-12-million-1...
1•bookofjoe•9m ago•0 comments

Show HN: GetViralSEO – Find competitors' top SEO pages instantly

https://getviralseo.com/
1•natia_kurdadze•9m ago•0 comments

AI-Assisted Scientific Research?

https://www.aims.healthcare
1•martinclayton•9m ago•1 comments

Show HN: Folderhost – selfhosted file sharing app in Go

https://github.com/MertJSX/folderhost
1•mertjsx•10m ago•0 comments

How to overcome your Indie hacking (Solopreneur) Writer's block

https://hugoib.beehiiv.com/p/how-to-overcome-indie-hacking-solopreneur-writer-block
1•hugoib•11m ago•0 comments

Show HN: Ice Breaker Games

https://icebreakergames.art
1•ethanYIAI•12m ago•0 comments

Three Moo Tokens

https://gist.github.com/grantisu/eac11b207e49e66fd543b57269f149ef
1•gsu2•13m ago•0 comments

Show HN: After 7+ years, I'm releasing Melodic Mind (a Superapp for musicians)

https://melodic-mind.com
1•seanitzel•13m ago•0 comments

AI Transcriptions and Insights–Fast, Accurate, Multilingual

https://transcribepro.nl
1•oarized•13m ago•1 comments

I launched a payload to the stratosphere to measure algae fluorescence

https://radi8.dev/blog/stratospore/
1•radeeyate•15m ago•1 comments

How might we incentivize a Proof-of-Work Code Review?

https://cameronwestland.com/how-might-we-incentivize-a-proof-of-work-code-review
1•bladeee•16m ago•0 comments

Zo: Intelligent Personal Servers for Everyone

https://www.zo.computer/about
3•benzguo•17m ago•0 comments

State of IP Spoofing

https://spoofer.caida.org/summary.php
2•evah•17m ago•0 comments

Show HN: Fixing a single pointer bug unlocked 1M+ row JSON parsing on Windows

1•hilti•18m ago•0 comments

EU Regulators Announce List of Critical ICT Third-Party Providers

https://www.esma.europa.eu/press-news/esma-news/european-supervisory-authorities-designate-critic...
3•das_keyboard•18m ago•1 comments

New Crosh Window

1•crimble•23m ago•1 comments

Destroyer Escort vs. German 576-pound torpedo warhead

https://laststandonzombieisland.com/2025/11/18/destroyer-escort-vs-german-torpedo-2025-edition/
2•speckx•24m ago•0 comments

You Aren't in the DSM

https://asteriskmag.com/issues/12-books/you-arent-in-the-dsm
2•surprisetalk•25m ago•0 comments

Forever Object: The Staple-Less Oceanus Brass Stapler

https://www.core77.com/posts/139027/Forever-Object-The-Staple-less-Oceanus-Brass-Stapler
2•surprisetalk•25m ago•0 comments

Variance of a Sum

https://leancrew.com/all-this/2025/11/variance-of-a-sum/
1•surprisetalk•25m ago•0 comments