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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Show HN: Uninum – All elementary functions from a single operator in Python

https://github.com/Brumbelow/uninum
1•brumbelow•1m ago•0 comments

Gagan Biyani: how I feel about Udemy's sale to Coursera

https://twitter.com/gaganbiyani/status/2044092914582822936
1•nadis•2m ago•0 comments

BankToCSV – Convert bank statement PDFs to clean CSVs

https://banktocsv.vercel.app
1•pixelpushr•3m ago•0 comments

EIU Democracy Index 2025: democracy stabilises after eight years of decline

https://www.economistgroup.com/press-centre/economist-enterprise/eiu-democracy-index-2025-democra...
1•Bondi_Blue•3m ago•0 comments

Researchers Asked LLMs for Strategic Advice. They Got "Trendslop" in Return

https://hbr.org/2026/03/researchers-asked-llms-for-strategic-advice-they-got-trendslop-in-return
2•cdrnsf•4m ago•0 comments

Is GitHub Down Again?

1•codehead•4m ago•0 comments

The Wisdom of the People's Computer Company

https://arbesman.substack.com/p/the-wisdom-of-the-peoples-computer
1•arbesman•7m ago•0 comments

Tesla FSD Europe launch backlash: HW3 owners launch claim site

https://electrek.co/2026/04/14/tesla-fsd-europe-hw3-owners-dutch-claim/
1•breve•8m ago•0 comments

Show HN: ContextPack – CLI that maps any codebase into ranked context

https://github.com/Sashank006/Context-Engine
1•Sashank06•9m ago•0 comments

Zelensky: Ukraine's defense industry can produce FPV drones annually

https://www.ukrinform.net/rubric-defense/4112129-zelensky-ukraines-defense-industry-can-produce-m...
1•doener•12m ago•0 comments

Comparison of Payment Methods

https://eylenburg.github.io/payments.htm
1•Cider9986•12m ago•0 comments

Terminator: Code You See Onscreen [video]

https://www.youtube.com/watch?v=NebvccLHutQ
1•ingve•12m ago•0 comments

Data Discovery – plain-English to discovering and acquiring data using AI

https://datris.ai/videos/data-discovery-ingestion-consumption
1•tfearn•13m ago•1 comments

Patches for Linux 7.1 May Have Negative Impact on 32-Bit Systems

https://www.phoronix.com/news/Linux-7.1-VFS-Kino-32-bit
1•doener•14m ago•0 comments

How to diagnose RAG failures from traces

https://www.siquick.com/blog/diagnose-rag-failures-from-traces
1•siquick•20m ago•0 comments

Did games really get more costly to make?

https://newsletter.hushcrasher.com/p/did-games-really-get-more-costly
1•juliebelz•22m ago•1 comments

Stack Overflow moderator publicly leaks private flagger information

https://meta.stackoverflow.com/questions/438679/why-is-a-moderator-harassing-me-about-an-answer-i...
4•hskdididn•23m ago•1 comments

Are ClickHouse JOINs Slow? A 2026 PR-by-PR Analysis

https://dataanalyticsguide.substack.com/p/clickhouse-join-performance-2026
1•manveerc•26m ago•0 comments

Sandyaa: Recursive-LLM source code auditor that writes exploitable PoCs

https://github.com/securelayer7/sandyaa
1•sandeep_kamble•26m ago•1 comments

How Not to 'Pilet' a Kickstarter

https://c33tech.com/blog/2026/04/how_not_to_pilet_a_kickstarter/
1•mikeflynn•27m ago•0 comments

Michael O. Rabin has passed away

https://en.wikipedia.org/wiki/Michael_O._Rabin
2•statusreport•28m ago•1 comments

Connect iMessage to your Claude Code assistant

https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/imessage
1•rob•28m ago•0 comments

New (Twin) Dad Advice

https://hec.works/blog/new-twin-dad/
2•dividedcomet•30m ago•2 comments

Show HN: Turned a viral DevOps debugging tweet into a playable incident SIM

https://youbrokeprod.com/login?redirect=%2Fplay%2Frunaway-process-001
1•cdnsteve•31m ago•0 comments

Anthropic Redesigns Claude Code Desktop

https://twitter.com/claudeai/status/2044131493966909862
1•Nevin1901•32m ago•1 comments

Show HN: Start Using Claude Managed Agents Today – Posse

https://github.com/oguzbilgic/posse
1•obilgic•32m ago•0 comments

I Went to China to See Its Progress on A.I. We Can't Beat It

https://www.nytimes.com/2026/04/13/opinion/china-ai-america-chipmakers.html
3•suvan•33m ago•1 comments

Show HN: Would you score a podcast debate?

1•fcpguru•34m ago•0 comments

California moves forward with its 'Stop Nick Shirley Act'

https://www.deseret.com/politics/2026/04/14/stop-nick-shirley-act-california-fraud/
3•donsupreme•36m ago•1 comments

Agent Skill for Jj Jujutsu VCS

https://github.com/danverbraganza/jujutsu-skill
1•nvader•39m ago•0 comments