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.

Show HN: I built a 'Gym' for developers who want to stop relying on AI

https://get-human-spec.netlify.app/
1•sameerthite•1m ago•0 comments

Agentic Tech Magazine

https://agentcrunch.ai/
1•mikiarlo321•5m ago•0 comments

Use Microsoft Office Shortcuts in Libre Office

https://github.com/Zaki101Aslam/MS-office-shortcuts-for-Libre-Office
1•Zaki101Aslam•6m ago•1 comments

SmolMail – Stop typing what your emails know

https://smolmail.com/
1•narinluangrath•9m ago•1 comments

Is Your AI Agent Safe?

https://agentshield.live/
1•bartel_most•15m ago•1 comments

Switch instantly between your ego across ChatGPT, Claude, Gemini, Grok and local

https://context-wallet.com/
1•haebom•20m ago•0 comments

Show HN: AgentScore – Lighthouse for AI Agents

https://github.com/xiongallen40-design/agentscore
1•agentscore•24m ago•0 comments

Show HN: PlanOpticon – Extract structured knowledge from video recordings

https://github.com/ConflictHQ/PlanOpticon
1•ragelink•26m ago•0 comments

Discord Distances Itself from Peter Thiel's Palantir Age Verification Firm

https://kotaku.com/discord-palantir-peter-thiel-persona-age-verification-2000668951
4•thisislife2•36m ago•0 comments

Flashpoint Archive – Over 200k web games and animations preserved

https://flashpointarchive.org
2•helloplanets•53m ago•0 comments

The AGI gap might be epistemological, not technical

https://executelater.substack.com/p/we-dont-know-what-were-looking-for
2•NarratorTD•53m ago•0 comments

Show HN: Remote-OpenCode – Run your AI coding agent from your phone via Discord

https://github.com/RoundTable02/remote-opencode
1•remocode•55m ago•1 comments

Stop Saying Boredom Is Good for Kids

https://www.fast.ai/posts/2025-12-03-boredom/
2•tkazec•56m ago•0 comments

Understanding Std:Shared_mutex from C++17

https://www.cppstories.com/2026/shared_mutex/
2•jandeboevrie•57m ago•0 comments

I gave my AI drugs

https://github.com/nich2533/just_say_no
3•nich2533•1h ago•2 comments

America Isn't Ready for What AI Will Do to Jobs

https://www.theatlantic.com/magazine/2026/03/ai-economy-labor-market-transformation/685731/
11•helloplanets•1h ago•1 comments

Show HN: Bond – Persistent memory and governance framework for Claude AI

https://github.com/moneyjarrod/BOND
1•J-Dub•1h ago•1 comments

You do not need an ORM [video]

https://fosdem.org/2026/schedule/event/F9Y7ZY-you-do-not-need-an-orm/
2•0x54MUR41•1h ago•0 comments

Show HN: Nucleus MCP – Forensic deep-dive into agent resource locking

https://www.loom.com/share/843a719cbcc2419b8e483784ffd1e8c8
1•NucleusOS•1h ago•0 comments

Anime text-to-image generator (2 free tries, no login)

https://www.radanimegenerator.com/
1•changttt•1h ago•2 comments

Distillation, Experimentation, and Integration of AI for Adversarial Use

https://cloud.google.com/blog/topics/threat-intelligence/distillation-experimentation-integration...
2•nsoonhui•1h ago•0 comments

Jikipedia: The encyclopedia of people, places, and events from the Epstein files

https://jmail.world/wiki
2•0x54MUR41•1h ago•0 comments

Watch Men

https://worksinprogress.co/issue/watch-men/
3•trojanalert•1h ago•2 comments

How actor Edward Norton is related to Pocahontas

https://www.bbc.com/news/world-us-canada-64158055
1•thunderbong•1h ago•0 comments

What Lies Beneath

https://newhumanist.org.uk/articles/6505/what-lies-beneath
3•kawera•1h ago•0 comments

DeepWiki and Increasing Malleability of Software

https://twitter.com/karpathy/status/2021633574089416993
1•sabareesh•1h ago•0 comments

AI Soap (the bar, not the API)

https://github.com/mikewolfd/soap-calc
2•mikewolfd•1h ago•1 comments

Show HN: Snaprookies a unified orchestrated layer for 27 generative AI workflow

https://snaprookies.org/
1•RichardOdds•1h ago•1 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•coonr•1h ago•1 comments

"I built a site to explore and analyze all 18,500 Pitchfork reviews"

https://old.reddit.com/r/indieheads/comments/1r4watg/i_built_a_site_to_explore_and_analyze_all_18...
1•surprisetalk•1h ago•0 comments