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.

Show HN: Qlog – grep for logs, but 100x faster

https://github.com/Cosm00/qlog
1•cosm00•36s ago•0 comments

Building a New Flash

https://bill.newgrounds.com/news/post/1607118
1•TechPlasma•2m ago•0 comments

Im in needs and going to sale my resonantgenesis.xyz

https://resonantgenesis.xyz/
1•nemesh38•2m ago•1 comments

Was Windows 1.0's lack of overlapping windows a legal or a technical matter?

https://retrocomputing.stackexchange.com/questions/32511/was-windows-1-0s-lack-of-overlapping-win...
1•SeenNotHeard•3m ago•0 comments

Show HN: MixPal, a tiny social network for sharing mixtapes by request

https://mixpal.net
1•lowercasename•3m ago•0 comments

Show HN: Ring Widget – iOS/macOS Widgets for Your Oura Ring

https://www.ringwidget.app/
1•drankou•3m ago•0 comments

Show HN: NexQuake – Q1 Browser Multiplayer (Docker, WASM, Go)

https://kitty1.quake.nexus/
1•brsm•5m ago•0 comments

Shopify Development Agency – Design and Development Experts

https://ecommerce.folio3.com/shopify-development/shopify-agency/
1•mikeconner•7m ago•0 comments

Japanese man arrested for staining a temple in 2015

https://www3.nhk.or.jp/nhkworld/en/news/20260304_21/
2•shlip•10m ago•0 comments

So long, and thanks for all the logs

https://jerodsanto.net/2026/03/so-long-changelog/
1•surprisetalk•10m ago•0 comments

Show HN: AI Town – Your Claude conversation history as a living pixel city

https://aitown-seven.vercel.app
1•alexcloudstar•13m ago•0 comments

Autonomous Weapon Systems and International Humanitarian Law

https://www.icrc.org/en/article/autonomous-weapon-systems-and-international-humanitarian-law-sele...
1•johnbarron•14m ago•0 comments

Linux Mint: Monthly News – February 2026

https://blog.linuxmint.com/?p=5010
1•theschmed•15m ago•1 comments

Why Understanding AI Internals Won't Explain Agent Failures

https://www.vichoiglesias.com/writing/why-understanding-ai-internals-wont-explain-agent-failures
1•vichoiglesias•15m ago•0 comments

Real-time deepfake detection API and X integration demo

2•kmiyachi•17m ago•0 comments

The Power Brokers Behind the $250B Influencer Economy

https://www.wsj.com/lifestyle/careers/uta-influencer-managers-ali-berman-raina-penchansky-alix-ea...
2•thm•18m ago•0 comments

CPU scam: Chuwi CoreBook X uses AMD Ryzen 5 5500U instead of 7430U

https://www.notebookcheck.net/CPU-scam-Chuwi-CoreBook-X-uses-AMD-Ryzen-5-5500U-instead-of-7430U.1...
2•ndsipa_pomu•18m ago•0 comments

10% of Firefox crashes are caused by bitflips

https://mas.to/@gabrielesvelto/116171750653898304
2•marvinborner•19m ago•0 comments

Ask HN: How do you find contracting/freelance roles without recruiters nowadays?

1•Gooblebrai•20m ago•1 comments

Pentagon Eyes New 'Robot Ship' Concept for Low-Profile, All-Domain Logistics

https://nextgendefense.com/pentagon-robot-ship-concept/
1•asdefghyk•21m ago•1 comments

ChatRoutes is open source now

https://github.com/afzal-xyz/chatroutes-opensource
1•mednosis•21m ago•0 comments

Agent's context is a junk drawer

https://www.augmentcode.com/blog/your-agents-context-is-a-junk-drawer
1•knes•22m ago•0 comments

Show HN: OpenTimelineEngine – Shared local memory for Claude Code and codex

https://github.com/JOELJOSEPHCHALAKUDY/open-timeline-engine
1•joeljoseph_•23m ago•0 comments

I'm building a $15/mo status page would you pay for it?

https://www.indiehackers.com/post/im-building-a-15-mo-status-page-would-you-actually-pay-for-it-6...
1•Powellfgn•23m ago•1 comments

The Purpose of Keyboard Bumps – Its Not What You Think

https://www.youtube.com/watch?v=FfkxxSOforw
1•aloneguid•24m ago•0 comments

Enterprise UI Module Federation

https://stevekinney.com/courses/enterprise-ui/module-federation
1•nadis•24m ago•0 comments

Show HN: We want to kill SaaS glue code with one shared infrastructure model

https://wacht.dev/
1•snipextt•25m ago•0 comments

Show HN: Tyop: A macOS menu bar app that fixes typos on demand

https://github.com/liamg/tyop
1•liamg•25m ago•0 comments

Show HN: safe-docx lets coding agents edit Word docs without breaking formatting

https://github.com/UseJunior/safe-docx
1•sobiajulu•26m ago•2 comments

Show HN: I built a language app that generates songs from your vocab list

https://www.lingotify.app/
1•gursu8•26m ago•0 comments