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.

Paul Bertorelli on the Future of Aviation Journalism: It's Challenging

https://avbrief.com/paul-bertorelli-on-the-future-of-aviation-journalism-its-challenging/
1•Stevvo•30s ago•0 comments

Ask HN: Do you have side income as a software engineer?

1•andrewstetsenko•43s ago•0 comments

Show HN: isometric.nyc – giant isometric pixel art map of NYC

https://cannoneyed.com/isometric-nyc/
1•cannoneyed•1m ago•1 comments

Show HN: Brickify – Webapp to convert 3D models into Lego brick assemblies

https://brickify.ad-si.com
1•adius•2m ago•0 comments

GitHub "Files Changed" Tab Change?

1•nonethewiser•2m ago•0 comments

Show HN: Desktop‑2FA – offline open‑source TOTP authenticator for desktop

https://desktop-2fa.lukasz-perek.workers.dev/
1•wrogistefan•3m ago•0 comments

Show HN: I'm tired of my LLM bullshitting. So I fixed it

1•BobbyLLM•4m ago•0 comments

My friend built a tool to detect when to post on socials starting with this one

https://hadaa.app/hn_dashboard
1•muriithiKabogo•4m ago•1 comments

STL Editing with FreeCAD

https://hackaday.com/2026/01/22/stl-editing-with-freecad/
1•rbanffy•6m ago•0 comments

Iran has now been under a national internet blackout for two full weeks

https://twitter.com/netblocks/status/2014375236674675147
1•beejiu•7m ago•0 comments

Easy Measures Doing, Simple Measures Understanding

https://blog.jim-nielsen.com/2026/easy-vs-simple/
1•sibeliuss•7m ago•0 comments

Notebook.link: The Future of Notebook Sharing

https://medium.com/@QuantStack/introducing-notebook-link-the-future-of-notebook-sharing-5de900a97b4a
3•SylvainCorlay•7m ago•1 comments

Reverse engineering Lyft Bikes for fun (and profit?)

https://ilanbigio.com/blog/lyft-bikes.html
2•ibigio•8m ago•0 comments

Work-from-office mandate? Expect top talent turnover, culture rot

https://www.cio.com/article/4119562/work-from-office-mandate-expect-top-talent-turnover-culture-r...
3•CrankyBear•8m ago•0 comments

Ed tech is profitable. It is also mostly useless

https://www.economist.com/united-states/2026/01/22/ed-tech-is-profitable-it-is-also-mostly-useless
1•2OEH8eoCRo0•10m ago•0 comments

Why there's no European Google? And why it is a good thing

https://ploum.net/2026-01-22-why-no-european-google.html
3•zdw•11m ago•1 comments

A Protocol for Package Management

https://nesbitt.io/2026/01/22/a-protocol-for-package-management.html
1•zdw•11m ago•0 comments

Ask HN: What is your Claude Code setup? For common or spec projects

1•seky•12m ago•1 comments

Understanding LSM trees via read, write, and space amplification

https://www.bitsxpages.com/p/understanding-lsm-trees-via-read
1•agavra•13m ago•0 comments

Feynman on Why He Almost Quit Physics

https://www.youtube.com/watch?v=f9k7zd_9mAo
2•haxiomic•14m ago•0 comments

GraphRAG for Production Engineer Agent Memory

https://www.decodingai.com/p/designing-production-engineer-agent-graphrag
1•rbanffy•16m ago•0 comments

Show HN: Kubecfg – A CLI to manage Kubernetes contexts and namespaces

https://github.com/kadirbelkuyu/kubecfg
1•kadirbelkuyu•17m ago•0 comments

Coinbase Scaled Their Hiring to 150 Engineers per Month

https://newsletter.eng-leadership.com/p/how-coinbase-scaled-their-hiring
1•rbanffy•17m ago•0 comments

Humanizer: A Claude Code skill that removes signs of AI-generated writing

https://github.com/blader/humanizer
1•zdw•17m ago•2 comments

Securing Agents in Production

https://blog.palantir.com/securing-agents-in-production-agentic-runtime-1-5191a0715240
1•A-K•18m ago•0 comments

Test

https://vimeo.com/
1•ashishmathur•18m ago•0 comments

Carbon and charisma: How climate network CC35 tricked its way to the limelight

https://news.mongabay.com/2025/12/carbon-and-charisma-how-climate-network-cc35-tricked-its-way-to...
1•PaulHoule•19m ago•0 comments

Ask HN: Anyone doing production image editing with Image models? How?

1•geooff_•20m ago•0 comments

Claude Code Outage: Auth Issues

https://status.claude.com/incidents/58sxy43h7kvf
2•joshcsimmons•22m ago•1 comments

Show HN: Text-to-video model from scratch (2 brothers, 2 years, 2B params)

https://huggingface.co/collections/Linum-AI/linum-v2-2b-text-to-video
4•schopra909•22m ago•0 comments