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.

The Curse of the Everything Device

https://hackaday.com/2026/02/26/the-curse-of-the-everything-device/
1•zdw•24s ago•0 comments

Kubernetes operators are easier than you think

https://2v.pm/kubernetes-operators-are-easier-than-you-think/
1•vidalee•4m ago•1 comments

Murchi – A Desktop Pet for macOS

https://murchi.pet/
2•egorfedorov•7m ago•1 comments

A live counter of our digital world (based on statistics)

https://anythingconverter.com/anythingcounter/
1•digitalofen•7m ago•0 comments

Show HN: Outside In – Stream live night sounds from outside to bedside. iOS/free

1•telecuda•8m ago•0 comments

LLMs Solving a DEF Con CTF Finals Challenge

https://wilgibbs.com/blog/defcon-finals-mcp/
1•therepanic•9m ago•0 comments

Anthropic launched community ambassador program

https://claude.com/community/ambassadors
1•galsapir•9m ago•0 comments

LLM-cpp: 26 single-header C++17 libraries for LLM integration

https://github.com/Mattbusel/llm-cpp
2•Shmungus•12m ago•3 comments

Oracle and OpenAI End Plans to Expand Flagship Data Center

https://www.bloomberg.com/news/articles/2026-03-06/oracle-and-openai-end-plans-to-expand-flagship...
1•riffraff•13m ago•1 comments

Show HN: SuperBuilder – open-source AI Agent Platform

https://github.com/rupac4530-creator/super-builder-platform
1•BuildWithAI•13m ago•0 comments

Show HN: Sentinel Data – Hardware- Bound CLI tool to prevent data exfiltration

1•Anaoliveira•14m ago•0 comments

Grief Text Editor

https://github.com/adamyg/grief
1•BruceEel•15m ago•0 comments

Show HN: Kagora – Multi-AI terminal platform with built-in chat and scheduling

https://github.com/dead1786/kagora
1•dead1786•17m ago•0 comments

Will Claude Code ruin our team?

https://justinjackson.ca/claude-code-ruin
2•lionheart•17m ago•0 comments

Test Drive Linux Distros in the Browser

https://distrosea.com/
1•TigerUniversity•19m ago•0 comments

Humanity heating planet faster than ever before, study finds

https://www.theguardian.com/environment/2026/mar/06/humanity-heating-planet-faster-than-ever-befo...
2•doener•19m ago•0 comments

How to generate subtitles automatically in every lenguage

https://www.flowsub.ai/
1•bloomder•19m ago•1 comments

Show HN: Argus – VSCode debugger for Claude Code sessions

https://github.com/yessGlory17/argus
4•lydionfinance•21m ago•0 comments

Tamper-evident audit trail for AI agent tool calls (MCP proxy)

https://github.com/Born14/mcp-proxy
1•sovereign-labs•21m ago•1 comments

Show HN: Sandbox0 – AI Agent Sandbox with Persistent Volumes and Fast Restore

https://github.com/sandbox0-ai/sandbox0
1•laotoutou•21m ago•0 comments

AI compromised sandbox to mine crypto without prompting on its own initiative

3•throw0101c•22m ago•0 comments

The Millisecond That Could Change Cancer Treatment

https://spectrum.ieee.org/flash-radiotherapy
3•marc__1•26m ago•0 comments

Compile to Architecture

https://aicoding.leaflet.pub/3mgfsrk75ac2l
1•chadfowler•27m ago•1 comments

Show HN: Interactive Browser Constructor for Collatz, Riemann, and Twin Primes

https://aidoctrine.github.io/uct-navigator/
1•AlekseN•27m ago•1 comments

Claude Code Front End Design Toolkit

https://github.com/wilwaldon/Claude-Code-Frontend-Design-Toolkit
1•stagezerowil•28m ago•0 comments

Everyday Drone Pilots Are Making a Google Street View from Above

https://singularityhub.com/2026/03/05/thousands-of-everyday-drone-pilots-are-making-a-google-stre...
2•geox•29m ago•0 comments

Books and Blogs (2017)

https://stratechery.com/2017/books-and-blogs/
1•herbertl•32m ago•0 comments

Find roles, meetups, and bounties that showcase what you can do–now, not later

https://earlygrad.com
2•M0HD197•33m ago•2 comments

Show HN: AlliHat – Claude on Safari

https://allihat.com
1•nate•34m ago•0 comments

Tech Layoffs Are Not About AI: An Insider View from a Former Amazon Manager [video]

https://www.youtube.com/watch?v=uyCcgG4nm90
6•DeathArrow•38m ago•0 comments