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•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

SF vibes are frenetic over the divide in outcomes and career uncertainty

https://www.techmeme.com/260516/p9
1•danorama•4m ago•1 comments

SeeFlow – Architecture diagrams that run

https://seeflow.dev
1•tuongaz•6m ago•0 comments

Lord of the Flies: A Harmful Distortion of Children's Nature

https://petergray.substack.com/p/114-lord-of-the-flies-a-harmful-distortion
1•Ariarule•7m ago•0 comments

Unmanned lab opens with robots at work as researchers push AI, automation

https://japantoday.com/category/tech/unmanned-lab-opens-with-robots-at-work-as-researchers-push-a...
1•pseudolus•11m ago•0 comments

Eric Weinstein: "I Was Wrong About UFOs " [video]

https://www.youtube.com/watch?v=ZBjJTj_ZFXU
1•keepamovin•21m ago•0 comments

Ccstory – Weekly recap of what you did in Claude Code

https://github.com/atomchung/ccstory
1•atomtw•27m ago•0 comments

Bear spray is exploding in the trash near Yellowstone National Park

https://www.sfgate.com/national-parks/article/exploding-bear-spray-yellowstone-22244713.php
3•turtlegrids•27m ago•1 comments

2026 will be a HVAC contractor bloodbath

https://www.reddit.com/r/heatpumps/s/APgJ68ZSyz
2•ssuds•31m ago•0 comments

LLMs and the Epistemic Apocalypse

https://haversine.substack.com/p/the-slow-creep-of-epistemic-apocalypse
1•MakeAJiraTicket•35m ago•1 comments

How to buy cheap Claude tokens in China

https://www.chinatalk.media/p/how-to-buy-cheap-claude-tokens-in
2•RyanShook•40m ago•0 comments

Science Behind Too Much Homework for Lower School Kids

https://restingrichface.substack.com/p/im-quitting-my-third-graders-homework
2•_RRF•42m ago•1 comments

Ascetic Computing

https://ratfactor.com/ascetic-computing
2•RohanAdwankar•46m ago•0 comments

Zhengkid/AutoTTS: Agentic Discovery for Test-Time Scaling

https://github.com/zhengkid/AutoTTS
2•gmays•50m ago•0 comments

Monero Stats: An aggregate of payment data by businesses that accept Monero

https://monerostats.org/
2•Cider9986•52m ago•2 comments

Four Decisions: The Divergent Choices That Define a Life

https://gadallon.substack.com/p/four-decisions-the-divergent-choices
1•Murskautuminen•54m ago•0 comments

Basalt could be the key to greener and cheaper cement

https://news.ucsb.edu/2026/022568/basalt-could-be-key-greener-and-cheaper-cement
1•littlexsparkee•1h ago•0 comments

Don't Outsource the Learning

https://addyosmani.com/blog/dont-outsource-learning/
2•cdrnsf•1h ago•0 comments

Show HN: SoccQR – Lost and Found Labels for Soccer Balls / Gamified Training Log

https://soccqr.com
1•zarie•1h ago•0 comments

The Left Hand of Darkness (1969)

https://en.wikipedia.org/wiki/The_Left_Hand_of_Darkness
2•maxall4•1h ago•0 comments

An Inexpensive Schlieren System

https://petapixel.com/2020/01/18/a-simple-and-inexpensive-schlieren-optical-system-using-a-fresne...
2•Eridanus2•1h ago•0 comments

Prepare your "no" and keep it handy

https://sive.rs/n0
2•Curiositry•1h ago•0 comments

Hosting a website on an 8-bit microcontroller

https://maurycyz.com/projects/mcusite/
19•zdw•1h ago•1 comments

The lasting influence of Netscape Time

https://thehistoryoftheweb.com/the-lasting-influence-of-netscape-time/
2•zdw•1h ago•0 comments

Self-Distillation Enables Continual Learning [PDF]

https://arxiv.org/abs/2601.19897
6•teleforce•1h ago•1 comments

Ask HN: Pre-agentic Google would restrict a search query to only 10 words

1•Eridanus2•1h ago•0 comments

AI Poised to Tilt Job Market Leverage Toward Older Workers

https://www.bloomberg.com/news/articles/2026-05-16/ai-poised-to-tilt-job-market-leverage-toward-o...
5•littlexsparkee•1h ago•2 comments

Open architecture multi-beam EBL for sub-10nm sovereign chip manufacturing

https://github.com/robmorin0-hash/multibeam-ebl-open
2•TheDoctorII•1h ago•0 comments

Braids and Dynamics Frontiers in Theory and Modelling with Scarce Data

https://people.math.wisc.edu/~thiffeault/talks/gordon2022.pdf
1•marysminefnuf•1h ago•0 comments

Tell HN: Mindie.dev is scraping emails from profiles to send spam

3•stackghost•1h ago•0 comments

Quack: A TUI for managing and cancelling active OpenCode sessions

https://github.com/SmolNero/quack
1•edgar_ortega•1h ago•0 comments