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

Working from Home Is Harming Young Employees. They're Starting to See That

https://www.nytimes.com/2025/12/01/business/young-workers-office.html
1•ghaff•1m ago•0 comments

Chamberlain blocks smart home integrations with its garage door openers – again

https://www.theverge.com/tech/839294/chamberlain-myq-garage-door-opener-update-blocks-aftermarket...
1•josephcsible•1m ago•0 comments

Could machine learning save this sea cow? (2016)

https://blog.google/technology/ai/could-machine-learning-save-sea-cow/
1•surprisetalk•2m ago•0 comments

High Performance Browser Networking

https://hpbn.co/
1•udev4096•2m ago•0 comments

The Misconceptions About Vibe-Coding

https://blog.fka.dev/blog/2025-12-06-the-misconceptions-about-vibe-coding/
1•fka•4m ago•0 comments

Power banks sold on Amazon cause $380k in property damage

https://www.abc27.com/news/consumer/recalls/power-banks-sold-on-amazon-cause-380000-in-property-d...
1•josephcsible•7m ago•0 comments

Netflix Business Metrics and the Slow Death of Hollywood

https://www.thebignewsletter.com/p/the-slow-death-of-hollywood
1•walterbell•7m ago•0 comments

Diffie-Hellman Key Exchange Visualizer

https://sidney.sh/projects/diffie-visualizer/
1•todsacerdoti•8m ago•0 comments

VCMI: An open-source engine for Heroes III

https://vcmi.eu/
1•eamag•10m ago•0 comments

Jon Voight's Plan to Save Hollywood

https://deadline.com/2025/05/jon-voight-hollywood-plan-read-in-full-trump-tariffs-1236387042/
1•walterbell•10m ago•0 comments

Anthropic's philosopher answers your questions [video]

https://www.youtube.com/watch?v=I9aGC6Ui3eE
2•Topfi•13m ago•0 comments

Lithuanian Watchdog Fines Torrent Tracker Users for Pirating Local Blockbuster

https://torrentfreak.com/lithuanian-watchdog-fines-torrent-tracker-users-for-pirating-local-block...
1•gslin•17m ago•0 comments

International Atomic Time

https://en.wikipedia.org/wiki/International_Atomic_Time
1•basilikum•17m ago•0 comments

Show HN: Paperclip Maximizer Bench

https://d.erenrich.net/paperclip-bench/index.html
1•brokensegue•18m ago•0 comments

Earn $100 Today

https://smartrobotics.com.ng/earn-100-today/
1•jacdon•18m ago•0 comments

The Global Building Atlas

https://googlemapsmania.blogspot.com/2025/12/introducing-global-building-atlas.html
1•geox•19m ago•0 comments

Interactive 3D Electron Orbital Visualizer – Chemistry Tool

https://claude.ai/public/artifacts/de0c28f3-7a8e-4409-8fb1-53eabf3379ad
1•kordlessagain•21m ago•1 comments

'The Chair Company' Is a Show About How Fun It Is to Use the Computer

https://defector.com/the-chair-company-is-a-show-about-how-fun-it-is-to-use-the-computer
3•Apocryphon•22m ago•0 comments

Stop Paying for 4 AI Models

https://riskparody.substack.com/p/stop-paying-for-4-ai-models
2•chrislguo•22m ago•0 comments

AI Energy Score v2: Refreshed Leaderboard, Now with Reasoning

https://huggingface.co/blog/sasha/ai-energy-score-v2
2•todsacerdoti•24m ago•0 comments

Say Goodbye to the Billable Hour, Thanks to AI

https://www.wsj.com/tech/ai/ai-goodbye-to-billable-hours-cba198fe
3•ryan_j_naughton•26m ago•1 comments

Goodbye to an 11-year-old Issue

https://cassidoo.co/post/eleven-year-issue/
1•mooreds•27m ago•0 comments

Un.org Is Down

https://www.un.org/
2•gfalcao•29m ago•0 comments

Git History

https://alchemists.io/articles/git_history
1•mooreds•29m ago•0 comments

This Might Be the Biggest Thing in the Universe That Spins

https://gizmodo.com/this-might-be-the-biggest-thing-in-the-universe-that-spins-2000695690
1•mooreds•30m ago•0 comments

Probing the existence of a fifth force via neutron star cooling

https://phys.org/news/2025-12-probing-neutron-star-cooling.html
1•Brajeshwar•31m ago•0 comments

Close-up images show how stars explode in real time

https://phys.org/news/2025-12-images-stars-real.html
1•Brajeshwar•31m ago•0 comments

How to Build an Embedded ChatGPT App (MCP App)

https://sunpeak.ai/blogs/chatgpt-apps-what-i-wish-i-knew
1•abewheeler•31m ago•1 comments

Need laundry folded? Don't ask a robot

https://knowablemagazine.org/content/article/technology/2025/why-robots-cant-fold-laundry
2•Brajeshwar•31m ago•0 comments

Ask HN: Best place to be a founder outside of the US?

1•garbawarb•34m ago•0 comments