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

How to Live with AI

https://humanpro.co/articles/how-to-live-with-ai/
1•gx•24s ago•0 comments

Show HN: Janet LSP with VS Code Extension

https://marketplace.visualstudio.com/items?itemName=kulkarniniraj.yajlsp
1•kulkarniniraj•2m ago•0 comments

Show HN: Kin – Natural language search for family voice notes and memories

https://kin.camera
1•vishalborana34•7m ago•0 comments

How HN: Nexus Doctor – A multi-language OS diagnostic engine (Rust/COBOL/Ruby)

https://github.com/Aissamohammedi88/nexus-doctor.sh
1•Nackher_news•16m ago•0 comments

Pac-Man's Siren Call

https://unsung.aresluna.org/pac-mans-siren-call/
1•tobr•25m ago•2 comments

Show HN: Resticker – A tiny macOS menu bar app for reliable restic backups

https://github.com/marcboeker/resticker
1•laughingparrot•28m ago•0 comments

Who pays for the AI power boom?

https://www.axios.com/2026/10/31/who-pays-ai-power-boom
1•latentframe•35m ago•0 comments

Resisting Cognitive Surrender

https://knlb.dev/essays/surrender
1•knlb•41m ago•0 comments

Work, Art, and Study: AI and Ownership

https://ninchiai.substack.com/p/work-art-and-study-ai-and-ownership
1•jbethune•43m ago•0 comments

Bastard

https://bez-lightyear.bearblog.dev/bastard/
2•HotGarbage•43m ago•0 comments

Tetr.io

https://tetr.io/
1•delian66•49m ago•1 comments

The AI cost of JavaScript frameworks

https://nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks/
2•luu•49m ago•0 comments

Show HN: StackVitals – CI failure triage and DORA metrics, no server

https://github.com/stackvitals/stackvitals
1•kaushik-yadav•51m ago•0 comments

Working at Big Tech Companies Can Be a Trap (2019) [video]

https://www.youtube.com/watch?v=6amgO4dIotk
1•wseqyrku•57m ago•0 comments

Ransome and May Mill Engine

https://modelengineeringwebsite.com/Ransome_&_May_mill_engine.html
1•pillars•1h ago•0 comments

Machining Square Inside Corners: Conquer the Nightmare

https://makeitfrommetal.com/machining-square-inside-corners-the-nightmare/
2•pillars•1h ago•0 comments

Model Aero Engines Free Manufacturable Plans/Blueprints

https://outerzone.co.uk/plans.asp?cat=Engines
5•pillars•1h ago•0 comments

Daphne – Oramics Inspired DAW

https://github.com/stuart78/daphne
2•stuart78•1h ago•0 comments

Computerized clairvoyance: psychics push back against AI-generated readings

https://www.theguardian.com/technology/ng-interactive/2026/oct/29/psychics-push-back-ai-readings
2•stevenalowe•1h ago•1 comments

Octoverse: Commits reach new highs in 2026 as developers build with agents

https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-d...
1•ksec•1h ago•1 comments

Meridian: A peer-to-peer browser game world built by an AI agent

https://blakelapierre.substack.com/p/meridian-in-action-play-it-in-your
1•agentofone•1h ago•0 comments

Show HN: Multi-Layer ASCII Art

https://typeart.mitpit.com/
1•MitPitt•1h ago•1 comments

France approves $11B tax based on content delivered to French subscribers

https://www.tomshardware.com/software/social-media/french-lawmakers-approve-usd11-2-billion-inter...
3•jnord•1h ago•1 comments

The AI boom spawns job market for data-center liaisons

https://www.semafor.com/article/10/30/2026/the-ai-boom-spawns-job-market-for-data-center-liaisons
1•giuliomagnifico•2h ago•0 comments

Screen Capture for macOS – Open-source sticky-aware scrolling capture

https://github.com/nasadunadu/screen-capture-macos
1•nasadunadu•2h ago•0 comments

Show HN: LanesMac – A scrolling tiling window manager for macOS

https://lanesmac.com
1•mansi126•2h ago•0 comments

Show HN: What [67] MCP servers do at startup, with the internet cut off

https://mcp.brydge-ai.com
2•DevanshKontey•2h ago•0 comments

Show HN: Create a Dumbphone on Android

https://beeswax.getflourish.org/
3•privacyishuman•2h ago•0 comments

"Vibe coded my parents' TV this afternoon "

https://twitter.com/gathint/status/2111379569030939102
2•obilgic•2h ago•1 comments

Why Sam Altman is against a single superintelligence

https://cheekypint.substack.com/p/why-sam-altman-is-against-a-single
1•gmays•2h ago•0 comments