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

OpenClaw: secrets

https://docs.openclaw.ai/cli/secrets
1•tosh•1m ago•0 comments

Show HN: Docsome – Single Markdown file to featured static documentation

https://docsome.guarana.studio/
1•ryuzyy•5m ago•0 comments

Elixir: Lazy BDDs with eager literal intersections

https://elixir-lang.org/blog/2026/02/26/eager-literal-intersections/
2•tosh•7m ago•0 comments

Pluralism and the Modern Poet

https://www.lrb.co.uk/the-paper/v48/n03/seamus-perry/pluralism-and-the-modern-poet
1•Caiero•9m ago•0 comments

Nano Banana 2 Is Really Coming! Here's How to Access It Early

1•zaaaaooo•11m ago•0 comments

Firefox's AI Kill Switch Is a Trap: How Mozilla Made AI Your Problem

https://www.quippd.com/writing/2026/02/09/firefoxs-ai-kill-switch-is-a-trap-how-mozilla-made-ai-y...
1•mimasama•11m ago•0 comments

Lessons from my overly-introspective, self-improving coding agent

https://ngrok.com/blog/bmo-self-improving-coding-agent
1•DropDead•12m ago•0 comments

Werner Herzog Between Fact and Fiction

https://www.thenation.com/article/culture/werner-herzog-future-truth/
2•Hooke•13m ago•0 comments

The Tech Job Apocalypse

https://vaggelismeklis.substack.com/p/the-tech-job-apocalypse
1•vmeklis•14m ago•0 comments

36yo: Career at home vs. Simple life abroad?

1•Slaboli•16m ago•2 comments

Pokémon at 30

https://www.bbc.com/news/articles/cpw0xw5nqglo
1•1659447091•17m ago•1 comments

Show HN: Lazycal – Google Calendar TUI

https://github.com/pranavkarthik10/lazycal
3•treexs•20m ago•0 comments

Flarehawk: AI-powered threat detection for Cloudflare environments

https://vigilba.se/HFtP0C1
1•itsilyas•21m ago•1 comments

Data Oriented Programming, Beyond Records

https://mail.openjdk.org/pipermail/amber-spec-experts/2026-February/004351.html
1•Tomte•30m ago•0 comments

The Future of Software Engineering Isn't What You Think

https://medium.com/@ahmad.al.dahle/the-future-of-software-engineering-isnt-what-you-think-96abb29...
1•clippit•30m ago•0 comments

Identified enterprises of the Russian military complex

https://map.osint-varta.com
1•dsab•31m ago•0 comments

Dutch telco Odido data breach

https://haveibeenpwned.com/Breach/Odido
1•HelloUsername•32m ago•0 comments

Context management and sort of subagents with Pi and /tree

https://stacktoheap.com/blog/2026/02/26/pi-tree-context-window-management/
1•manojlds•33m ago•0 comments

Build your own AI Agents in 4 Mins

1•Jamesfwdslash•34m ago•0 comments

We do need to get money moving differently

https://wilsoniumite.com/2026/02/27/we-really-do-need-to-get-money-moving-differently/
1•Wilsoniumite•35m ago•0 comments

PostgreSQL Statistics: Why queries run slow

https://boringsql.com/posts/postgresql-statistics/
2•radimm•37m ago•0 comments

Race Engineer for Daily Commute

https://testflight.apple.com/join/V21k2xYW
2•romaherman•38m ago•2 comments

The complete Manic Miner disassembly

https://skoolkit.ca/disassemblies/manic_miner/
1•sandebert•38m ago•0 comments

Show HN: A CAPTCHA based on 3D spatial recognition

https://spatial-captcha-frontend.vercel.app
1•Shining_S•39m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•ashishyesale•41m ago•1 comments

Scarnon

https://github.com/ryan-allen/scarnon
1•incogvito•41m ago•0 comments

Sudo-Rs Breaks Sudo Tradition of Invisible Password Typing

https://www.xda-developers.com/sudo-rs-password-asterisk-entry/
1•worldsavior•43m ago•0 comments

Guardclaw – 7 layers between your AI agents and disaster

https://takeinterest.ai/guardclaw
1•TakeInterestInc•45m ago•1 comments

Show HN: What to Watch – aggregated ratings across streaming services

https://www.whattowatchapp.com
2•ProfessorPo•46m ago•1 comments

Let OpenClaw be your shipping manager

https://atoship.com/docs/integrations/openclaw
1•diablevv•49m ago•0 comments