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.

Cleverbot (2008)

https://www.cleverbot.com/
1•1bpp•1m ago•0 comments

I use a Huawei modem; I cannot access this article. On my Singtel phone, I can

https://twitter.com/MikeFritzell/status/2017784723389759685
1•cwwc•2m ago•0 comments

Workers are 'friction-maxxing' to resist AI

https://www.ft.com/content/fd5e65df-83c7-42f3-9658-377c99df42d1
2•cebert•7m ago•1 comments

Show HN: SBOMHub – Open-source SBoM dashboard with CVE tracking

https://github.com/youichi-uda/sbomhub/blob/main/README_en.md
1•y1uda•8m ago•0 comments

Show HN: Skill.Fish – NPM-style package manager for AI agent skills

https://github.com/knoxgraeme/skillfish
1•knoxgraeme•11m ago•0 comments

Free Corpus Tracker – Budget, stocks, gold, mutual funds in one place

https://icorpus.vercel.app
1•mathan_karthik•13m ago•1 comments

Sudo

https://www.sudo.ws/
1•vinhnx•22m ago•0 comments

Moltbook Smcp Plugin

https://github.com/sanctumos/smcp-moltbook
1•actuallyrizzn•24m ago•1 comments

I replaced a $120/year micro-SaaS in 20 minutes with LLM-generated code

https://blog.pragmaticengineer.com/i-replaced-a-120-year-micro-saas-in-20-minutes-with-llm-genera...
3•vinhnx•27m ago•1 comments

Chased Through Amsterdam, Robbed of $1M, yet Still Building: Matthew's Plans

https://altcoindesk.com/perspectives/interviews/after-a-1m-scam-in-amsterdam-matthew-jones-moves-...
1•CapricornQueen•35m ago•0 comments

The Art of Unix Usability

http://www.catb.org/~esr/writings/taouu/html/index.html
1•js216•36m ago•0 comments

Oakland Firestorm of 1991

https://en.wikipedia.org/wiki/Oakland_firestorm_of_1991
1•petethomas•42m ago•0 comments

What If Trump Discovers That Unpaid UK (and French) Debt from WWI?

https://podcasts.apple.com/us/podcast/ep-155-what-if-trump-discovers-that-unpaid-uk-and/id1528208...
2•KnuthIsGod•49m ago•0 comments

Stop panicking about AI. Start preparing

https://www.economist.com/leaders/2026/01/29/stop-panicking-about-ai-start-preparing
2•petethomas•52m ago•0 comments

Network Applications of Bloom Filters: A Survey [pdf]

https://www.eecs.harvard.edu/~michaelm/postscripts/im2005b.pdf
1•mfiguiere•57m ago•1 comments

Show HN: Kindler: A declarative, Lua-based, build system

https://setsunasoftware.com/kindler/
1•ThatGuyRaion•57m ago•0 comments

The Context Gravity Well

https://mapwriting.substack.com/p/the-context-gravity-well
1•doitLP•58m ago•0 comments

LinkedIn, Everyone's an AI Detective Now

https://www.bloomberg.com/news/articles/2026-01-30/chatgpt-written-linkedin-posts-have-users-anal...
1•petethomas•1h ago•1 comments

Tautologism Language

https://zenodo.org/records/18446476
2•KaoruAK•1h ago•0 comments

Show HN: Licobox – Container runtime with Docker Engine on a macOS

https://licobox.dev
1•yunusefendi52•1h ago•0 comments

Show HN: Using OpenClaw chat to manage tasks with an Eisenhower Matrix

https://4to.do/integrations/openclaw
1•haoya•1h ago•0 comments

Why Do Lawyers Want to Abolish ICE? [video]

https://www.youtube.com/watch?v=zkgNnbTrsgw
1•zdw•1h ago•0 comments

Chrome Extension lets you watch YouTube while browsing the web

https://chromewebstore.google.com/detail/watch-youtube-sidebar/nfgnokdbenjkocebgekljbdolmfjbnhg
2•eeko_systems•1h ago•0 comments

RPyC – Transparent, symmetric distributed computing

https://rpyc.readthedocs.io/en/latest/
2•benswerd•1h ago•0 comments

Start (Vibe) Coding Fast

https://chadnauseam.com/coding/tips/start-vibe-coding-fast
2•ChadNauseam•1h ago•2 comments

Show HN: ShotOne – Screenshot API with built-in playground for quick testing

https://shotone.io/
1•DebianXMR•1h ago•0 comments

Free Online Guitar Tuner: No download required, works on any device

https://www.online-guitartuner.com/
1•ashing•1h ago•1 comments

Apple Hooks Fifty Thousand Methods [video]

https://www.youtube.com/watch?v=SuQGQ1vh9k0
2•todsacerdoti•1h ago•0 comments

The (AI) Nature of the Firm

https://camerongordon0.substack.com/p/the-ai-nature-of-the-firm
1•iciac•1h ago•0 comments

PyInfra: Infrastructure Deserves Real Code in Python, Not YAML Soup

https://marp.kalvad.com/fosdem_2026
3•nogajun•1h ago•1 comments