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.

DeepSeek OCR 2

https://huggingface.co/deepseek-ai/DeepSeek-OCR-2
1•fzysingularity•2m ago•0 comments

Embrace Cultural Creative Destruction

https://www.betonit.ai/p/embrace-cultural-creative-destruction
1•paulpauper•5m ago•0 comments

Writing a Lisp JIT Interpreter with GraalVM Truffle

https://kyo.iroiro.party/en/posts/emacs-lisp-interpreter-with-graalvm-truffle/
1•todsacerdoti•7m ago•0 comments

Kimi Released Kimi K2.5, Open-Source Visual SOTA-Agentic Model

https://www.kimi.com/blog/kimi-k2-5.html
1•nekofneko•7m ago•0 comments

Show HN: Paper → Code → Jupyter Notebook (generate and run code while reading)

https://deeptutor.knowhiz.us
1•loganye•11m ago•0 comments

Show HN: ARM – NPM for AI coding assistant resources

https://github.com/jomadu/ai-resource-manager
1•jomadu•16m ago•0 comments

Goldman's Solomon Sees 'Slower' Trajectory for Talent Growth

https://www.bloomberg.com/news/articles/2026-01-27/goldman-s-solomon-sees-slower-trajectory-for-t...
1•petethomas•17m ago•0 comments

Title: Show HN: Keryx – Encrypted File Transfer with S3/P2P/Relay and ML Routing

https://netviper.gr/keryx/
2•NetViper•18m ago•1 comments

Show HN: An OpenAI API compatible server that uses GitHub Copilot SDK for LLMs

https://github.com/RajatGarga/copilot-openai-server
1•ashtadmir•18m ago•0 comments

A History of Haggis

https://www.historytoday.com/archive/historians-cookbook/history-haggis
1•Petiver•21m ago•1 comments

Quake Ported to Three.js

https://mrdoob.github.io/three-quake/
1•memalign•22m ago•1 comments

Why Regulatory Scrutiny of AI Becomes Inevitable

https://www.aivojournal.org/why-regulatory-scrutiny-of-ai-becomes-inevitable/
1•businessmate•25m ago•1 comments

The Case for Upending World Trade

https://www.foreignaffairs.com/united-states/case-upending-world-trade
2•TMWNN•27m ago•0 comments

The Long History of Technologically Assisted Writing

https://lithub.com/inside-the-long-history-of-technologically-assisted-writing/
1•benbreen•30m ago•0 comments

First Contact with America

https://novum.substack.com/p/first-contact-with-america
1•paulpauper•34m ago•0 comments

Claude's Constitutional Structure

https://thezvi.substack.com/p/claudes-constitutional-structure
2•paulpauper•35m ago•0 comments

Tim Cook Attends Screening of Propaganda for Authoritarian's Wife

https://pxlnv.com/linklog/cook-melania/
7•HotGarbage•35m ago•1 comments

Apple 'Honours' Martin Luther King While Working Against His Legacy

https://pxlnv.com/linklog/apple-mlk/
3•HotGarbage•36m ago•0 comments

Show HN: An Internationalization GitHub Action to Replace Crowdin with LLMs

https://github.com/i18n-actions/ai-i18n
1•cport1•41m ago•1 comments

Quaternion Algebras

https://jvoight.github.io/quat.html
1•teleforce•44m ago•0 comments

Show HN: Drum machine VST made with React/C++

https://okaysynthesizer.com
1•tabakd•46m ago•0 comments

Why IDE-Level AI Rules Will Always Lose to Model-Level Capabilities

https://lellansin.github.io/2026/01/27/Why-Cursor-Rules-Failed-and-Claude-Skill-Succeeded/
1•lellansin•46m ago•1 comments

Benchmarking the JDBC Bottleneck in Trino

https://www.starburst.io/blog/benchmarking-the-jdbc-bottleneck-in-trino/
1•abadid•46m ago•1 comments

Reactive Custom Web Scratchpad

https://qeditor.dev/
1•dpweb•51m ago•0 comments

Tell HN: Ask your AI, "What can you tell me that you know about me?" to see ...

2•marcuswestin•53m ago•0 comments

Show HN: A Local OS for LLMs. MIT License. Zero Hallucinations. (Not Crank)

https://github.com/merchantmoh-debug/Remember-Me-AI
2•MohskiBroskiAI•54m ago•0 comments

Japan's Debt Bomb Is About to Explode and Hit the US [video]

https://www.youtube.com/watch?v=CGoYHWT-0Tk
2•thelastgallon•58m ago•1 comments

Show HN: Soka – The Golden Rule Licensed Under the GNU General Public License

https://github.com/bfinan/soka
2•brendanfinan•1h ago•0 comments

Show HN: Bingsan – Apache Iceberg REST Catalog in Go (24k rps, multi-node)

https://teampaprika.github.io/bingsan/en/
1•youngbum•1h ago•0 comments

Ask HN: How do you maintain your health while coding?

2•anirudhviswa•1h ago•0 comments