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.

Nvidia's CEO Used to Be Stock's Best Salesman. Now He Can Barely Make It Budge

https://www.barrons.com/articles/nvidia-stock-price-gtc-huang-analyst-6a4b10f2
1•1vuio0pswjnm7•40s ago•0 comments

North Korean's 100k fake IT workers net $500M a year for Kim

https://www.theregister.com/2026/03/18/researchers_lift_the_lid_on/
1•speckx•1m ago•0 comments

Conifer Twilight Announcement – Conifer by Rhizome.org

https://blog.conifer.rhizome.org/2025/12/15/twilight-announcement.html
1•catlikesshrimp•1m ago•1 comments

The Plastic Detox – a film so terrifying you will want to change your life

https://www.theguardian.com/tv-and-radio/2026/mar/16/the-plastic-detox-review-a-film-so-terrifyin...
1•t-3•1m ago•0 comments

Pragma Twice

https://github.com/zaporter-work/pragma_twice
1•erdaniels•2m ago•0 comments

Show HN: Save Claude tokens with semantic search powered by SQLite and Ollama

https://github.com/ory/lumen/tree/main
1•illogicalabc•2m ago•0 comments

Show HN: ThoughtTrack – On-device thought capture with NLP-powered resurfacing

https://apps.apple.com/us/app/thoughttrack-voice-capture/id6758325880
1•zakmcintyre•3m ago•0 comments

A tiny, decentralised tool to explore the small web

https://codeberg.org/susam/wander
1•carte_blanche•3m ago•0 comments

We were building radios wrong: The genius of OFDM

https://www.gawtham.com/blog/so-what-is-ofdm
1•Gawtham•4m ago•1 comments

Hazards of Agentic Engineering

https://bertolami.com/blog/hazards-of-agentic-engineering
4•wontons•4m ago•0 comments

Show HN: Yapper – free, open-source alternative to Superwhisper for macOS

https://github.com/ahmedlhanafy/yapper
1•ahmedlhanafy•5m ago•0 comments

A meteor exploded over Ohio and Pennsylvania

https://www.popsci.com/science/ohio-pennsylvania-meteor/
2•Brajeshwar•5m ago•0 comments

Permit MCP Gateway, a new trust and enforcement layer for MCP

https://www.permit.io/blog/announcing-permit-mcp-gateway
3•shimont•6m ago•0 comments

Show HN: Xybrid – run LLM and speech locally in your app (no back end, Rust)

https://github.com/xybrid-ai/xybrid
1•theGlenn•7m ago•0 comments

Numerical Linear Algebra

https://isaac-flath.github.io/APL-Exploration/posts/Fastai_Numerical_Linear_Algebra_1.html
2•tosh•8m ago•0 comments

Pioneering geothermal plant launched in Cornwall, UK

https://www.theguardian.com/environment/2026/feb/26/cornwall-new-geothermal-project-launches
1•toomuchtodo•9m ago•1 comments

Show HN: I built 48 lightweight SVG backgrounds you can copy/paste

https://www.svgbackgrounds.com/set/free-svg-backgrounds-and-patterns/
2•visiwig•10m ago•2 comments

Wander – A tiny, decentralised tool (just 2 files) to explore the small web

https://susam.net/wander/
1•oystersareyum•11m ago•0 comments

Daemons that clean up the mess agents leave behind

https://ai-daemons.com/
4•neom•12m ago•0 comments

Wide logging: Stripe's canonical log line pattern

https://blog.alcazarsec.com/tech/posts/wide-logging
2•alcazar•13m ago•0 comments

Ranking of Fruits

https://beyondloom.com/blog/rankingoffruits.html
2•tosh•14m ago•0 comments

Fatty acids promote uncoupled respiration in white adipocytes

https://www.nature.com/articles/s42255-026-01467-2
1•PaulHoule•15m ago•0 comments

Learn Lil in 10 Minutes

https://beyondloom.com/decker/learnlil.html
1•tosh•16m ago•0 comments

FSFE reports trouble with payment provider

https://lwn.net/Articles/1063287/
1•t-3•16m ago•0 comments

25 Years of Eggs

https://www.john-rush.com/posts/eggs-25-years-20260219.html
1•avyfain•17m ago•0 comments

Meta will shut down VR Horizon Worlds access June 15

https://www.engadget.com/ar-vr/meta-will-shut-down-vr-horizon-worlds-access-in-june-222028919.html
8•bookofjoe•17m ago•0 comments

CVE-2026-3888: Important Snap Flaw Enables Local Privilege Escalation to Root

https://blog.qualys.com/vulnerabilities-threat-research/2026/03/17/cve-2026-3888-important-snap-f...
3•askl•17m ago•0 comments

Ask HN: How do you handle payments for AI agents?

1•bahaghazghazi•17m ago•0 comments

Fuck It, I'm European

https://cdn.shopify.com/s/files/1/0945/2329/4031/files/12F_Fuck_It_I_m_European.pdf?v=1771760064
2•doener•18m ago•0 comments

Does technology make people touch each other less? (2015)

https://www.bbc.com/news/magazine-31026410
1•simonebrunozzi•18m ago•0 comments