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

The Big Problem with Solar Power [video]

https://www.youtube.com/watch?v=otSAEca41eE
1•mpweiher•2m ago•0 comments

The US polluters that are rewriting the EU's human rights and climate law

https://www.somo.nl/the-secretive-cabal-of-us-polluters-that-is-rewriting-the-eus-human-rights-an...
1•saubeidl•5m ago•0 comments

AI-Assisted Binary Reverse Engineering with Ghidra

https://github.com/biniamf/ai-reverse-engineering
2•mars_wonder•5m ago•0 comments

Improving MySQL Cluster Uptime: Designing Advanced Detection, Mitigation

https://www.uber.com/en-HK/blog/improving-mysql-cluster-uptime-part1/
1•ksec•6m ago•0 comments

To Catch a Predator: Leak exposes the internal operations of Intellexa's spyware

https://securitylab.amnesty.org/latest/2025/12/intellexa-leaks-predator-spyware-operations-exposed/
2•miohtama•8m ago•0 comments

When square pixels aren't square

https://alexwlchan.net/2025/square-pixels/
1•ravenical•8m ago•0 comments

Show HN: Travel ESIM Comparison

https://esimguide.com
1•iSloth•12m ago•0 comments

Beyond Electoral Theatre

https://rodgercuddington.substack.com/p/beyond-electoral-theatre-analysing
1•freespirt•12m ago•1 comments

Show HN: I built an autopilot that generates and posts my X tweets every day

https://x101.tech
1•HansP958•15m ago•0 comments

The first programming language designed for LLM

https://github.com/santino-research/spell
1•elio-santino•18m ago•0 comments

Why hiring feels impossible now: employers can't tell who's good

https://www.reddit.com/r/recruitinghell/s/4ExI1M25o5
3•BerislavLopac•20m ago•0 comments

How to Troubleshoot Common Kubernetes Errors [2025 Guide]

https://spacelift.io/blog/kubernetes-troubleshooting
1•amalinovic•20m ago•0 comments

Why Ed(1)?

https://blog.thechases.com/posts/cli/why-ed1/
1•fanf2•21m ago•0 comments

High levels of 'forever chemical' found in cereal products across Europe – study

https://www.theguardian.com/environment/2025/dec/04/high-levels-of-forever-chemical-found-in-cere...
2•XzetaU8•22m ago•0 comments

Ruby Inject and Ruby Reduce: Aliases for Powerful Enumeration

https://www.railscarma.com/blog/ruby-inject-and-ruby-reduce/
1•unripe_syntax•22m ago•0 comments

Hydrogen from the sea–why Guam, Marianas should build the next great energy wave

https://www.guampdn.com/lifestyle/innovate-hydrogen-from-the-sea-why-guam-marianas-should-build-t...
1•sipofwater•23m ago•1 comments

Affinity Hits 3M Downloads of Its New Editing Software in Just 33 Days

https://petapixel.com/2025/12/03/affinity-hits-3m-downloads-of-its-new-editing-software-in-just-3...
1•iamA_Austin•25m ago•0 comments

Wikipedia 2025 Year in Review

https://wikimediafoundation.org/wikipedia-year-in-review-2025/
2•sthottingal•26m ago•0 comments

Wikipedia's most-read articles of 2025

https://wikimediafoundation.org/news/2025/12/02/announcing-wikipedias-most-read-articles-of-2025/
3•sthottingal•26m ago•0 comments

Cloudflare CTO's Downtime Reasoning

https://twitter.com/dok2001/status/1996872325678223609
4•JustSkyfall•28m ago•1 comments

Attention Lottery: DeepSeek, Sparse Attention, and the Future of AI Cognition

https://geeksinthewoods.substack.com/p/attention-lottery-deepseek-sparse
1•artur_makly•28m ago•0 comments

Nights in the Forest – Ultimate Guide – Codes, Scripts and Tips 2025

https://99nights.net/
1•AI_kid1412•29m ago•0 comments

Software Kingdoms – On economic principles, FOSS, and paywalls (2023)

https://www.rfleury.com/p/software-kingdoms
1•kruuuder•30m ago•0 comments

Show HN: PromoPilot – automated 3-level backlink cascade for fast SEO growth

https://promopilot.link/
1•ksanyokm•30m ago•0 comments

We open-sourced kubesdk: a typed, async-first Python client for Kubernetes

https://github.com/puzl-cloud/kubesdk
1•beslanb•30m ago•1 comments

SidePanel Buddy – Open Any Site in Side Panel

https://chromewebstore.google.com/detail/sidepanel-buddy-open-any/dopbaneicedfkgmcacndkdcnakohliha
2•zackho•31m ago•1 comments

Awful AI is a curated list to track current scary usages of AI

https://github.com/daviddao/awful-ai
13•trueduke•32m ago•0 comments

There is no psychohistory, and there never will be (2018)

https://scatter.wordpress.com/2018/02/22/there-is-no-psychohistory-and-there-never-will-be/
1•isomorph•37m ago•0 comments

Show HN: A collection of questions on the human experience

https://goodquestions.qzz.io/
1•tdsone3•39m ago•0 comments

Show HN: Steps.org – Humanely Curated AI Prompts for Porn Addiction Recovery

https://www.steps.org
2•tiagom87•39m ago•1 comments