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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

MMW: There will be a violent backlash against the weird push for digital ID laws

https://old.reddit.com/r/MarkMyWords/comments/1scjmjs/mmw_there_will_be_a_violent_backlash_agains...
1•mostcallmeyt•1m ago•0 comments

Data Anomalies in Search Console

https://support.google.com/webmasters/answer/6211453?hl=en
1•taubek•1m ago•0 comments

Understand business logic in your code with diagram

https://www.biral.io/
1•dipikasgp•1m ago•1 comments

The People Who Shun Super-Popular Pop Culture

https://www.theatlantic.com/culture/2026/03/pop-culture-hype-aversion/686312/
1•fortran77•2m ago•1 comments

Drivers May Soon Pay Taxes Based on How Much Their Car Weighs

https://www.autoblog.com/news/drivers-may-soon-pay-taxes-based-on-how-much-their-car-weighs
1•zzzeek•3m ago•0 comments

Starving Genies, from Kent Beck

https://tidyfirst.substack.com/p/starving-genies
1•reg_dunlop•7m ago•0 comments

AI facial analysis that runs in the browser (no uploads, 17 metrics)

https://realsmile.online
1•realsmile•8m ago•0 comments

Use Keycloak to Log into Google Workspace via SAML SSO (2024)

https://medium.com/@MszPro/use-keycloak-to-log-into-google-workspace-keycloak-25-saml-sso-a9b9923...
1•walterbell•9m ago•1 comments

Show HN: Cabinet – Kb+LLM (Like Paperclip+Obsidian)

https://runcabinet.com
6•Hilash•11m ago•6 comments

Myth of the AI Oracle

https://www.lawfaremedia.org/article/myth-of-the-ai-oracle
1•GiraffeNecktie•12m ago•0 comments

Consent, Intent, and Privacy in macOS

https://eclecticlight.co/2026/04/05/last-week-on-my-mac-consent-intent-and-privacy/
1•chmaynard•13m ago•0 comments

Google Fitbit is working on a screenless fitness band, to compete with Whoop

https://www.neowin.net/news/google-apparently-working-on-a-screenless-fitness-band-to-compete-wit...
1•bundie•13m ago•0 comments

Great Plains Shelterbelt

https://en.wikipedia.org/wiki/Great_Plains_Shelterbelt
1•xbryanx•14m ago•0 comments

Font Generator Free – 30 Unicode Font Styles for Social Media

https://fontgeneratorfree.online/
1•billyhe•14m ago•1 comments

Show HN: Crabby – Claude Code skill that reviews code like the Rust compiler

1•ekadet•15m ago•0 comments

A brain scan before a prescription? Geneva's bet on precision psychiatry

https://www.swissinfo.ch/eng/ai-and-medicine/a-brain-scan-before-a-prescription-genevas-bet-on-pr...
2•giuliomagnifico•18m ago•0 comments

CVE-1999-1218 – Amiga Unix allows access to files using finger

https://exchange.xforce.ibmcloud.com/vulnerabilities/522
1•TMWNN•20m ago•0 comments

Why make Claude talk like Rocky, question?

https://github.com/Tom1827/claude-rocky-skill
1•mft_•21m ago•0 comments

Revised: 6-Gate AI Pipeline for RSpec-to-Minitest Migration

https://augmentedcode.dev/multi-agent-pipeline-minitest-migration/
1•viktorianer•24m ago•0 comments

Almost half of Gen Z women want to be Trad wives

https://edubirdie.com/blog/gen-z-women-are-done-chasing-girlboss-ranking-their-dream-lives
3•DivingForGold•28m ago•2 comments

Show HN: AI-agent instructions to restore Claude Pro/Max in OpenCode

https://github.com/jcubic/opencode-claude-plan
1•jcubic•29m ago•0 comments

Why domain specific LLMs won't exist: an intuition

https://simianwords.bearblog.dev/why-domain-specific-llms-wont-exist-an-intuition/
2•simianwords•30m ago•1 comments

Iguanaworks has closed down. USB Infrared hardware open source maker

http://iguanaworks.net/products/usb-ir-transceiver.html
11•ripe•32m ago•0 comments

Someone at BrowserStack Is Leaking Users' Email Address

https://shkspr.mobi/blog/2026/04/someone-at-browserstack-is-leaking-users-email-address/
20•m_km•36m ago•1 comments

Finnish sauna heat exposure induces stronger immune cell than cytokine responses

https://www.tandfonline.com/doi/full/10.1080/23328940.2026.2645467#abstract
3•Growtika•36m ago•0 comments

Can Anything Stop Kalshi?

https://thehustle.co/originals/can-anything-stop-kalshi
1•Anon84•37m ago•0 comments

Fine-tuning Whisper to my speech: 27% to 6.5% WER

https://vivekkairi.com/fine-tuning-whisper-for-atypical-speech-pattern/
1•vivekkairi•39m ago•0 comments

Anthropic, The Pentagon, and the Future of Autonomous Weapons – Odd Lots [video]

https://www.youtube.com/watch?v=_jYFDx6B9iU
1•mooreds•40m ago•0 comments

What Is Anthropic Thinking?

https://www.derekthompson.org/p/what-is-anthropic-thinking
1•mooreds•41m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
1•mooreds•41m ago•0 comments