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

Comments

zoezoezoezoe•8mo 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•8mo 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: A pet link saver OSS project that keeps growing

https://linkversity.lol/
1•osdotsystem•1m ago•0 comments

Show HN: VS-1: an audio sample tournament sorter

https://github.com/alexfedosov/vs-1
2•alex_x•2m ago•0 comments

China Signals It Won't Give an Inch to the U.S. in Latin America

https://www.wsj.com/world/americas/china-signals-it-wont-give-an-inch-to-the-u-s-in-latin-america...
2•JumpCrisscross•2m ago•0 comments

Expanding in Three Dimensions [video]

https://www.youtube.com/watch?v=NEJZlGuWGV8
1•ColinWright•3m ago•0 comments

Chemicals found in English soil, including long-banned medical substances

https://www.theguardian.com/environment/2025/dec/03/chemicals-found-english-soil-toxins-medical-s...
1•PaulHoule•4m ago•0 comments

Russia Asks United States to Stop Pursuit of Fleeing Oil Tanker

https://www.nytimes.com/2026/01/01/us/politics/russia-oil-tanker-venezuela-us-pursuit.html
1•JumpCrisscross•4m ago•1 comments

Repeat Moviegoers Help Hollywood Eke Out a Slightly Better 2025

https://www.nytimes.com/2026/01/01/business/cinema-hollywood-2025-ticket-sales.html
1•JumpCrisscross•5m ago•0 comments

Language Server Protocol server for System/360 COBOL F (1968) and PL/I F (1965)

https://marketplace.visualstudio.com/items?itemName=ZaneHambly.ibm-system360-languages
2•rbanffy•8m ago•0 comments

We built LAN Orangutan, a lightweight network scanner

https://github.com/291-Group/LAN-Orangutan
1•291Group•9m ago•1 comments

The Heartbreak Machine: Nazis in the Echo Chamber [video]

https://media.ccc.de/v/39c3-the-heartbreak-machine-nazis-in-the-echo-chamber
1•Fnoord•10m ago•0 comments

Recursive Language Models: the paradigm of 2026

https://www.primeintellect.ai/blog/rlm
1•skhameneh•10m ago•0 comments

Sundas

https://sundaskhalid.substack.com/subscribe
1•Cat27groenland•11m ago•0 comments

Testing Frontier LLMs on Space Rangers 2 Text Quests

https://nikitakutz.substack.com/p/why-llms-fail-on-quest-games-any
1•chaoz_•12m ago•1 comments

Stonebraker: One size fits none: everything you learned in your DBMS class is wr

https://slideshot.epfl.ch/play/suri_stonebraker
1•fanf2•14m ago•0 comments

Can Bundler Be as Fast as Uv?

https://tenderlovemaking.com/2025/12/29/can-bundler-be-as-fast-as-uv/
2•ibobev•19m ago•0 comments

Parkinson's Law (1955) [pdf]

https://doc.cat-v.org/economics/parkinsons-law/the-economist-article.pdf
1•rrjjww•19m ago•0 comments

The Package Merge Algorithm

https://aniruddhadeb.com/cs/algorithms/package-merge
1•hairband_dude•20m ago•0 comments

A Path to Platform Engineering – Beginners Guide

https://www.zeitgeistofbytes.com/p/a-path-to-platform-engineering-beginners
2•paniq1991•20m ago•0 comments

Computer Science from Scratch: Interpreters, Art, Emulators, and ML in Python

https://computersciencefromscratch.com/
1•WoodenChair•22m ago•0 comments

God Mode UX: Why AI Agent Interfaces Will Look More Like StarCraft Than Slack

https://medium.com/sadasant/god-mode-ux-why-your-next-interface-will-look-more-like-starcraft-tha...
1•walterbell•26m ago•1 comments

Some Audiobooks Outselling Hardcovers

https://www.wsj.com/tech/personal-tech/listen-to-this-some-audiobooks-are-outselling-hardcovers-1...
2•bookofjoe•29m ago•1 comments

A silly diffuse shading model

https://lisyarus.github.io/blog/posts/a-silly-diffuse-shading-model.html
2•ibobev•29m ago•0 comments

Intelligence is not just about task completion

https://www.marble.onl/posts/intelligence_tasks.html
1•amarble•30m ago•0 comments

Straussian Memes: A Lens on Techniques for Mass Persuasion

https://www.lesswrong.com/posts/CAwnnKoFdcQucq4hG/straussian-memes-a-lens-on-techniques-for-mass-...
2•kp1197•31m ago•1 comments

PNGine: A WebGPU shader portability engine

https://hugodaniel.com/posts/introducing-pngine/
1•ibobev•31m ago•0 comments

What I Read in 2025

https://srajagopalan.substack.com/p/what-i-read-in-2025
1•neehao•32m ago•0 comments

Cognitive Diagnosis Framework for Evaluating Financial Large Language Models

https://arxiv.org/abs/2508.13491
2•gmays•32m ago•0 comments

Show HN: I'm student building best AI slide designer

https://smallailab.vercel.app/
2•ihsanf•33m ago•0 comments

How Rick Rubin taught me to be a better engineer

https://bytesizedchunks.net/blog/20260101/
1•mrdosija•33m ago•0 comments

Show HN: Hero section I've created for my landing page

https://typethink.ai
1•Yash16•38m ago•0 comments