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

Comments

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

AWS Lambda announces durable functions

https://aws.amazon.com/about-aws/whats-new/2025/12/lambda-durable-multi-step-applications-ai-work...
1•pallevante•19s ago•0 comments

Bitplane-Cursor: An iconic mouse Cursor theme for X

https://bastian-frank.de/tech-blog/bitplane-cursor
1•doener•2m ago•0 comments

Ask HN: Contract shops who can prepare codebases for internationalization

1•sarabande•2m ago•0 comments

Paint the Code

https://adelbordbari.github.io/code/2025-12-03-paint-the-code/
1•imnitwit•3m ago•0 comments

GNU Taler v1.2 Released

https://www.taler.net/en/news/2025-12.html
1•F3nd0•5m ago•0 comments

A Technical Tour of the DeepSeek Models from V3 to v3.2

https://magazine.sebastianraschka.com/p/technical-deepseek
1•giuliomagnifico•8m ago•0 comments

Vite 8 Beta

https://vite.dev/blog/announcing-vite8-beta
2•TheAlexLichter•8m ago•0 comments

VMK Extractor for BitLocker with TPM and Pin

https://post-cyberlabs.github.io/Offensive-security-publications/posts/2024_09_tpmandpin/
1•pregnenolone•8m ago•0 comments

Dell family to donate $6B to 'Trump accounts' of 25M US children

https://www.reuters.com/technology/michael-susan-dell-pledge-625-billion-investment-accounts-us-c...
2•geox•11m ago•0 comments

Spotting Astroturfing on Reddit

https://rmoff.net/2025/12/01/using-graph-analysis-with-neo4j-to-spot-astroturfing-on-reddit/
2•rmoff•12m ago•0 comments

When your customer leads your Series A

https://antithesis.com/blog/2025/series_a/
2•wwilson•12m ago•0 comments

You Can't Fool the Optimizer

https://xania.org/202512/03-more-adding-integers
8•HeliumHydride•13m ago•0 comments

Product Discovery Without Access

https://holenventures.substack.com/p/product-discovery-without-access
1•hholen•13m ago•0 comments

Amazon SQS Fair Queues

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues.html
1•siws•15m ago•0 comments

The Tune of Things – Is Consciousness God?

https://harpers.org/archive/2025/12/the-tune-of-things-christian-wiman-consciousness-god/
2•jmfldn•19m ago•0 comments

AutoPilot AI News Platform – Automated, Monetizable and Ready to Launch

1•dhren•19m ago•0 comments

LLMs are great at box diagrams

https://joeblu.com/blog/2025_12_llms-are-great-at-box-diagrams/
1•joeblubaugh•20m ago•0 comments

Satellite captures the first detailed look at a giant tsunami

https://www.earth.com/news/satellite-captures-the-first-detailed-look-at-a-giant-tsunami/
2•stevenjgarner•21m ago•0 comments

OpenAgent – a portable, framework-agnostic specification for defining AI agents

https://github.com/chrisbarry/openagent
3•chrisbarry•22m ago•1 comments

Amazon Previews 3 AI Agents, Including 'Kiro' That Can Code on Its Own for Days

https://techcrunch.com/2025/12/02/amazon-previews-3-ai-agents-including-kiro-that-can-code-on-its...
1•skx001•25m ago•0 comments

Show HN: Open-source AM32 ESC configurator with thrust test bench

https://vayu-dun.vercel.app
1•shodh-varun•26m ago•0 comments

DeepSeek's new model could push China ahead in the global AI race

https://restofworld.org/2025/deepseek-china-r2-ai-model-us-rivalry/
2•donohoe•26m ago•0 comments

AWS Re:Invent 2025: Nova 2, Trainium3, and Frontier Agents

https://www.aboutamazon.com/news/aws/aws-re-invent-2025-ai-news-updates
1•victorbuilds•30m ago•0 comments

Ask HN: Where did the excellence in engineering go?

2•edu_do_cerrado•31m ago•2 comments

TornadoVM v2.0.0 release with lots of improvements for Java on GPUs

https://github.com/beehive-lab/TornadoVM/releases/tag/v2.0.0
2•pjmlp•32m ago•0 comments

Root-Purge – a cross-distro cleanup tool for old kernels and system cruft

https://github.com/makelinux/root-purge
1•costa-shul•32m ago•1 comments

Prospect restaurant floods itself to protect building

https://www.wave3.com/2025/04/07/prospect-restaurant-floods-itself-protect-building/
2•thunderbong•34m ago•1 comments

Value of Aussie housing market nears eye-watering $12T

https://www.realestate.com.au/news/value-of-aussie-housing-market-nears-eye-watering-12-trillion/
2•miniruntimeb•36m ago•0 comments

The "Mad Men" in 4K on HBO Max Debacle

http://fxrant.blogspot.com/2025/12/the-mad-men-in-4k-on-hbo-max-debacle.html
4•tosh•38m ago•0 comments

Lovable's 65% margin target on leaked pitch deck

https://sifted.eu/articles/lovable-margins-leaked-pitch-deck
2•warthog•41m ago•0 comments