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.

'The world is in peril': AI researchers quit with public warnings

https://www.thetimes.com/uk/technology-uk/article/ai-researchers-quit-openai-chatgpt-anthropic-pf...
1•petethomas•27s ago•0 comments

Show HN: Fighting the War Against Expensive Reinforcement Learning Costs

https://cadenza-landing-qtu7gbjwb-akshparekh123-3457s-projects.vercel.app/
1•aparekh02•31s ago•0 comments

Show HN: Detecting coordinated financial narratives with embeddings and AVX2

1•ManuelGomes•2m ago•0 comments

Pi.dev: There are many coding agents, but this one is mine

https://pi.dev/
1•ozonhulliet•4m ago•0 comments

Show HN: PaperLab – Markdown editor that deliberately does less

1•kyleslight•6m ago•0 comments

Is a secure AI assistant possible?

https://www.technologyreview.com/2026/02/11/1132768/is-a-secure-ai-assistant-possible/
1•Brajeshwar•7m ago•0 comments

Apple and Google pledge not to discriminate against third-party apps in UK deal

https://www.theguardian.com/technology/2026/feb/10/apple-google-third-party-apps-app-store
1•Brajeshwar•8m ago•0 comments

The big AI job swap: why white-collar workers are ditching their careers

https://www.theguardian.com/technology/2026/feb/11/big-ai-job-swap-white-collar-workers-ditching-...
1•Brajeshwar•8m ago•0 comments

Thanks to AI, we can play a Roman game again

https://www.maastrichtuniversity.nl/news/thanks-ai-we-can-play-roman-game-again
1•Someone•11m ago•0 comments

Show HN: A calorie explorer for 5,796 foods (1–900 kcal)

https://mealjar.app/nutritional-facts
2•melvinzammit•17m ago•0 comments

The Role of Gas in Powering AI-Driven Energy Demand

https://www.igu.org/igu-reports/the-role-of-gas-in-powering-ai-driven-energy-demand
1•robin_reala•24m ago•0 comments

Show HN: AI that replaces the first 15 minutes of every client call

https://www.myclone.is/
3•vira28•25m ago•0 comments

DeepWiki and Increasing Malleability of Software

https://twitter.com/karpathy/status/2021633574089416993
1•ipnon•25m ago•0 comments

Inertia raises $450M to commercialize the only proven fusion science

https://finance.yahoo.com/news/inertia-raises-450-million-commercialize-133000927.html
2•conroy•25m ago•0 comments

When to Do What You Love

https://www.paulgraham.com/when.html
1•tosh•25m ago•0 comments

Something I believe to be true with the AI platform shift

https://twitter.com/stevesi/status/2021701369640759601
1•tosh•26m ago•0 comments

Introducing Pure Blog

https://kevquirk.com/introducing-pure-blog
2•Curiositry•27m ago•0 comments

Show HN: Building an open-source Google Scholar / Consensus alternative

https://github.com/QuriousAI/qurious
1•nexwastaken•28m ago•0 comments

The tools changed because the job changed

https://sjdonado.com/posts/2026-02-11-changes-in-my-developer-setup/
1•sjdonado•28m ago•1 comments

Show HN: The "Vat of Fluid" Model–Solving 7Systems Paradoxes ViaFirst Principles

1•michbroo•31m ago•0 comments

Choose wisely what you read (2020)

https://www.openculture.com/2020/12/carl-sagan-on-the-importance-of-choosing-wisely-what-you-read...
3•andsoitis•31m ago•0 comments

Staying on Top in the Age of LLMs

https://andrasgerlits.medium.com/staying-on-top-in-the-age-of-llms-818400f8ff0a
1•andras_gerlits•31m ago•0 comments

Show HN: Global Solo – Structural risk diagnostic for cross-border solo founders

https://www.globalsolo.global
1•jettfu•31m ago•0 comments

Why Modern Chinese Is Just 'English with Hanzi'

https://jingyu1623.substack.com/p/why-modern-chinese-is-just-english
3•United857•32m ago•0 comments

Carl Sagan's Baloney Detection Kit: Tools for Thinking Critically (2025)

https://www.openculture.com/2025/09/the-carl-sagan-baloney-detection-kit.html
2•nobody9999•32m ago•1 comments

Instagram chief likens social media addiction to being hooked on a Netflix show

https://www.cnbc.com/2026/02/11/meta-trial-instagram-mosseri-social-media-addiction.html
1•1vuio0pswjnm7•34m ago•1 comments

Show HN: PrintStack – macOS virtual printer to queue and merge PDFs

https://apps.apple.com/us/app/printstack-virtual-printer/id6758392188?mt=12
1•ismailcarlik•34m ago•2 comments

Ask HN: The role of trade unions in tech whistleblowing?

1•bm371613•35m ago•0 comments

Digitizing the "Shokunin": How we encoded a Master's hammer strike into AI

https://yusukekaizen.substack.com/p/the-mathematics-of-intuition-how
2•yusukekaizen•37m ago•2 comments

Ask HN: What are you working on this Thursday?

2•Sayyidalijufri•42m ago•1 comments