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.

Power Efficiency – why we care so much about it

https://trmnl.com/blog/power-efficiency
1•rishikeshs•1m ago•0 comments

Show HN: ArcticKey – Managed Redis (Valkey) Hosted in the EU

https://arctickey.com
1•simskiie•3m ago•0 comments

Ask HN: Is anyone tracking AI traffic to their site? Should we care?

1•ATechGuy•4m ago•0 comments

Bash tool execution failing in Claude Code

https://github.com/anthropics/claude-code/issues/28333
1•sadeshmukh•4m ago•0 comments

Thagomizer

https://en.wikipedia.org/wiki/Thagomizer
1•luu•5m ago•0 comments

A Meta AI security researcher said an OpenClaw agent ran amok on her inbox

https://techcrunch.com/2026/02/23/a-meta-ai-security-researcher-said-an-openclaw-agent-ran-amok-o...
1•isaacfrond•6m ago•0 comments

Archaeologists Use Computer Simulations to Decipher How Romans Played Board Game

https://archaeology.org/news/2026/02/16/archaeologists-use-ai-to-decipher-how-romans-played-board...
1•isaacfrond•6m ago•0 comments

All Software Is Worthless

https://blog.hermesloom.org/p/all-software-is-worthless
1•sigalor•7m ago•0 comments

Undersheet – thread memory for AI agents across platforms

https://github.com/ubgb/undersheet
2•ubgb•7m ago•1 comments

A free Dynamic QR Code generator

https://free-dynamic-qr-generator.com/
1•anithakarri001•7m ago•0 comments

Simple URL shortner in a single binary

https://github.com/scmmishra/dubly
1•shivam-dev•8m ago•0 comments

1Password is increasing their price

https://1password.com/pricing/password-manager
1•pixelpanic360•8m ago•0 comments

A Comprehensive Analysis of Endocrine Disruptors in the Headphones

https://arnika.org/en/news/the-sound-of-contamination-all-analysed-headphones-on-the-central-euro...
3•XzetaU8•9m ago•1 comments

The Looming Taiwan Chip Disaster That Silicon Valley Has Long Ignored

https://www.nytimes.com/2026/02/24/technology/taiwan-china-chips-silicon-valley-tsmc.html
1•u1hcw9nx•9m ago•0 comments

Japan antitrust watchdog raids Microsoft over cloud services concerns

https://asia.nikkei.com/business/technology/japan-antitrust-watchdog-raids-microsoft-over-cloud-s...
1•macleginn•10m ago•0 comments

QOCC – Quantum Observability and Contract-Based Compilation

https://github.com/zerocool26/Quantum-Observability-Contract-Compilation-QOCC-
1•chiengineer•15m ago•1 comments

Ask HN: Why would anyone still use Poetry now that uv exists?

1•s-xyz•16m ago•0 comments

An honest analysis of SpacetimeDB 2.0's insane benchmark results

https://gist.github.com/brandonpollack23/77d4d741e9af56ef3a9fc338f68d2ec6
1•brandonpollack2•18m ago•1 comments

English 2.0: converter for more orthogonal and phonetically pure English

https://github.com/nglibc/english-2.0
1•xphung•21m ago•2 comments

Show HN: Open Plan Annotator – Annotate your agent's plans like a Google doc

https://github.com/ndom91/open-plan-annotator
1•ndom91•23m ago•0 comments

Wayve secures $1.5B to deploy its global autonomy platform

https://wayve.ai/press/series-d/
1•horsellama•24m ago•0 comments

Proworkk

1•Proworkk•25m ago•2 comments

Show HN: A zero-dependency Web Component for Bluesky blog comments

https://github.com/florianschepp/bsky-comments
1•fschepp•27m ago•1 comments

Curl Security Moves Again

https://daniel.haxx.se/blog/2026/02/25/curl-security-moves-again/
1•robin_reala•27m ago•0 comments

Automate your tutorials with playwright and Piper

https://charnley.github.io/blog/2026/02/24/automated-tutorial-as-code-playwright-piper.html
1•KPLauritzen•28m ago•0 comments

Participate in the 100M-row challenge for PHP

https://stitcher.io/blog/100-million-row-challenge
1•moebrowne•30m ago•0 comments

The Slow Death of the Power User

https://fireborn.mataroa.blog/blog/the-slow-death-of-the-power-user/
4•stargrave•35m ago•0 comments

The best tech interview prep tool and blogs

https://interviewgpt.deepchill.app/blogs
1•tiancaioyzy•35m ago•0 comments

GenesisDB on DigitalOcean: One Click, Done

https://www.genesisdb.io/blog/posts/2026-02-24/genesisdb-one-click-digitalocean
4•patriceckhart•37m ago•2 comments

Go's secret weapon: the standard library interface

https://fredrikaverpil.github.io/blog/2025/12/28/gos-secret-weapon-the-standard-library-interfaces/
1•hambes•38m ago•0 comments