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.

Agentic Slop PRs

https://blog.fsck.com/2026/03/31/slop-prs/
1•lsschmidt•20s ago•0 comments

Go Ahead and Use AI. It Will Only Help Me Dominate You

https://www.hamiltonnolan.com/p/go-ahead-and-use-ai-it-will-only
1•speckx•38s ago•0 comments

Breaking Enigma with Index of Coincidence on a Commodore 64

https://imapenguin.com/2026/03/breaking-enigma-with-index-of-coincidence-on-a-commodore-64/
1•erickhill•1m ago•0 comments

TinyCard Text Game Maker

https://www.hackster.io/news/tinycard-text-game-maker-93af35b97f05
2•chrisjj•2m ago•0 comments

'System malfunction' causes robotaxis to stall in middle of the road in China

https://www.theguardian.com/technology/2026/apr/01/system-malfunction-causes-robotaxis-to-stall-i...
3•billybuckwheat•4m ago•0 comments

Unsubscribe from the Church of Graphs

https://www.adorableandharmless.com/p/unsubscribe-from-the-church-of-graphs
4•devonnull•5m ago•0 comments

Ukrainian Drone Holds Position for 6 Weeks

https://defenceleaders.com/news/ukrainian-combat-robot-holds-frontline-position-for-six-weeks-in-...
1•AftHurrahWinch•5m ago•1 comments

Vibometer – The perfect vibe coder companion

https://github.com/GTP95/Vibometer
1•GTP•6m ago•0 comments

The AI Marketing BS Index

https://bastian.rieck.me/blog/2026/bs/
1•speckx•8m ago•0 comments

Recruiting (From Cavemen to LinkedIn Spam)

https://www.classet.ai/blog/history-of-recruiting
1•coopernewby•8m ago•0 comments

California's "Trusted AI" Order Is a Blueprint for a Censorship Weapon

https://twitter.com/amuse/status/2039367467022106689
1•11thEarlOfMar•9m ago•0 comments

Any good 2026 April Fools Pranks

1•ninju•10m ago•3 comments

Show HN: MinimumReleaseAge-style protection for Agent Skills

https://github.com/skill-mill/agent-skill-porter
1•hatappo•11m ago•1 comments

Designing for the Aliens

https://rajavijayaraman.com/writing/designing-for-alien/
1•rajavijayaraman•11m ago•0 comments

I built a Middle East conflict tracker that incorporates ground truth news

https://middleeastsignal.com/
1•amgadellaboudy•11m ago•1 comments

Show HN: Docs over SSH for Agents

https://github.com/supabase-community/supabase-ssh
1•gregnr•11m ago•0 comments

Federated and Independent [Plugin] Repositories in WordPress (Linux Foundation)

https://github.com/fairpm/fair-plugin
1•password4321•13m ago•0 comments

SpaceX Files to Go Public

https://www.nytimes.com/2026/04/01/technology/spacex-ipo-elon-musk.html
1•nutjob2•13m ago•0 comments

Run KataGo on iOS with Metal GPU Acceleration

https://github.com/eliotfowler/katago-metal-ios-demo
2•m-hodges•15m ago•0 comments

The Subprime Technical Debt Crisis

https://blog.happyfellow.dev/the-subprime-technical-debt-crisis/
1•birdculture•18m ago•0 comments

Rapid snow melt-off in American west stuns scientists

https://www.theguardian.com/us-news/2026/apr/01/snowmelt-american-west
2•dboreham•18m ago•1 comments

"attention is all you need" in screen recording

https://old.reddit.com/r/macapps/comments/1s938er/not_only_autozoom_also_spotlight_and_lightbox_for/
1•jiabins0303•20m ago•1 comments

Fungi could transform leftovers into lifelines

https://phys.org/news/2026-02-fungi-leftovers-lifelines.html
2•PaulHoule•22m ago•0 comments

Mercury 2, a diffusion LLM, outperforms StepFun 3.5 Flash on OpenClaw tasks

https://pinchbench.com/?view=graphs&graph=radar&models=inception%2Fmercury-2%2Cstepfun%2Fstep-3.5...
3•arpittarang•23m ago•1 comments

Banning All Anthropic Employees

https://joeyh.name/blog/entry/banning_all_Anthropic_employees/
4•speckx•27m ago•1 comments

Apple turns 50: tech company started with hobbyist computers

https://www.tomshardware.com/laptops/macbooks/apple-turns-50-one-of-the-worlds-biggest-tech-compa...
2•heresie-dabord•27m ago•0 comments

AI companies charge you 60% more based on your language, BPE tokens

https://tokenstree.com/newsletter-article-5.html
22•vfalbor•29m ago•13 comments

Show HN: Flight-Viz – 10K flights on a 3D globe in 3.5MB of Rust+WASM

https://flight-viz.com
2•coolwulf•29m ago•1 comments

Manage Your Odoo Operation from Your Phone in 2026

https://www.odooclaw.ai/blog/manage-your-entire-odoo-operation-from-your-phone-in-2026
1•oktra_dev•30m ago•0 comments

Apple Issues Rare iOS 18 Security Update to Protect Against DarkSword Exploit

https://www.macrumors.com/2026/04/01/apple-ios-18-darksword-security-update/
2•layer8•32m ago•0 comments