frontpage.
newsnewestaskshowjobs

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

The Price of Palantir's Politics

https://www.ft.com/content/21038b20-646e-4773-a473-110c2d62ab15
1•JumpCrisscross•25s ago•0 comments

Show HN: Open-source web monitoring software

https://webdog.ai/
1•ICodeSometimes•48s ago•0 comments

AI Language Tutor That Answers a Phone Call

https://github.com/team-telnyx/telnyx-code-examples/tree/main/ai-language-learning-phone-tutor-py...
1•harpreetseehra•1m ago•0 comments

I Need a Job, Anything

1•tolani_somoye•1m ago•0 comments

Biohacker seeking immortality afflicted with incurable 'stomach eating' disease

https://www.lifesitenews.com/news/biohacker-seeking-immortality-afflicted-with-incurable-stomach-...
1•ferryth•2m ago•0 comments

Show HN: Respect the Oracle – An agent skill that stops agents from overfitting

https://github.com/chris-short/respect-the-oracle
1•oaf357•3m ago•0 comments

Show HN: envapt, typed env config for decoupled TS codebases (Node to edge)

https://github.com/materwelonDhruv/envapt
1•materwelon•3m ago•0 comments

The male wellness guide to peptides

https://www.ft.com/content/4417cf18-d8cd-4ccc-9745-e728e8d69348
1•bookofjoe•4m ago•1 comments

Ubiquiti warns of new max severity UniFi OS vulnerability

https://www.bleepingcomputer.com/news/security/ubiquiti-warns-of-new-max-severity-unifi-os-vulner...
1•Brajeshwar•4m ago•0 comments

Fable 5 found waldo and circled him under 3 minutes

https://old.reddit.com/r/ClaudeCode/comments/1uqedx3/fable_5_found_waldo_circled_him_under_3_minu...
1•echelon•5m ago•0 comments

Show HN: Price simulation game: What is the price impact over your sales

https://www.fastcompete.com/price-wars
1•adibalcan•6m ago•1 comments

Angel Investor Simulator

https://guacosoft.com/angel/investorSim.html
1•babuskov•6m ago•0 comments

The Conversation Isn't Real

https://lonriesberg.com/posts/the-conversation-isnt-real/
1•lriesberg•7m ago•0 comments

Postgress Repo 3D Visualization

https://www.reddit.com/r/PrincipalAi/s/qt6tYiqeda
1•fernando-ram•7m ago•0 comments

Show HN: AI math chat that knows your notes, connecting you to human experts

https://www.prooftree.ai
1•lemma1729•7m ago•0 comments

Brave Place Search API: The Google Maps Alternative That Costs 6–7x Less

https://brave.com/blog/place-search-improved/
1•dotcoma•8m ago•0 comments

Two concerns I have with AI right now

1•ramoz•8m ago•0 comments

Ask HN: Any Quantum Computer people who knows how to run a benchmark here?

1•KenographerPrim•9m ago•0 comments

Two teens learn the hard way not to do toy gun drive-bys from a Waymo

https://arstechnica.com/cars/2026/07/two-teens-learn-the-hard-way-not-to-do-toy-gun-drivebys-from...
1•Gedxx•10m ago•0 comments

European countries top 'scorecard' on climate progress while US slips to 27th

https://www.theguardian.com/environment/2026/jul/08/climate-change-crisis-europe-us
1•mitchbob•10m ago•0 comments

Apple dropped plan for encrypting backups after FBI complained (2020)

https://www.reuters.com/article/us-apple-fbi-icloud-exclusive-idUSKBN1ZK1CT/
2•downbad_•10m ago•0 comments

AOLs Instant Messenger was the unsung hero of the early-aughts

https://a.wholelottanothing.org/aols-instant-messenger-was-the-unsung-hero-of-the-early-aughts/
1•gaws•11m ago•0 comments

TypeScript 7

https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
4•DanRosenwasser•11m ago•0 comments

Show HN: Maps for e-scooters (hills and battery routing)

https://battmap.com
1•thepaulthomson•12m ago•0 comments

Measuring the Trustworthiness of Open-Source-Derived Models

https://cognition.com/blog/measuring-open-source-model-trustworthiness
2•lord_sudo•12m ago•0 comments

FlockCamRE – Reverse Engineering of Flock Cameras

https://github.com/kernelstub/FlockCamRE
1•denysvitali•13m ago•0 comments

Show HN: Aerohud – Grid Overview for AeroSpace (macOS)

https://github.com/nikhilmwarrier/aerohud
1•niksystems•13m ago•0 comments

AI memory is a filing cabinet

https://platformpilot.ai/blog/your-ai-memory-is-a-filing-cabinet
2•laurauzcategui•13m ago•0 comments

TV licence fee is 'yesterday's model', new BBC director general says

https://www.bbc.co.uk/news/articles/c20yjjm7n87o
1•mmarian•14m ago•0 comments

Stereotypical LLMs

https://ordinaryintelligence.substack.com/p/stereotypical-llms
1•mldev_exe•15m ago•0 comments