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

Show HN: EasyCheck – lightweight compliance automation for small teams

https://easycheck.dk/en
1•MarcusBager•1m ago•0 comments

PoSHBlox: Visual PowerShell node graph scripting

https://github.com/obselate/PoSHBlox
1•thunderbong•2m ago•0 comments

Why Not Objective-C

https://inessential.com/2026/02/18/why-not-objective-c.html
1•ingve•3m ago•0 comments

Does open source have an AI slop problem? [video]

https://www.youtube.com/watch?v=5uLHMdsjXBQ
3•billybuckwheat•3m ago•0 comments

Best 5 n8n Alternatives In 2026

https://theowllogic.com/n8n-alternatives
1•wayofthekatana•5m ago•0 comments

Human-Based Computation Game

https://en.wikipedia.org/wiki/Human-based_computation_game
1•downboots•7m ago•0 comments

From Paris to New Delhi, the Push to Ban Teens from Social Media Is Going Global

https://www.wsj.com/tech/personal-tech/from-paris-to-new-delhi-the-push-to-ban-teens-from-social-...
1•1vuio0pswjnm7•14m ago•0 comments

War of Dots

https://warofdots.net
1•kqr•18m ago•1 comments

Mark Zuckerberg overruled 18 wellbeing experts to keep beauty filters on Insta

https://www.ft.com/content/0c6d8ff6-f207-431b-bfb9-1d8b42bb4b6d
3•1vuio0pswjnm7•23m ago•0 comments

Ask HN: How much are you spending on OpenClaw API calls?

1•muddi900•25m ago•1 comments

Tech firms will have 48 hours to remove abusive images under new law

https://www.bbc.co.uk/news/articles/cz6ed1549yvo
2•mmarian•25m ago•0 comments

Mark Zuckerberg: "I don't have a college degree in anything"

https://web.archive.org/web/20260218213815/https://www.cnbc.com/2026/02/18/meta-mark-zuckerberg-s...
2•1vuio0pswjnm7•30m ago•1 comments

I made a OpenClaw alternative. which is faster and secure. Powered by rust

https://deepcli.org/
2•alwassikhan•31m ago•1 comments

Old School Visual Effects: The Cloud Tank (2010)

http://singlemindedmovieblog.blogspot.com/2010/04/old-school-effects-cloud-tank.html
1•exvi•34m ago•0 comments

Show HN: Nxcode – Turn natural language into full-stack, revenue-ready SaaS apps

https://www.nxcode.io/zh
1•iivyvii•34m ago•0 comments

Show HN: Potatometer – Check how visible your website is to AI search (GEO)

https://potatometer.com/
3•apswin•36m ago•2 comments

Conservative versus Predictive Processing (2015)

https://philosophyofbrains.com/2015/12/15/conservative-versus-radical-predictive-processing.aspx
1•l33tbro•36m ago•0 comments

US funding for global internet freedom 'effectively gutted'

https://www.theguardian.com/world/2026/feb/19/us-funding-for-global-internet-freedom-effectively-...
4•xyzal•36m ago•0 comments

Show HN: Cancel Me – A browser game which parodies dark cancellation patterns

https://cancel-me.marcelmichau.workers.dev
1•SellusWallace•37m ago•0 comments

Show HN: Paste your startup pitch, get a VC-readiness score (0–100)

https://www.gias.co/score
2•akshay_bhardwaj•45m ago•1 comments

Sayou – Open-source Dropbox for AI agents

6•syumpx•46m ago•2 comments

Bifrostbridge.xyz – open-source MIT license P2P discord replacement

https://gitlab.com/sfusco/bifrostbridge.xyz
2•reklis•49m ago•0 comments

Understanding Deep Learning

https://udlbook.github.io/udlbook/
3•duck•49m ago•0 comments

Best way to give feedback to Claude

https://www.getautonoma.com/contact
2•Escafati•51m ago•0 comments

Psychosis.hn

https://sajarin.com/blog/psychosis/
3•Sajarin•53m ago•2 comments

Show HN: Sornic – Listen to any article, PDF, or book page (no signup)

https://sornic.com
2•digi_wares•53m ago•0 comments

Turn YouTube into Safe, Curated Experience

https://www.chukkl.com/live-tv?guide=fd543867-9fd7-47ef-8de6-ad560ee7abfd
2•nickzier•53m ago•1 comments

Show HN: I built an AI that generates pixel art sprite animations

https://rika-ai.com/
2•amusingyyy•55m ago•0 comments

Githuman

https://githuman.dev/
1•handfuloflight•57m ago•0 comments

Mrhbaan Syria Fedora now available in Syria

https://fedoramagazine.org/fedora-syria/
1•abdelhousni•59m ago•0 comments