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.

MS Authenticator will crack down on jailbroken/rooted iOS and Android phones

https://www.windowslatest.com/2026/03/06/microsoft-authenticator-will-crack-down-on-jailbroken-ro...
1•josephcsible•1m ago•0 comments

How to Prepare for AGI for Dummies

https://agipreparation.substack.com/p/how-to-prepare-for-agi-for-dummies
1•chancemehmu•1m ago•0 comments

Context Scaffolding: A local, living memory system for Claude Code and Cursor

https://contextscaffold.mokumfiets.com/
1•foginni•2m ago•1 comments

Open Occult- Tools for the Modern Mystic

https://github.com/openoccult
1•nicoloren•3m ago•0 comments

Qanah: Peer‑to‑peer VPN over WebRTC with WireGuard configs

https://github.com/xlmnxp/qanah
1•xlmnxp•3m ago•0 comments

Show HN: CRM-CLI – A local-first personal CRM for the terminal with MCP server

https://github.com/jdanielnd/crm-cli
1•jdanielnd•7m ago•1 comments

Show HN: Modulus – Run multiple coding agents with shared project memory

https://modulus.so
4•dasubhajit•8m ago•1 comments

When DOGE Unleashed ChatGPT on the National Endowment for the Humanities

https://www.nytimes.com/2026/03/07/arts/humanities-endowment-doge-trump.html
2•nxobject•9m ago•1 comments

Show HN: PolyClaude – Using math to pay less for Claude Code

https://github.com/ArmanJR/PolyClaude
1•armanj•15m ago•0 comments

Perfect Types with `SetHTML()`

https://frederikbraun.de/perfect-types-with-sethtml.html
1•todsacerdoti•17m ago•0 comments

Claude Code – Scheduled tasks (cron) added

https://code.claude.com/docs/en/scheduled-tasks
1•rob•17m ago•0 comments

Lisp-style C++ template meta programming

https://github.com/mistivia/lmp
3•mistivia•18m ago•0 comments

After Iraq, Kuwait and UAE may be next to cut oil output on Iran crisis

https://www.reuters.com/business/energy/after-iraq-kuwait-uae-may-be-next-cut-oil-output-iran-cri...
2•ParentiSoundSys•19m ago•0 comments

Claude Code for 3D Printing

https://github.com/Patrick0shea/DDD
3•posky0•25m ago•0 comments

Show HN: Help] I run 4 AI-driven companies simultaneously from my terminal

https://github.com/NikitaDmitrieff/auto-co-meta
1•Ndmtrieff•27m ago•1 comments

Show HN: Search 10k paintings by describing them in plain English

https://vecstore.app
1•kencho•27m ago•1 comments

Building an Interactive Conference Badge with Tufty 2040: A Step-by-Step Guide

https://dnsmichi.com/2026/03/07/building-an-interactive-conference-badge-with-tufty-2040-a-step-b...
1•mooreds•27m ago•0 comments

Where is Charles Manson buried?

https://dangerousminds.net/history/battle-corpse-of-charles-manson/
2•Anon84•28m ago•0 comments

I Could Never Work for Anyone Else: A Wiseass Problem

https://harveysawikin.substack.com/p/i-could-never-work-for-anyone-else
2•RickJWagner•29m ago•0 comments

A Schools Chief So Charming That Los Angeles Overlooked His Red Flags

https://www.nytimes.com/2026/03/07/us/alberto-carvalho-lausd-scandals.html
2•bbertucc•31m ago•1 comments

Does Apple‘s M5 Max Really “Destroy” a 96-Core Threadripper?

https://slashdot.org/submission/17345398/does-apples-m5-max-really-destroy-a-96-core-threadripper
31•dkechag•31m ago•9 comments

Bone (B-1 bomber) deployed to the UK

https://www.theguardian.com/world/2026/mar/07/us-bomber-lands-in-uk-after-warning-of-surge-in-str...
1•zabzonk•32m ago•0 comments

Security vulnerabilities I found in high school

https://blog.raed.dev/posts/hacking-stories-from-high-school-days/
1•Raed667•35m ago•0 comments

Microscopes Can See Video on a LaserDisc

https://www.youtube.com/watch?v=qZuR-772cks
2•zdw•36m ago•0 comments

Debunking of inaccurate and misinformed claims being made about GrapheneOS

https://twitter.com/GrapheneOS/status/2030402535463506069
4•hnburnsy•37m ago•0 comments

Show HN: Agentpng – turn agent sessions into shareable images

https://www.agentpng.dev/
2•siegers•38m ago•0 comments

Show HN: Open-source tool turns a site into an MCP by recording the browser

https://github.com/danielthedm/browse2mcp
1•ethantheswe•39m ago•0 comments

Modular Video Transmission Platform

https://mvtp.cesnet.cz/#demovideo
2•clan•42m ago•0 comments

Show HN: Herd – Session-affine process pool for Go

https://github.com/HackStrix/herd
1•sankalpnarula•42m ago•0 comments

Show HN: Brw – Browser automation for Claude Code agent teams

https://github.com/sshh12/claude-plugins/blob/main/plugins/brw/README.md
1•sshh12•43m ago•0 comments