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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Correctly Check and Use Nullable Variables in C#

https://spin.atomicobject.com/check-use-nullable-variables/
1•philk10•1m ago•0 comments

Communicating Discoveries in the Search for Life in the Universe Workshop Report

https://journals.sagepub.com/doi/full/10.1177/15311074251387636
1•speckx•2m ago•0 comments

Relax for the Same Result

https://sive.rs/relax
1•sebg•5m ago•0 comments

Show HN: I built an AI tool to evaluate my AngelList deal flow

1•stiline06•9m ago•0 comments

Europe's Foolish War on X.com

https://www.wsj.com/opinion/europes-foolish-war-on-x-com-11f16e06
3•Bostonian•9m ago•1 comments

Gild Just One Lily

https://www.smashingmagazine.com/2025/04/gild-just-one-lily/
1•serialx•14m ago•0 comments

Show HN: Django-q-monitor – Headless monitoring API for Django Q2

https://github.com/previa1998/django-q-monitor
1•previa1998•15m ago•1 comments

Show HN: Free Roblox-Style Video Generator Tool

https://www.inreels.ai/tools/free-roblox-video-maker
1•Onekiran•15m ago•0 comments

I built an API testing tool that generates tests from a single cURL

https://github.com/LiudasJan/Rentgen
2•liudasjank•16m ago•1 comments

Microsoft Increases Office 365 and Microsoft 365 License Prices

https://office365itpros.com/2025/12/08/microsoft-365-pricing-increase/
26•taubek•16m ago•8 comments

How Exchanges Turn Order Books into Distributed Logs

https://quant.engineering/exchange-order-book-distributed-logs.html
1•rundef•17m ago•0 comments

Show HN: Velocity Bridge – iPhone to Linux clipboard sync, no cloud

https://github.com/Trex099/Velocity-Bridge
1•trex099•18m ago•1 comments

Retraction Note: The economic commitment of climate change

https://www.nature.com/articles/s41586-025-09726-0
3•RickJWagner•19m ago•1 comments

Year in Review 2025: Hari Kunzru on AI slop and censorship

https://www.artforum.com/features/year-in-review-2025-hari-kunzru-ai-slop-1234738077/
1•speckx•19m ago•0 comments

Confluent stock soars 29% as IBM announces $11B acquisition deal

https://www.cnbc.com/2025/12/08/ibm-confluent-deal-data.html
1•testrun•19m ago•0 comments

The Reenchanted World

https://harpers.org/archive/2025/06/the-reenchanted-world-karl-ove-knausgaard-digital-age/
1•RickJWagner•21m ago•0 comments

Nvidia CUDA 13.1 Powers Next-Gen GPU Programming with Nvidia CUDA Tile

https://developer.nvidia.com/blog/nvidia-cuda-13-1-powers-next-gen-gpu-programming-with-nvidia-cu...
1•ksec•21m ago•0 comments

IBM to Acquire Confluent

https://www.confluent.io/blog/ibm-to-acquire-confluent/
4•abd12•21m ago•0 comments

The First Hosting Plan Search Platform Hostingmoz Is Growing

https://hostingmoz.com/
1•Hostingmoz•25m ago•1 comments

Replicating Deep Research in Jan

https://www.jan.ai/post/deepresearch
1•yakkomajuri•29m ago•0 comments

JPMorgan names Berkshire's Todd Combs to lead new investment initiative

https://www.reuters.com/business/finance/jpmorgan-names-berkshires-todd-combs-lead-new-investment...
1•TMWNN•30m ago•0 comments

Rendering macOS in Virtual Reality

https://oskargroth.com/blog/rendering-macos-in-vr
2•cindori•30m ago•1 comments

When the Market Came for the Dying

https://jacobin.com/2025/12/aids-crisis-welfare-life-insurance
3•speckx•30m ago•0 comments

Bold text generator free, no install, try now

https://boldtextgenerator.space
1•wu1064442747•31m ago•0 comments

Migrating from Ingress Nginx to Envoy Gateway: Handling Cert-Manager Integration

https://blog.fornasa.it/posts/migrating-ingress-nginx-to-envoy-gateway/
2•mfornasa•31m ago•0 comments

Tell HN: I want open AI to succeed for the sake of humanity

1•totaldude87•35m ago•1 comments

30 things I've learned from 30 years as a Python freelancer

https://lerner.co.il/2025/12/08/30-things-ive-learned-from-30-years-in-business/
2•reuven•35m ago•0 comments

AWS introduces Graviton5–the company's most powerful and efficient CPU

https://www.aboutamazon.com/news/aws/aws-graviton-5-cpu-amazon-ec2
3•ksec•36m ago•0 comments

Elysia Chlorotica

https://en.wikipedia.org/wiki/Elysia_chlorotica
3•thunderbong•37m ago•0 comments

Ruby devs earn more than average devs

2•pogrebnoy•37m ago•0 comments