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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

I Tracked Down the Hidden Workers Secretly Powering ChatGPT [video]

https://www.youtube.com/watch?v=aooiDA-AsNo
1•ShinyLeftPad•1m ago•0 comments

Officially, Marco Rubio is still banned from China. So how is he in Beijing?

https://www.washingtonpost.com/world/2026/05/14/officially-marco-rubio-is-still-banned-china-so-h...
1•_tk_•1m ago•0 comments

The First Wafer Scale Company – Trilogy Systems Story Part 1 (2024)

https://thechipletter.substack.com/p/wafer-scale-trilogy-systems-part
1•klelatti•2m ago•0 comments

Economics of Expanding Medical Assistance in Dying to Vulnerable Populations

https://journals.sagepub.com/doi/10.1177/00302228251323299
1•NalNezumi•7m ago•0 comments

Hiring Trends in Mid 2026: What Founders Are Getting Wrong

https://foundersarehiring.com/hiring-resources/hiring-trends-mid-2026
1•niksmac•8m ago•0 comments

AI Font Detector: Smart Ways to Identify Fonts with Precision

https://www.tumblr.com/tracksaasly/816569321203613696/ai-font-detector-smart-ways-to-identify-fon...
1•emmaroutines•9m ago•0 comments

Non-interactive Claude Code usage ejected from subscriptions

1•mdemare•9m ago•0 comments

Why Ruby Is the Better Language for LLM-Powered Development

https://www.bytecode.hr/posts/why-ruby-is-the-better-language-for-llm-powered-development
1•faangguyindia•10m ago•0 comments

Firefox extension to browser the web in a 1990s GeoCities retro style

https://addons.mozilla.org/en-US/firefox/addon/geocities-time-machine/
2•whatsupdog•11m ago•1 comments

GitLab's Reliability Crisis: Developers Are Fed Up and Going Public

https://gitlab.com/gitlab-com/gl-infra/production/-/work_items/22104
1•joshwoodcock•12m ago•0 comments

James Reason, Who Used Swiss Cheese to Explain Human Error, Dies at 86 (2025)

https://www.nytimes.com/2025/03/13/science/james-reason-dead.html
1•zeristor•12m ago•2 comments

Remove .zig Files from Bun

https://github.com/oven-sh/bun/pull/30680
1•quasigloam•15m ago•0 comments

High-Entropy Alloy

https://en.wikipedia.org/wiki/High-entropy_alloy
1•leonidasrup•19m ago•0 comments

Azure Container Apps express overview

https://learn.microsoft.com/en-us/azure/container-apps/express-overview
1•mariuz•23m ago•0 comments

Perceptron Mk1 highly performant video analysis model 80% cheaper than big three

https://venturebeat.com/technology/perceptron-mk1-shocks-with-highly-performant-video-analysis-ai...
1•rswerve•24m ago•0 comments

ByteHug Technologies

https://play.google.com/store/apps/details?id=com.bytehug.daydonedayplanner&hl=en_US
1•AnjuAlias•25m ago•0 comments

Show HN: Midjourney Prompt Generator

https://www.midjourney-prompt-generator.eu/
1•manol_ai•29m ago•1 comments

Nginx Rift: Nginx Remote Code Execution via an 18-Year-Old Vulnerability

https://depthfirst.com/research/nginx-rift-achieving-nginx-rce-via-an-18-year-old-vulnerability
1•throwaway2027•37m ago•0 comments

Show HN: Mind Focus, an Android app for focus and attention recovery

https://www.ataraxiaapps.com/en/posts/app-mind-focus/
1•korax_nyx•39m ago•0 comments

Claude changes headless usage from June 15

https://twitter.com/ClaudeDevs/status/2054610152817619388
1•tzmlab•42m ago•0 comments

Less is exponentially more (2012)

https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html
1•tosh•43m ago•0 comments

Behind the Sound of Ninja Gaiden: Ragebound

https://www.audiokinetic.com/en/community/blog/ninja-gaiden-ragebound/
1•severine•43m ago•0 comments

Lets Roast Your Website

1•ajaysheoran2323•45m ago•0 comments

Show HN: ChangeSpec – An open standard for notices in software changes

https://changespec.org/
1•cdnsteve•46m ago•1 comments

Daily Food Guessing Game

https://munchle.day/
1•shumaher•48m ago•0 comments

Riding the Leopard

https://www.notboring.co/p/riding-the-leopard
1•jger15•49m ago•0 comments

TypedArray.prototype.map()

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map
1•tosh•50m ago•0 comments

Researchers say AI just broke every benchmark for autonomous cyber capability

https://cyberscoop.com/ai-autonomous-cyber-capability-benchmarks-broken-gpt5-claude-mythos/
1•lschueller•52m ago•0 comments

Avocado Studio – open-source AI content editor for Next.js sites

https://docs.avocadostudio.dev
1•yury_h•52m ago•0 comments

40-Year-Old System Analyzed with AI: It Turned Out to Have a Modern Architecture

https://medium.com/@noborutakahashi/a-40-year-old-system-analyzed-with-ai-it-turned-out-to-have-a...
1•fragmede•54m ago•0 comments