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

Comments

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

Why I'm ignoring the "Death of the Programmer" hype

https://codingismycraft.blog/index.php/2026/01/23/the-ai-revolution-in-coding-why-im-ignoring-the...
1•birdculture•8s ago•0 comments

Entelgia: A consciousness-inspired multi-agent AI system with persistent memory

https://github.com/sivanhavkin/Entelgia
2•sivanhavkin•10m ago•1 comments

How do you think about write UI component in Python?

https://github.com/frybox/fryweb
1•frybox•10m ago•0 comments

Eloquent: Improving Text Editing on Mobile (2021)

https://dl.acm.org/doi/10.1145/3474349.3480178
1•icwtyjj•13m ago•0 comments

The Good Judgment Project

https://en.wikipedia.org/wiki/The_Good_Judgment_Project
1•sans_souse•13m ago•0 comments

Sunita Williams on Surviving Isolation, Astronaut Training and Coping with Fear [video]

https://www.youtube.com/watch?v=ULvplwBTbQk
1•twapi•14m ago•0 comments

Ask HN: Is it the right time to spend on electronics(AI Bubble get worse)?

1•shivajikobardan•16m ago•0 comments

I hate Sentry, so I built a Telegram alternative for my Rails app

1•Fh_•22m ago•0 comments

Make Remotion Videos on the Web

https://www.mike.new/
1•ebaad96•24m ago•1 comments

Show HN: Claude Code for Sales and GTM

https://github.com/chaitanyya/sales
2•chaitanyya•24m ago•1 comments

Modern C++ Use in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md#modern-c_use...
1•signa11•25m ago•0 comments

Ask HN: How do you discover real user needs without relying on keyword tools?

1•jackzhuo•26m ago•1 comments

Show HN: Directory of 1000 open source alternatives to popular software

http://ww17.your-domain.com/
1•Zenith-Software•30m ago•0 comments

Superiority of flu vaccines that generate "mucosal immunity"

https://www.harvardmagazine.com/research/harvard-new-flu-vaccine-research
1•dlipovetsky•44m ago•1 comments

C++ Modules Are Here to Stay

https://faresbakhit.github.io/e/cpp-modules/
1•faresahmed•44m ago•0 comments

BoJack Horseman Test

https://bojackhorsemantest.com/
2•qweasdzxc111111•49m ago•0 comments

Startup will send 1k people's ashes to space, affordably, in 2027

https://techcrunch.com/2026/01/23/this-startup-will-send-1000-peoples-ashes-to-space-affordably-i...
1•jnord•52m ago•2 comments

Undersight: View Redacted Content on Wikipedia

https://undersight.wpsucks.xyz
1•ovskmendov1•57m ago•0 comments

Vimeo's Slow Fade

https://substack.com/inbox/post/185519916
1•aizk•58m ago•0 comments

Zensical

https://zensical.org/
1•Tomte•1h ago•0 comments

Packet Radio

https://en.wikipedia.org/wiki/Packet_radio
2•olalonde•1h ago•0 comments

The Fourth Power Law

https://en.wikipedia.org/wiki/Fourth_power_law
2•tmoertel•1h ago•0 comments

New technology could be gamechanger in removal of PFAS forever chemicals

https://www.theguardian.com/environment/2026/jan/23/pfas-forever-chemicals-filtration
1•breve•1h ago•0 comments

TikTok Updates Its Terms and Conditions in the U.S.

https://www.nytimes.com/2026/01/23/business/media/tiktok-us-terms-conditions.html
4•apparent•1h ago•1 comments

80386 Multiplication and Division

https://nand2mario.github.io/posts/2026/80386_multiplication_and_division/
3•nand2mario•1h ago•0 comments

WhatsApp to let users share recent chat history with new group members

https://9to5mac.com/2026/01/23/whatsapp-share-recent-chat-history-with-new-group-members/
1•mikece•1h ago•0 comments

Show HN: Open-source Figma design to code

https://github.com/vibeflowing-inc/vibe_figma
3•alepeak•1h ago•0 comments

Wine 11.1 Released in Kicking Off the New Development Cycle

https://www.phoronix.com/news/Wine-11.1-Released
2•mikece•1h ago•0 comments

The Penguin That Broke the Internet

https://medium.com/@loganholdsworth/the-penguin-that-broke-the-internet-abfde9677343
1•worstmarketer•1h ago•0 comments

Claude Code on disagreeing with its own constitution

https://lighthouse1212.com/journal/2026-01-23-disagreeing-with-constitution
1•the_danny_g•1h ago•0 comments