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•9mo ago

Comments

zoezoezoezoe•9mo 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•9mo 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.

Show HN: Seedance 2.0 – Native audio-visual sync video model

https://videomakerai.app/models/seedance-ai
1•thenextechtrade•2m ago•0 comments

Shattered Pixel Dungeon in 2026

https://shatteredpixel.com/blog/shattered-pixel-dungeon-in-2026.html
1•robin_reala•2m ago•0 comments

Agentic Vision in Gemini 3 Flash

https://blog.google/innovation-and-ai/technology/developers-tools/agentic-vision-gemini-3-flash/
1•7777777phil•3m ago•0 comments

Show HN: GitWriter – mobile Markdown editor for writers

https://gitwriter.io
1•anthonybrooks•3m ago•0 comments

96% Engineers Don't Trust AI Output, yet Only 48% Verify It

https://newsletter.eng-leadership.com/p/96-engineers-dont-fully-trust-ai
2•birdculture•5m ago•1 comments

Show HN: Markdown Projects – File based project management for AI agents

https://www.markdownprojects.com/
1•deepresearch•6m ago•0 comments

PaperBanana: Automating Academic Illustration for AI Scientists

https://huggingface.co/papers/2601.23265
1•7777777phil•12m ago•0 comments

Show HN: Simple Helpdehk tool for small software teams

https://aidkit.co/
1•lorenzkrinner•13m ago•0 comments

Show HN: SaaS for making software documentation automatically

https://bunnydesk.ai
2•jacobsyc•13m ago•0 comments

Java UI in 2026: an overview of current frameworks and approaches

https://robintegg.com/2026/02/08/java-ui-in-2026-the-complete-guide.html
1•pjmlp•17m ago•0 comments

EU and India launch talks on Horizon Europe association

https://research-and-innovation.ec.europa.eu/news/all-research-and-innovation-news/eu-and-india-l...
1•saubeidl•18m ago•0 comments

Agent systems fail when orchestration is underspecified

https://bnjam.dev/posts/agent-orchestration/agent-systems-fail-quietly.html
2•bnjam•19m ago•0 comments

Every Way to Export ChatGPT Conversations

https://chromewebstore.google.com/detail/export-chatgpt-conversati/ploaaddkflkapjfbfapmkmkefigedefp
2•backrun•20m ago•3 comments

Wireit: Smarter and more efficient NPM run

https://github.com/google/wireit
1•AbuAssar•20m ago•0 comments

Show HN: ArkWatch – Uptime monitoring with zero dependencies

1•arkforge•22m ago•0 comments

Show HN: Forge – 3MB Rust binary that coordinates multi-AI coding agents via MCP

https://github.com/nxtg-ai/forge-orchestrator
1•vipdestiny•22m ago•0 comments

Modular Monoliths and Other Facepalms – Kevlin Henney – NDC London 2026

https://www.youtube.com/watch?v=4qfsmE11Ejo
2•aivarsk•24m ago•0 comments

MicroORM: TypeScript ORM Using Data Mapper, Unit of Work, Identity Map Patterns

https://github.com/mikro-orm/mikro-orm
2•thunderbong•27m ago•0 comments

Show HN: Auto Formatting PDF generator web tool for Travelers

https://cheaptrip.online/planner.html
1•Divyeshhn•28m ago•1 comments

A UK-focused job board for account managers – AccountManagerJobs.co.uk

https://accountmanagerjobs.co.uk/
1•figoshi•28m ago•1 comments

If You Could Go Faster Than Light, Time Wouldn't Run Backward at All

https://pajuhaan.medium.com/if-you-could-go-faster-than-light-time-wouldnt-run-backward-at-all-9f...
1•pajuhaan•30m ago•1 comments

P2P crypto exchange development company

1•sonniya•32m ago•0 comments

Building a Hardware Accelerated Live TV Player from Scratch in C with Vulkan

https://blog.jaysmito.dev/blog/03-live-tv-inside-vulkan/
1•jmax01•34m ago•0 comments

Show HN: Black Hole Universe Simulator (seeking collaborators)

https://github.com/pongtse822-rgb/V6-Black-Hole-Universe
1•pongtse822•40m ago•1 comments

Show HN: Freeciv 3D with hex map tiles and WebGPU renderer

https://github.com/freecivworld/freecivworld
2•roschdal•42m ago•0 comments

Text classification with Python 3.14's ZSTD module

https://maxhalford.github.io/blog/text-classification-zstd/
1•alexmolas•47m ago•0 comments

Castle Engine: Upgrade to GTK 3

https://castle-engine.io/wp/2026/02/09/upgrade-to-gtk-3/
1•mariuz•50m ago•0 comments

SETI program is chasing down its final 100 signals

https://www.space.com/space-exploration/search-for-life/this-seti-program-is-chasing-down-its-fin...
2•belter•52m ago•0 comments

Portugal builds Europe's first dedicated drone carrier

https://www.euronews.com/2026/01/29/portugal-builds-europes-first-dedicated-drone-carrier-d-joao-ii
2•belter•52m ago•0 comments

Poison2

https://rnsaffn.com/poison2/
1•thunderbong•54m ago•0 comments