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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Show HN: Shipping Without Judgment

https://dantelex.com/blog/shipping-judgement
1•lexokoh•3m ago•0 comments

ADF Opus: open, browse, and manage Amiga .ADF disk-images natively

https://github.com/chironb/ADFOpus2025
1•doener•5m ago•0 comments

Minimig RTG Magic [video]

https://www.youtube.com/watch?v=DBO9sD6EYS4
1•doener•8m ago•0 comments

GNU Ddrescue 1.30 Orders of Magnitude Better Working on Drives with a Dead Head

https://www.phoronix.com/news/GNU-ddrescue-1.30
2•Qem•9m ago•0 comments

Riot Games's League of Legends login issues due to expired SSL certificate

https://old.reddit.com/r/leagueoflegends/comments/1q40aen/comment/nxpij3c/
2•dossy•12m ago•1 comments

Voting for Mayor Who Promised to Blow Up City Doesn't Mean I Approve of It

https://www.mcsweeneys.net/articles/voting-for-the-mayor-who-promised-to-blow-up-the-city-doesnt-...
3•Geekette•15m ago•0 comments

How the sugar industry bought out scientists for decades

https://www.extremetech.com/extreme/235472-how-the-sugar-industry-bought-out-scientists-for-decad...
1•aldarion•18m ago•0 comments

Show HN: Airgapped Android Setup with a Makefile

https://blog.thisago.com/announcement/20260104-phoneSetup1.html
1•thisago•21m ago•0 comments

NeXTSTEP on Pa-RISC

https://www.openpa.net/nextstep_pa-risc.html
1•andsoitis•21m ago•0 comments

Alexa+ at Your Fingertips

https://alexa.amazon.com/about
1•qainsights•24m ago•1 comments

2026: The year of Not-invented-here syndrome

https://system32.ai/blogs/nih-on-steroids
2•bitlad•27m ago•0 comments

Warren Buffett emails Microsoft exec

https://www.techemails.com/p/warren-buffett-emails-microsoft-exec-jeff-raikes
3•cinaboniver•32m ago•1 comments

Show HN: Turn meetings into summaries, presentations, and an AI to ask questions

https://notefy.pro/
1•jimmydin7•34m ago•0 comments

Ask HN: What AI systems have you adopted across your work and personal life?

1•alexjray•39m ago•1 comments

Chromosome region linked to neurodev disorders influences locomotor behavior

https://www.nature.com/articles/s41467-025-68047-y
3•bookofjoe•45m ago•1 comments

Wallpaper Symmetry

https://math.hws.edu/eck/js/symmetry/wallpaper.html
4•xnx•57m ago•0 comments

The most impressive 15min tech demo you've never seen [video]

https://www.youtube.com/watch?v=72y2EC5fkcE
1•thundergolfer•58m ago•4 comments

"HP-UX hits end-of-life today, and I'm sad"

https://www.osnews.com/story/144094/hp-ux-hits-end-of-life-today-and-im-sad/
6•SanjayMehta•1h ago•1 comments

The Napoleon Technique: Postponing Things to Increase Productivity

https://effectiviology.com/napoleon/
2•Khaine•1h ago•0 comments

Waymo wants to be Big Tech's nice guy. Will San Francisco buy it?

https://www.sfchronicle.com/sf/article/waymo-car-san-francisco-21270363.php
1•mikhael•1h ago•0 comments

Show HN: OBTF-2, simple notes with screenshots

https://vgkids.github.io/obtf-2/
1•james_marks•1h ago•0 comments

'Moral injury' officially recognized as mental health condition

https://hsph.harvard.edu/news/moral-injury-officially-recognized-as-mental-health-condition/
2•rendx•1h ago•0 comments

Show HN: HackTheNews.app v2 – Hacker News notifications, AI, reading lists, etc.

https://hackthenews.app/
1•hackthenewsapp•1h ago•0 comments

Show HN: A drag and drop email HTML builder that outputs email safe markup

https://emailbuilder.cc/
1•RichHickson•1h ago•0 comments

Using Claude Code to Solve Advent of Code 2025

https://dineshgdk.substack.com/p/using-claude-code-to-solve-advent
1•dinesh_gdk•1h ago•0 comments

Ask HN: What's the oldest piece of code still running in your stack?

4•rafaepta•1h ago•2 comments

DOM Event Explorer/Sandbox

https://domevents.dev/
1•dalemyers•1h ago•0 comments

Vulkangruppe

https://en.wikipedia.org/wiki/Vulkangruppe
2•doener•1h ago•0 comments

Larry Tesler Obituary (2020)

https://www.theguardian.com/technology/2020/feb/28/larry-tesler-obituary
3•rafaepta•1h ago•1 comments

Migrating My Homelab from Swarmpit to Uncloud

https://suranyami.com/migrating-my-homelab-from-swarmpit-to-uncloud
1•suranyami•1h ago•1 comments