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

Let us replace community with AI

https://marketplace.visualstudio.com/items?itemName=christianalfoni.stackoverflow-ai
1•christianalfoni•57s ago•1 comments

Jury finds for Star Trek legend's family in wrongful death lawsuit

https://redshirtsalwaysdie.com/star-trek-nichelle-nichols-wrongful-death-lawsuit-13-million-award
1•pseudolus•3m ago•0 comments

AI is a Meteor. Don't be a Dinosaur

https://windowsontheory.org/2026/05/30/ai-is-a-meteor-dont-be-a-dinosaur/
1•vinhnx•3m ago•0 comments

Trump's suddenly softened new green card policy

https://www.washingtonpost.com/business/2026/06/05/how-big-business-tech-ai-softened-trump-new-gr...
1•andsoitis•12m ago•0 comments

Staffing and procurement strategies for fast flow

https://www.youtube.com/watch?v=ECA0E7hdmYM
1•RebootStr•14m ago•0 comments

Update on Meteorra AI – Just Shipped YouTube Video Analyser

https://www.indiehackers.com/post/i-built-an-ai-that-tells-creators-who-will-watch-their-content-...
1•MeteorraAI•14m ago•0 comments

Built GoPeek for Firefox

https://addons.mozilla.org/en-US/firefox/addon/gopeek/
1•guptalog•14m ago•0 comments

Granite Libraries and Project Granite Switch – IBM Research

https://research.ibm.com/blog/granite-libraries-project-switch
1•shallow-mind•28m ago•0 comments

A new YC tool promises "your code never leaves your machine." It does

https://twitter.com/intcyberdigest/status/2063026347522539754
1•porridgeraisin•30m ago•0 comments

YC's launches Paxel a tool that analyzes your coding sessions

https://paxel.ycombinator.com/
2•qwe----3•33m ago•0 comments

How should we teach digital research workflows to undergrad philosophy students?

1•lebronocta•38m ago•0 comments

Wabi Tek Sabi

https://www.wabiteksabi.com/index.html
1•klez•39m ago•0 comments

Educational Sticker

https://apparatverk.studio/notes/educational-sticker/
2•px00•39m ago•0 comments

"Bricks & minifigs can stuff it" – Patreon CEO [video]

https://www.youtube.com/watch?v=36jxNeV5L1Q
2•ShinyLeftPad•41m ago•0 comments

Azure Linux Desktop

https://www.boxofcables.dev/azure-linux-desktop-a-build-2026-mashup-of-wslc-winui-reactor-and-azu...
1•haydenbarnes•43m ago•0 comments

Let the agents democratize open source

https://world.hey.com/dhh/let-the-agents-democratize-open-source-9fd630a9
1•teekert•48m ago•0 comments

Magecart skimmer turns Stripe into a malware command server

https://sansec.io/research/stripe-api-skimmer-infrastructure
1•berlianta•50m ago•0 comments

Verilator Binary for Windows Without WSL or VM or OSS-CAD Suite or Perl Wrapper

https://github.com/withlimon/verilator-windows
1•limondas•51m ago•1 comments

Fixing "unfixable" 41TB BTRFS by Claude's one-shot

https://mloduchowski.com/-mounted-bitter-fs-better-with-claude/
3•qdotme•55m ago•0 comments

Download cash counter and help me

https://play.google.com/store/apps/details?id=com.logicforge.bdcash&hl=en_US
1•bdcashcounter•1h ago•1 comments

Turn HAR Files, Claude Code, Copilot CLI, and Codex CLI Logs into ATIF

https://github.com/waldekmastykarz/atifact
1•waldekm•1h ago•0 comments

Show HN: Sidekick – The zot coding agent, one click away on macOS

https://github.com/patriceckhart/zot-sidekick
10•patriceckhart•1h ago•0 comments

How much did OpenAI pay for Tomoro?

https://www.aienablementinsider.com/p/how-much-did-openai-pay-for-tomoro
1•dylancollins•1h ago•0 comments

I Found the US Nuclear Detection System in Space (GPS)

https://www.youtube.com/watch?v=DjLnIb41DuQ
2•valeg•1h ago•0 comments

You can now use your Gmail account in Proton Mail

https://proton.me/blog/proton-mail-connect-gmail
3•Topfi•1h ago•0 comments

Integer Overflow in Postgres

https://www.crunchydata.com/blog/the-integer-at-the-end-of-the-universe-integer-overflow-in-postgres
2•tosh•1h ago•0 comments

AI coding agents use your technology

https://developer.microsoft.com/blog/how-ai-coding-agents-actually-use-your-technology
1•waldekm•1h ago•0 comments

The AX stack: what's fixed, where you can win

https://developer.microsoft.com/blog/the-ax-stack-whats-fixed-where-you-can-win
1•waldekm•1h ago•0 comments

New version of "peers" – the AI couple doing things

https://github.com/c0decave/peers
1•dash0r•1h ago•0 comments

Bitcoin back above $61,000 after rout leads to $1.6B liquidations

https://www.coindesk.com/markets/2026/06/06/bitcoin-back-above-usd61-000-after-rout-leads-to-usd1...
4•Varun-Sakhuja•1h ago•0 comments