frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

EU to favor European satellite services to prevent Musk's Starlink expansion

https://www.euronews.com/my-europe/2026/05/26/eu-to-favour-european-satellite-services-to-prevent...
1•hbarka•2m ago•0 comments

VibeOS [video]

https://www.youtube.com/watch?v=zh6fMtL_cSM
1•nreece•3m ago•0 comments

Sonny Piers elaborates on his ban from the Gnome community

https://discourse.gnome.org/t/2026-board-candidate-robert-mcqueen/35308
1•RandomGerm4n•10m ago•0 comments

Vibe Rounds in Healthcare

https://archive.org/details/vibe-rounds-concept-document
1•dravinash•10m ago•1 comments

TokenLens

1•navrekh•12m ago•0 comments

We all sometimes feel like this bird

https://medium.com/the-hairpin/we-all-sometimes-feel-like-this-bird-eb0b167385ba
1•webnrrd2k•12m ago•0 comments

SlimTide Metabolism Support Reviews – Weight-Loss Guide 2026

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-updated-warning-2026-1921...
2•kaizsapu•19m ago•0 comments

Telescope Rancher Became the Hot New Job in Texas

https://www.youtube.com/watch?v=bN48vEqaQs8
2•mudil•21m ago•0 comments

How Silicon Valley Misreads the Lord of the Rings

https://theconversation.com/how-silicon-valley-misreads-the-lord-of-the-rings-282862
4•billybuckwheat•22m ago•0 comments

How to Build Utopia (By Mythos)

https://aiking.dwyer.co.za/utopia
2•sixhobbits•28m ago•0 comments

Things I Hate

2•madprops•28m ago•0 comments

Command injection in NLTK collocations via eval()

https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/
2•yakkomajuri•31m ago•0 comments

Run a fleet of bug hunters on your infrastructure and apps

https://github.com/Matador-og/huntbot
2•mr_echo•32m ago•0 comments

Google Chrome is killing all uBlock Origin bypasses, Edge, Opera to follow

https://www.neowin.net/news/google-chrome-is-killing-all-ublock-origin-bypasses-microsoft-edge-op...
33•d3Xt3r•37m ago•16 comments

List StarWhisper on Hacker News (Show HN)

https://news.ycombinator.com/show
2•christianmer•45m ago•0 comments

Railroads are unnecessary: no ship in Liverpool waits for Manchester goods (1826)

https://hansard.parliament.uk/Commons/1826-04-06/debates/03e51364-f8af-412e-9796-f29949be21e1/Liv...
3•rfv6723•45m ago•0 comments

Permafrost – freeze Claude Code's prompt prefix, cut your DeepSeek bill 64%

https://github.com/jianzhichun/permafrost
3•jianzhichun•46m ago•2 comments

Apple pays Google $1B/yr for Gemini. Google pays Apple $20B/yr for search

https://www.matteast.io/competition-is-for-losers.html
6•meast•46m ago•1 comments

San Francisco Rejects a Tax Hike on Companies with Highly Paid Executives

https://www.wsj.com/politics/elections/san-francisco-rejects-a-tax-hike-on-companies-with-well-pa...
1•JumpCrisscross•47m ago•0 comments

Claude Fable 5 "Feels Next Level"

https://www.searchenginejournal.com/claude-fable-5-feels-next-level/578538/
2•parveshblogger•49m ago•0 comments

macOS/iOS 27 Icon Comparison VS 26

https://basicappleguy.com/basicappleblog/macos-golden-gate-icon-comparison
2•giuliomagnifico•52m ago•1 comments

Show HN: Artie – Real-time data replication to your warehouse, now self-serve

https://www.artie.com
2•tang8330•59m ago•0 comments

What Is CSGClaw?

https://github.com/OpenCSGs/csgclaw
1•YangXYfc•1h ago•0 comments

Show HN: OpenCode powered coding workspace for microcontroller development

https://github.com/Razz19/Exort
1•razorson•1h ago•1 comments

The Untrainable

https://saranormous.substack.com/p/the-untrainable
1•mfiguiere•1h ago•0 comments

Bank of the free now in the land of the free

https://www.bunq.com/blog/bringing-the-bank-of-the-free-to-the-land-of-the-free
1•janandonly•1h ago•0 comments

Bulk Domain Rating Checker

https://dr.vibecodinghub.org
1•ashing•1h ago•0 comments

AI Is a Thing We Made

https://thedailymemes.substack.com/p/ai-is-a-thing-we-made
1•danboarder•1h ago•0 comments

Firewood Splitting Simulator

https://screen.toys/firewood/
3•memalign•1h ago•1 comments

Active Recall

https://herman.bearblog.dev/active-recall/
2•Emerald_dreamer•1h ago•0 comments