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

Comments

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

Reframing Energy for the Age of Electricity

https://reframing-energy-tool.electrotech-revolution.com/
1•gwd•3m ago•0 comments

The Flawed V02 Max Craze

https://erictopol.substack.com/p/the-flawed-v02-max-craze
1•simonebrunozzi•4m ago•0 comments

Sam Altman: the deal with the Pentagon "was definitely rushed"

https://xcancel.com/sama/status/2027911640256286973
2•thesdev•9m ago•0 comments

Show HN: Django-CRM – Open-Source CRM with PostgreSQL RLS Multi-Tenancy

https://github.com/MicroPyramid/Django-CRM
1•ashwin31•10m ago•1 comments

Saturday Night Live mocking people with disabilities

https://twitter.com/nbcsnl/status/2028028269610536977
3•mellosouls•10m ago•1 comments

No one wants to read your AI slop

https://pluralistic.net/2026/03/02/nonconsensual-slopping/#robowanking
4•flancian•11m ago•0 comments

Show HN: Lyria.run – Music generation powered by Google's Lyria 3

https://lyria.run/
1•funcin•12m ago•0 comments

Real-time global intelligence dashboard – AI-powered news aggregation

https://worldmonitor.app/
1•saberd•14m ago•0 comments

AI helps break the cost barrier to COBOL modernization

https://claude.com/blog/how-ai-helps-break-cost-barrier-cobol-modernization
3•nsoonhui•18m ago•0 comments

Browser Use vs. Claude Computer Use

https://techstackups.com/comparisons/browser-use-vs-claude-computer-use/
1•sixhobbits•19m ago•0 comments

Microsoft bans the word "Microslop" on its Discord, then locks the server

https://www.windowslatest.com/2026/03/02/microsoft-gets-tired-of-microslop-bans-the-word-on-its-d...
6•robtherobber•23m ago•2 comments

KlongPy

https://github.com/briangu/klongpy
1•tosh•24m ago•0 comments

Jolla phone – a full-stack European alternative

https://commerce.jolla.com/products/jolla-phone-sept-26
14•spinningslate•24m ago•5 comments

Show HN: Commitdog – Git on steroids CLI (pure Go, ~3MB binary)

https://aysdog.com/commitdog
4•anirbanfaith•29m ago•1 comments

Submission Deadline for 12th International Workshop on Plan 9 ends March 9 2026

http://iwp9.org/
2•nakedneuron•29m ago•0 comments

Vilayat-E Faqih

https://en.wikipedia.org/wiki/Guardianship_of_the_Islamic_Jurist
1•simonebrunozzi•30m ago•0 comments

Tailwind CSS UI Components

https://apexcodestudios.com
1•TheMashaBrand•32m ago•0 comments

Show HN: C7 – Pipe up-to-date library docs into any LLM from the terminal

https://github.com/VedanthB/context7-cli
1•vedanthbora•32m ago•0 comments

Show HN: DailyWatch – Free video discovery across 8 regions

https://dailywatch.video/
1•ibrahimtxyz•33m ago•0 comments

Flowly – Make your Mac mouse scroll like a trackpad

https://flowlyapp.dev/
2•simonij•35m ago•2 comments

Show HN: Swalpa – Spoken Kannada learning platform built with Antigravity

https://swalpa.org/games/
2•maurys•41m ago•2 comments

AWS data center hit by Iran

https://www.reuters.com/world/middle-east/amazons-cloud-unit-reports-fire-after-objects-hit-uae-d...
17•wayneshng•43m ago•2 comments

Why Tokyo's Metro Is Profitable and New York City's Isn't [video]

https://www.youtube.com/watch?v=HdJwAUdvlik
1•simonebrunozzi•44m ago•0 comments

Edwin Smith Papyrus

https://en.wikipedia.org/wiki/Edwin_Smith_Papyrus
2•Antibabelic•45m ago•0 comments

The world is running out of silver – and AI is accelerating the squeeze

https://www.mining.com/sponsored-content/the-world-is-running-out-of-silver-and-ai-is-acceleratin...
1•voice_of_genre•46m ago•1 comments

Show HN: Pure Rust IFC/BIM Viewer in the Browser via WebAssembly

https://bimifc.de/?file=bayarena_lighting.ifc
1•holg•49m ago•0 comments

Tangled: Our €3,8M seed round

https://blog.tangled.org/seed
1•thombles•50m ago•1 comments

Empirical evidence for consciousness without access

https://www.sciencedirect.com/science/article/pii/S0010027723001634
1•paraschopra•51m ago•0 comments

Show HN: Open-source expense and budget tracker with SQL API for AI agents

https://github.com/kirill-markin/expense-budget-tracker
2•MarkinK•52m ago•0 comments

Show HN: A Software-Defined USB PD Charger (ESP32, FPGA, Open Source Hardware)

https://www.crowdsupply.com/candysign/hummingkit
5•SDCforAll•53m ago•0 comments