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•11mo ago

Comments

zoezoezoezoe•11mo 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•11mo 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.

Boris Cherny's favorite hidden and under-utilized features in Claude Code

https://xcancel.com/bcherny/status/2038454336355999749
1•vinhnx•2m ago•0 comments

Show HN: Tidbits – Quick save any text without switching windows

https://www.tidbits.tools
1•uglyburger•5m ago•0 comments

Gravity Well Arena: space combat built on real time dilation

https://sean-reid.github.io/gravity/
1•s_e__a___n•8m ago•1 comments

The Last Generation

https://www.newyorker.com/magazine/2026/03/30/the-last-generation
2•petethomas•8m ago•0 comments

Open Source Silicon: wafer.space and the business of open silicon projects

https://www.siliconimist.com/p/waferspace-tim-mithro-ansell
2•johncole•9m ago•0 comments

Google employees new AI tool Agent Smith got so popular that it was restricted

https://www.businessinsider.com/google-agent-smith-employees-ai-driven-coding-2026-3
2•seer•9m ago•0 comments

Skilled AI agents for embedded and IoT systems development

https://github.com/iot-agent/iot-skillsbench
1•tingjunchen•9m ago•1 comments

New App Tells You What Hardware You Need to Run Any AI Model Locally

https://runthisllm.com/
1•eeko_systems•10m ago•0 comments

JSSE: A JavaScript Engine Built by an Agent

https://p.ocmatos.com/blog/jsse-a-javascript-engine-built-by-an-agent.html
1•ivankra•12m ago•0 comments

6o6 v1.1: Faster 6502-on-6502 virtualization for a C64/Apple II Apple-1 emulator

http://oldvcr.blogspot.com/2026/03/6o6-v11-faster-6502-on-6502.html
1•matt_d•13m ago•0 comments

I scanned 8,392 Claude Code sessions – here's where the tokens go

https://github.com/li195111/claude-token-analyzer
1•li195111•15m ago•0 comments

Janet for Mortals

https://janet.guide/
2•h4ch1•16m ago•1 comments

Copilot Edited an Ad into My PR

https://notes.zachmanson.com/copilot-edited-an-ad-into-my-pr/
1•pavo-etc•16m ago•0 comments

The AI Doc: OR How I Became an Apocaloptimist [video]

https://www.youtube.com/watch?v=xkPbV3IRe4Y
1•bonefishgrill•16m ago•0 comments

'WM Bench' is the first benchmark for World Model intelligence

https://huggingface.co/datasets/FINAL-Bench/World-Model
1•seawolf2357•19m ago•0 comments

Hawkeye – a flight recorder for AI agents

https://www.npmjs.com/package/hawkeye-ai
1•mklamine•25m ago•0 comments

An open-source workflow for producing a personalized mRNA cancer vaccine

https://philfung.github.io/openvaxx/
1•dsr12•27m ago•0 comments

Show HN: ChameleonDB – A database toolkit with auditable schema versioning

https://www.chameleondb.dev/
1•ChameleonDB•30m ago•0 comments

Typed-fetch – Go-style error handling for fetch in TypeScript

https://github.com/pbpeterson/typed-fetch
1•pbpeterson•33m ago•1 comments

Daily coding model rankings by use case

https://howsthemodel.com/
1•keyserrr•38m ago•0 comments

Putting the 'lord' in 'landlord': US churches step up to build housing

https://www.theguardian.com/society/2026/mar/29/yigby-churches-build-housing-amid-shortage
1•rawgabbit•39m ago•0 comments

I built IDE-layer policy enforcement for Claude Code/Cursor agents

https://www.oculisecurity.com/
2•rellaElla•41m ago•0 comments

Ask HN: Why Isn't Everything Public?

5•silexia•43m ago•3 comments

Under-utilized features in Claude Code

https://twitter.com/bcherny/status/2038454336355999749
1•tzury•44m ago•0 comments

uops.info Update: Emerald Rapids, Meteor Lake, Arrow Lake, and Zen 5

https://uops.info/table.html
2•matt_d•45m ago•0 comments

SpaceX: For Mars or Wars?

https://i.postimg.cc/mR4RyVdx/UXTx-D2t.jpg
4•transmartian•46m ago•2 comments

Who's Gonna Carry the Boats?

https://apps.apple.com/us/app/quit-all-break-every-habit/id6760978934
1•apoorvdarshan•54m ago•1 comments

App Defaults in March 2026

https://brainbaking.com/post/2026/03/app-defaults-march-2026/
1•Brajeshwar•59m ago•0 comments

Gorgeous DIY camera looks straight out of Severance

https://www.dpreview.com/articles/9055612016/saturnix-diy-camera-alien-sci-fi-raspberry-pi
1•swq115•1h ago•0 comments

MXFP8 GEMM: Up to 99% of cuBLAS Performance Using CUDA and PTX

https://danielvegamyhre.github.io/2026/03/29/mxfp8-gemm.html
1•matt_d•1h ago•0 comments