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

Discord Just Killed Anonymity

https://michael-dev-tech.github.io/Website/matrix.html
1•f0r3st•18s ago•0 comments

Md: It's now considered the LARGEST spill of wastewater in U.S. history

https://twitter.com/nova_campaigns/status/2021910025527046437
1•vinnyglennon•22s ago•0 comments

Least Affordable Cities – US Tech Hub Named as Hardest to Buy a Home

https://www.realtor.com/news/trends/least-affordable-cities-world-homebuying/
1•TMWNN•3m ago•1 comments

NHS deal with AI firm Palantir called into question after officials' concerns

https://www.theguardian.com/society/2026/feb/12/nhs-deal-with-ai-firm-palantir-called-into-questi...
1•chrisjj•3m ago•0 comments

Poisoning scraperbots with iocaine

https://lwn.net/SubscriberLink/1056953/6228bee893e6cd49/
1•chmaynard•4m ago•0 comments

The Timeless Way of Programming (2022)

https://tomasp.net/blog/2022/timeless-way/
1•todsacerdoti•5m ago•0 comments

How to build text-to-app platforms

1•desperado1•5m ago•0 comments

Show HN: We built Cobalt, Open source unit testing for AI Agents

https://github.com/basalt-ai/cobalt
3•fdefitte•6m ago•1 comments

Bondi Spying on Congressional Epstein Searches Should Be a Major Scandal

https://www.techdirt.com/2026/02/12/bondi-spying-on-congressional-epstein-searches-should-be-a-ma...
1•hn_acker•6m ago•0 comments

See It Written

https://seeitwritten.com/
1•foxfired•7m ago•0 comments

PDC 1996 Keynote with Douglas Adams [video]

https://www.youtube.com/watch?v=8UNG3cQoOEc
1•markh1967•7m ago•1 comments

Pwning Supercomputers — A 20 year old vulnerability in Munge

https://blog.lexfo.fr/munge-heap-buffer-overflow.html
1•Lammy•10m ago•0 comments

Show HN: EncroGram – Messaging When You Assume Everything Will Be Looked At

https://encrogram.com
1•truthleaks•10m ago•0 comments

tv 0.15

https://alexpasmantier.github.io/television/developers/release-notes/0.15/
1•alexpasmantier•11m ago•0 comments

More Lessons from 14 years at Google

https://addyosmani.com/blog/14-more-lessons/
1•cdrnsf•11m ago•1 comments

Harness Engineering

https://openai.com/index/harness-engineering/
1•bigwheels•19m ago•0 comments

Our New Observability Stack

https://engineering.merciyanis.com/blog/3-weeks-to-full-observability-our-deployment-journey
1•axi0m•20m ago•1 comments

AI and Jobs - What 3 Decades of Building Tech Taught Me About What's Coming

https://getcoai.com/article/ai-and-jobs-what-three-decades-of-building-tech-taught-me-about-whats...
1•djabatt•20m ago•0 comments

AI Is Getting Scary Good at Making Predictions

https://www.theatlantic.com/technology/2026/02/ai-prediction-human-forecasters/685955/
1•paulpauper•21m ago•0 comments

This is how A Child Dies of Measles

https://www.theatlantic.com/ideas/2026/02/child-dies-measles-vaccines/685969/
3•paulpauper•22m ago•0 comments

Agents as Teammates

https://twitter.com/obie/status/2022061142294851837
1•obiefernandez•22m ago•0 comments

Supabase Incident (12 Feb 2026)

https://status.supabase.com/incidents/pqrf96m6fzxk
1•dotmanish•22m ago•0 comments

Past Automation and Future A.I.: How Weak Links Tame the Growth Explosion [pdf]

https://web.stanford.edu/~chadj/JonesTonetti_Automation.pdf
1•paulpauper•22m ago•0 comments

General Motors Replies to Bill Gates

https://www.wussu.com/humour/gm.htm
1•lr0•23m ago•0 comments

AI toy maker exposed responses to children

https://www.nbcnews.com/tech/security/ai-toy-maker-exposed-thousands-responses-kids-senators-miko...
1•averysmallbird•23m ago•0 comments

Ring won't store your camera data without a subscription unless it is important

https://www.reuters.com/world/guthrie-doorbell-video-delayed-by-difficult-data-recovery-privacy-a...
2•-warren•26m ago•3 comments

Windows 11 now has a proper Task Manager with performance history and more

https://www.neowin.net/news/windows-11-now-has-a-proper-task-manager-with-performance-history-and...
6•suprnurd•28m ago•0 comments

Faster Server Startup in Meteor 3.4 with Deferrables

https://blog.galaxycloud.app/faster-server-startup-in-meteor-3-4-with-deferrables/
1•o_gabsferreira•32m ago•0 comments

Openrappter- Local-First AI Agent Powered by GitHub Copilot SDK

https://github.com/kody-w/openrappter
1•kody_w•32m ago•0 comments

Python's Dynamic Typing Problem

https://www.whileforloop.com/en/blog/2026/02/10/python-dynamic-typing-problem/
2•wookashh•34m ago•1 comments