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

Context Is the Missing Layer AI Agents Need

https://www.graphlit.com/blog/context-layer-ai-agents-need
2•kirkmarple•1m ago•0 comments

Show HN: Autoclaude – resume Claude Code after you hit your rate limit

http://autoclaude.blmc.dev/
1•henryaj•9m ago•0 comments

LLMs from Scratch Using Middle School Math – TDS Archive

https://medium.com/data-science/understanding-llms-from-scratch-using-middle-school-math-e602d27e...
1•bilsbie•16m ago•0 comments

Show HN: Kotodama OS – An external layer to prevent LLM persona drift

https://github.com/mrookiiheya-arch/kotodama-os
1•kotodama_R•17m ago•0 comments

Show HN: Pivor, Open source self-hosted CRM

https://github.com/Lexaro-Software/pivor
1•acaronlex•18m ago•0 comments

Hyp: One-Click Install for Popular Open-Source Softwares

https://hyp.app
2•hassanjahan•26m ago•3 comments

Show HN: I Updated My 2D Ant Game for the Holidays

https://github.com/aanthonymax/ant-and-apples
1•aanthonymax•27m ago•0 comments

I Killed Color on My Phone. The Result Shocked Me

https://www.nytimes.com/2025/12/25/opinion/smartphone-color-grayscale-addiction.html
1•geox•31m ago•0 comments

Docker Deployment Without the Registry

https://bjarneo.github.io/pipe/
4•bjarneo•31m ago•2 comments

Simple Is a Scam

https://nocomplexity.substack.com/p/simple-is-a-scam
3•runningmike•31m ago•1 comments

Ask HN: Is ChatGPT getting buggier over time or is it me?

1•softwaredoug•34m ago•0 comments

Ask HN: What's the best lecture or talk you've seen in 2025?

2•hopefully_can•34m ago•0 comments

Ask HN: ChatGPT Getting Buggier over Time?

1•softwaredoug•35m ago•0 comments

How to Spot a Bureaucrat?

https://www.tareqrafed.com/how-to-spot-bureaucrat
2•grog6•36m ago•0 comments

How Effective Is Protesting?

https://www.theguardian.com/us-news/2025/dec/25/protests-effective-history-impact
3•mitchbob•39m ago•1 comments

I miss when the internet had less people

https://www.youtube.com/watch?v=4VmnhJGdSM0
2•skeuomorphism•40m ago•1 comments

Cargo features could be improved to alleviate Rust compile times

https://saghm.com/cargo-features-rust-compile-times/
1•PaulHoule•41m ago•0 comments

How and why I moved from Apple Services to my own server

https://bastiangruber.ca/posts/mass-quitting-apple/
9•birdculture•51m ago•0 comments

Show HN: Fluid design is dead, tried building a product that honors speed

https://conversate-ai.hyacinth.studio/agent-mode/26
1•acrylicrel•53m ago•0 comments

Show HN: I built an OCI container runtime in Python(for fun)

https://github.com/Kaleab-Ayenew/puncker-rt
1•kalishayish•57m ago•0 comments

Braiding Onions and Garlic [video]

https://www.youtube.com/watch?v=GAV1JLbULqM
1•marysminefnuf•1h ago•0 comments

The Plural of Anecdote Is Misinformation

https://www.psychologytoday.com/ca/blog/writing-integrity/202011/the-plural-anecdote-is-misinform...
3•Anon84•1h ago•1 comments

Not quite so broken TLS

http://ww16.nqsb.io/?sub1=20251226-0542-17d5-baaa-ccceb9825343
1•fanf2•1h ago•1 comments

The Global Book Map

https://www.mappit.net/bookmap/
1•didizaja•1h ago•0 comments

39c3 Fahrplan (Schedule)

https://fahrplan.events.ccc.de/congress/2025/fahrplan/
16•rurban•1h ago•0 comments

What can be next for CLI coding agents

https://boliv.substack.com/p/next-steps-for-cli-coding-agents
1•brunooliv•1h ago•0 comments

Tell HN: Reddit AI Slop dating app ads

2•999900000999•1h ago•0 comments

Show HN: I Patched Agents SDK to Work with React Native

https://testflight.apple.com/join/TvcaP2q6
1•Rostik312•1h ago•0 comments

Ask HN: Dentistry, Software Engineering and Health Informatics

1•CoffeeDeSanta•1h ago•0 comments

Is the Standard Model overfitting or am I curve-fitting?

2•albert_roca•1h ago•12 comments