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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•4mo ago
Agreed

When Deep Learning Meets Polyhedral Theory – A Survey

https://arxiv.org/abs/2305.00241
1•mxkopy•29s ago•0 comments

'Prebunking' false claims can increase public trust in elections

https://phys.org/news/2025-08-prebunking-false-elections.html
1•PaulHoule•1m ago•0 comments

Access Logging in 2025

https://neugierig.org/software/blog/2025/09/access-log.html
1•zmodem•2m ago•0 comments

Unhappy Ending Kubuntu Creator Jonathan Riddell Departs After 25 Years with KDE

https://news.itsfoss.com/jonathan-riddell-farewell/
1•XzetaU8•5m ago•0 comments

Corporate Memphis

https://en.wikipedia.org/wiki/Corporate_Memphis
2•franze•9m ago•0 comments

White-Label AI Agents Built for Healthcare and Agencies

https://nextvise.ai/
1•mishamagic•12m ago•0 comments

From Permission to Contract: Dual Enforcement and Rising Risk in Open Source

https://shujisado.org/2025/09/17/from-permission-to-contract-dual-enforcement-and-rising-risk-in-...
1•jonymo•13m ago•0 comments

Building a High Converting SaaS Website in Under a Week

https://glitchads.ai/building-a-high-converting-saas-website-in-under-a-week/
1•vinnyglennon•14m ago•0 comments

Learn SDR: Tutorials with Videos

https://gallicchio.github.io/learnSDR/
1•transpute•20m ago•0 comments

InfoSeek: The First Open-Source Framework for Deep Research Data Synthesis

1•BAAIBeijing•20m ago•0 comments

Show HN: I made Box Breath: a dead-simple app to calm your mind and sleep better

https://apps.apple.com/us/app/heads-up-box-breath/id6749808761
1•yoav_sbg•24m ago•0 comments

What the go proxy has been doing

https://flak.tedunangst.com/post/what-the-go-proxy-has-been-doing
2•Bogdanp•27m ago•0 comments

The Only Skill That Matters Now

https://worksonmymachine.ai/p/the-only-skill-that-matters-now
1•msephton•29m ago•0 comments

Is the era of personal software portfolios over?

3•justanotherunit•36m ago•2 comments

China tells its tech companies to stop buying all of Nvidia's AI chips

https://www.ft.com/content/12adf92d-3e34-428a-8d61-c9169511915c
3•jmsflknr•37m ago•0 comments

Obelisk 0.24.1

https://obeli.sk/blog/introducing-obelisk-0-24-1/
1•tomasol•38m ago•0 comments

400M PCs cannot upgrade to Windows 11

https://www.theregister.com/2025/09/16/campaigners_urge_eu_to_mandate/
1•random_username•39m ago•0 comments

AI fares better than doctors at predicting deadly complications after surgery

https://hub.jhu.edu/2025/09/17/artificial-intelligence-predicts-post-surgery-complications/
2•Improvement•43m ago•1 comments

Why We're Building Stategraph: Terraform State as a Distributed Systems Problem

https://stategraph.dev/blog/why-stategraph/
2•lawnchair•43m ago•0 comments

Show HN: Sensaro – Simple NPS and AI powered feedback analysis for SaaS

https://www.sensaro.ai/
1•timwilkinson•43m ago•1 comments

Solar pacifiers: Influence of the planets may subdue solar activity

https://nachrichten.idw-online.de/2025/08/12/solar-pacifiers-influence-of-the-planets-may-subdue-...
1•nobody9999•45m ago•0 comments

All coding models think they are Anthropic

https://www.msai-labs.com/
1•sammarvasti•46m ago•0 comments

Stove makers delete air pollution warnings as they fight mandatory label

https://grist.org/accountability/gas-stove-makers-quietly-delete-air-pollution-warnings-as-they-f...
3•Improvement•49m ago•1 comments

A Guide to Serialization in PHP

https://www.phparch.com/article/2024-06-a-guide-to-serialization-in-php/
1•ashallendesign•52m ago•0 comments

Artists are losing work, wages, and hope as bosses and clients embrace AI

https://www.bloodinthemachine.com/p/artists-are-losing-work-wages-and
1•FromTheArchives•59m ago•0 comments

Background Tasks feature merged into Django

https://theorangeone.net/posts/django-dot-tasks-exists/
2•tomd•1h ago•0 comments

2025 PN7 - Scientists find quasi-moon orbiting the Earth for the last 60 years

https://phys.org/news/2025-09-scientists-quasi-moon-orbiting-earth.html
2•jharohit•1h ago•1 comments

Before we learn a new skill

https://seths.blog/2025/09/before-we-learn-a-new-skill/
1•pranxxter•1h ago•0 comments

Roast my landing page

https://weesp.ai/
2•dor_lnd•1h ago•4 comments

All the ways I use AI

https://fredrikmeyer.net/2025/07/02/all-the-ways-i-use-ai.html
1•FredrikMeyer•1h ago•0 comments