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.

Pentagon AI chief praises Palantir tech for speeding battlefield strikes

https://www.theregister.com/2026/03/13/palantirs_maven_smart_system_iran/
1•jjgreen•1m ago•0 comments

Major Outage in Datadog Web Application

https://status.datadoghq.com
1•nzach•4m ago•0 comments

Meta Acquires Moltbook

https://www.nytimes.com/2026/03/10/technology/meta-moltbook-social-ai-bots.html
1•rakag•5m ago•0 comments

I hacked Perplexity Computer and got unlimited Claude Code

https://twitter.com/YousifAstar/status/2032214543292850427
1•tamnd•9m ago•0 comments

Gemini to Word exporter that preserves code blocks, tables, and headings

https://chromewebstore.google.com/detail/gemini-exporter-save-gemi/lgipeakgdkcgnkdljeagconfbfeolidj
2•mounter•13m ago•1 comments

Silicon Valley is buzzing about this new idea: AI compute as compensation

https://www.businessinsider.com/ai-compute-compensation-software-engineers-greg-brockman-2026-3
3•arnon•14m ago•3 comments

How to Hire SaaS Developers in 2026?

1•Sword_Software•16m ago•0 comments

Void, the Vite-native deployment platform

https://void.cloud/
1•wildpeaks•16m ago•1 comments

Internet Intro – hand-curated discovery site for independent web projects

https://internetintro.com/
1•BarBoost•17m ago•1 comments

Show HN: Agile V Skills – Open skills for verifiable, traceable AI engineering

https://github.com/Agile-V/agile_v_skills
1•JoshuaWellbrock•17m ago•0 comments

Server managed SQLite for multi-tenant? Open-source idea

https://old.reddit.com/r/sqlite/comments/1rra3ln/comment/oa6xnvi/
2•websku•21m ago•1 comments

Five layers from writing code to writing companies

https://engineering.taktile.com/blog/five-layers-from-writing-code-to-writing-companies/
6•joostrothweiler•22m ago•0 comments

Hackable single-file console file manager powered by uv with S3/GCS support

https://github.com/begoon/xc
1•begoon•23m ago•0 comments

Show HN: Update] StocksAnalyzer – Compare two stocks side-by-side

https://www.stocksanalyzer.app/compare
1•JuGaDev•23m ago•0 comments

The Shape of the Thing

https://www.oneusefulthing.org/p/the-shape-of-the-thing
1•andyjohnson0•24m ago•0 comments

Invoice OCR API for Logistics Expense Tracking Automation

1•azapi_ai•24m ago•0 comments

Rust and LLMs: The Compiler Does What Code Review Shouldn't Have To

https://blog.rezvov.com/rust-and-llms-the-compiler-does-what-code-review-shouldnt-have-to
1•alexrezvov•25m ago•0 comments

SBOM Adoption on PyPI Is at 1.58%. We Can Do Better

https://sbomify.com/2026/03/12/pypi-sbom-analysis/
1•mvip•26m ago•0 comments

Blue-LIRIC in rabbit cornea: efficacy, effects, and repetition rate (2022)

https://pmc.ncbi.nlm.nih.gov/articles/PMC9045900/
1•tempestn•30m ago•0 comments

One of Our Credit Card

https://honeypot.net/2026/03/12/one-of-our-credit-card.html
2•speckx•31m ago•0 comments

Blader/humanizer: Claude Code skill to remove AI-generated tells from writing

https://github.com/blader/humanizer
1•fragmede•32m ago•1 comments

JSFX on Fedora Linux: an ultra-fast audio prototyping engine

https://fedoramagazine.org/jsfx-on-fedora-linux-an-ultra-fast-audio-prototyping-engine/
1•ycollet•32m ago•0 comments

Design-Driven AI Development

https://ambitious-hosta-5ce.notion.site/Design-Driven-AI-Development-32254f55890480e48d55d86970f5...
1•DevManCry•33m ago•1 comments

'Devastating blow': Atlassian lays off 1,600 workers ahead of AI push

https://www.theguardian.com/technology/2026/mar/12/atlassian-layoffs-software-technology-ai-push-...
3•birdculture•38m ago•0 comments

2026 State of SaaS Report

https://seedium.io/offers/saas-market-report-2026/
1•seedium_tech•44m ago•0 comments

Show HN: Outsmart – a 5-round betting game against the computer

https://labs.davidbauer.ch/outsmart/
2•davidbauer•49m ago•0 comments

Pi-Autoresearch

https://github.com/davebcn87/pi-autoresearch
2•tin7in•50m ago•0 comments

Show HN: A small macOS app to send push notifications to the iOS Simulator

https://github.com/gogson/ios-simulator-push-notifier
2•opafan•53m ago•0 comments

Real-time filters for the web using Lucene query syntax

https://firehose.com
2•perks_12•55m ago•0 comments

Vite+ Alpha: Unified Toolchain for the Web (MIT License)

https://voidzero.dev/posts/announcing-vite-plus-alpha
10•cpojer•56m ago•0 comments