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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Show HN: It's a free vulnerability database that publishes fresh CVE data daily

https://www.threatroad.com/
2•levberg•6m ago•0 comments

We will ban you and ridicule you in public if you waste our time on crap reports

https://curl.se/.well-known/security.txt
2•latexr•6m ago•0 comments

Starting a Startup at 25, 35, or 45 Is Not the Same Decision

https://nauma.ai/blog/p/starting-a-startup-at-25-35-or-45
1•iliyanko•9m ago•0 comments

City Weather Explorer (3D comparison)

https://awjuliani.github.io/weather-explore/
1•emot•9m ago•0 comments

Animals Build a Sense of Direction

https://www.quantamagazine.org/how-animals-build-a-sense-of-direction-20260121/
1•ibobev•9m ago•0 comments

Mills Ratio and Tail Thickness

https://www.johndcook.com/blog/2026/01/21/mills-ratio/
1•ibobev•9m ago•0 comments

Applyra, Improve your app rankings – simply

https://www.applyra.io
1•krnelstudio•10m ago•0 comments

We've Optimised Ourselves into Loneliness

https://substack.com/@zarasurfs/p-182470784
1•ragnor•11m ago•0 comments

Scientists uncover how microbial consortia break down lignin

https://phys.org/news/2025-12-scientists-uncover-microbial-consortia-lignin.html
1•PaulHoule•11m ago•0 comments

Game Controller Designs Through the Years

https://www.goto10retro.com/p/game-controller-designs-through-the
1•ibobev•12m ago•0 comments

Ask HN: Can something motivate you to use an AI browser assistant?

1•ProtosGalaxias•13m ago•0 comments

ISO PDF spec is getting Brotli – ~20 % smaller documents with no quality loss

https://pdfa.org/want-to-make-your-pdfs-20-smaller-for-free/
2•whizzx•13m ago•0 comments

GM, Ford et al. Retreated on EVs, So Why Do They Deserve Tariff Protection? [video]

https://www.youtube.com/watch?v=mknvPo2XGic
1•xbmcuser•13m ago•0 comments

Show HN: YouTube App Centered Around Language Learning

1•yunusabd•14m ago•0 comments

Fake Founder Stories Are Warping Startup Expectations

https://webmatrices.com/post/the-success-theater-economy-how-fake-founder-stories-are-warping-sta...
1•bishwasbh•16m ago•0 comments

AI Harm Statistics Expert Analysis

https://thebulletin.org/2026/01/what-experts-can-learn-by-tracking-ai-harms/
1•schyzomaniac•18m ago•0 comments

VideoLAN showcases AV2 playback on a "normal" laptop with VLC 4

https://overclock3d.net/news/software/videolan-showcases-av2-playback-on-a-normal-laptop-with-vlc-4/
1•breve•19m ago•0 comments

Show HN: Swtchd.io no code tool to A/B test forms / landing pages

https://get.swtchd.io
1•skeam•19m ago•0 comments

Raspberry Pi Flash Drive

https://www.raspberrypi.com/news/raspberry-pi-flash-drive-available-now-from-30-a-high-quality-es...
1•pyprism•19m ago•0 comments

App Subscription Is Now My Weekend Project

https://rselbach.com/your-sub-is-now-my-weekend-project
1•todsacerdoti•19m ago•0 comments

Runjak.codes: An Adversarial Coding Test

https://runjak.codes/posts/2026-01-21-adversarial-coding-test/
1•todsacerdoti•20m ago•0 comments

Is Antigravity down? Agent terminated due to error

https://old.reddit.com/r/google_antigravity/comments/1qjpj33/is_antigravity_down_possible_global_...
1•serial_dev•20m ago•0 comments

Salazar a Governance and Compliance Cyber Resilience Solution

https://getsalazar.io
1•carlfranz•20m ago•0 comments

The mushroom making people hallucinate tiny humans

https://www.bbc.com/future/article/20260121-the-mysterious-mushroom-that-makes-you-see-tiny-people
1•1659447091•24m ago•0 comments

Pale Moon v34: Release Notes

https://www.palemoon.org/releasenotes.shtml
1•thisislife2•25m ago•0 comments

Debian's FreedomBox Blend promises an easier home cloud

https://www.theregister.com/2026/01/22/debians_freedombox_blend/
1•jjgreen•26m ago•0 comments

Show HN: Usagebar – Track Claude Code Usage from Your Menu Bar

https://usagebar.com
1•abrowniejr•26m ago•0 comments

Vanilla CSS vs. Tailwind for Custom Radios and Checkboxes

https://dwyer.co.za/static/tailwind-vanilla-css-custom-radio-checkbox.html
1•sixhobbits•26m ago•0 comments

How Meta Deploys AV1 on Facebook From Reels to Stories to Messenger

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173123
1•breve•27m ago•0 comments

Designing AI-resistant technical evaluations

https://www.anthropic.com/engineering/AI-resistant-technical-evaluations
2•mellosouls•27m ago•0 comments