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

Comments

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

Use Claude Max subscription with OpenClaw again

https://github.com/zeulewan/glueclaw
1•zeulewan•7m ago•2 comments

Leaked – publicly unavailable unstable preview model

https://unstable.bot
3•mrhyyyyde•12m ago•1 comments

There are limited benefits when parents hold back their child in kindergarten

https://www.latimes.com/california/story/2026-03-23/limited-benefits-when-parents-hold-back-their...
1•PaulHoule•14m ago•0 comments

What, Is the GIL?

https://finbarr.ca/what-is-the-gil/
2•vinhnx•14m ago•0 comments

Iran Unable to Find Mines in Strait of Hormuz, U.S. Says

https://www.nytimes.com/2026/04/10/us/politics/iran-mines-strait.html
1•tyleo•16m ago•0 comments

Artemis II safely splashes down

https://www.cbsnews.com/live-updates/artemis-ii-splashdown-return/
82•areoform•16m ago•20 comments

I made a productivity device for less than 50 bucks

https://thelibre.news/i-made-the-ultimate-productivity-device/
2•birdculture•20m ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•baud147258•20m ago•0 comments

Social media has become a freak show

https://www.natesilver.net/p/social-media-has-become-a-freak-show
3•herbertl•23m ago•1 comments

Yet another BFF toolkit for Python

https://allmonday.github.io/pydantic-resolve/
1•tank-34•23m ago•0 comments

Algorithmic Unification of Number Theory and Quantum Mechanics IBM Quantum

https://github.com/peterbabulik/The-Algorithmic-Unification-of-Number-Theory-and-Quantum-Mechanics
1•PeterBabulik•25m ago•0 comments

Giggles Raised a Pre-Seed for Tradable Videos – TikTok Meets the Trading Floor

https://www.siliconsnark.com/giggles-raised-a-pre-seed-for-tradable-videos-tiktok-meets-the-tradi...
3•SaaSasaurus•31m ago•0 comments

AI Agent Proxy to help reduce token usage (Anthropic Only)

https://github.com/Wuzu11517/agentic-proxy
2•Wuzu•32m ago•1 comments

Drones, Geophysics and AI: Researchers Battle Against Land Mines (2023)

https://news.climate.columbia.edu/2023/09/12/with-drones-geophysics-and-artificiai-intelligence-r...
1•defrost•34m ago•0 comments

Let Us Learn to Show Friendship for a Man When He Is Alive, Not After He Is Dead

https://daringfireball.net/2026/04/when_he_is_alive_and_not_after_he_is_dead#fnr2-2026-04-10
2•cratermoon•36m ago•0 comments

Rescuing vintage microcontrollers part 3: Life at long last

https://www.blog.montgomerie.net/posts/2026-03-02-rescuing-vintage-microcontrollers-part-3-life-a...
1•joecobb•36m ago•0 comments

Bun v1.3.12

https://bun.com/blog/bun-v1.3.12
3•bootlegbilly•37m ago•2 comments

AI-Assisted Breach of Mexico's Government Infrastructure Report

https://gambit.security/blog-post/a-single-operator-two-ai-platforms-nine-government-agencies-the...
1•bgrainger•38m ago•0 comments

Italo Calvino: A Traveller in a World of Uncertainty

https://www.historytoday.com/archive/portrait-author-historian/italo-calvino-traveller-world-unce...
5•lermontov•39m ago•0 comments

Molotov Coctail Thrown at Sam Altman's House

https://www.nbcnews.com/video/shorts/molotov-cocktail-thrown-at-sam-altman-s-house-261143109536
4•jellyotsiro•39m ago•1 comments

A Crazy Expensive U.S. Drone Just Disappeared over Strait of Hormuz

https://www.forbes.com/sites/davidhambling/2026/04/10/a-crazy-expensive-us-drone-just-disappeared...
3•Teever•43m ago•0 comments

PowerShell MSI Package Deprecation

https://devblogs.microsoft.com/powershell/powershell-msi-deprecation/
1•jborean93•44m ago•1 comments

Katabasis

https://en.wikipedia.org/wiki/Katabasis
5•BiraIgnacio•44m ago•0 comments

Toon – Token-Oriented Object Notation

https://toonformat.dev/
2•giancarlostoro•45m ago•0 comments

What I'd Tell Aspiring "Content Creators"

https://www.seeingthroughfilm.com/p/what-id-tell-aspiring-content-creators
2•pentagrama•45m ago•0 comments

Most startup launch platforms are built backwards

1•moodiverse•51m ago•1 comments

Maki – the efficient coder (AI agent)

https://maki.sh/
4•simjnd•52m ago•1 comments

FBI Extracts Suspect's Deleted Signal Messages Saved in iPhone Notification Data

https://mobile.slashdot.org/story/26/04/10/1656218/fbi-extracts-suspects-deleted-signal-messages-...
6•jnord•55m ago•0 comments

Intentions have a surprising amount of detail

https://contraptions.venkateshrao.com/p/intentions-have-a-surprising-amount
4•jger15•59m ago•0 comments

Phaser 4

https://phaser.io/
4•clessg•1h ago•0 comments