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.

Lessons from 30 Years Building Software Systems

1•alkas•22s ago•0 comments

OverflowML – Run AI models larger than your GPU, one line of code

https://github.com/Khaeldur/overflowml
2•khaeldur•6m ago•0 comments

Evaluating Evolving Agents with Evolving Benchmarks

https://frontier-cs.org/blog/agent-evaluation/
2•lihanc111•9m ago•1 comments

Fil-C is safer than Rust

https://twitter.com/filpizlo/status/1984366437390303265
3•ppew•9m ago•0 comments

Haarp: A Never-Ending Conspiracy Theory in Remote Alaska

https://www.theatlantic.com/technology/2026/03/haarp-weather-conspiracies/686264/
2•jonah•11m ago•0 comments

Show HN: An on-device Mac app for real-time posture reminders

https://apps.apple.com/us/app/ai-posture-reminder-app/id1574005886?mt=12
2•data-leon•11m ago•0 comments

Substack editor now supports syntax colors

https://substack.com/@rasbt/note/c-225362360
2•umangsehgal93•11m ago•0 comments

New business formation exploding higher, likely driven by AI

https://www.apolloacademy.com/new-business-formation-exploding-higher/
2•matthest•13m ago•0 comments

The Dress: Blue or White? (2015)

https://en.wikipedia.org/wiki/The_dress
2•jsattler•14m ago•0 comments

Looking for a Vibe Coder: real Job ad from Greece's biggest telcom company

https://apply.smartcv.co/ote/job/plz7
3•whiplashoo•15m ago•0 comments

It's time to speak out against unchecked growth of satellite mega constellations

https://www.scientificamerican.com/article/rampant-growth-of-satellite-mega-constellations-could-...
4•randycupertino•15m ago•1 comments

Claude Code with Multiple Accounts on One Machine

https://www.nibzard.com/claude-dual-provider/
2•speckx•16m ago•0 comments

RISC-V Is Sloooow

https://marcin.juszkiewicz.com.pl/2026/03/10/risc-v-is-sloooow/
17•todsacerdoti•17m ago•5 comments

The Palantir Impact: Ontology Strategy Connecting Data and AI

https://github.com/Leading-AI-IO/palantir-ontology-strategy/blob/main/docs/the-palantir-impact_en.md
3•whalesalad•19m ago•0 comments

Show HN: 2D RPG base game client recreated in modern HTML5 game engine with AI

https://github.com/ErkoKnoll/helbreath-base-game
2•erkok•19m ago•0 comments

Apple Now Makes One in Four iPhones in India

https://www.macrumors.com/2026/03/10/apple-makes-one-four-iphones-india/
3•mgh2•19m ago•0 comments

Nvidia's Groq Plot Thickens – The Chip Letter

https://thechipletter.substack.com/p/nvidias-groq-plot-thickens
1•rbanffy•23m ago•0 comments

The Latest Republican Efforts to Make It Harder to Vote in the Midterms

https://www.newyorker.com/news/the-lede/the-latest-republican-efforts-to-make-it-harder-to-vote-i...
4•mitchbob•24m ago•2 comments

The Dark Factory Is a .dot file

https://2389.ai/posts/the-dark-factory-is-a-dot-file/
1•paulsmith•25m ago•0 comments

Uber uses AI for development: inside look

https://newsletter.pragmaticengineer.com/p/how-uber-uses-ai-for-development
1•tmsh•25m ago•0 comments

Iowa Payphone Defends Itself (Associated Press, 1984)

https://www.payphone-project.com/iowa-payphone-defends-itself-ap-story-from-october-1984.html
2•TigerUniversity•26m ago•1 comments

Show HN: Quick Look Source Code in Finder on macOS

https://anybox.ltd/source-code-preview
1•francisfeng•28m ago•0 comments

Against Vibes: When Is a Generative Model Useful

https://www.williamjbowman.com/blog/2026/03/05/against-vibes-when-is-a-generative-model-useful/
1•takira•29m ago•0 comments

Show HN: KaraMagic – automatic karaoke video maker

https://karamagic.com/
1•godot•30m ago•0 comments

What comes after agents? AI employees

https://www.ycombinator.com/launches/Pf7-beyond-agents-the-era-of-ai-employees
1•karissaho•30m ago•0 comments

Photocopier No More: The Reckoning with AI Creativity Has Arrived

https://reviews.ofb.biz/safari/article/1401.html
1•trbutler•30m ago•0 comments

Inverse Occam's Razor

https://arxiv.org/abs/2204.08284
1•jerlendds•31m ago•0 comments

Tell HN: Apple development certificate server seems down?

12•strongpigeon•32m ago•9 comments

Mother of All Grease Fires

https://milk.com/wall-o-shame/bucket.html
2•xk3•32m ago•0 comments

6-Axis Milling for Enhancing Quality of Fused Granular Fabrication Parts

https://www.mdpi.com/2073-4360/18/5/608
3•PaulHoule•33m ago•0 comments