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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Claude says ads are coming to AI but not to Claude

https://twitter.com/claudeai/status/2019071113741906403/mediaViewer
1•phanimahesh•2m ago•0 comments

Show HN: Claude Code Skill for Scaffolding Arbitrum Stylus and Solidity DApps

https://github.com/hummusonrails/arbitrum-dapp-skill
1•bcgreenberg•2m ago•1 comments

Test management tools for automation heavy teams

1•Divyakurian•2m ago•0 comments

Pandoc in the Browser

https://pandoc.org/app/
1•ravenical•3m ago•0 comments

You can find the bash manual in the Epstein files

https://bsky.app/profile/bitecode.dev/post/3me2uffilyc2h
1•BiteCode_dev•4m ago•0 comments

Computers Can Be Understood

https://blog.nelhage.com/post/computers-can-be-understood/
1•sebg•7m ago•0 comments

Show HN: StatCalc – Statistical Calculator with Clear Visualizations

https://echomoltinsson.github.io/statcalc/
1•onyx_writes•7m ago•0 comments

Factory 95: A Retro-Windows inspired automation game about making PowerPoints

https://bsky.app/profile/liamflannery.bsky.social/post/3m7lilxuyz225
1•mariuz•8m ago•0 comments

FTSE 100 Live: Trillion-dollar tech sell-off rocks global markets

https://www.cityam.com/ftse-100-live-tech-sell-off-ai-trillion-bank-of-england-interest-rate-cut-...
1•user20180120•10m ago•0 comments

Show HN: Pit – Git for LLM prompts (332 tests, 10 features)

https://github.com/itisrmk/pit
1•rahulrmk•11m ago•0 comments

Codex is now over 1M active users

https://twitter.com/sama/status/2019219967250669741
1•tosh•11m ago•0 comments

Technology and Wealth: The Straw, the Siphon, and the Sieve

https://natehagens.substack.com/p/technology-and-wealth-the-straw-the-63d
1•thinkingemote•17m ago•0 comments

Ukraine starts blocking unregistered Starlink terminals

https://militarnyi.com/en/news/ukraine-starts-blocking-starlink-terminals/
1•defly•17m ago•0 comments

What are "shadow people" in the MWI

https://metallicman.com/laoban4site/what-are-shadow-people-in-the-mwi/
1•dsego•18m ago•0 comments

Commission Designates WhatsApp as Large Online Platform Under the DSA

https://digital-strategy.ec.europa.eu/en/news/commission-designates-whatsapp-very-large-online-pl...
2•riffraff•21m ago•0 comments

Show HN: vibesafu – YOLO mode for Claude Code, no –dangerously-skip-permission

https://github.com/kevin-hs-sohn/vibesafu
1•kevin-hs-sohn•24m ago•0 comments

Tailscale: Custom OIDC Providers

https://tailscale.com/docs/integrations/identity/custom-oidc
1•tosh•25m ago•0 comments

AI is taking devs' jobs. Yes, **BUT

1•olivdums•28m ago•1 comments

Hope Hacker conference is now a 501(c)(3) nonprofit

https://hope.net/
1•aestetix•28m ago•0 comments

CodeShield AI – Open-source security scanner (24% cheaper than GitGuardian)

https://lydiamorgan85.github.io/codeshield-ai/
1•CodeshieldAI•28m ago•1 comments

Battle-Testing Lynx at Allegro

https://blog.allegro.tech/2026/02/battle-testing-lynx-js-at-allegro.html
2•tgebarowski•29m ago•1 comments

What's the Entropy of a Random Integer?

https://quomodocumque.wordpress.com/2026/02/03/whats-the-entropy-of-a-random-integer/
1•sebg•31m ago•0 comments

How Democracy for Sale is making investigative journalism pay on Substack

https://pressgazette.co.uk/newsletters/peter-geoghegan-democracy-for-sale-investigative-journalis...
1•giuliomagnifico•33m ago•0 comments

U.S. House Report: E.U. Campaign to Censor the Internet [pdf]

https://judiciary.house.gov/sites/evo-subsites/republicans-judiciary.house.gov/files/2026-02/THE-...
2•stakhanov•35m ago•0 comments

Latrinalia

https://en.wikipedia.org/wiki/Latrinalia
1•chaghalibaghali•35m ago•0 comments

Libfirm/cparser: C99 parser and front end

https://github.com/libfirm/cparser
1•fanf2•37m ago•0 comments

Checking the Weather with a Home Made Satellite Dish (1973) [video]

https://www.youtube.com/watch?v=0EYntanZS1M
1•austinallegro•38m ago•0 comments

Why Do Monads Matter?

https://cdsmith.wordpress.com/2012/04/18/why-do-monads-matter/
1•sebg•39m ago•0 comments

Nanobot: Ultra-Lightweight Alternative to OpenClaw

https://github.com/HKUDS/nanobot
2•ms7892•39m ago•0 comments

26x

https://www.technicalchops.com/articles/26x/
1•mintone•40m ago•0 comments