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.

Show HN: Free web search for AI agents via MCP (You.com)

https://docs.you.com/developer-resources/mcp-server
1•bsparker•4m ago•0 comments

Fighting Cognitive Debt in Agentic Code with Video Overviews

https://enigmeta.com/posts/2026-02-19-video-overviews-for-agentic-code/
1•fdb•5m ago•0 comments

Opencode Commit: "Anthropic legal requests"

https://github.com/anomalyco/opencode/commit/973715f
2•isehgal•6m ago•1 comments

An ARM Homelab Server, or a Minisforum MS-R1 Review

https://sour.coffee/2026/02/20/an-arm-homelab-server-or-a-minisforum-ms-r1-review/
3•neelc•12m ago•2 comments

RNA comes close to copying itself (with only 45-nucleotides)

https://www.science.org/doi/10.1126/science.aeg3559
4•marojejian•13m ago•0 comments

OpenEnv in Practice: Evaluating Tool-Using Agents in Real-World Environments

https://huggingface.co/blog/openenv-turing
1•gmays•14m ago•0 comments

LLMs create their smallest transformer for 10-digit addition

https://twitter.com/DimitrisPapail/status/2024555561199480918
1•marojejian•15m ago•1 comments

Show HN: I maintain Valkey GLIDE – built a Node queue doing 48k jobs/s

https://github.com/avifenesh/glide-mq
1•anotherCodder•16m ago•0 comments

A Scheme Shell (1994) [pdf]

https://publications.csail.mit.edu/lcs/pubs/pdf/MIT-LCS-TR-635.pdf
1•todsacerdoti•16m ago•0 comments

MuMu Player (NetEase) silently runs 17 reconnaissance commands every 30 minutes

https://gist.github.com/interpiduser5/547d8a7baec436f24b7cce89dd4ae1ea
1•interpidused•17m ago•0 comments

When Models Manipulate Manifolds: The Geometry of a Counting Task [pdf]

https://arxiv.org/abs/2601.04480
1•vinhnx•17m ago•0 comments

Evaluating the Hardest CS Problems in the Age of LLMs

https://frontier-cs.org/blog/evaluation/
1•matt_d•21m ago•0 comments

Show HN: 6cy v0.3.0 – A streaming-first binary archive format

https://github.com/byte271/6cy/releases/tag/v0.3.0
1•yihac1•21m ago•0 comments

Why consult of UK police on biometrics watchdog leaves too many questions

https://www.biometricupdate.com/202602/why-the-latest-consultation-on-uk-police-biometrics-watchd...
1•WaitWaitWha•22m ago•0 comments

The Hawara Labyrinth – Preservation and Recovery Master Plan

https://archaeologicalrescue.org/hawara/
1•FloorEgg•23m ago•0 comments

Février 2026: L'IA s'auto-construit-elle et bouleverse-t-elle déjà vos RH?

https://nadiaaccompagne.substack.com/p/fevrier-2026-lia-sauto-construit
1•NadiaAccompagne•27m ago•0 comments

The Most Concrete Indicator of a Housing Crisis

https://shonczinner.substack.com/p/the-most-concrete-indicator-of-a
2•kjshsh123•27m ago•1 comments

Big Tech Says Generative AI Will Save the Planet. It Doesn't Offer Much Proof

https://www.wired.com/story/big-tech-says-generative-ai-will-save-the-planet-it-doesnt-offer-much...
4•g-b-r•28m ago•1 comments

Dmux: Parallel agents with tmux and worktrees

https://dmux.ai/
2•handfuloflight•29m ago•0 comments

Optimise Your LLM Workflow with the Chief Wiggum Workflow

https://etoxin.net/wiggum/
1•etoxin•31m ago•0 comments

3,170× More Energy to Create GPT‑4 Than an 18‑year‑old

https://lopespm.com/notes/2026/02/20/human_vs_artifical_intelligence.html
2•lopespm•32m ago•0 comments

AskVerdict – AI agents debate your decisions before you commit

https://www.askverdict.ai/
1•thegdsks•33m ago•1 comments

From Milk to 3D Printing: A Sustainable Journey of Upcycled Proteins

https://www.mdpi.com/2504-3900/136/1/4
1•PaulHoule•33m ago•0 comments

Meta cuts staff stock awards for a second straight year

https://www.ft.com/content/071d5503-b3dc-46bc-bc55-28f92dbdd42a
4•rain_iwakura•34m ago•1 comments

Rumors of AGI's arrival have been greatly exaggerated

https://garymarcus.substack.com/p/rumors-of-agis-arrival-have-been
1•doener•40m ago•0 comments

Show HN: Locus – AI agents that ship your code

https://github.com/asgarovf/locusai
1•asgarovf•42m ago•0 comments

Show HN: Arc Raiders companion – Quest tracker,maps,crafting and bots weaknesses

https://arcraiders.website
1•wainguo•43m ago•1 comments

Dishonest People Self-Select into Public Service (In China) [pdf]

http://www.sdwang.org/uploads/4/4/8/5/44856715/bad_apples_1119.pdf
5•marojejian•45m ago•1 comments

New GoDaddy Terms of Service: we no longer serve "consumers"

https://domainnamewire.com/2026/02/19/new-godaddy-terms-of-service-we-no-longer-serve-consumers/
2•bhartzer•45m ago•0 comments

Violent and non-violent death tolls for the Gaza conflict: new primary evidence

https://www.thelancet.com/journals/langlo/article/PIIS2214-109X(25)00522-4/fulltext
3•tareqak•45m ago•1 comments