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.

NSW anti-protest laws were rushed through to keep the peace. They've failed

https://www.smh.com.au/politics/nsw/nsw-anti-protest-laws-were-rushed-through-to-keep-the-peace-t...
1•keepamovin•5m ago•0 comments

Eclipse: A Hexagonal Strategy Game

https://www.hermandaniel.com/projects/20260206-eclipse/
1•kekqqq•6m ago•0 comments

Swiss Venture Capital Report 2026 [pdf]

https://www.startupticker.ch/assets/files/attachments/VCReport_2026_web.pdf
1•nairboon•6m ago•0 comments

Generate PowerPoint slides using your own templates

https://github.com/jacobbergdahl/artemis-slides
1•jacob_bergdahl•8m ago•0 comments

Show HN: Cell-based ingress routing from scratch (github.com/gvquiroz)

https://github.com/gvquiroz/cell-routing-from-scratch
1•gvquiroz•8m ago•0 comments

Finding My Spark Again: A Month with Codex

https://dragsbaek.tech/finding-my-spark-again-a-month-with-codex/
1•jandragsbaek•9m ago•1 comments

Randomness in Agentic Evals

https://arxiv.org/abs/2602.07150
1•andre15silva•10m ago•0 comments

A Brief History of App Icons from Apple's Creator Studio

https://blog.jim-nielsen.com/2026/history-of-creator-studio-icons/
1•onurkanbkrc•15m ago•0 comments

Show HN: Sigilla, I built a Pocket replacement because Mozilla killed it

1•northerndev•19m ago•1 comments

Vault-conductor: SSH agent serving keys from Bitwarden Secrets

https://github.com/pirafrank/vault-conductor
1•sibellavia•19m ago•0 comments

Fix Pixelated Photos

https://fix-pixelated-photos.com/
1•obuok•19m ago•0 comments

AI beige slop: why does most auto‑generated UI looks the same

https://www.automotion.dev/
1•JonathanLiem•22m ago•3 comments

My Experience at the North American Haskell Hackathon AmeriHac

https://thedeveloper101.github.io/posts/2026/02/amerihac-experience/
2•internet_points•30m ago•0 comments

Plumber: Open-Source Compliance Scanner for GitLab CI/CD Pipelines

https://github.com/getplumber/plumber
6•diviNeCall•31m ago•0 comments

Feature Proposal: .gitallow – A native allowlist for Git tracking

https://gist.github.com/s-celles/754728bbbe5312300982e2f2045f5f03
1•scls19fr•33m ago•0 comments

Show HN: I built a 20MB PDF editor using Flutter (vs 300MB industry standard)

https://revpdf.com/blog/how-i-built-a-15mb-pdf-editor
2•pawandeepsingh•35m ago•1 comments

The conquest of happiness by Bertrand Russell (1930)

https://gutenberg.org/cache/epub/77894/pg77894-images.html
1•petethomas•35m ago•0 comments

AI Startups and GPUs

1•hpcaitech•37m ago•0 comments

The Software Games: Endless Grind

https://newsletter.manager.dev/p/the-software-game-endless-grind
1•AntonZ234•39m ago•0 comments

Chinese Peptides Are the Latest Biohacking Trend in the Tech World

https://www.nytimes.com/2026/01/03/business/chinese-peptides-silicon-valley.html
2•olalonde•39m ago•1 comments

AI or Not Quiz

https://en.wikipedia.org/wiki/Wikipedia:AI_or_not_quiz
2•ffins•39m ago•1 comments

Large Language Model Reasoning Failures

https://arxiv.org/abs/2602.06176
1•mpweiher•40m ago•0 comments

Discord – How to compromise user privacy to 'protect children'

https://skids.fail/discord-how-to-compromise-user-privacy-to-protect-children/
2•tufo•40m ago•0 comments

AI helps scam centers evade crackdown in Asia, dupe more victims

https://www.bloomberg.com/news/articles/2026-02-09/ai-helps-scam-centers-evade-clampdown-in-asia-...
2•teleforce•41m ago•0 comments

Simulation and Modelling to Understand Change lecture notes

https://bookdown.org/manuele_leonelli/SimBook/index.html
1•hamburgererror•45m ago•0 comments

The age of the AI boss is coming – more devious than humans

https://www.thetimes.com/business/economics/article/the-age-of-the-ai-boss-is-coming-more-devious...
1•petethomas•46m ago•0 comments

We Should Separate Memorization from Copyright

https://arxiv.org/abs/2602.08632
1•50kIters•47m ago•0 comments

Show HN: User trust monitoring based on explicit vouch/denounce declarations

https://github.com/onurkanbakirci/vouch-monitor
1•onurkanbkrc•48m ago•0 comments

Obama on public television on community organizing

https://www.youtube.com/watch?v=iuOGEGz3PmI
1•marysminefnuf•48m ago•0 comments

Most Indians don't read for pleasure – so why are there 100 literature fests?

https://www.theguardian.com/global-development/2026/feb/09/books-india-literature-festivals-readers
1•thunderbong•51m ago•1 comments