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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Claude is down – Jan 14th 2026

1•rubymamis•1m ago•0 comments

Matthew McConaughey Trademarks Himself to Fight AI Misuse

https://www.wsj.com/tech/ai/matthew-mcconaughey-trademarks-himself-to-fight-ai-misuse-8ffe76a9
1•impish9208•1m ago•1 comments

The Six Patterns That Cover Everything

https://github.com/siy/coding-technology/blob/main/articles/six-patterns-that-cover-everything.md
1•siy•1m ago•1 comments

China's customs agents told Nvidia's H200 chips are not permitted

https://www.reuters.com/world/china/chinas-customs-agents-told-nvidias-h200-chips-are-not-permitt...
1•zerosizedweasle•2m ago•0 comments

All you need is Wide Events, not "Metrics, Logs and Traces" (2024)

https://isburmistrov.substack.com/p/all-you-need-is-wide-events-not-metrics
1•tosh•2m ago•0 comments

Marine Snow

https://en.wikipedia.org/wiki/Marine_snow
1•thunderbong•3m ago•0 comments

Ask HN: Personal website featured on HN, list of restaurants in NYC

1•laffOr•4m ago•0 comments

Netflix 'plans to switch to all-cash offer to seal $83B Warner Bros deal'

https://www.theguardian.com/film/2026/jan/14/netflix-plans-to-switch-to-all-cash-offer-to-seal-wa...
1•beardyw•7m ago•0 comments

Software Development and Modeling in the Age of Artificial Intelligence

https://download.ssrn.com/2025/12/9/5881104.pdf?response-content-disposition=inline&X-Amz-Securit...
1•ahoibakk•7m ago•0 comments

Senate passes a bill that would let nonconsensual deepfake victims sue

https://www.theverge.com/news/861531/defiance-act-senate-passage-deepfakes-grok
1•smurda•10m ago•0 comments

Does anyone know who currently owns Graphic (formerly Autodesk Graphic)?

https://graphic.com
1•mattkevan•11m ago•1 comments

Debunking the 'Three Pillars of Observability' Myth (2021)

https://softwareengineeringdaily.com/2021/02/04/debunking-the-three-pillars-of-observability-myth/
1•tosh•12m ago•0 comments

How to write a good spec for AI agents

https://addyosmani.com/blog/good-spec/
2•cdrnsf•12m ago•0 comments

How to get banned from Facebook in one simple step

https://nibblestew.blogspot.com/2026/01/how-to-get-banned-from-facebook-in-one.html
1•ibobev•14m ago•0 comments

You Need a Kitchen Slide Rule

https://entropicthoughts.com/kitchen-slide-rule
1•ibobev•15m ago•0 comments

Show HN: DailySpace, Android app for exploring space photos and rocket launches

https://play.google.com/store/apps/details?id=com.daily.space&hl=en_US
3•DailySpace•15m ago•3 comments

Parallel Primitives for Multi-Agent Workflows

https://fergusfinn.com/blog/parallel-primitives-blog/
1•mezark•16m ago•0 comments

No Bloom? No Problem: Glowing Stuff Without Post Effects

https://www.patreon.com/posts/no-bloom-no-post-53965598
1•ibobev•16m ago•0 comments

Servo 2025 Stats

https://blogs.igalia.com/mrego/servo-2025-stats/
7•todsacerdoti•17m ago•0 comments

Event Sourcing with GenesisDB CE Now Available on Uberspace

https://lab.uberspace.de/guide_genesis-db/
1•patriceckhart•18m ago•0 comments

Unemployed almost a year after graduating MIT – a rant

3•TimGubth•21m ago•2 comments

Build Your OT Toolbox: It's Dangerous to Go Alone, So Take These Tools

https://www.emberot.com/resources/blog/build-your-ot-toolbox/
1•TheWiggles•22m ago•0 comments

Ask HN: Did Glassdoor figure out your identity?

1•penguin_booze•24m ago•0 comments

Show HN: Hirebetter.io – AI tools to reduce manual recruiter work

https://hirebetter.io
1•tomgreef•25m ago•0 comments

Show HN: Anti for You

https://github.com/da-x/anti-for-you
1•da-x•26m ago•0 comments

Donald Trump, Would-Be Price Controller

https://paulkrugman.substack.com/p/donald-trump-would-be-price-controller
3•rbanffy•28m ago•0 comments

Lies, Damned Lies and Proofs: Formal Methods Are Not Slopless

https://www.lesswrong.com/posts/rhAPh3YzhPoBNpgHg/lies-damned-lies-and-proofs-formal-methods-are-...
3•OgsyedIE•30m ago•0 comments

Show HN: Plane Clock – Displays plane corresponding to hour

https://antoinemopa.github.io/plane_clock/
1•antoineMoPa•32m ago•0 comments

EBPF.party

https://ebpf.party
4•todsacerdoti•35m ago•0 comments

Show HN: Burnboard – Track and compare your AI coding assistant usage

https://burnboard.dev
1•davekiss•36m ago•0 comments