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.

Aadam Jacobs Collection at the Live Music Archive: Free Audio

https://archive.org/details/aadamjacobs
1•LaSombra•2m ago•0 comments

YouTube Device Partner Summit 2026

https://www.collabora.com/news-and-blog/news-and-events/youtube-device-partner-summit-2026.html
1•losgehts•4m ago•0 comments

Show HN: Speech to Calorie Tracker

https://github.com/crocsarecool/nutrition-app
1•raunaqvaisoha•6m ago•1 comments

Event Order

https://www.quirksmode.org/js/events_order.html#link4
1•aziaziazi•6m ago•0 comments

RGC-Basic Update: Easy, Modern Basic in the Browser Has Sprites Now

https://retrogamecoders.com/rgc-basic-update-april-2026/
1•ibobev•6m ago•0 comments

Amiga XSysInfo v0.6

https://github.com/reinauer/xSysInfo/releases/tag/release_v0.6
1•doener•7m ago•0 comments

Generalist AI Doesn't Scale

https://www.daemonology.net/blog/2024-04-06-Generalist-AI-doesnt-scale.html
1•colinhb•7m ago•0 comments

Show HN: Quant Job Market Visualizer

https://quant.kadoa.com/
1•hubraumhugo•7m ago•0 comments

Crates.io Trusted Publishing

https://crates.io/docs/trusted-publishing
1•jcbhmr•7m ago•0 comments

Online ZPL Viewer

https://labelary.com/viewer.html
1•gregsadetsky•7m ago•0 comments

Accessible Modals: How to Build Dialogs That Don't Trap or Exclude Users

https://getaccessguard.com/posts/accessible-modals-how-to-build-dialogs-that-dont-trap-confuse-or...
1•chille87•7m ago•0 comments

Trusted access for the next era of cyber defense

https://openai.com/index/scaling-trusted-access-for-cyber-defense/
1•surprisetalk•9m ago•0 comments

Competition is not bad, its only bad if you have raised a lot of money

https://docsalot.dev/blog/why-im-building-yet-another-docs-product
1•fazkan•9m ago•0 comments

TRSE Is Now in the Browser – No Install, No Setup, Just Retro Coding

https://retrogamecoders.com/trse-now-online/
1•ibobev•9m ago•0 comments

What Growing Up Poor Taught Me

https://rattle.com/what-growing-up-poor-taught-me-by-daniel-donaghy/
2•NaOH•11m ago•0 comments

Dexter: A fast, full-featured Elixir LSP optimized for large Elixir codebases

https://github.com/remoteoss/dexter
2•crbelaus•14m ago•0 comments

Novartis former CEO joins Anthropic BoD

https://www.anthropic.com/news/narasimhan-board
1•tzury•14m ago•0 comments

Show HN: Visualize any population as a grid of 100K-capacity stadiums (Three.js)

https://davkap92.github.io/crowdscale/
1•davkap92•14m ago•0 comments

Sony Boss Urges Theaters to Stop 30 Minutes of Trailers and Ads Before Movies

https://variety.com/2026/film/news/sony-pictures-boss-cinemacon-urges-fewer-ads-trailers-1236720830/
3•randycupertino•15m ago•3 comments

How I made my skills update themselves

https://joost.blog/self-updating-agent-skills/
1•twapi•15m ago•0 comments

Amex Debuts Ace Developer Kit with Registered Agent Protection

https://www.americanexpress.com/en-us/newsroom/articles/innovation/american-express-debuts-agenti...
1•amex_tech•17m ago•0 comments

A simpler, faster way to unlock 1Password

https://1password.com/blog/a-simpler-way-to-unlock-1password
4•doener•17m ago•0 comments

Show HN: Yggdrasil – Scoped architectural rule enforcement for AI-generated code

https://github.com/krzysztofdudek/Yggdrasil
1•chrisdudek•17m ago•0 comments

WCAG Issues That Cause 90% of Ada Lawsuits (+ How to Fix Them)

https://getaccessguard.com/posts/the-10-wcag-issues-that-trigger-90-of-ada-website-lawsuits-and-h...
1•chille87•17m ago•0 comments

How We Use Claude Code and Build with Agents at Fiberplane

https://fiberplane.com/blog/2026-04-10-how-we-use-claude-code-and-build-with-agents-at-fiberplane...
1•miesie•20m ago•1 comments

On the Shoulders of Capitalism [video]

https://www.youtube.com/watch?v=hbryGfM23Ys&list=PL3C6eF-zu5AZF3k0rW1Kwhzo9FFcJeHRk&index=23
1•DesaiAshu•23m ago•0 comments

How to Get Cheaper Lab Equipment

https://chillphysicsenjoyer.substack.com/p/how-to-get-cheaper-lab-equipment
1•crescit_eundo•23m ago•0 comments

New Boutique in Cow Hollow Is Completely Run by AI, Which Manages Human Staff

https://sfist.com/2026/04/14/new-boutique-in-sfs-cow-hollow-is-completely-run-by-ai-which-manages...
1•cdrnsf•26m ago•0 comments

The "AI Vulnerability Storm": Building a "Mythos-ready“ security program [pdf]

https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/04/mythosreadyv9.pdf
1•_tk_•28m ago•0 comments

Show HN: Send physical postcards from your coding harness

https://api.melonpost.com/SKILL.md
2•thevelop•28m ago•1 comments