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

Comments

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

Visualize Your Turborepo Workspace

https://turbograph.dev/
1•kuzeykose•2m ago•0 comments

Shai-Hulud-Style NPM Worm Hijacks CI Workflows and Poisons AI Toolchains

https://socket.dev/blog/sandworm-mode-npm-worm-ai-toolchain-poisoning
2•jicea•3m ago•0 comments

Show HN: Formally Verified a Millennium Prize Problem in Coq Yang-Mills Mass Gap

https://github.com/Shariq81/yang-mills-mass-gap
1•shariq81•3m ago•0 comments

Trump says he'll raise tariffs to 15 percent after Supreme Court ruling

https://apnews.com/article/trump-tariff-truth-social-872c8f04112a8991d8aa6ae5005767b6
3•_rend•5m ago•2 comments

Apple's Ferret AI model is a step towards Siri seeing and controlling apps

https://appleinsider.com/articles/26/02/21/apples-latest-ferret-ai-model-is-a-step-towards-siri-s...
1•geox•6m ago•0 comments

ClipSafe

https://clipsafe.app/blog/rss.xml
1•mcunderground•6m ago•1 comments

Show HN: Here.now – Web Hosting for Agents

https://here.now/
1•k0mplex•7m ago•0 comments

When a Platform Stops Saying "Automation" and Starts Saying "LLM"

1•ppolicyco•8m ago•0 comments

Wrapping Code Comments

https://matklad.github.io/2026/02/21/wrapping-code-comments.html
1•surprisetalk•8m ago•0 comments

I'm 15 and built a platform for developers to showcase WIP projects

1•amin2011•9m ago•0 comments

Show HN: Cc-md – Zero-cost Obsidian sync across iPhone, Mac, and GitHub

https://github.com/yuukiLike/cc-md
1•YuukiJyoudai•9m ago•0 comments

Stanford study points to vaccine that protects against multiple infections

https://www.nbcbayarea.com/news/local/stanford-study-vaccine-multiple-infections/4039740/
1•apparent•9m ago•0 comments

Show HN: Amux – A tmux-based multiplexer for running parallel Claude Code agents

https://amux.io
1•Beefin•10m ago•0 comments

SQLite-Vector: highly efficient vector extension for SQLite

https://github.com/sqliteai/sqlite-vector
1•marcobambini•10m ago•0 comments

Show HN: Museum of Handwritten Code (If, While, Binary Search, Merge Sort)

https://museum.codes
2•sgraphics8•14m ago•0 comments

Forever – Claude Memory System

https://forever.squidcode.com
1•pro_methe5•14m ago•2 comments

Show HN: StackWho – Find companies by tech stack with decision maker contacts

https://stackwho.com/
1•veritas9•14m ago•0 comments

Museum Excavation in Cologne Finds Ancient Roman Governor's Palace and Basilica

https://allthatsinteresting.com/cologne-germany-ancient-roman-ruins
2•bookofjoe•15m ago•1 comments

Show HN: Trying to make sense of the OpenClaw chaos with one feed

https://www.lobstersauce.news/
1•Tjerkienator•19m ago•0 comments

A Practical Guide to Getting Productive with Claude Code

https://onebytepls.com/articles/copilot-to-coworker-agent-driven-development/
1•dechiad•22m ago•0 comments

Breast imaging with ultra-low field MRI

https://www.nature.com/articles/s41598-026-37130-9
2•PaulHoule•23m ago•0 comments

Show HN: DevBind – I made a Rust tool for zero-config local HTTPS and DNS

https://github.com/Its-Satyajit/dev-bind
1•its-satyajit•24m ago•0 comments

Mathematics in the Library of Babel

https://www.daniellitt.com/blog/2026/2/20/mathematics-in-the-library-of-babel
1•robinhouston•25m ago•0 comments

H-1B Visas and the AI Race

https://www.wsj.com/opinion/h-1b-visas-artificial-intelligence-jobs-immigration-economy-nfap-repo...
1•johntfella•26m ago•0 comments

Rhythms the Compendium: Life aboard an aircraft carrier (2021)

https://thelexicans.wordpress.com/2020/04/05/38223/
2•cwillu•28m ago•0 comments

Head of Claude Code: What happens after "coding is solved" [audio]

https://www.lennysnewsletter.com/p/head-of-claude-code-what-happens
1•ftchd•29m ago•2 comments

Aesthetics of single threading

https://ta.fo/aesthetics-of-single-threading/
2•todsacerdoti•30m ago•0 comments

MeshTNC is a tool for turning consumer grade LoRa radios into KISS TNC compatib

https://github.com/datapartyjs/MeshTNC
2•todsacerdoti•30m ago•0 comments

EDuke32 – Duke Nukem 3D (Open-Source)

https://www.eduke32.com/
9•reconnecting•34m ago•0 comments

Show HN: See – searchable JSON compression (offline 10-min demo)

https://gitlab.com/kodomonocch1/see_proto
3•Tetsuro•37m ago•0 comments