frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•11mo ago

Comments

zoezoezoezoe•11mo ago
I dont know if I fully agree. Sure, there is definitely an argument the be had about whether or not `continue` is the best word to use in this instance, but why avoid it entirely? Every programmer is able to easily understand what code like this would do:

``` for (Node node : nodeList) { if (node.isBad()) { continue; } processNode(node); } ```

Every keyword in any programming language is largely arbitrary in my opinion let's take a look at the beginning of the codeblock `for (Node node : nodeList)` also completely arbitrary, though it's clear to anyone who's ever written C++ that it is equivalent to saying "for every node in nodeList".

Continue is not meant to read as "continue execution" it's meant to be "continue to the next item of the list", and I think avoiding it entirely is a pointless effort.

Ukv•11mo ago
I feel `skip` may have been a better name, but disagree with it being logically difficult to parse beyond that.

If I'm reading a loop and see

    for x in y {
        if exclusions.contains(x) { skip; }
        if x.children.length == 0 { skip; }
        if os.file.exists(x.name) { skip; }
        ...
I instantly know that processing for those elements is skipped, and they won't be relevant for the rest of the loop.

Whereas if I see

    for x in y {
        if !exclusions.contains(x) {
            if x.children.length != 0 {
                if !os.file.exists(x.name) {
        ...
I feel like there's still mental overload with not knowing where those `if` blocks end, and so having to keep the conditions in mind. It doesn't immediately tell me that the rest of the loop is being skipped.

The `log()` mistake seems no less likely to happen using early-returns in function instead, and I'd argue nesting checks actually introduces more room for that kind of error overall, where you append something at the end within the wrong set of brackets, compared to a flatter structure.

Scuttlebutt Genesis

https://handbook.scuttlebutt.nz/stories/scuttlebutt-genesis
1•jruohonen•17s ago•0 comments

Suno, AI Music, and the Bad Future [video]

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•ptrhvns•45s ago•0 comments

Eternity in six hours: Intergalactic spreading of intelligent life (2013)

https://www.researchgate.net/publication/256935390_Eternity_in_six_hours_Intergalactic_spreading_...
1•wallflower•1m ago•0 comments

Guidelines for Submitting Unicode Emoji Proposals

https://unicode.org/emoji/proposals.html
1•wallflower•2m ago•0 comments

SQL-First PostgreSQL Migrations Without the Magic

https://medium.com/@mailbox.sq7/sql-first-postgresql-migrations-without-the-magic-dd2f383dee2a
2•alzhi7•5m ago•0 comments

A Simple Coding Agent in a Loop with LangChain4j, Jbang, and Gemini

https://glaforge.dev/posts/2026/04/11/a-simple-coding-agent-in-a-loop-with-langchain4j-jbang-and-...
2•mariuz•6m ago•0 comments

Show HN: Minimal mobile HN reader – real-time and dark mode

https://hn.brae.workers.dev/
2•weekendproject•7m ago•0 comments

Flat Error Codes Are Not Enough

https://home.expurple.me/posts/flat-error-codes-are-not-enough/
1•Expurple•8m ago•1 comments

Will there be a social layer for vibe coding?

https://metedata.substack.com/p/metedata-digest-005-vibe-coding-wants
1•young_mete•10m ago•0 comments

MangroveViewer

https://github.com/altilunium/MangroveViewer
1•altilunium•11m ago•0 comments

Strategy as a Language: A Grammar for the Carbon–Silicon Learning Firm

https://jimiwen.substack.com/p/strategy-as-a-language
1•jimiwen•12m ago•0 comments

Is AI the greatest art heist in history?

https://www.theguardian.com/books/2026/apr/12/is-ai-the-greatest-art-heist-in-history
5•Brajeshwar•19m ago•1 comments

Show HN: Agent-Notifications – Real-Time Alerts for OpenClaw and Hermes Agents

https://github.com/Kuberwastaken/agent-notifications
1•kuberwastaken•21m ago•0 comments

From Early Nirvana to Phish, Secret Recordings of 10k Shows Are Now Online

https://blockclubchicago.org/2026/04/10/from-early-nirvana-to-phish-a-chicago-fans-secret-recordi...
1•Anon84•23m ago•0 comments

Claude Code Checkpoints

https://github.com/yahnyshc/daedalus
1•maksyyy•25m ago•0 comments

AI and Psi with Paul Werbos (Inventor of Backpropagation) [video]

https://www.youtube.com/watch?v=rMh-snQ1YWU
2•binyu•26m ago•0 comments

Show HN: Codex Workers AI Proxy – Use Workers AI models with Codex CLI

https://github.com/pitzcarraldo/codex-workers-ai-proxy
2•mrnoname•30m ago•1 comments

Show HN: ReverseYC

https://rocketplace.org/reverseyc
2•remarketme•32m ago•1 comments

Show HN: NeZha – An Open-Source Agentic Development Environment (ADE)

https://nezha.hanshutx.com/en/
1•markhan-nping•35m ago•0 comments

Building a 10BASE5 "Thick Ethernet" network (2012)

https://www.mattmillman.com/projects/10base5/
1•accrual•36m ago•0 comments

Show HN: A personality first matchmaking app

https://www.connectwithember.com/
1•willeyy•38m ago•0 comments

LLMs don't want pixels, they want tools

https://www.bobbytables.io/p/the-future-is-apis
1•btables•38m ago•0 comments

Distribution is the only moat AI can't kill

https://dheer.co/only-moat-ai-cant-kill/
1•bushido•42m ago•0 comments

Moltis – A secure persistent personal agent server in Rust

https://moltis.org/
1•rekl•42m ago•0 comments

Regional Variation in the Performance of ASR Models on Croatian and Serbian

https://aclanthology.org/2026.vardial-1.20/
1•taubek•44m ago•0 comments

Trump vows to blockade Strait of Hormuz after talks stumble

https://www.reuters.com/world/asia-pacific/us-iran-talks-pause-now-disagreements-remain-2026-04-11/
11•andyjohnson0•47m ago•2 comments

PostgreSQL Credential Rotation in Production: A Zero-Downtime Runbook

https://www.elydb.com/blog/postgresql-credential-rotation-production
1•thunderbong•49m ago•0 comments

Ask HN: What's your experience with PoW captchas against form spam?

2•pentacent_hq•50m ago•1 comments

A full-featured terminal user interface for hledger plain-text accounting

https://github.com/thesmokinator/hledger-textual
1•willm•51m ago•0 comments

Ask HN: What are all the bad things that AI companies have done which we forgot

1•Imustaskforhelp•52m ago•0 comments