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

Comments

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

Inflated AI claims are under fire–and the regulatory reckoning is coming

https://fortune.com/2026/04/23/ai-washing-securities-litigation-regulatory-era-baker-mckenzie/
1•Brajeshwar•50s ago•0 comments

User-side software, and adversarial marketplaces

https://faingezicht.com/articles/2026/04/22/adversarial-marketplaces/
1•speckx•1m ago•0 comments

GitHub CLI begins collecting client-side user telemetry

https://www.theregister.com/2026/04/22/github_opts_all_cli_users/
1•LaSombra•2m ago•0 comments

The end of oil? As fuel shocks cascade, 53 nations plan a fossil fuel phaseout

https://theconversation.com/the-end-of-oil-as-fuel-shocks-cascade-53-nations-gather-to-plan-a-fos...
1•smurda•2m ago•0 comments

GitHub Having Issues (Again)

https://www.githubstatus.com/incidents/3f30ycplyr7l
1•connorbrinton•3m ago•1 comments

Flat Data

https://githubnext.com/projects/flat-data
1•themaxdavitt•3m ago•0 comments

Show HN: Buffer zoom, adds OS-native scrollback, copy, and find to any tmux pane

https://docs.hmx.dev/features/buffer-zoom/
1•aarcamp•3m ago•0 comments

What if you didn't need to write back end code for your app?

https://linkedrecords.com/getting-started/
1•WolfOliver•4m ago•0 comments

Mysterious rings around Uranus point to hidden moons orbiting the ice giant

https://www.space.com/astronomy/uranus/mysterious-rings-around-uranus-point-to-hidden-moons-orbit...
1•e145bc455f1•4m ago•0 comments

Common questions and support documentation for Eurosky account holders

https://eurosky.tech/help/
1•doener•4m ago•0 comments

Dow Contracting for Startups 101

https://www.a16z.news/p/dow-contracting-for-startups-101
1•7777777phil•4m ago•0 comments

Welsh castle's hidden cave was once home to ancient hippo

https://www.independent.co.uk/news/science/archaeology/wogan-cavern-pembroke-castle-hippo-b295906...
1•gmays•5m ago•0 comments

CheerpJ 4.3 – WebAssembly-based JVM for the browser

https://bytecode.news/posts/2026/04/cheerpj-4-3-webassembly-based-jvm-for-the-browser
1•jeffreportmill1•6m ago•0 comments

Malware via monitor cables a matter of national security? The gadget for you

https://www.theregister.com/2026/04/23/ncscs_first_foray_into_commercial/
1•noja•7m ago•0 comments

Elon Musk admits that Tesla vehicles won't get unsupervised FSD

https://www.theverge.com/transportation/917167/elon-musk-tesla-hw3-fsd
2•LaSombra•7m ago•1 comments

Germ Is a (Protocol-Native, End-to-End Encrypted) Social Media Messenger

https://www.germnetwork.com/blog/germ-is-a-social-media-messenger
1•eustoria•10m ago•0 comments

The Tao of Unix Programming

https://github.com/globalcitizen/taoup
1•dtj1123•10m ago•0 comments

Building agents that reach production systems with MCP

https://claude.com/blog/building-agents-that-reach-production-systems-with-mcp
1•imgyuri•10m ago•0 comments

Inside Garry Tan's Claude Code Setup

https://www.youtube.com/watch?v=wkv2ifxPpF8
1•doppp•11m ago•0 comments

UUP Dump: Download UUP Files from Windows Update Servers

https://uupdump.net/
2•eustoria•11m ago•0 comments

The "AI Vulnerability Storm": Building a "Mythos-Ready" Security Program

https://labs.cloudsecurityalliance.org/mythos-ciso/
1•nuke-web3•13m ago•0 comments

I checked 506 citations from ChatGPT,Claude, Gemini Deep Research- 36% are wrong

https://spineframe.xyz/blog
3•ratnaditya•14m ago•0 comments

Auth0 Certified Developer Exam Study Guide

https://certification.okta.com/page/developer-auth0-exam-study-guide
1•mooreds•14m ago•0 comments

World's Largest Holstein Cow

https://www.ndtourism.com/new-salem/attractions-entertainment/family-fun/salem-sue
1•mooreds•14m ago•0 comments

The User-Tailored Newsroom

https://werd.io/the-user-centered-newsroom/
1•benwerd•14m ago•0 comments

Sbtimbti – SBTI and MBTI Personality Test

https://www.sbtimbti.online
1•endmund•14m ago•1 comments

Bye, Doom

https://houseofkyle.com/2026/03/08/bye-doom/
1•eustoria•14m ago•1 comments

Show HN: Typed Natural Language – A better plan mode with workflow for coding

https://github.com/janaraj/tnl
1•janaraj•14m ago•0 comments

SPV Syndicate League Tables

https://fundadminleaguetable.com/
1•lemonlym•15m ago•0 comments

A Powerful New 'QR Code' Untangles Math's Knottiest Knots

https://www.quantamagazine.org/a-powerful-new-qr-code-untangles-maths-knottiest-knots-20260422/
1•Brajeshwar•16m ago•0 comments