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.

Hard Times in the Delta as Farmers Consider Letting Crops Rot

https://www.nytimes.com/2026/01/25/business/mississippi-delta-farmers-rice-prices.html
1•mitchbob•35s ago•1 comments

Ask HN: How are you handling Gmail ending POP3 and Gmailify?

1•moshetanzer•40s ago•0 comments

UK among 10 countries to build 100GW wind power grid in North Sea

https://www.theguardian.com/environment/2026/jan/26/uk-among-10-countries-to-build-100gw-wind-pow...
2•robtherobber•1m ago•0 comments

Stocks Near Highest Valuations Since 1880

https://www.apolloacademy.com/stocks-near-highest-valuations-since-1880/
1•akyuu•2m ago•0 comments

Asking the best LLMs to design a post-AGI civilization

https://technotes.substack.com/p/asking-various-llms-to-design-a-post
1•thepoet•2m ago•0 comments

Why Broken Access Control Still Dominates the OWASP Top in 2026?

https://auth0.com/blog/why-broken-access-control-still-dominates-owasp-top-10/
1•andychiare•3m ago•0 comments

MapLibre Tile: a modern and efficient vector tile format

https://maplibre.org/news/2026-01-23-mlt-release/
1•todsacerdoti•3m ago•0 comments

Long branches in compilers, assemblers, and linkers

https://maskray.me/blog/2026-01-25-long-branches-in-compilers-assemblers-and-linkers
1•epilys•3m ago•0 comments

Add four Gigabit or 2.5Gbps Ethernet ports to the Raspberry Pi 5 with this board

https://www.cnx-software.com/2025/12/30/add-four-gigabit-or-2-5gbps-ethernet-ports-to-the-raspber...
1•teleforce•7m ago•0 comments

What's still broken in Salesforce document generation?

1•hackertarzen•7m ago•0 comments

Show HN: Panda – Minimalist Meditation Timer App

https://www.chromiumone.com/apps/en-US/meditation-timer-panda/
1•joyhn•8m ago•0 comments

Being a Canadian in America (Eric Migicovsky)

https://ericmigi.com/blog/on-being-a-canadian-in-america-in-2026/
1•smig0•11m ago•0 comments

The Semantic Police: Stop or my compiler will prove a theorem

https://kp9.in/posts/cs/stop-or-my-compiler-will-prove-a-theorem
1•kp995•11m ago•0 comments

Intel's Larabee Legacy

https://thechipletter.substack.com/p/larabees-long-shadow
1•klelatti•13m ago•0 comments

Bro, Enough with the Protein. You're Just Making Expensive Pee

https://thewalrus.ca/enough-with-the-protein/
1•Geekette•13m ago•0 comments

Show HN: Sentry-MCP – Fast Rust MCP server for Sentry (10x less RAM)

https://github.com/utapyngo/sentry-mcp-rs
1•utapyngo•15m ago•0 comments

How to automatically generate a commit message using Claude

https://freek.dev/2978-how-to-automatically-generate-a-commit-message-using-claude
1•freekmurze•18m ago•0 comments

San Francisco Graffiti

https://walzr.com/sf-graffiti
2•walz•20m ago•0 comments

Import Files from Google Drive to Proton Drive

https://proton.me/support/import-files-google-drive
2•doener•21m ago•0 comments

Neither Fan nor Frond

https://taylor.town/palm-free
1•jjgreen•23m ago•0 comments

Notes about Basic Polyphase Decimation Filters

https://tomverbeure.github.io/2026/01/25/Notes-on-Basic-Polyphase-Decimation.html
1•thomasjb•23m ago•0 comments

The Most Important Question Is 'What If I'm Wrong?'

https://www.nytimes.com/2026/01/25/opinion/college-thinking-illiberalism.html
3•mitchbob•24m ago•1 comments

Compendium of cultural policies from various countries

https://www.culturalpolicies.net/
1•vogu66•26m ago•0 comments

ComputerWorld Interviews Lotus' Mitch Kapor (1985)

https://computeradsfromthepast.substack.com/p/computerworld-interviews-lotus-mitch
1•rbanffy•29m ago•0 comments

Filming ICE is legal but exposes you to digital tracking

https://theconversation.com/filming-ice-is-legal-but-exposes-you-to-digital-tracking-heres-how-to...
5•ccppurcell•30m ago•0 comments

UK digital ID goes in-house, government swears it isn't an ID card

https://www.theregister.com/2026/01/26/digital_id_costs/
4•jjgreen•31m ago•0 comments

AI is hitting UK harder than other big economies, study finds

https://www.theguardian.com/technology/2026/jan/26/ai-uk-jobs-us-japan-germany-australia
4•chrisjj•32m ago•1 comments

Reviving a Raspberry Pi with Claude Code

https://www.danielcorin.com/til/raspberry-pi/reviving-a-raspberry-pi-with-claude-code/
1•furkansahin•37m ago•0 comments

Ax Benchmark – Agent Experience Benchmark

https://techstackups.com/guides/introducing-ax-benchmark-agent-experience/
1•sixhobbits•37m ago•0 comments

Apple, What Have You Done?

https://onlinegoddess.net/2026/01/apple-what-have-you-done/
56•todsacerdoti•39m ago•55 comments