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.

The Problem That Built an Industry

https://ajitem.com/blog/iron-core-part-1-the-problem-that-built-an-industry/
1•ShaggyHotDog•1m ago•0 comments

LinkedIn Pulse Lost 85% of Its Organic Traffic in the Last Two Years

https://growtika.com/blog/linkedin-pulse-research
1•Growtika•2m ago•0 comments

In Defense of Rediscovery

https://wilsoniumite.com/2026/04/11/in-defense-of-rediscovery/
1•Wilsoniumite•4m ago•0 comments

Framechart – Turn CSV data into animated chart videos

https://framechart.com
1•Don_Data•7m ago•0 comments

Can OpenClaw and Claude be better than therapy?

https://world.hey.com/cassio/openclaw-claude-are-better-than-therapy-e0ac3ad9
2•cacozen•8m ago•1 comments

Show HN: Helix – open-source self-healing back end for production crashes

https://88hours.github.io/helix-community/
1•NomiJ•8m ago•0 comments

Iran War and the great reset with Katherine Austin Fitts [video][1hr]

https://www.youtube.com/watch?v=Y7JdMLITSDU
1•Bender•8m ago•0 comments

America Has a New GLP-1 Playbook

https://www.theatlantic.com/health/2026/04/glp-1-pill-wegovy-weight-loss/686768/
1•01-_-•10m ago•0 comments

Overhead Projector

https://en.wikipedia.org/wiki/Overhead_projector
2•zeristor•10m ago•2 comments

Key Person Quest Launching

https://keyperson.quest
1•Londondannyboy•13m ago•0 comments

Nadir: Open-source LLM router that cuts API costs 30-60% (MIT License)

https://getnadir.com/
2•amirdor•13m ago•0 comments

Show HN: Hands-on course for building RL environments for LLMs

https://github.com/anakin87/llm-rl-environments-lil-course
1•anakin87•14m ago•1 comments

Show HN: Superpowers-UML – UML-Enabled Superpowers

https://github.com/takaakit/superpowers-uml
1•takaakit•15m ago•0 comments

Steam Link Expands to Apple Vision Pro in Beta

https://www.tuaw.com/2026/04/11/steam-link-expands-to-apple-vision-pro-in-beta/
2•zeristor•20m ago•0 comments

United's Unique Hub in the Pacific

http://www.flightsinasia.com/update/article/Uniteds-Unique-Hub-in-the-Pacific/
1•kevmo314•22m ago•0 comments

Show HN: Waffle – Native macOS terminal that auto-tiles sessions into a grid

https://waffle.baby
1•olleeolleeollee•24m ago•0 comments

How do the microplastics in our bodies affect our health?

https://www.bbc.com/future/article/20250723-how-do-the-microplastics-in-our-bodies-affect-our-health
1•strogonoff•24m ago•0 comments

Show HN: The Musical Manifold [pdf]

https://esenbilproductions.replit.app/The_Musical_Manifold.pdf
1•ersinesen•27m ago•0 comments

Compact Compact Language Detector

https://www.andriydruk.com/post/compact-compact-language-detector/
1•andriydruk•30m ago•0 comments

Apollo in Real Time

https://apolloinrealtime.org/11/
1•rvnx•31m ago•0 comments

MySQL 9.7.0 vs. sysbench on a small server

http://smalldatum.blogspot.com/2026/04/mysql-970-vs-sysbench-on-small-server.html
1•gsky•37m ago•0 comments

South Korea introduces universal basic mobile data access

https://www.theregister.com/2026/04/10/south_korea_data_access_universal/
13•saikatsg•37m ago•1 comments

Slides (Hypnotic Video About a Dude's Slides and Slide Projector)

https://www.youtube.com/watch?v=hZhMAtHoU20
1•OhMeadhbh•39m ago•1 comments

Plannex

https://plannex.app/
1•Novakinify•40m ago•0 comments

Spooky-connect4: a Rust/Python library with variable board sizes

https://github.com/snowdrop4/spooky-connect4
1•drw•40m ago•0 comments

Spooky-chess: a Rust/Python library with variable board sizes

https://github.com/snowdrop4/spooky-chess
1•drw•41m ago•0 comments

Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8%

https://www.coindesk.com/markets/2026/03/22/bitcoin-miners-are-losing-usd19-000-on-every-btc-prod...
49•PaulHoule•42m ago•30 comments

TraceFix – Paste a Linux/SSH log error, get the root cause and exact fix command

https://tracefix.vercel.app/
1•skillsettler•42m ago•0 comments

Cotypist

https://cotypist.app/
1•saikatsg•43m ago•0 comments

Shipped a 66-ticket Architecture Epic autonomously with a new Coding Agent setup

https://widal.substack.com/p/we-shipped-a-66-ticket-architecture
2•niwid•43m ago•0 comments