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.

Show HN: A 24kb standalone visual JSON editor for non-technical users

https://github.com/celerex/json-editor
1•its-a-new-world•17s ago•1 comments

We Audited the Security of 7 Open-Source AI Agents – Here Is What We Found

https://twitter.com/grithai/status/2027410244352028683
1•edf13•53s ago•0 comments

The Man Who Sold The World

https://www.youtube.com/watch?v=u3MX-rUtS6M&list=RDu3MX-rUtS6M
1•helloplanets•1m ago•0 comments

Yes, and

https://htmx.org/essays/yes-and/
1•todsacerdoti•3m ago•0 comments

The Self-Driving Codebase

https://background-agents.com/
1•vinhnx•3m ago•0 comments

Scrapling: An adaptive web scraping framework that handles everything

https://github.com/D4Vinci/Scrapling
1•Paddyz•11m ago•0 comments

Show HN: RayClaw – AI agent like OpenClaw, standalone or as a Rust crate

https://github.com/rayclaw/rayclaw
1•stevensu•11m ago•0 comments

I'm in Tehran, what do you think will be happen?

2•pajuhaan•14m ago•5 comments

An open-source, C#-based Windows RAT (Remote Access Tool)

https://github.com/iss4cf0ng/DuplexSpyCS
1•iss4cf0ng•16m ago•1 comments

Show HN: How many hours have you spent with Claude Code? (CLI tool)

2•yurukusa•16m ago•0 comments

The most beautiful formula not enough people understand (3blue1brown) [video]

https://www.youtube.com/watch?v=fsLh-NYhOoU
2•vismit2000•16m ago•0 comments

Show HN: AI Moire Pattern Remover – Free tool for screen photos, scans, fabrics

https://moireremoval.com
1•wyattly•17m ago•0 comments

Unsloth Dynamic 2.0 GGUFs

https://unsloth.ai/docs/basics/unsloth-dynamic-2.0-ggufs
2•tosh•19m ago•0 comments

Qwen3.5 GGUF Benchmarks

https://unsloth.ai/docs/models/qwen3.5/gguf-benchmarks
2•tosh•21m ago•0 comments

Israel and US launch strikes on Iran as Trump confirms 'major combat operations'

https://www.reuters.com/world/iran-crisis-live-explosions-tehran-israel-announces-strike-2026-02-28/
2•TechTechTech•23m ago•0 comments

Dan Simmons, author of Hyperion and more books, dies at 77

https://arstechnica.com/culture/2026/02/hyperion-author-dan-simmons-dies-from-stroke-at-77/
1•geuis•24m ago•0 comments

Open source router for personal AI agents

https://manifest.build/docs/introduction
1•stosssik•25m ago•0 comments

Is an event planning platform UAE suitable for weddings and private parties?

1•tonhurt•27m ago•1 comments

Cloudflare radar shows Iran internet traffic drop to near zero

https://radar.cloudflare.com/traffic/ir?dateRange=1d
2•nodesocket•29m ago•0 comments

Ask HN: Why are some websites locking or using the audio device on Windows?

1•ezconnect•32m ago•0 comments

Iran agreed zero enriched uranium, and israel immediately bombs Tehran

https://twitter.com/muhammadshehad2/status/2027645609621033376
3•proshno•37m ago•1 comments

Leak confirms GrapheneOS and Motorola partnership

https://piunikaweb.com/2026/02/27/leak-confirms-grapheneos-motorola-partnership-for-non-pixel-har...
3•Cider9986•38m ago•0 comments

You might be falling behind without realizing it

1•hoangnnguyen•43m ago•1 comments

Show HN: AI Tutorial Series – Building Neural Networks with Python

https://peertube.cif.su/watari/videos/watch/123456
1•watari_ai_tools•45m ago•0 comments

Show HN: Agent Hand – Tmux session manager for AI coding agents (Rust)

https://weykon.github.io/agent-hand/
1•weykon•53m ago•0 comments

The proposal for generic methods for Go has been officially accepted

https://github.com/golang/go/issues/77273
2•birdculture•53m ago•0 comments

Startup idea validator – Get brutal verdict

https://dontbuild.it/
1•hackerbo•1h ago•0 comments

Students Are Skipping the Hardest Part of Growing Up

https://larrycuban.wordpress.com/2026/02/28/students-are-skipping-the-hardest-part-of-growing-up-...
4•Tomte•1h ago•0 comments

Packaging AI/ML Models as Conda Packages

https://prefix.dev/blog/packaging-ai-ml-models-as-conda-packages
1•droelf•1h ago•0 comments

OpenAI: Food First, Then Morals

1•goloroden•1h ago•0 comments