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.

Deliberate AI Use

https://www.joshribakoff.com/blog/deliberate-ai-use/
1•joshribakoff•3m ago•1 comments

Mario Bros. In CSS (No JavaScript)

https://codepen.io/t_afif/pen/JoKYwXO
1•qingcharles•4m ago•0 comments

LLMs Outperform Data Scientists (2025)

https://presentofcoding.substack.com/p/llms-already-outperform-data-scientists
1•pajtai•5m ago•0 comments

Humans are just stochastic parrots

https://tinyclouds.org/humans/
1•cod1r•5m ago•0 comments

Show HN: PublisherLens – advertising platform intelligence and analytics

https://www.publisherlens.com/
1•SongDeYu•8m ago•1 comments

LogSentinel v3.9 – Ultra-Fast Enterprise Log Analyzer with Error Intelligence

https://gum.new/gum/cmkiotta6000t04l75xh0e0i9
1•Dev_Master•9m ago•1 comments

Show HN: Username Search – Free Username Checker and Generator

https://usernamesearch.io
1•SongDeYu•15m ago•0 comments

Built a Real Life Running Man Competition. Partner with Steve Will Do It?

https://runningman.live/
2•todaycompanies•15m ago•1 comments

Basis Universal v2

https://github.com/BinomialLLC/basis_universal
1•FrostKiwi•18m ago•1 comments

Hackers disrupt Iran state TV to support exiled crown prince

https://www.politico.com/news/2026/01/19/hackers-disrupt-iran-state-tv-to-support-exiled-crown-pr...
2•hentrep•18m ago•1 comments

NATS Console – Open-Source Web UI for Managing NATS JetStream

https://github.com/KLogicHQ/nats-console
1•makilan•18m ago•1 comments

Iran Death Toll Estimates

1•starkshift•19m ago•0 comments

Graphical Tricks in Classic Games

https://www.youtube.com/watch?v=w9dH7bfAznc
3•bane•24m ago•0 comments

DIY Paint Color Maker

https://old.reddit.com/r/Miniaturespainting/comments/1qgljpy/diy_paint_color_maker/
2•YeGoblynQueenne•25m ago•0 comments

How does a Mikrokator work [video]

https://www.youtube.com/watch?v=2zEeAzJq-CQ
2•o4c•25m ago•0 comments

Using File System for Context Engineering

https://arxiv.org/abs/2512.05470
1•manthangupta109•26m ago•1 comments

The most precise mechanical indicators ever made – The Mikrokator [video]

https://www.youtube.com/watch?v=_HIKmxHcxkg
3•o4c•26m ago•0 comments

Rain: "Cancelling Async Rust" – RustConf 2025

https://www.youtube.com/watch?v=zrv5Cy1R7r4
1•Brysonbw•41m ago•0 comments

Django 6.0 Tasks: a framework without a worker

https://www.loopwerk.io/articles/2026/django-tasks-review/
2•uneekname•42m ago•0 comments

Requiring 3D printers be equipped with certain blocking technologies

https://app.leg.wa.gov/billsummary/Home/NoScript
3•dymk•43m ago•4 comments

The "Kernel Contract": How PostgreSQL Decides What Goes in Core vs. Extension

https://dataarchipelago.substack.com/p/the-kernel-contract-why-logical-decoding
2•dataarchipelago•44m ago•0 comments

Metric-Registry

https://docs.base14.io/blog/metric-registry/
2•rnjn•46m ago•1 comments

Mastering the VCenter Control Plane: Optimization and Survival

https://www.rack2cloud.com/vcenter-control-plane-optimization/
1•NTCTech•49m ago•0 comments

DeepSeek kicked off 2026 with a new AI training method for scaling

https://www.businessinsider.com/deepseek-new-ai-training-models-scale-manifold-constrained-analys...
3•quietproof•51m ago•0 comments

Myanmar's election is derided as fake, but the suffering is all too real

https://www.japantimes.co.jp/news/2025/12/28/asia-pacific/myanmar-election-people-suffering/
1•PaulHoule•51m ago•0 comments

How to improve the efficiency of your website with simple steps

https://wp-expert.ch/en/2026/01/12/how-to-improve-the-efficiency-of-your-website-with-simple-steps/
1•swissgeek•51m ago•0 comments

Rhizomatic Creative Pedagogy

https://jimiwen.substack.com/p/rhizomatic-creative-pedagogy
1•jimiwen•52m ago•0 comments

Show HN: I built an AI tool to generate heaven pet tribute videos for lost pets

https://petmemories.io/
1•victoormt•52m ago•1 comments

Nonbinary teens are now banned from Hack Club's "Gender Empowering" Events

https://www.chiefdelphi.com/t/nonbinary-teens-are-now-banned-from-nonprofit-hack-clubs-gender-emp...
3•Agreed3750•52m ago•1 comments

The Egg

https://www.galactanet.com/oneoff/theegg_mod.html
1•kordlessagain•55m ago•1 comments