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.

Zero-token progress bar for Claude Code that tracks actual task completion

https://github.com/PRAFULREDDYM/task-progress-bar
1•PrafulReddy•1m ago•0 comments

Price Page – Every Pricing Page Ever Made

https://pricepage.lol/
1•speckx•1m ago•0 comments

Anthropic Model Scare Sparks Urgent Bessent, Powell Warning to Bank CEOs

https://www.bloomberg.com/news/articles/2026-04-10/anthropic-model-scare-sparks-urgent-bessent-po...
1•TMWNN•1m ago•0 comments

Nucleus Nouns

https://ben-mini.com/2026/nucleus-nouns
2•bewal416•2m ago•0 comments

Claude Managed Agents Explained, with a Live Build

https://aiblewmymind.substack.com/p/claude-managed-agents-explained-demo
1•dariacupareanu•3m ago•1 comments

What do you think will be the next social media?

1•iNeedMoneyFast•3m ago•0 comments

Intel 486 CPU announced April 10, 1989

https://dfarq.homeip.net/intel-486-cpu-announced-april-10-1989/
1•jnord•5m ago•0 comments

Show HN: Apfel-Chat – Private, Local, Native AI Chat

https://apfel-chat.franzai.com/
1•franze•5m ago•0 comments

Anastasia (1997) live action reference material

https://lostmediawiki.com/Anastasia_(partially_found_live-action_reference_material_for_Don_Bluth...
1•hyperific•5m ago•0 comments

Show HN: OCP v3.4 – Share your Claude Pro/Max subscription over LAN ($0 extra)

https://github.com/dtzp555-max/ocp
1•dtzp555-max•6m ago•0 comments

Why Aren't We Uv Yet?

https://aleyan.com/blog/2026-why-arent-we-uv-yet/
1•aleyan•8m ago•0 comments

JPLY BBS Portal

https://amjp.psy-k.org/JPLY_BBS/JPLYBBSINFO.html
1•bitbasher•12m ago•0 comments

Safer Casting in C – With Zero Runtime Cost – Making Casts Visible, Auditable

https://medium.com/@yair.lenga/safer-casting-in-c-with-zero-runtime-cost-making-casts-visible-aud...
4•yairlenga•13m ago•1 comments

World's Longest Outdoor Escalator – 3k-Feet-Long – Opens in China

https://www.smithsonianmag.com/smart-news/the-worlds-longest-outdoor-escalator-just-opened-in-chi...
1•bookofjoe•16m ago•0 comments

Revisiting and Optimising go-iso8601-duration

https://xnacly.me/posts/2026/revisiting-and-optimising-goiso8601duration/
1•xnacly•18m ago•0 comments

Google Discusses Digital PR Impact on AI Recommendations

https://www.searchenginejournal.com/google-discusses-digital-pr-impact-on-ai-recommendations/559864/
1•doener•18m ago•0 comments

Companies Are Desperately Seeking 'Storytellers' (2025)

https://www.wsj.com/articles/companies-are-desperately-seeking-storytellers-7b79f54e
1•doener•19m ago•0 comments

Why Every Sprint Takes Longer Than the Last in AI-Generated Codebases

https://vibecodiq.com/ai-chaos/pains/delivery-slowdown
1•haasted•20m ago•0 comments

Top Predictions to Inform 2026 Comms Strategies

https://www.gartner.com/en/communications/research/communications-predictions
1•doener•20m ago•0 comments

White House staff told not to place bets on prediction markets

https://www.bbc.co.uk/news/articles/cgld65x396go
3•chrischapman•21m ago•0 comments

Instant space switching on macOS with a keyboard shortcut

https://github.com/andrewyur/iss
1•fanf2•26m ago•0 comments

Show HN: Do All the Things

https://www.doallthethings.app/
2•brainbun•27m ago•1 comments

Show HN: Sleek Analytics – See who's on your site. Right now.

https://getsleek.io
4•nazbasho•31m ago•0 comments

Virtual Schlüsselgerät 41

https://sg41.virtualcolossus.co.uk/VirtualSG41/
3•nixass•31m ago•0 comments

Show HN: I built a canvas where AI agents design with you

https://designagents.app/blog/what-if-your-design-team-was-made-of-ai-agents
2•Alpn13•32m ago•1 comments

New VENOM phishing attacks steal senior executives' Microsoft logins

https://www.bleepingcomputer.com/news/security/new-venom-phishing-attacks-steal-senior-executives...
1•anonhaven•32m ago•0 comments

Can anyone confirm if this is HappyHorse?

https://www.happyhorse-ai.app/
1•watree•36m ago•0 comments

Feds Try Secret Grand Jury to Unmask Reddit ICE Critic

https://theintercept.com/2026/04/10/reddit-ice-protest-grand-jury/
10•cdrnsf•36m ago•1 comments

Old habits die hard: Microsoft tries to limit our options, this time with AI

https://blog.mozilla.org/en/mozilla/ai/microsoft-copilot-ai-user-choice/
7•01-_-•38m ago•0 comments

FBI used iPhone notification data to retrieve deleted Signal messages

https://9to5mac.com/2026/04/09/fbi-used-iphone-notification-data-to-retrieve-deleted-signal-messa...
30•01-_-•39m ago•8 comments