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.

TraceMem OpenCode Plugin – Decision Tracing for AI Agents

https://github.com/tracemem/tracemem-opencode-plugin
1•tommihip•1m ago•0 comments

Find 'Abbey Road when type 'Beatles abbey rd': Fuzzy/Semantic search in Postgres

https://rendiment.io/postgresql/2026/01/21/pgtrgm-pgvector-music.html
1•nethalo•2m ago•0 comments

Building in-browser autocomplete for millions of entries with Radix Tries

https://aarol.dev/posts/wasm-trie-autocomplete/
1•abnercoimbre•4m ago•0 comments

Gemini CLI: Code and Create with an Open-Source Agent

https://learn.deeplearning.ai/courses/gemini-cli-code-and-create-with-an-open-source-agent/inform...
1•pretext•6m ago•0 comments

Tell HN: Amazon has deactivated my seller account. No idea how to move forward

1•hacky_engineer•6m ago•0 comments

Helsing AI

https://Helsing.ai/jobs
1•oxqbldpxo•7m ago•2 comments

Show HN: Red Horse Oracle – Privacy-first AI art, zero data stored

https://www.redhorseoracle.com/
1•lindsayhiebert•8m ago•0 comments

Wikipedia Signs of AI writing: a Vale ruleset

https://ammil.industries/signs-of-ai-writing-a-vale-ruleset/
1•cjlm•8m ago•0 comments

Zero to One: AI Agents and Agentic Patterns

https://pradyumnachippigiri.dev/blogs/understanding-ai-agents
1•PraddyChippzz•9m ago•0 comments

VidChat: Making Videos Searchable

https://chromewebstore.google.com/detail/vidchat/eakgninjebplbfobbngdmphbjnclmego
2•aylingakkus•10m ago•1 comments

Show HN: Schema First React Router

https://werkbank.dev/blog/schema-first-router/
1•fragile_frogs•10m ago•0 comments

Kafka Dead Letter Queue Triage: Debugging 25,000 Failed Messages

https://skey.uk/post/kafka-dead-letter-queue-troubleshooting-guide/
1•tanelpoder•10m ago•0 comments

GenAI, the Snake Eating Its Own Tail

https://www.ybrikman.com/blog/2026/01/21/gen-ai-snake-eating-its-own-tail/
2•brikis98•12m ago•0 comments

Eleven Album

https://elevenlabs.io/eleven-album
2•elemdos•13m ago•0 comments

No Name: The Colorado town that accidentally named itself

https://kdvr.com/news/colorado/no-name-exit-sign-on-i-70-isnt-a-mistake-its-an-actual-colorado-town/
1•thunderbong•14m ago•0 comments

Things I've learned in my 10 years as an engineering manager

https://www.jampa.dev/p/lessons-learned-after-10-years-as
2•jampa•16m ago•0 comments

How to Learn American Sign Language in 2025 [video]

https://www.youtube.com/watch?v=qp6Np0KicQQ
1•joebig•16m ago•0 comments

Lemonade Unveils Autonomous Car Insurance, Slashing Rates for Tesla FSD by 50%

https://www.lemonade.com/investor/news/lemonade-unveils-autonomous-car-insurance-slashing-rates-f...
1•atestu•17m ago•0 comments

Sony to Cede Control of Bravia TVs to China's Tcl

https://www.japantimes.co.jp/business/2026/01/21/companies/sony-tv-china-tcl/
3•mikhael•17m ago•0 comments

MariaDB Doesn't Depend on MySQL

https://programmingbrain.com/2025/01/mariadb-does-not-depend-on-mysql
1•alejandro-du•18m ago•0 comments

Show HN: Multi-cloud cost visibility with latency rings and GDP data

1•sschotten•19m ago•0 comments

Navy ditches touchscreens for knob and dial controls after fatal crash (2019)

https://techcrunch.com/2019/08/11/navy-ditches-touchscreens-for-knobs-and-dials-after-fatal-crash/
3•randycupertino•20m ago•1 comments

Compact Let Arrays for Origami-Based Mechanisms

https://www.mdpi.com/2218-6581/15/1/1
1•PaulHoule•21m ago•0 comments

Viking mice: Norse discovered Azores 700 years before Portuguese

https://cals.cornell.edu/news/2021/11/viking-mice-norse-discovered-azores-700-years-portuguese
3•kitd•21m ago•2 comments

Stanford scientists found a way to regrow cartilage and stop arthritis

https://www.sciencedaily.com/releases/2026/01/260120000333.htm
15•saikatsg•21m ago•1 comments

Show HN: UseWhisper.dev – AI Code Reviewer (please test and roast it)

https://www.usewhisper.dev/
1•alameenpd•22m ago•0 comments

Show HN: A real-time poker chip tracker built as a PWA (No signup required)

https://poker.beavergrow.com
1•jp1016•24m ago•1 comments

Apple Pay Could Arrive in India by the End of This Year

https://www.macobserver.com/news/apple-pay-could-arrive-in-india-by-the-end-of-this-year/
1•saikatsg•25m ago•0 comments

Farmer to Banker

https://twitter.com/Alfred_Lin/status/2011803782955540990
1•tosh•27m ago•0 comments

LastPass Users Targeted with Backup-Themed Phishing Emails

https://www.securityweek.com/lastpass-users-targeted-with-backup-themed-phishing-emails/
2•Bender•28m ago•0 comments