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

Comments

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

Height-Safe Peptides for Muscle Growth

https://peptideunlock.com/blog/height-safe-peptides-for-muscle-growth-clavicular-inspired-protoco...
1•avirflux•29s ago•0 comments

The AI pro­ductiv­ity take-off is finally vis­ible

https://ft.pressreader.com/article/281857239993429
1•simonebrunozzi•1m ago•0 comments

San Francisco's 24-Hour Diner Stops the Cosmic Clock (2023)

https://www.altaonline.com/culture/food-drink/a44939075/san-franciscos-24-hour-diner-silver-crest...
1•NaOH•2m ago•0 comments

Large language models provide unreliable answers about public services

https://www.computerweekly.com/news/366638829/Large-language-models-provide-unreliable-answers-ab...
1•ohjeez•2m ago•0 comments

Why Didn't AI Replace Novelists?

https://old.reddit.com/r/Fantasy/comments/1r1csca/why_didnt_ai_replace_novelists/
1•dsr_•3m ago•0 comments

Get a portable monitor, they're great

https://davidgerard.co.uk/blockchain/2025/02/11/get-a-portable-monitor-theyre-great/
2•bariumbitmap•3m ago•0 comments

Hilbert Map of IPv6 address space

https://observablehq.com/@vasturiano/hilbert-map-of-ipv6-address-space
1•miyuru•5m ago•0 comments

Show HN: Idea validation using real problem discussions

https://startupmapafrica.com/idea-validation
1•muriithiKabogo•7m ago•0 comments

First Paying Customer in 24h

https://www.founderspace.work
1•VladCovaci•8m ago•1 comments

Failure Intelligence for AI Systems

https://github.com/prateekdevisingh/kakveda
1•prateekdalal•8m ago•1 comments

Maestro – Autonomous dev platform with multi-reviewer AI safety pipeline

https://www.maestro-orchestrator.dev
1•Romricci•8m ago•0 comments

Which AI deep research agent is the current best?

https://newsletter.aimuscle.com/p/which-ai-deep-research-is-the-best
1•Sherveen•8m ago•0 comments

US Military used Anthropic's AI model Claude in Venezuela raid, report says

https://www.theguardian.com/technology/2026/feb/14/us-military-anthropic-ai-model-claude-venezuel...
1•krunck•8m ago•0 comments

Lobster: My Personal AI Assistant

https://www.omarknows.ai/p/meet-lobster-my-personal-ai-assistant
1•mooreds•8m ago•0 comments

Shielded x402 – private agent transactions

https://github.com/nhestrompia/shielded-x402
1•nhestrompia•8m ago•1 comments

Building a FOSS live streaming camera

https://blog.brixit.nl/building-a-custom-live-streaming-camera/
2•todsacerdoti•8m ago•0 comments

Website can help you find content that isn't AI-generated

https://www.theshortcut.com/p/this-website-can-help-you-find-content-that-isnt-ai-generated
1•dangle1•10m ago•0 comments

Find the Peak of an Array in C

https://lautarolobo.xyz/blog/find-peak-of-array-c/
1•lautarolobo•10m ago•0 comments

A 3-Instruction Forth for Embedded Systems Work (1991)

https://pages.cs.wisc.edu/~bolo/shipyard/3ins4th.html
2•tosh•11m ago•0 comments

Cognitive Scientist Writes a Startling Play About A.I. Authoritarianism

https://www.nytimes.com/2026/02/16/opinion/play-ai-authoritarianism.html
2•zzzeek•11m ago•0 comments

The Internet's Nihilism Crisis

https://www.theatlantic.com/technology/2026/02/internet-nihilism-crisis/686010/
1•throw0101a•12m ago•2 comments

Cherry, a filter for AI generated PRs

https://cherry.gethopp.app/
2•iparaskev•12m ago•1 comments

He worked on Wall Street for nearly 50 years

https://www.cnn.com/2026/02/16/business/us-stocks-dow-howard-silverblatt
1•mooreds•13m ago•0 comments

You Are Not Defined by Your Phone Number. It's OK to Change It

https://www.nytimes.com/2026/02/10/magazine/changing-your-phone-number.html
1•mooreds•13m ago•0 comments

Hubble Captures Clearest View Yet of Egg Nebula

https://www.sci.news/astronomy/hubble-egg-nebula-14546.html
1•bookofjoe•15m ago•0 comments

Can agentic coding raise the quality bar?

https://lpalmieri.com/posts/agentic-coding-raises-quality/
1•Philpax•15m ago•0 comments

Towards Fearless Macros

https://lambdaland.org/posts/2023-10-17_fearless_macros/
1•fanf2•17m ago•0 comments

China biotech licensing boom to hit record in 2026 as pipeline swells

https://www.reuters.com/sustainability/climate-energy/china-biotech-licensing-boom-hit-record-202...
1•xnhbx•18m ago•0 comments

Show HN: Woven-ECS – Multithreaded ECS framework for the web

https://woven-ecs.dev/
1•willholt•19m ago•0 comments

Show HN: MCP server that gives AI agents real interactive terminal sessions

https://github.com/amol21p/mcp-interactive-terminal
2•sleepycoder21•20m ago•0 comments