frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

Hookbin – a disposable webhook and request inspector

https://hookbin.sebastiaan-ba3.workers.dev
1•doormatcapital•1s ago•0 comments

1•andrewstuart•7s ago

Urbanloop – Green Transport – Smart Sustainable Mobility

https://urbanloop.fr/en/
1•ZeljkoS•26s ago•0 comments

Pentagon Influencer Called Liberal Women 'Pestilence' Who Will End Civilization

https://www.wired.com/story/a-pentagon-influencer-called-liberal-women-a-pestilence-who-will-end-...
1•rbanffy•6m ago•1 comments

A chiral aperiodic monotile with Fibonacci monodromy [pdf]

https://pingyou.com/papers/fibonacci-monotile.pdf
1•jjbowan•8m ago•0 comments

Show HN: HairColorChangeAI – AI hair color try-on in the browser

https://haircolorchangeai.com/
1•StephenDong7•9m ago•0 comments

Engineering calculators for electronics, geometry and code

https://www.pockeng.com/
1•levario•16m ago•0 comments

I Outsource My Biggest Decisions to a Chatbot – and None of the Small Ones

https://laurenleek.substack.com/p/why-i-outsource-my-biggest-decisions
1•temp7000•16m ago•1 comments

AAPR: Absolute-Address Partial Residency

https://zenodo.org/records/22190281
1•NegativeAbsence•16m ago•0 comments

What von der Leyen left out of her Congress of Europe pitch

https://www.ftm.eu/newsletters/what-von-der-leyen-left-out-of-her-congress-of-europe-pitch
2•robtherobber•17m ago•0 comments

Preparing your website or app for Black Friday

https://medium.com/@therealcomtom/preparing-your-website-or-app-for-black-friday-ee0b798d7bfc
1•comtom•21m ago•0 comments

Practical Secrets Extraction Against Black-Box LLMs

https://arxiv.org/abs/2609.36941
1•sbulaev•23m ago•0 comments

Software Engineering After Code

https://pooyam.dev/software-engineering-after-code
1•py4•23m ago•0 comments

How to Manage a Team of AI Agents at Month-End

https://adaptiveinc.com/blog/01a0d880/how-to-manage-a-team-of-ai-agents-at-month-end
1•fyying•24m ago•0 comments

I ran a 397B-parameter model on 20 GPUs with 16 GB each

https://diljitpr.net/blog-post-2026-09-30-running-397b-model-on-20-gpus-peer-to-peer.html
2•diljitr•26m ago•0 comments

The death of web development education

https://molily.de/web-dev-education/
1•roosgit•29m ago•0 comments

Ulua: Pure Rust Implementation of the Luau Language with JIT and WebAssembly

https://github.com/webc-site/ulua
1•rmw-link•32m ago•1 comments

Meaning Ops: Seven Verbs for Working on Meaning with a Language Model

https://utopai.substack.com/p/meaning-ops
1•cyberneticc•35m ago•1 comments

How to Future-Proof Your Career in the Age of AI

https://www.noemamag.com/why-a-liberal-arts-education-will-soon-be-more-valuable-than-ever/
2•plastic-enjoyer•35m ago•0 comments

Show HN: Built agent orchestration system, Director->{workers }

https://github.com/mastaan66/foreman
1•mastaansk•37m ago•0 comments

Show HN: I made Jev to talk

https://github.com/zie1ony/jev-talks
2•zie1ony•37m ago•0 comments

Show HN: Melete – an open-source alternative to OpenAI's Dots

https://github.com/ychampion/melete
1•yashasgunderia•39m ago•0 comments

Eleven v4 and Eleven v4 Turbo released

https://twitter.com/ElevenLabs/status/2104572127617994917
1•soltanov•40m ago•0 comments

Zero-Growth Stack, Real Gains: How Stack Allocation Can Save 10% CPU in Go

https://www.uber.com/in/en/blog/zero-growth-stack/
1•birdculture•40m ago•0 comments

How to Make Money from OpenAI DevDay 2026

https://aiextracash.com/tools/chatgpt/openai-devday-2026-money-opportunities/
1•RealLeon•42m ago•0 comments

Show HN: GeoGrandPrix – daily F1 geography game, can you beat your friends?

https://geograndprix.com/
1•olijboyd•44m ago•0 comments

Do Not Publish (FINAL_final_v2)

https://franciscocarloserra.github.io/do-not-publish/#win95.chat.office.patience.none.buzz.609930...
1•FranciscoCarlos•44m ago•0 comments

Ubicloud Machine Images

https://www.ubicloud.com/blog/announcing-ubicloud-machine-images
2•pykello•47m ago•0 comments

Eighteen-Wheeler E-Trucks Are China's Answer to Soaring Global Diesel Prices

https://www.bloomberg.com/news/features/2026-09-29/eighteen-wheeler-e-trucks-are-china-s-answer-t...
3•xbmcuser•48m ago•0 comments

The Agents Are Among Us

https://taoofmac.com/space/blog/2026/09/30/0735
1•rcarmo•50m ago•0 comments