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.

Ask HN: Have you managed to switch to Bluesky for tech people?

1•fuegoio•3m ago•2 comments

South Korea launches landmark laws to regulate artificial intelligence

https://www.japantimes.co.jp/business/2026/01/22/tech/south-korea-ai-startups-law/
1•anigbrowl•4m ago•0 comments

Multiclaude – Lightweight Multiagent Orchestrator

https://github.com/dlorenc/multiclaude
1•curmudgeon22•4m ago•0 comments

Amazon plans thousands more corporate job cuts next week, sources say

https://www.reuters.com/business/world-at-work/amazon-plans-thousands-more-corporate-job-cuts-nex...
4•austinallegro•7m ago•0 comments

FSNotes 7 – Remarkable fast plain text notes

https://fsnot.es/v7/
1•birdculture•8m ago•0 comments

EU Plans to Unfreeze Trade Deal with US and Vote on Ratification

https://www.bloomberg.com/news/articles/2026-01-22/eu-plans-to-unfreeze-trade-deal-with-us-and-vo...
2•alephnerd•8m ago•1 comments

SVG Path Editor

https://yqnn.github.io/svg-path-editor/
1•gurjeet•8m ago•0 comments

FIPS Dependencies and Prebuilt Binaries

https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/
2•LaurentGoderre•10m ago•0 comments

Linum v2 - 2B parameter, Apache 2.0 licensed text-to-video models (360p, 720p)

https://www.linum.ai/field-notes/launch-linum-v2
1•samaysharma•11m ago•0 comments

Car insurance telematics: The privacy trade-off of OBD-II vs. Mobile Apps

https://suretyinsights.com/blog/dongle-vs-app-the-hardware-of-usage-based-insurance
2•insuranceguru•12m ago•0 comments

Joseph Wright of Derby – All Works

https://www.wikiart.org/en/joseph-wright/all-works
1•susam•12m ago•0 comments

Inspired by skin ligament for robotic face covered with living skin

https://www.cell.com/cell-reports-physical-science/fulltext/S2666-3864(24)00335-7
1•wjb3•13m ago•3 comments

Autodesk cuts 7% of workforce to redirect investments to AI, cloud

https://www.reuters.com/business/world-at-work/autodesk-lay-off-about-7-workforce-2026-01-22/
3•austinallegro•13m ago•0 comments

Digital Admin Day

https://matthewquerzoli.com/#/blog/02-01-2026-digital-admin-day
1•Quiza12•15m ago•0 comments

Pervasive Monitoring Is an Attack

https://ctrlaltroute.com/2026/01/15/rfc-7258-pervasive-monitoring-is-an-attack/
2•fosco•16m ago•0 comments

VibeTensor: AI-Generated Deep Learning Tensor Library

https://github.com/NVlabs/vibetensor
2•arjvik•16m ago•0 comments

CliFM: The shell-like, command line terminal file manager

https://github.com/leo-arch/clifm
2•modinfo•17m ago•0 comments

Gastown, and where software is going

https://www.chainguard.dev/unchained/gastown-and-where-software-is-going
1•curmudgeon22•18m ago•0 comments

One of the more meta ways we've used the Roo Code and SlackHQ feature this week

https://twitter.com/roocode/status/2014469239395197214
1•hrudolph•18m ago•0 comments

Brex is joining forces with Capital One

https://twitter.com/pedroh96/status/2014450912497201289
1•joshuawright11•19m ago•0 comments

Claude Code is suddenly everywhere inside Microsoft

https://www.theverge.com/tech/865689/microsoft-claude-code-anthropic-partnership-notepad
3•cebert•19m ago•1 comments

Why Medium's AI Content Policy Is Already Obsolete

https://medium.com/@gp2030/why-mediums-ai-content-policy-is-already-obsolete-bc86f63fcb70
2•light_triad•21m ago•1 comments

Overrun with AI slop, cURL scraps bug bounties to ensure "intact mental health"

https://arstechnica.com/security/2026/01/overrun-with-ai-slop-curl-scraps-bug-bounties-to-ensure-...
6•cratermoon•24m ago•0 comments

Open-source tool to obfuscate Postgres data with deterministic rules

https://github.com/Ofsen/pg-obfuscate
1•ofsen•24m ago•1 comments

75 Years of Mathematical Oncology

https://www.biorxiv.org/content/10.64898/2026.01.13.699306v1
1•mathoncbro•26m ago•1 comments

Climate engineering would alter the oceans, reshaping marine life

https://theconversation.com/climate-engineering-would-alter-the-oceans-reshaping-marine-life-new-...
3•PaulHoule•27m ago•0 comments

Community Benchmarks: Evaluating Modern AI on Kaggle

https://blog.google/innovation-and-ai/technology/developers-tools/kaggle-community-benchmarks/
1•gmays•29m ago•0 comments

Reminders (BSD Calendar and All)

https://dsl.org/cookbook/cookbook_34.html
2•jrgd•30m ago•1 comments

IPTV Piracy Crackdown in Sweden 'Exposes' 4,886 Subscribers

https://torrentfreak.com/iptv-piracy-crackdown-in-sweden-exposes-4886-subscribers/
3•gslin•31m ago•0 comments

Show HN: OpenSheet – experimenting with how LLMs should work with spreadsheets

https://opensheet.app/
1•aminkhorrami•31m ago•0 comments