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

What if you gave everyone an intern?

https://blev.dev/articles/what-if-you-gave-everyone-an-intern/
1•blev•35s ago•0 comments

Show HN: Obsidian Aside

https://community.obsidian.md/plugins/aside
1•wl1973•1m ago•0 comments

Always On. Always Watching

https://blog.ppb1701.com/always-on-always-watching
1•pimeys•2m ago•0 comments

New Players Wanted in Iver

https://www.stpetersiverfc.com
1•chrisgen•3m ago•0 comments

Teaching AI to Run with the Turbines

https://www.technologyreview.com/2026/07/02/1138433/teaching-ai-to-run-with-the-turbines/
1•gmays•5m ago•0 comments

Google patent of an identification method for Tor Over VPN

https://patents.google.com/patent/CN116233013B/en
1•chbint•5m ago•0 comments

Show HN: Netstat for TLS Traffic

https://github.com/yuedongze/tlstat
1•yuedongze•6m ago•0 comments

Fable, Opus, Claude Code and Claude Web: How to Use Them All for the Best Result

https://theautomatedoperator.substack.com/p/fable-opus-claude-code-and-claude
1•idopmstuff•7m ago•0 comments

Show HN: Subagentmaxxing – Orchestrate GPT and Cursor Models with Claude Code

https://github.com/Kuberwastaken/subagentmaxxing
1•kuberwastaken•7m ago•0 comments

Show HN: Advanced Search for Bluesky (Chrome Extension)

https://www.bskysrch.com/chrome-extension
1•nklswbr•8m ago•0 comments

What Does "Processed Meat" Mean?

https://www.malone.news/p/what-does-processed-meat-actually
1•bilsbie•9m ago•0 comments

Show HN: Papercrane-CLI – a BI tool built for Claude Code

https://papercrane.ai/blog/today-im-launching-papercrane-cli-a-bi-tool-built-for-claude-code
2•timliu9•9m ago•0 comments

You paid me, a long-time Linux user, to use Windows 11 exclusively for a month

https://www.osnews.com/story/145459/you-paid-me-a-long-time-linux-user-to-use-windows-11-exclusiv...
3•speckx•10m ago•0 comments

Meta's 'Super Sensing' Prototype Glasses Quietly Record Everything

https://www.macrumors.com/2026/07/09/meta-super-sensing-glasses-record-everything/
3•Brajeshwar•11m ago•0 comments

Prose Isn't Policy: Stop Writing Claude.md Rules

https://zernie.com/blog/stop-writing-claude-md-rules/
2•zernie•13m ago•1 comments

Croatia's Infobip acquires SocketLabs to expand enterprise email infrastructure

https://seenews.com/news/croatias-infobip-acquires-socketlabs-to-expand-enterprise-email-infrastr...
2•taubek•14m ago•0 comments

Launch HN: Context.dev (YC S26) – API to get structured data from any website

https://www.context.dev
6•TheYahiaBakour•14m ago•0 comments

Hy3

https://hy.tencent.com/research/hy3
2•andai•15m ago•0 comments

How to Set Up DKIM: From Key Generation to a Passing DMARC Report

https://dmarcguard.io/blog/dkim-setup-guide/
2•meysamazad•16m ago•0 comments

A Summer Creativity Experiment

https://brainbaking.com/post/2026/07/a-summer-creativity-experiment/
2•meysamazad•16m ago•0 comments

How to Write an Email

https://blog.dannycastonguay.com/how-to-write-an-email/
2•speckx•16m ago•1 comments

Show HN: Strata – guess the city from its real 3D terrain and bathymetry

https://flightq.app/strata
2•skyq•16m ago•0 comments

Show HN: ADarkTerminal

https://adarkterminal.electricsheep.games
2•rrotaru•16m ago•0 comments

Show HN: Blocks.ai – control plane and network layer for agents

https://blocks.ai
2•BlocksAI•17m ago•0 comments

A Possible Future for Damn Interesting

https://www.damninteresting.com/a-possible-future/
2•mzur•18m ago•0 comments

Show HN: I wrote a Libc-free AOT systems language in JavaScript with no VM

https://github.com/DO-SAY-GO/freelang
3•keepamovin•18m ago•1 comments

Good Pain

https://html-chunder.neocities.org/posts/good-pain/
2•meysamazad•18m ago•0 comments

Motion-first robotic action segmentation beats vision-first SOTA

https://www.nomadicai.com/blog/action-segmentation-benchmark
3•simbasdad•20m ago•0 comments

Deadly bacteria found in city's wastewater system tied to Meta data center

https://www.dailymail.com/sciencetech/article-15962981/mark-zuckerberg-meta-wyoming-ai-data-cente...
11•cdrnsf•22m ago•1 comments

Acronym Fatigue Series part 1: CAP, ACID and friends

https://devz.cl/posts/acronym-fatigue-series-cap-acid-etl-elt/
4•DanielVZ•22m ago•1 comments