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

Comments

zoezoezoezoe•7mo 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•7mo 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.

Console.text() – SMS alerts when code executes

1•Noel04•6m ago•0 comments

List of Mcface Spoofs

https://en.wikipedia.org/wiki/List_of_Mcface_spoofs
1•minajevs•9m ago•0 comments

CVE-2025-66491: Traefik's "Verify=on" Turned TLS Off

https://aisle.com/blog/cve-2025-66491-traefiks-verifyon-turned-tls-off
1•abhisek•9m ago•0 comments

Password Complexity is a Lie – Here’s What Actually Keeps You Safe

https://www.youtube.com/watch?v=6R1DfG8HiCs
1•sipofwater•11m ago•0 comments

Live by the Law or Die on the Cross

https://www.tabletmag.com/sections/news/articles/live-law-die-cross-israel
1•KnuthIsGod•12m ago•2 comments

How to Use N8n to Sync Google Calendar Automatically

https://www.indiehackers.com/post/how-to-use-n8n-to-sync-google-calendar-automatically-a6BYizPK8i...
1•plakhlani2•13m ago•0 comments

•AI Surveys• New Startup - Surveyi

https://surveyi.app/
1•dickiedogbrands•16m ago•1 comments

Show HN: MSB/MIB – A mobility layer on top of GDP and UBI (GitHub)

https://github.com/mroblesg88/msb-mib-gross-mobility
1•juanmrobles•19m ago•0 comments

Why Most Redesigns Fail: Lessons from Sweden's Traffic Switch

https://mikajovicic.com/writing/the-myth-of-big-redesign/
2•violinar•25m ago•0 comments

TailAdmin Laravel is now available: a Tailwind CSS dashboard kit for Laravel

https://github.com/TailAdmin/tailadmin-laravel
1•vinishbhaskar•25m ago•1 comments

Show HN: OgBlocks – UI Library for Non-CSS Developers

https://ogblocks.dev/
1•karanzkk•26m ago•0 comments

How do salespeople use AI?

https://twitter.com/bayka/status/1998650248051523846
2•Bayram•29m ago•1 comments

The Unwritten Laws of Systems Engineering (1994)

https://evansopticalengineering.com/Page00/sysenlaw.htm
3•o4c•33m ago•0 comments

Quilter's AI designed a Linux computer that booted on the first try

https://venturebeat.com/ai/quilters-ai-just-designed-an-843-part-linux-computer-that-booted-on-the
3•guiambros•33m ago•1 comments

German government US authorities have access to EU cloud data (heise.de)

https://www.heise.de/news/Gutachten-US-Behoerden-haben-weitreichenden-Zugriff-auf-europaeische-Cl...
2•m-akcan•36m ago•1 comments

Trump Admin Is Preparing to Revoke Visas of Critics of Elon Musk's Twitter

https://zeteo.com/p/trump-revoke-visas-breton-ahmed-twitter-musk
3•mdhb•36m ago•0 comments

How HTML Changes in ePub

https://htmhell.dev/adventcalendar/2025/11/
2•robin_reala•39m ago•0 comments

Show HN: Video Frame Extractor – Extract frames in the browser

https://www.blurimageonline.com/video-frame-extractor
1•teroquyiqwu•39m ago•1 comments

Dedicated GPU Server from Hetzner

https://www.hetzner.com/dedicated-rootserver/matrix-gpu/
3•Scotrix•44m ago•1 comments

The ivory tower of Platform Engineering

https://platformengineering.org/blog/the-ivory-tower-of-platform-engineering
2•gpi•45m ago•0 comments

On-Prem Backup Still Makes Sense

https://medium.com/@justinwang001/why-on-prem-backup-still-makes-sense-5723504c2d7b
3•jerrywjh•48m ago•0 comments

Exploration of basic human values in 38 million obituaries over 30 years [pdf]

https://moralitylab.bc.edu/wp-content/uploads/sites/192/2025/09/markowitz-et-al-an-exploration-of...
4•sipofwater•54m ago•1 comments

LLM-Powered Relevance Assessment for Pinterest Search

https://medium.com/pinterest-engineering/llm-powered-relevance-assessment-for-pinterest-search-b8...
1•tsenturk•59m ago•0 comments

The Cost of a Closure in C

https://thephd.dev/the-cost-of-a-closure-in-c-c2y
11•ingve•1h ago•0 comments

We are in the era of Science Slop (and it's exciting)

https://superposer.substack.com/p/we-are-in-the-era-of-science-slop
2•stared•1h ago•0 comments

Show HN: DailyMe–I built an RPG task tracker for ADHD son build self-disclpline

https://dailyme.app/
3•nananono•1h ago•1 comments

Beyond the FGC-9: How the Urutau Redefines the Global 3D-Printed Firearms

https://gnet-research.org/2025/01/08/beyond-the-fgc-9-how-the-urutau-redefines-the-global-3d-prin...
1•f1shy•1h ago•0 comments

Project Chrono an Open Source Multi-Physics Simulation Engine

https://projectchrono.org/
4•lorenzohess•1h ago•0 comments

What I Look for in AI-Assisted PRs

https://benjamincongdon.me/blog/2025/12/10/What-I-Look-For-in-AI-Assisted-PRs/
1•ingve•1h ago•0 comments

Show HN: Browser-based encryption tools with zero server-side processing

https://ikrypt.com/
1•digi_wares•1h ago•0 comments