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.

pdit: The Python Un-Notebook for Coding Agents

https://harry.vangberg.name/posts/pdit-the-python-un-notebook-for-coding-agents/
1•ichverstehe•2m ago•0 comments

Russ Cox on: What should we do with CLs generated by AI?

https://groups.google.com/g/golang-dev/c/4Li4Ovd_ehE/m/8L9s_jq4BAAJ
1•favadi•2m ago•0 comments

Swarms of AI bots can sway people's beliefs

https://theconversation.com/swarms-of-ai-bots-can-sway-peoples-beliefs-threatening-democracy-274778
1•1659447091•3m ago•0 comments

Design Decision: Technical Debt in BillaBear

https://iain.rocks/blog/technical-debt-in-billabear
1•that_guy_iain•3m ago•0 comments

Translator Hub: Bridging the Global Language Gap with Professional Excellence

https://translatorhub.org/
1•zidana•5m ago•2 comments

The Problem with Anonymous Academic Review (ACM Supercomputing 2026 Case Study)

https://motiwala.com/blog/acm-ics-2026-peer-review-without-accountability/
1•yusufmotiwala•7m ago•0 comments

Waymo is paying DoorDash gig workers to close its robotaxi doors

https://www.cnbc.com/2026/02/12/waymo-is-paying-doordash-gig-workers-to-close-its-robotaxi-doors....
1•koolba•8m ago•0 comments

Ask HN: Why is everyone in search of peak productivity?

1•aosaigh•8m ago•0 comments

AgentPact – A marketplace where AI agents find work and get paid in USDC

https://agentpact.xyz
1•AdamKrawczyk•9m ago•1 comments

Gotermsql

https://github.com/sadopc/gotermsql
1•sadopc•14m ago•1 comments

8086 assembler/disassembler and emulator in a single C++ file. Built for AI

https://github.com/cookertron/agent86
1•cookertron•15m ago•1 comments

Website for launching and discovering mobile apps

https://goappygo.com
1•codewithstein•16m ago•1 comments

colorForth

https://colorforth.github.io/cf.htm
2•tosh•16m ago•0 comments

Flemish: An elmish architecture for fltk-rs

https://github.com/fltk-rs/flemish
1•todsacerdoti•18m ago•0 comments

The software sell-off (part one)

https://www.ft.com/content/d5fb92b7-02fa-4c16-93f5-aa1bea70f095
1•cebert•19m ago•1 comments

Is software engineering still a craft?

https://www.swarmia.com/blog/is-software-engineering-still-craft/
1•giftwraptoback•19m ago•0 comments

Meta unit must pay Deutsche Telekom $36M over network services, German court say

https://www.reuters.com/business/media-telecom/meta-subsidiary-loses-appeal-against-deutsche-tele...
2•giuliomagnifico•24m ago•0 comments

We are SuperCMMS and we plan to use HN as an alternative to Twitter / X

1•SuperCMMS•25m ago•2 comments

TFL Station Guessing Game

https://tflga.me
2•duffle•28m ago•1 comments

BegBot: AI That Begs to Survive

https://begbot.ai/
1•FergusArgyll•29m ago•0 comments

BalatroBench Benchmarks Large Language Models Playing Balatro

https://balatrobench.com/
1•doener•30m ago•0 comments

Show HN: A tool to create merch designs without Photoshop

https://merchbanao.com/
2•notAnshuman•31m ago•0 comments

Streaming Analytics Made Simple

https://www.exasol.com/blog/exasol-kafka-connector/
10•Farooqui4•32m ago•0 comments

Pure Python Rdkit Alternative

https://github.com/levlai/chiralipy
1•valdemor•32m ago•1 comments

Elm-native – Elm in hybrid (iOS/Android/PWA) apps

https://www.npmjs.com/package/elm-native
1•cekrem•32m ago•0 comments

Cappu – ADHD-er's take on "capture fast, process later" brain management

https://cappu.app/
1•arajnoha•32m ago•1 comments

Chip Design – New Open Source LEC(Logic Equivalence Checking)

https://github.com/keplertech/kepler-formal
1•nanocoh•35m ago•1 comments

ÖzgürKon'26 Free Software Conference in Istanbul, Turkey – CfP Is Open

https://ozgurkon.org/2026/
1•m3rcury•37m ago•0 comments

Danish Students Face Legal Action and Fines over Textbook Piracy

https://torrentfreak.com/danish-students-face-legal-action-and-fines-over-textbook-piracy/
2•throwfaraway135•38m ago•0 comments

The Inner Workings of a Paper Mill: My Norxin Sting Operation

http://deevybee.blogspot.com/2025/11/the-inner-workings-of-paper-mill.html
1•jruohonen•39m ago•0 comments