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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: OpenClaw – An OS for AI agents that do work

https://github.com/mupengi-bot/mupengism
1•mupengism•37s ago•0 comments

ERAO – Ask questions in plain English over your database or files

https://erao.digital
1•jorjinio•1m ago•1 comments

Singapore says China-backed hackers targeted its four largest phone companies

https://techcrunch.com/2026/02/10/singapore-china-backed-hackers-targeted-largest-phone-companies...
1•JeanKage•2m ago•0 comments

Fluxer: Free, open source instant messaging and VoIP platform

https://github.com/fluxerapp/fluxer
1•thunderbong•3m ago•0 comments

The AI Advantage Established Companies Have over Startups

https://www.context-link.ai/blog/hidden-ai-advantage-established-companies
1•oliaukus•3m ago•0 comments

Show HN: We rebuilt Flood-It in Bun/vanilla JavaScript, and added a Maze mode

1•ekremkrc•6m ago•1 comments

Show HN: Dominake – A domino puzzle where 5×6 grids are impossible

1•UnclonedMath•9m ago•0 comments

Show HN: Train AI Agents to Write Better Playwright Tests

https://testdino.com/blog/playwright-skill/
2•tanmay001•13m ago•0 comments

Friends Might Be Sharing Your Number with ChatGPT Contacts Sync

https://www.pcmag.com/news/watch-out-your-friends-might-be-sharing-your-number-with-chatgpt?test_...
1•walterbell•13m ago•0 comments

A Wave of Unexplained Bot Traffic Is Sweeping the Web

https://www.wired.com/story/made-in-china-niche-websites-are-seeing-a-surge-of-mysterious-traffic...
1•JeanKage•15m ago•0 comments

Show HN: AISeedream5 – a simple web UI for Seedream 5.0 image

https://aiseedream5.org/
1•xuyanmei•17m ago•0 comments

Show HN: 0211 – Go from zero to eleven in any topic with F1-style gear shifting

1•ekadet•17m ago•0 comments

Pi Coding Agent

https://pi.dev/
2•tin7in•23m ago•0 comments

Who Opened the Door?

https://chaosguru.substack.com/p/who-opened-the-door
2•BerislavLopac•24m ago•1 comments

Experiments with CodeMirror: Building a code review tool

https://aziis98.com/blog/codemirror-review-tool/
1•aziis98•25m ago•0 comments

Show HN: VC Scorecard score any startup or company in 60 seconds

https://www.researchly.at/vc-scorecard
1•leo_researchly•28m ago•2 comments

CasNum

https://github.com/0x0mer/CasNum
1•aebtebeten•34m ago•0 comments

The Cultural Normalization of Correctness Deviance in AI

https://embracethered.com/blog/posts/2025/the-normalization-of-deviance-in-ai/
1•walterbell•34m ago•0 comments

A relationship between the Collatz conjecture and the Fibonacci numbers

https://vincentrolfs.dev/blog/collatz
1•vincentrolfs•39m ago•1 comments

Show HN: Argus – AI code review that doesn't grade its own homework

https://github.com/Meru143/argus
1•meru143•39m ago•1 comments

Apple's upcoming low-cost MacBook will come in 'fun colors,' launch next month

https://9to5mac.com/2026/02/15/apple-cheaper-macbook-launching-next-month-with-a18-pro-chip-and-f...
2•thunderbong•42m ago•1 comments

Show HN: Animus Invoice – Invoice tracking without the busywork

https://animusinvoice.com/beta.html
1•ilkerozbay•44m ago•0 comments

France's 'French Response' uses memes and sarcasm to fight disinformation on X

https://www.euronews.com/my-europe/2026/02/13/frances-french-response-uses-memes-and-sarcasm-to-f...
6•saubeidl•45m ago•0 comments

Show HN: I built a free keyword checker to see if you can rank

https://kitful.ai/write-tools/serp-content-analyzer
1•eashish93•46m ago•0 comments

POK: A Knowledge Economy Where Verified Human Knowledge Mints Currency

https://paragraph.com/@pok-whitepaper/pok-proof-of-knowledge-%E2%80%94-a-decentralized-knowledge-...
2•sihwan•49m ago•1 comments

StudyWithMiku: Open-source AI study assistant

https://github.com/zkzkGamal/StudyWithFriend
1•Zakaria_Gamal•50m ago•1 comments

Software as Wiki, Mutable Software

https://blog.exe.dev/software-as-wiki
1•tosh•51m ago•0 comments

Show HN: DoScript – DSL for file automation with natural language syntax

https://github.com/TheServer-lab/DoScript
1•server-lab•53m ago•0 comments

Nvidia PersonaPlex: Natural Conversational AI with Any Role and Voice

https://research.nvidia.com/labs/adlr/personaplex/
2•matco11•54m ago•0 comments

Phantom-WG

1•remrearas•54m ago•0 comments