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.

Exploring Different Keyboard Sensing Technologies

https://www.lttlabs.com/articles/2026/01/27/exploring-different-keyboard-sensing-technologies
1•viraptor•5m ago•0 comments

Building Products as a Designer

https://twitter.com/borakaizen/status/2016254999890681866
2•kaizenb•7m ago•0 comments

Goodbye Java, Hello Go

https://wso2.com/library/blogs/goodbye-java-hello-go
2•thunderbong•7m ago•0 comments

UK joins European offshore windfarm plan

https://www.theguardian.com/environment/2026/jan/26/uk-among-10-countries-to-build-100gw-wind-pow...
1•zeristor•8m ago•0 comments

The Rise of Sanityware

https://thatshubham.com/blog/2026
2•todsacerdoti•8m ago•0 comments

Show HN: Kaboink

https://kabo.ink/
1•jamescampbell•9m ago•1 comments

Show HN: Heroshot – Automate documentation screenshots with a visual picker

https://heroshot.sh/
1•machala•11m ago•0 comments

The Silicon Gaze: A typology of biases and inequality in LLMs

https://inequalities.ai/
1•the-mitr•11m ago•0 comments

Commodore 64 Helps Revive the BBS Days

https://hackaday.com/2026/01/25/commodore-64-helps-revive-the-bbs-days/
2•rbanffy•15m ago•0 comments

Surely [the crash of the US economy] has to be soon

https://wilsoniumite.com/2026/01/27/surely-it-has-to-be-soon/
9•Wilsoniumite•16m ago•1 comments

The end of the curl bug-bounty

https://daniel.haxx.se/blog/2026/01/26/the-end-of-the-curl-bug-bounty/
1•pabs3•16m ago•0 comments

Mechanical Computing [pdf]

https://raney.seas.upenn.edu/wp-content/uploads/2022/01/Yasuda-2021-Mechanical-computing.pdf
2•nill0•18m ago•0 comments

Negoti-AI-Tion

https://www.tornikeo.com/negoti-ai-tion/
2•tornikeo•19m ago•0 comments

Rights Amplification in Master-Keyed Mechanical Locks [pdf]

https://www.mattblaze.org/papers/mk.pdf
1•nill0•22m ago•0 comments

Your Agent's Reasoning Is Fine - Its Memory Isn't

https://www.decodingai.com/p/designing-production-engineer-agent-graphrag
1•rbanffy•22m ago•0 comments

How AI is transforming research: More papers, less quality

https://newsroom.haas.berkeley.edu/how-ai-is-transforming-research-more-papers-less-quality-and-a...
1•cumo•23m ago•0 comments

ASML firing 1700 people, mostly managers

https://www.ed.nl/binnenland/asml-wil-veel-managementbanen-schrappen-rekent-op-1700-ontslagen~a04...
4•dep_b•24m ago•2 comments

How the AI Labor Displacement Tsunami Could Wipe Out the Economy

https://blogs.timesofisrael.com/how-the-ai-labor-displacement-tsunami-could-wipe-out-the-entire-e...
1•cumo•24m ago•0 comments

DSM-5: The foundation of psychiatric diagnosis is about to get a makeover

https://www.npr.org/2026/01/28/nx-s1-5684121/dsm-5-american-psychiatric-association-diagnostic-me...
1•1659447091•25m ago•0 comments

Wake up to the risks of AI, they are almost here

https://www.theguardian.com/technology/2026/jan/27/wake-up-to-the-risks-of-ai-they-are-almost-her...
1•cumo•26m ago•0 comments

The mysterious electrides – Knowable Magazine

https://knowablemagazine.org/content/article/physical-world/2026/chemistry-of-electrides-new-cata...
1•rbanffy•26m ago•0 comments

Trigonometric series and set theory [pdf]

https://www.pma.caltech.edu/documents/5624/trigonometric_series_and_set_theory_article03.pdf
1•nill0•26m ago•0 comments

Nonograms: A practical guide with interactive examples

https://lab174.com/blog/202601-nonograms/
5•merelysounds•26m ago•1 comments

Scott and Mark Learn to Pilot Coding – Vibe Coding for Real [video]

https://www.youtube.com/watch?v=csU7i8QvzqU
1•weinzierl•27m ago•0 comments

La Suite Numérique

https://github.com/suitenumerique
1•miohtama•29m ago•0 comments

Altcoin season is going to be 'Biblical' but liquidity dries

https://altcoindesk.com/news/altcoin-season-is-going-to-be-biblical-but-liquidity-dries/article-2...
1•Chryzano•29m ago•1 comments

Show HN: Modelfy – Turn a single image into a 3D model (GLB/OBJ)

https://modelfy.art
1•binskyell2615•31m ago•0 comments

How much recurring income do you generate in 2026 and from what?

2•djshah•31m ago•1 comments

Show HN: GrindMal – A dev "arena" (Alpha Invite)

2•tomari99•36m ago•0 comments

ePub and HTML – Survey results and next steps

https://www.w3.org/blog/2026/epub-and-html-survey-results-and-next-steps/
1•edent•37m ago•0 comments