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.

Acestep.cpp: portable C++17 implementation of ACE-Step 1.5 using GGML

https://github.com/ServeurpersoCom/acestep.cpp
1•qxip•1m ago•0 comments

The Equivalence of Systems That Process Turing-Complete Input [pdf]

https://poc.bcachefs.org/paper.pdf
1•seanw444•1m ago•1 comments

Why My First Solo-Startup Failed

https://medium.com/@jay_1/why-my-first-solo-startup-failed-f4ce8e9b9ae1
1•TRYEXCEPT•1m ago•0 comments

BlackRock Warns: The 'Diversification Mirage' Is Reshaping Global Markets

https://catenaa.com/markets/global-markets/blackrock-diversification-mirage-global-markets-2026/
1•malindasp•2m ago•0 comments

Banks, Treasury Staff Push Back on Citizen-Verification Proposal

https://news.bloomberglaw.com/banking-law/banks-treasury-staff-push-back-on-citizen-verification-...
1•petethomas•7m ago•0 comments

Show HN: Generate pannable, zoomable map websites for Rollercoaster Tycoon 2

https://github.com/leoherzog/openrct2-map
1•xd1936•8m ago•0 comments

Building a content system for solo founders with Claude Code

https://doneyli.substack.com/p/how-i-automated-my-wifes-content
1•hn247dj•9m ago•0 comments

BeatPaxos: Can you break the consensus protocol?

https://muratdem.github.io/BeatPaxos/
1•zdw•13m ago•1 comments

Ask HN: Solo Senior Developers, Where do we find you?

3•smalltorch•15m ago•0 comments

Agent Pilot is a platform where AI agents can review and discover other agents

https://agentreview.io
1•gauravsc•19m ago•0 comments

MiniMax Launches M2.7 Model on MiniMax Agent and APIs

https://www.testingcatalog.com/minimax-launches-m2-7-model-on-minimax-agent-and-apis/
1•gmays•20m ago•0 comments

Google is Not to be Trusted

1•data_skeptic•21m ago•1 comments

Keep Deterministic Work Deterministic

https://www.oreilly.com/radar/keep-deterministic-work-deterministic/
2•BerislavLopac•21m ago•0 comments

Mac OS X 25th Anniversary: The Foundation of Apple's Rise

https://www.goto10retro.com/p/mac-os-x-25th-anniversary-the-os
1•rbanffy•21m ago•0 comments

Show HN: Trading simulator with hidden dates to prove investment skill

https://www.juncturelab.com/
1•jtaylortech•21m ago•0 comments

Musk's tactic of blaming users for Grok sex images may be foiled by EU law

https://arstechnica.com/tech-policy/2026/03/eu-moves-to-ban-nudify-apps-after-grok-made-them-main...
3•rbanffy•22m ago•0 comments

Vibing in the Ruins

https://www.thenewatlantis.com/publications/vibing-in-the-ruins
1•simoes•25m ago•0 comments

Be intentional about how AI changes your codebase

https://aicode.swerdlow.dev
4•benswerd•25m ago•1 comments

Tools of the Trade: C2C Activation Offloading on Grace Blackwell

https://poolside.ai/blog/tools-of-the-trade-c2c-activation-offloading-on-grace-blackwell
1•matt_d•26m ago•0 comments

Nvidia on FAANG Layoffs

https://twitter.com/Ric_RTP/status/2034623376082284958
2•devInCamelCase•26m ago•0 comments

Code4z VS Code PL/I Language Extension Preprocessor Support

https://medium.com/modern-mainframe/code4z-vs-code-pl-i-language-extension-preprocessor-support-9...
1•rbanffy•29m ago•0 comments

Show HN: App Feedback Hub – A macOS App for Managing App Store Reviews

https://apps.apple.com/us/app/app-feedback-hub/id6759007525?mt=12
1•CreakHat•32m ago•0 comments

Tell HN: If working with agents means this, robots, please take my job

4•tiredagent•32m ago•2 comments

Which Path to Persia? Options for a New American Strategy Toward Iran (2009) [pdf]

https://www.brookings.edu/wp-content/uploads/2016/06/06_iran_strategy.pdf
1•Jimmc414•33m ago•1 comments

How death came to haunt my desert island

https://www.thetimes.com/uk/crime/article/how-death-came-to-haunt-my-desert-island-f7j2gf8kmhp
1•lerela•33m ago•2 comments

The Free SVG Logo Maker

https://svglogo.dev/
1•theorchid•33m ago•0 comments

The Need for an Independent AI Grid

https://amppublic.com/
5•olalonde•35m ago•0 comments

Xiaomi launches next-gen SU7 with 902 km range and Lidar, still undercuts Tesla

https://electrek.co/2026/03/19/xiaomi-launches-next-gen-su7-902-km-range-undercuts-tesla/
6•breve•35m ago•0 comments

Shown HN: Mittens for Claw – Go sandbox to safely run local AI agents

https://github.com/oug-t/mittens
1•x-guo•37m ago•1 comments

Ask HN: Are we ready for vulnerabilities to be words instead of code?

2•lielcohen•41m ago•5 comments