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: GitHub – Burn – Rust tensor library and deep learning framework

https://github.com/tracel-ai/burn
1•criexe•52s ago•0 comments

ACX 2025 prediction contest retrospective

https://entropicthoughts.com/acx-2025-prediction-contest-retrospective
1•kqr•1m ago•0 comments

Software Crisis

https://en.wikipedia.org/wiki/Software_crisis
1•tin7in•3m ago•0 comments

Life Levels – Make choices and see your life in 15 years

https://mathgameshero.com/life-levels/
1•absurdwebsite•9m ago•1 comments

How the New Yorker Became Irrelevant

https://www.persuasion.community/p/how-the-new-yorker-lost-its-soul
1•simonebrunozzi•14m ago•0 comments

What does it mean to be a programming language, anyhow? (2021) [pdf]

https://dl.acm.org/doi/pdf/10.1145/3480947
1•hun3•14m ago•0 comments

Show HN: SharpSkill- Realign markets needs and developers

https://sharpskill.fr/en
1•MakeMilk•16m ago•0 comments

Ask HN: How to keep your product from fading into obscurity

1•alexpham14•19m ago•0 comments

California Gold Smelt [video]

https://www.youtube.com/shorts/f1QdvAl4YKY
2•thunderbong•20m ago•0 comments

You Don't Need an ORM

https://codebeameurope.com/talks/you-don-t-need-an-orm/
2•amalinovic•21m ago•1 comments

Show HN: Control center for Claude Code with plan review and parallel agents

https://www.heymedusa.net/
2•benodiwal•23m ago•0 comments

Bettershot an OSS Alternative of Cleanshot

https://github.com/KartikLabhshetwar/better-shot
2•kartik017•26m ago•0 comments

The Great Online Game

https://www.notboring.co/p/the-great-online-game
2•simonebrunozzi•29m ago•0 comments

AI-bots shall eat my docs

https://discourse.ubuntu.com/t/ubuntu-server-gazette-issue-11-ai-bots-shall-eat-my-docs/75029
2•DanieleProcida•31m ago•1 comments

59% of Republicans favor use of force immigration raids despite risk of deaths

https://www.reuters.com/world/republicans-split-trumps-aggressive-immigration-crackdown-reutersip...
2•willmarch•31m ago•1 comments

Support for C++26 Reflection has been merged into GCC trunk

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4b0e94b394fa38cdc3431f3cfb333b85373bd948
2•pjmlp•32m ago•0 comments

Work/life/pet project balance?

3•wiz21c•39m ago•0 comments

Python Basics Explained with Real-World Examples

https://medium.com/@pcodesdev/python-basics-the-complete-beginners-guide-to-programming-in-2026-a...
2•pcodesdev•44m ago•1 comments

Tolkien Society Awards 2026

https://www.tolkiensociety.org/society/awards/
2•BerislavLopac•44m ago•0 comments

KerasHub: a pretrained modeling library

https://keras.io/keras_hub/
2•saikatsg•45m ago•0 comments

Trial acquittal after 7yrs for aid workers prosecuted in Greece refugee crisis

https://www.theguardian.com/world/2026/jan/16/greece-refugee-crisis-aid-workers-people-smuggling-...
2•oriettaxx•47m ago•0 comments

Show HN: Hc: an agentless, multi-tenant shell history sink

https://github.com/alessandrocarminati/hc
1•acarminati•47m ago•0 comments

Sharing code on the blog not any more?

3•tetek•49m ago•0 comments

Porting MiniJinja to Go with an Agent

https://lucumr.pocoo.org/2026/1/14/minijinja-go-port/
1•BerislavLopac•50m ago•0 comments

Show HN: Markdown-table-repair – Fix broken Markdown tables from LLM streams

1•joulessies•50m ago•0 comments

Claude Code for Writers

https://www.platformer.news/claude-code-for-writers-tips-ideas/
1•7777777phil•52m ago•0 comments

Ask HN: Any Local Secret Manager?

2•spacemnstr42069•56m ago•0 comments

Keeping Secrets from Claude Code

https://patrickmccanna.net/keeping-secrets-from-claude-code/
2•gpi•59m ago•0 comments

Interactive eBPF

https://ebpf.party/
4•samuel246•1h ago•0 comments

How we made Python's packaging library 3x faster

https://iscinumpy.dev/post/packaging-faster/
1•rbanffy•1h ago•0 comments