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

Executive Order Limiting Stock Buybacks and Dividends for Defense Contractors

https://www.klgates.com/President-Trump-Issues-Executive-Order-Limiting-Stock-Buybacks-and-Divide...
1•NalNezumi•1m ago•0 comments

Show HN: Margin – Local-first podcast insights using Apple Foundation Models

https://www.marginpodcasts.com
1•zxlk21e•1m ago•0 comments

The Case for Greenland

https://www.campbellramble.ai/p/the-case-for-greenland
1•thedudeabides5•3m ago•0 comments

Some Thoughts on the Open Web

https://www.mnot.net/blog/2026/01/20/open_web
1•mooreds•3m ago•0 comments

A Sudoku-based low-entropy proxy protocol

https://github.com/SUDOKU-ASCII/sudoku
1•csmantle•5m ago•0 comments

Technical Debt Just Got a Bailout

https://bitbrawn.com/posts/technical-debt-just-got-a-bailout
1•retrac98•5m ago•0 comments

Is your codebase holding back your AI tools?

https://codehealth.sibylline.dev/
1•CuriouslyC•6m ago•1 comments

Show HN: PasteGuard – Use OpenAI and Claude without exposing your secrets

https://github.com/sgasser/pasteguard
2•sgasser•8m ago•1 comments

Ask HN: What are good resources to get familiar with AI code editors?

3•northfield27•9m ago•0 comments

Why Hardware-Attested Credentials for AI Infrastructure

https://nmelo.github.io/secureinfra-blog/2026/01/20/why-hardware-attested-credentials/
1•nmelo•10m ago•1 comments

Personal Infrastructure Setup 2026

https://linderud.dev/blog/personal-infrastructure-setup-2026/
1•birdculture•11m ago•0 comments

Coding Before Gpt4 [video]

https://www.youtube.com/watch?v=FdrmjjgHYzM
1•yungwarlock•11m ago•0 comments

Show HN: dol – Detect dark/light mode on the CLI

https://github.com/netmute/dol
1•netmute•12m ago•0 comments

The future of Legal Tech will be vibe-coded by lawyers

https://theredline.versionstory.com/p/the-future-of-legal-tech-will-be
1•jpbryan•12m ago•0 comments

Trump's Man in Greenland

https://responsiblestatecraft.org/trump-greenland-2674914000/
1•j_levy187•13m ago•0 comments

I scanned 2,500 Hugging Face models for malware/issues. Here is the data

https://github.com/ArseniiBrazhnyk/Veritensor
2•arseniibr•13m ago•1 comments

Modder Gets Doom Running on a Pressure Cooker

https://retrododo.com/modder-gets-doom-running-on-a-pressure-cooker/
1•coloneltcb•13m ago•0 comments

A Fully Open-Source Future

https://extroverteddeveloper.com/2026/01/20/a-fully-open-source-future/
1•Xatter•15m ago•0 comments

See for yourself just how massive Meta's Hyperion data center is

https://sherwood.news/tech/see-for-yourself-just-how-massive-metas-hyperion-data-center-is/
1•jonathanmkeegan•17m ago•0 comments

I love the old man minimap in VS Code

https://blog.andreani.in/blog/35/
1•gandreani•17m ago•0 comments

Show HN: RAG chunk size "best practices" failed on legal text – I benchmarked it

https://medium.com/@TheWake/i-built-a-rag-tuning-tool-and-discovered-intuition-fails-on-legal-tex...
2•metawake•18m ago•1 comments

Nature's Super Feather

https://www.nytimes.com/2026/01/20/science/birds-feathers-filoplumes-cornell.html
1•bookofjoe•19m ago•1 comments

Ask HN: Does "Zapier for payment automation" exist?

1•PL_Venard•19m ago•2 comments

Metallic θ-phase tantalum nitride has a thermal conductivity 3x that of copper

https://www.science.org/doi/10.1126/science.aeb1142
1•westurner•19m ago•0 comments

USB Gadget Mode in Raspberry Pi OS: SSH over USB

https://www.raspberrypi.com/news/usb-gadget-mode-in-raspberry-pi-os-ssh-over-usb/
1•mariuz•19m ago•0 comments

Why "Letting AI Write Directly" Is the Worst Approach

https://blackeagle.cozyai.chat/blog/aiarticle.html
1•cuteeaglet•22m ago•0 comments

Comic-Con Bans AI Art After Artist Pushback

https://www.404media.co/comic-con-bans-ai-art-after-artist-pushback/
5•cdrnsf•23m ago•0 comments

Show HN: Abuse URL shorteners to host throwaway webpages

2•fainpul•26m ago•0 comments

MCP, Skills, and Agents

https://cra.mr/mcp-skills-and-agents/
1•vinhnx•27m ago•1 comments

Impactor: Feature rich iOS/tvOS sideloading application written in Rust

https://github.com/khcrysalis/Impactor
1•nateb2022•28m ago•0 comments