frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

People Keep Sneaking into New York City Sewers. No One Knows Why

https://www.nytimes.com/2026/08/30/nyregion/manholes-sewers-nyc.html
1•paulpauper•1m ago•0 comments

Continuous Profiling and UI Profiling

https://sentry.io/changelog/continuous-profiling-and-ui-profiling/
1•imangsgu•1m ago•0 comments

We built our house for LAN parties

https://lanparty.house/
1•fittingopposite•1m ago•0 comments

Controlling when CSS custom property values are computed

https://jakearchibald.com/2026/css-custom-property-compute-time/
1•ingve•3m ago•0 comments

Show HN: Genetic Distance Map

https://p.migdal.pl/genetic-distance-map/
1•stared•5m ago•0 comments

Another heart drug fails, previously assumed to be the vanguard of a new era

https://www.nytimes.com/2026/09/04/science/heart-drug-fails-novartis-pelacarsen.html
1•marojejian•6m ago•1 comments

Sci-Fi Films Are Becoming More Optimistic

https://storytellingprogress.substack.com/p/sci-fi-films-are-becoming-more-optimistic
1•paulpauper•7m ago•1 comments

User-guide-driven development with coding agents

1•hosamsh•8m ago•0 comments

The Kalshi Citizen Debt Forecast (CDF)

https://marginalrevolution.com/marginalrevolution/2026/09/the-kalshi-citizen-debt-forecast-cdf.html
1•paulpauper•8m ago•0 comments

Norway could become the first country to ban AI smart glasses

https://neow.in/cmUxYnB3
1•bundie•11m ago•0 comments

Bootstrapping Mechanical Correctness

https://artagnon.com/art/regress
1•artagnon•12m ago•0 comments

A sourced timeline of 249 documented AI milestones

https://achievements.ai/
1•umermirzapk•12m ago•0 comments

Show HN: Openrobots

https://openrobots.vercel.app
1•richard_baecker•16m ago•0 comments

Show HN: I made a list of the vulnerabilities I got on my blog

https://seiji.reachpad.app/cves.html
1•sakuraiben•17m ago•0 comments

Least convenient location in Los Angeles

https://notes.secretsauce.net/notes/2015/08/16_least-convenient-location-in-los-angeles-from-kore...
1•dima55•19m ago•0 comments

$15M effort to get to Alpha Centuri in 80K years

https://arstechnica.com/space/2026/09/private-group-wants-to-launch-cheapest-possible-mission-to-...
2•gumby•19m ago•0 comments

Copernicus: Daily global sea surface temperature breaks 2024 record

https://climate.copernicus.eu/copernicus-daily-global-sea-surface-temperature-breaks-2024-record
3•gmays•21m ago•0 comments

Yogurt and human health across history, culture, and science

https://www.sciencedirect.com/science/article/pii/S1279770726001752
2•geox•23m ago•0 comments

We have a loop that grabs every available EC2 node in the classes we need

https://twitter.com/samlambert/status/2096072501831106975
1•tosh•29m ago•0 comments

"MP3 is dead" missed the real, better story (2017)

https://marco.org/2017/05/15/mp3-isnt-dead
3•Tomte•29m ago•0 comments

The Hugging Face attack surprised me

https://www.planned-obsolescence.org/p/the-hugging-face-attack-surprised
3•gmays•29m ago•0 comments

Mapping codebases via 3js force graphs

https://creview.io/
3•swupel•34m ago•2 comments

James Bond, pt. 1 (a View to Kill)

https://007.danieldeboulay.com
1•deboulaymxf•35m ago•0 comments

Google restricted Gmail after press outreach; five appeals stayed system-only

https://dossier.reasoner.pl/#google-track
2•marekfocus•36m ago•0 comments

Health warnings could reduce youth's hours spent on social media

https://www.euronews.com/health/2026/09/05/health-warnings-could-reduce-youths-hours-spent-on-soc...
3•Markoff•36m ago•0 comments

Job postings show early signs of AI automation impact

https://www.dallasfed.org/research/economics/2026/0901
2•theanonymousone•38m ago•1 comments

Google skates

https://pluralistic.net/2026/09/05/divorce-court/
3•hn_acker•42m ago•0 comments

Effective Bureaucracy

https://sackfield.substack.com/p/effective-bureaucracy
2•sackfield•44m ago•0 comments

Migrating a Redis Cluster Across Clouds Without Chaos

https://charanvasu.com/posts/migrating-redis-cluster-cross-cloud/
1•whiteros_e•45m ago•0 comments

Dogs can distinguish between fearful and angry or sad human faces

https://www.theguardian.com/world/2026/aug/10/dogs-distinguish-fearful-angry-sad-human-faces-brai...
3•howard941•46m ago•0 comments
Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.