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.

Reddit Ads support is leaking PII and actively crossing user sessions

1•arashvakil•24s ago•0 comments

Hacked my chess ELO ranking as a beginner, went from 0-700 in 12 sessions

1•smanna92•38s ago•0 comments

Skillflag: CLI flag convention for listing and installing agent skills

https://github.com/osolmaz/skillflag
1•hosolmaz•1m ago•0 comments

Embrace Your Laziness in the Age of AI

https://matthiasplappert.com/blog/2026/laziness-in-the-age-of-ai
2•cakefork•2m ago•0 comments

Cloudflare outage affecting many services

https://downdetector.co.uk/
1•andycloke•2m ago•0 comments

AWS outages caused by AI coding bot blunder, report claims

https://www.tomshardware.com/tech-industry/artificial-intelligence/multiple-aws-outages-caused-by...
3•strict9•4m ago•0 comments

Show HN: BeadHub, Beads-based coordination for multiple coding agents

https://github.com/beadhub/beadhub
1•juanre•7m ago•0 comments

Georgian wine culture dates back, uninterrupted, approximately 8k years

https://www.wsetglobal.com/knowledge-centre/blog/2023/july/05/exploring-georgian-wine-history-gra...
1•Anon84•8m ago•0 comments

Fall-from-grace: A prompt engineering functional programming language

https://github.com/Gabriella439/grace
1•bwestergard•11m ago•0 comments

Turns Out There Was Voter Fraud in Georgia–By Elon Musk

https://newrepublic.com/post/206857/georgia-voter-fraud-elon-musk
1•mandeepj•12m ago•1 comments

The AI security nightmare is here and it looks suspiciously like lobster

https://www.theverge.com/ai-artificial-intelligence/881574/cline-openclaw-prompt-injection-hack
2•cschick•13m ago•1 comments

YouTube tests 'conversational AI' on TV apps

https://9to5google.com/2026/02/19/youtube-tv-conversational-ai-test/
1•geox•15m ago•0 comments

Exploring Linux on a LoongArch Mini PC

https://www.wezm.net/v2/posts/2026/loongarch-mini-pc-m700s/
4•naves•16m ago•0 comments

Interview with Steve Klabnik

https://alexalejandre.com/programming/steve-klabnik-interview/
2•veqq•17m ago•0 comments

Radical Forces in Germany (1931)

https://www.foreignaffairs.com/articles/germany/1931-04-01/radical-forces-germany
2•jjmarr•18m ago•1 comments

Venting Doesn't Reduce Anger, but Something Else Does, Review Finds

https://www.sciencealert.com/venting-doesnt-reduce-anger-but-something-else-does-review-finds
1•PaulHoule•19m ago•0 comments

The century of the maxxer: things are happening in America

https://samkriss.substack.com/p/the-century-of-the-maxxer
2•thinkingemote•20m ago•0 comments

Trump directs US Government to prepare release of files on aliens and UFOs

https://www.bbc.co.uk/news/articles/c4g57gqqln1o
3•smurda•21m ago•0 comments

Pdf-light: Enterprise-grade, lightweight HTML to PDF generator for Node.js

https://github.com/thisha-me/pdf-light
2•thunderbong•21m ago•0 comments

Show HN: AetherCam, a video recorder focusing on audio

https://aethercamera.pro
2•miloo94•23m ago•0 comments

Did GPT 5.2 make a breakthrough discovery in theoretical physics?

https://huggingface.co/blog/dlouapre/gpt-single-minus-gluons
1•ibobev•23m ago•0 comments

France Bets on Carbon Capture as North Sea Rivals Surge Ahead

https://oilprice.com/Energy/Energy-General/France-Bets-on-Carbon-Capture-as-North-Sea-Rivals-Surg...
1•PaulHoule•24m ago•0 comments

I found a Vulnerability. They found a Lawyer

https://dixken.de/blog/i-found-a-vulnerability-they-found-a-lawyer
3•toomuchtodo•26m ago•0 comments

Oxide plans new rack attack, packing in Zen 5 CPUs and DDR5 RAM

https://www.theregister.com/2026/02/13/whats_next_for_oxide_computer/
3•naltun•26m ago•0 comments

Aurea – The Living Code

https://docs.google.com/document/d/1X-5f6KnDckRIzlq7kdL5qzVDhRAPxJ_7OOLuPUcYT7c/edit?usp=sharing
1•CWHBEATZ•26m ago•1 comments

Tesla loses bid to toss $243M verdict in fatal Autopilot crash suit

https://www.cnbc.com/2026/02/20/tesla-loses-bid-toss-243-million-verdict-fatal-autopilot-crash-su...
3•1vuio0pswjnm7•27m ago•0 comments

Instance segmentation model that extracts 3D geometry from 2D floor plans

2•acaciabengo•28m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
3•Tomte•30m ago•1 comments

The Unlikely Success of an Alabama Bookstore

https://www.newyorker.com/books/page-turner/the-unlikely-success-of-a-strange-alabama-bookstore
2•robenkleene•33m ago•0 comments

Building My Own Blog System with React and Supabase on My Website (Just for Fun)

https://mywebsite-3.vercel.app/blog/Building-My-Own-Blog-System-with-React-+-Supabase-(Just-for-Fun)
1•Jimmy6929•33m ago•0 comments