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: I built the fastest AI app builder that I can find

https://vibes.higashi.blog/
1•yuedongze•3m ago•0 comments

AI Name Combiner Tool

https://namecombiner.io/
1•jason66•4m ago•0 comments

MongoDB warns admins to patch RCE flaw immediately

1•saghm•4m ago•0 comments

WASM Does Not Stand for WebAssembly

https://thunderseethe.dev/posts/wasm-not-webassembly/
1•swernli•5m ago•0 comments

Show HN: No more writing shitty regexes to police usernames

https://www.username.dev
1•choraria•7m ago•0 comments

Clever Memory Tricks

https://xania.org/202512/22-memory-cunningness
1•ibobev•11m ago•0 comments

The Amazon Weekly Business Review (WBR)

https://commoncog.com/the-amazon-weekly-business-review/
1•ksec•11m ago•0 comments

Narsil-MCP: a Rust-powered MCP server with 76 tools for deep code intelligence

https://github.com/postrv/narsil-mcp
2•postrv•11m ago•1 comments

Newtype Index Pattern in Zig

https://matklad.github.io/2025/12/23/zig-newtype-index-pattern.html
1•ibobev•12m ago•0 comments

Samsung's 2026 gaming monitors promise 6K, 3D, and up to 1,040Hz

https://www.theverge.com/news/849850/samsung-odyssey-gaming-monitors-6k-3d-ces-2026
1•naves•13m ago•0 comments

The reason Venezuela matters [video]

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

Ask HN: What skills do you want to develop or improve in 2026?

1•pedrodelfino•15m ago•0 comments

Package managers keep using Git as a database, it never works out

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
1•zdw•16m ago•0 comments

Mt. Gox CEO Karpelès Reveals Details of 2014 Collapse and Japanese Detention

https://bitcoinmagazine.com/business/former-mt-gox-ceo-mark-karpeles-reveals-details-of-2014-coll...
3•giuliomagnifico•17m ago•0 comments

Show HN: Regex Man - short 3D regex game (desktop web)

https://bcjordan.com/regexman/
1•bcjordan•21m ago•0 comments

Webhook-based Git analytics across GitHub, GitLab, and Bitbucket

1•akhnid•22m ago•1 comments

Show HN: An open-source anonymizer tool to replace PII in PostgreSQL databases

https://github.com/pgEdge/pgedge-anonymizer
1•pgedge_postgres•22m ago•0 comments

Boundaries Against the Machine

https://blog.talentlms.io/posts/boundaries-against-the-machine/
1•yrizos•23m ago•1 comments

Ask HN: Coding agents struggle to get the current OpenAI API Spec?

1•dcreater•24m ago•0 comments

Determining Current Arm Cortex-M Security State with GDB

https://danielmangum.com/posts/arm-cortex-m-security-state-gdb/
1•hasheddan•25m ago•0 comments

Stylish <Dialog>S

https://fractaledmind.com/2025/12/18/stylish-dialogs/
1•eustoria•26m ago•0 comments

My HTML Web Component boilerplate for 2026

https://gomakethings.com/my-html-web-component-boilerplate-for-2026/
2•eustoria•26m ago•0 comments

Gold, silver and platinum take a breather after record rally

https://www.reuters.com/world/india/gold-tops-4500-silver-platinum-hit-records-metal-markets-fren...
1•teleforce•27m ago•0 comments

Simple Decentralized Identity system in Go

https://github.com/Samuelk0nrad/simple-did
1•samuel_0xK•30m ago•0 comments

Waymo and the Passive Income Society

https://blog.jovono.com/p/waymo-and-the-passive-income-society
1•ejz•31m ago•0 comments

Navigating the High Seas

https://blog.rootsofprogress.org/navigating-the-high-seas
3•weird_user•31m ago•0 comments

5,200 holes carved into a Peruvian mountain left by an ancient economy

https://newatlas.com/environment/5-200-holes-peruvian-mountain/
2•Brajeshwar•33m ago•0 comments

Why the best leaders help their teams to "savor" the world

https://bigthink.com/business/why-the-best-leaders-help-their-teams-to-savor-the-world/
2•Brajeshwar•33m ago•0 comments

3 Minutes 100milion of nodes processed, try this

1•Elecktrike_•34m ago•0 comments

Kitchen Optimizations

https://www.natemeyvis.com/kitchen-optimizations/
1•Theaetetus•34m ago•0 comments