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

News Espressif Introduces ESP32-E22, First Wi-Fi 6E Connectivity Co-Processor

https://www.espressif.com/en/news/ESP32_E22_Announcement
1•hasheddan•1m ago•0 comments

Small Kafka: Tansu and SQLite on a free t3.micro

https://blog.tansu.io/articles/broker-aws-free-tier
1•rmoff•3m ago•0 comments

I Forked Google Flatbuffers

https://digitalarsenal.github.io/flatbuffers/
1•tjkoury•3m ago•1 comments

Sony and Tcl Sign Memorandum of Understanding for Strategic Partnership

https://www.sony.co.jp/en/news-release/202601/26-0120E/
1•ksec•10m ago•0 comments

Show HN: Async HTTP handler plugin for the AWS SDK for Ruby, built on async-HTTP

https://github.com/thomaswitt/aws-sdk-http-async
1•thomas_witt•11m ago•0 comments

Show HN: Pikchr.pl – Make Pikchr diagrams using Prolog

https://github.com/exlee/pikchr.pl
2•xlii•11m ago•0 comments

Mars was half covered by an ocean

https://mediarelations.unibe.ch/media_releases/2026/media_releases_2026/mars_was_half_covered_by_...
1•amenghra•16m ago•0 comments

Revolut to Enable Checkout Across Agentic Commerce Platforms

https://www.revolut.com/news/revolut_to_enable_frictionless_checkout_across_all_agentic_commerce_...
1•codingbuddy•17m ago•0 comments

Guix for Development

https://dthompson.us/posts/guix-for-development.html
1•clircle•26m ago•0 comments

AI Adoption Is a Trap

https://dentro.de/ai/blog/2026/01/19/ai-adoption-is-a-trap/
1•myk-e•29m ago•1 comments

Show HN: IP over Avian Carriers with Quality of Service

https://www.rfc-editor.org/rfc/rfc2549.html
1•mig4ng•34m ago•0 comments

Meredith Whittaker – AI Agent, AI Spy

https://www.youtube.com/watch?v=0ANECpNdt-4
1•max_•39m ago•0 comments

Confronted over Greenland Europe is ditching its softly-softly approach to Trump

https://www.bbc.co.uk/news/articles/c0lx7j1lrwro
1•treadump•41m ago•0 comments

I ported the OpenAI Codex review prompts to Gemini CLI

https://github.com/grainier/gemini-cli-codex-reviews
1•grainier•44m ago•1 comments

Software as Fast Fashion

https://tante.cc/2026/01/15/software-as-fast-fashion/
1•pantalaimon•44m ago•0 comments

A static site generator written in POSIX shell

https://aashvik.com/posts/shell-ssg/
1•todsacerdoti•45m ago•0 comments

VidSnoop – browser-based video analyzer (codec checker, metadata viewer)

https://www.vidsnoop.com/
1•androidparanoid•46m ago•1 comments

The Military Is Being Forced to Plan for an Unthinkable Betrayal

https://www.theatlantic.com/ideas/2026/01/us-military-trump-greenland/685677/
11•breve•46m ago•2 comments

My thoughts on Gas Town after 10k hours of Claude Code

https://simonhartcher.com/posts/2026-01-19-my-thoughts-on-gas-town-after-10000-hours-of-claude-code/
1•birdculture•50m ago•0 comments

Show HN: NetNerve AI-powered packet analysis that analyses.cap files

https://www.netnerve.online/
1•bhatshubham•51m ago•0 comments

Beddel Protocol serve as the 'API' for AIs to build secure software for us

https://www.npmjs.com/package/beddel
1•mesenga•53m ago•0 comments

A Personal AI Maturity Model (Paimm)

https://danielmiessler.com/blog/personal-ai-maturity-model
2•alexandrp001•54m ago•0 comments

Building an ECS Golden Path with Claude Code and AWS CDK

https://medium.com/zar-engineering/building-an-ecs-golden-path-with-claude-code-and-aws-cdk-d4a58...
1•obiefernandez•54m ago•0 comments

I'm Addicted to Being Useful

https://www.seangoedecke.com/addicted-to-being-useful/
2•swah•54m ago•1 comments

Show HN: Gemini-live-react – Real-time voice AI that works in the browser

1•loffloff•56m ago•0 comments

Sony's TV business is being taken over by Tcl

https://www.theverge.com/news/864263/sony-tcl-tv-business-partnership-takeover-announcement
5•phantomathkg•59m ago•0 comments

I built a typing practice tool because typing tests never helped me improve

1•amitgajbhare•1h ago•0 comments

Show HN: Leta – Command-line LSP client for agentic coders

https://github.com/andreasjansson/leta
1•fagerhult•1h ago•0 comments

Computer-Using Agents Are Transforming Lead Data Research

https://www.louisamayhanrahan.com/p/ai-advancements-in-data-research
1•louisamayh•1h ago•0 comments

Do startups need marketing services? (Insights from a seasoned marketing team)

https://amplift.ai/
1•our79511•1h ago•1 comments