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

Show HN: Ciaren – Visual data pipelines that export real Polars/Python

https://ciaren.com/
1•rodrigo-arenas•1m ago•0 comments

Most Googlebots Are Fake

https://digitalseams.com/blog/most-googlebots-are-fake
1•birdculture•2m ago•0 comments

How far can you go by train in Europe?

https://www.chronotrains.com/en/explore
1•rzk•3m ago•0 comments

Making the Case for Functional Programming

https://parksb.github.io/en/article/40.html
1•parksb•4m ago•0 comments

macOS Files and Folders System Settings Confusing UI

https://lapcatsoftware.com/articles/2026/7/12.html
1•speckx•5m ago•0 comments

Italy Blocks Reproductive Health Websites Women on Web and Women Help Women

https://ooni.org/post/2026-italy-blocks-wow-and-whw
1•miniBill•6m ago•0 comments

Show HN: I built an atlas linking genes, exposure, and disease by US county

https://genarch.org/
1•kiaansaraiya•6m ago•1 comments

Show HN: Daily competitor-change briefs for local businesses

https://myintelbrief.com/
1•chooklay•8m ago•0 comments

Controlling your home with tiny, cheap touchscreens

https://a.wholelottanothing.org/controlling-your-home-with-tiny-cheap-touchscreens/
2•speckx•10m ago•0 comments

When sine of x degrees equals sine of x radians

https://www.johndcook.com/blog/2026/07/22/degrees-radians/
2•surprisetalk•10m ago•0 comments

Real AI changed the way I see fictional AI

https://diels-daydreams.bearblog.dev/real-ai-changed-the-way-i-see-fictional-ai/
3•nivethan•10m ago•1 comments

Why a $154B CEO just endorsed stripping most Americans of voting rights

https://fortune.com/2026/07/27/shopify-ceo-voting-rights-stripping-americans-19th-century/
18•imzadi•11m ago•3 comments

Show HN: Shoebox Plus Organizer – search, sort, and filter your Ancestry Shoebox

https://chromewebstore.google.com/detail/shoebox-plus-organizer/ncmfpkikgbnacbiipnbnfdohjpbgjjkh
1•ThroughTheTrees•11m ago•0 comments

Show HN: StashDog – Modeling physical belongings as searchable data

https://stashdog.io/
1•plasticdroid•11m ago•1 comments

You Still Get Personalized Ads Even After Turning Off Your Microphone and Camera

https://twitter.com/TrustKernelTech/status/2082088703002816566
2•PlugMate•11m ago•0 comments

ClickHouse's Hidden Built-In Dashboards

https://bx2.me/notes/clickhouses-hidden-built-in-dashboards/
2•giulianopz•12m ago•0 comments

From Moon Craters to Martian Dust

https://medium.com/@alanscottencinas/from-moon-craters-to-martian-dust-fd5fecb79834
1•encinas88•12m ago•0 comments

How far can you push the range of Wi-Fi connectivity in an ideal environment?

https://www.phidgets.com/?view=articles&article=LongRangeWifi
1•rzk•12m ago•0 comments

Show HN: Jarvis, a voice assistant that never leaves your network

https://github.com/alexberardi/jarvis
1•xanderwestside•13m ago•0 comments

New Fields medalist, Jacob Tsimerman, leaving research math to work at OpenAI

https://www.math.columbia.edu/~woit/wordpress/?p=15787
1•bryan0•13m ago•0 comments

Over 24,000 exposed server BMCs leak password hash via decades-old flaw

https://www.bleepingcomputer.com/news/security/over-24-000-exposed-server-bmcs-leak-password-hash...
1•Brajeshwar•13m ago•0 comments

Mazebench

https://mazebench.com/blog?post=introducing-mazebench
1•fidotron•13m ago•0 comments

Show HN: Hiring Method – a deterministic, math-driven recruitment platform

https://hiring-method.com/
1•genekrapivin•13m ago•0 comments

Firefox 153 QWAC Certificate Verification: A New Line in Your Padlock Icon

https://qainsights.com/firefox-153-qwac-certificate-verification-a-new-line-in-your-padlock-icon/
1•qainsights•14m ago•0 comments

Memo-1: A 6502 computer built from scratch, using a Minitel as its terminal

https://github.com/MemoireMorte/Memo-1
2•sciences44•15m ago•0 comments

Show HN: S2Q – Stripe payouts posted into QuickBooks itemized, no subscription

https://s2q.now/
1•artproof•17m ago•0 comments

Goodbye File Browser, for Real This Time

https://hacdias.com/2026/07/28/filebrowser/
2•speckx•18m ago•0 comments

Show HN: WebCMD, a reusable CLI command layer for browser agents

https://github.com/agentrhq/webcmd
1•askadityapandey•19m ago•0 comments

Building Galley House

https://eviltrout.com/blog/2026-07-28-building-galley-house/
1•EvilTrout•22m ago•0 comments

Italian paradise island with no roads, no phone signal and almost no tourists

https://www.cnn.com/travel/palmarola-italy-island-no-tourists
1•mooreds•23m ago•0 comments