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.

Data Anomalies in Search Console

https://support.google.com/webmasters/answer/6211453?hl=en
1•taubek•18s ago•0 comments

Understand business logic in your code with diagram

https://www.biral.io/
1•dipikasgp•40s ago•1 comments

The People Who Shun Super-Popular Pop Culture

https://www.theatlantic.com/culture/2026/03/pop-culture-hype-aversion/686312/
1•fortran77•1m ago•1 comments

Drivers May Soon Pay Taxes Based on How Much Their Car Weighs

https://www.autoblog.com/news/drivers-may-soon-pay-taxes-based-on-how-much-their-car-weighs
1•zzzeek•2m ago•0 comments

Starving Genies, from Kent Beck

https://tidyfirst.substack.com/p/starving-genies
1•reg_dunlop•5m ago•0 comments

AI facial analysis that runs in the browser (no uploads, 17 metrics)

https://realsmile.online
1•realsmile•6m ago•0 comments

Use Keycloak to Log into Google Workspace via SAML SSO (2024)

https://medium.com/@MszPro/use-keycloak-to-log-into-google-workspace-keycloak-25-saml-sso-a9b9923...
1•walterbell•8m ago•1 comments

Show HN: Cabinet – Kb+LLM (Like Paperclip+Obsidian)

https://runcabinet.com
6•Hilash•10m ago•6 comments

Myth of the AI Oracle

https://www.lawfaremedia.org/article/myth-of-the-ai-oracle
1•GiraffeNecktie•11m ago•0 comments

Consent, Intent, and Privacy in macOS

https://eclecticlight.co/2026/04/05/last-week-on-my-mac-consent-intent-and-privacy/
1•chmaynard•11m ago•0 comments

Google Fitbit is working on a screenless fitness band, to compete with Whoop

https://www.neowin.net/news/google-apparently-working-on-a-screenless-fitness-band-to-compete-wit...
1•bundie•12m ago•0 comments

Great Plains Shelterbelt

https://en.wikipedia.org/wiki/Great_Plains_Shelterbelt
1•xbryanx•13m ago•0 comments

Font Generator Free – 30 Unicode Font Styles for Social Media

https://fontgeneratorfree.online/
1•billyhe•13m ago•1 comments

Show HN: Crabby – Claude Code skill that reviews code like the Rust compiler

1•ekadet•14m ago•0 comments

A brain scan before a prescription? Geneva's bet on precision psychiatry

https://www.swissinfo.ch/eng/ai-and-medicine/a-brain-scan-before-a-prescription-genevas-bet-on-pr...
2•giuliomagnifico•17m ago•0 comments

CVE-1999-1218 – Amiga Unix allows access to files using finger

https://exchange.xforce.ibmcloud.com/vulnerabilities/522
1•TMWNN•18m ago•0 comments

Why make Claude talk like Rocky, question?

https://github.com/Tom1827/claude-rocky-skill
1•mft_•20m ago•0 comments

Revised: 6-Gate AI Pipeline for RSpec-to-Minitest Migration

https://augmentedcode.dev/multi-agent-pipeline-minitest-migration/
1•viktorianer•22m ago•0 comments

Almost half of Gen Z women want to be Trad wives

https://edubirdie.com/blog/gen-z-women-are-done-chasing-girlboss-ranking-their-dream-lives
3•DivingForGold•27m ago•2 comments

Show HN: AI-agent instructions to restore Claude Pro/Max in OpenCode

https://github.com/jcubic/opencode-claude-plan
1•jcubic•28m ago•0 comments

Why domain specific LLMs won't exist: an intuition

https://simianwords.bearblog.dev/why-domain-specific-llms-wont-exist-an-intuition/
2•simianwords•29m ago•1 comments

Iguanaworks has closed down. USB Infrared hardware open source maker

http://iguanaworks.net/products/usb-ir-transceiver.html
11•ripe•31m ago•0 comments

Someone at BrowserStack Is Leaking Users' Email Address

https://shkspr.mobi/blog/2026/04/someone-at-browserstack-is-leaking-users-email-address/
20•m_km•35m ago•1 comments

Finnish sauna heat exposure induces stronger immune cell than cytokine responses

https://www.tandfonline.com/doi/full/10.1080/23328940.2026.2645467#abstract
3•Growtika•35m ago•0 comments

Can Anything Stop Kalshi?

https://thehustle.co/originals/can-anything-stop-kalshi
1•Anon84•35m ago•0 comments

Fine-tuning Whisper to my speech: 27% to 6.5% WER

https://vivekkairi.com/fine-tuning-whisper-for-atypical-speech-pattern/
1•vivekkairi•38m ago•0 comments

Anthropic, The Pentagon, and the Future of Autonomous Weapons – Odd Lots [video]

https://www.youtube.com/watch?v=_jYFDx6B9iU
1•mooreds•39m ago•0 comments

What Is Anthropic Thinking?

https://www.derekthompson.org/p/what-is-anthropic-thinking
1•mooreds•39m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
1•mooreds•40m ago•0 comments

ESP32-S3 PQC/ML-KEM/BLAKE3 Open Source Edge Firmware

https://www.cnx-software.com/2026/04/05/esp32-s3-gets-post-quantum-encryption-with-aethyr-edge-no...
2•the_hermetist•40m ago•0 comments