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.

From Muscle to Matrix

https://www.aviraj.dev/blog/from-muscle-to-matrix
1•avirajkhare•55s ago•0 comments

Are AI replicas of the dead an innovative medical tool or an ethical nightmare?

https://www.rnz.co.nz/news/world/586024/digital-ghosts-are-ai-replicas-of-the-dead-an-innovative-...
2•billybuckwheat•1m ago•0 comments

Intel cancelling Tower Semi co-manufacturing deal

https://towersemi.com/2026/02/11/02112026/
1•osnium123•2m ago•1 comments

Fontemon

https://www.coderelay.io/fontemon.html
1•Tomte•2m ago•0 comments

Paragon accidentally uploaded a photo of its spyware control panel

https://twitter.com/DrWhax/status/2021608609595945442
2•CGMthrowaway•2m ago•0 comments

The Death of Traditional Testing: Agentic Development Broke a 50-Year-Old Field

https://engineering.fb.com/2026/02/11/developer-tools/the-death-of-traditional-testing-agentic-de...
1•melqdusy•3m ago•0 comments

Can LLMs Play the Game of Science?

https://huggingface.co/spaces/huggingface/eleusis-benchmark
1•amai•3m ago•0 comments

Show HN: Agent framework that generates its own topology and evolves at runtime

https://github.com/adenhq/hive/blob/main/README.md
3•vincentjiang•5m ago•1 comments

Chasing Counter Seasonality

https://sftw.substack.com/p/chasing-counter-seasonality
1•paulpauper•6m ago•0 comments

Basics on Programming a Canvas for a CAD-System [pdf]

http://www.blunk-electronic.de/pub/buecher/canvas/2025-06-04_canvas_en.pdf
1•gneuromante•6m ago•1 comments

My simple model of fertility decline

https://marginalrevolution.com/marginalrevolution/2026/02/my-simple-model-of-fertility-decline.html
2•paulpauper•6m ago•0 comments

UPenn data leaked after University refused to pay $1M ransom

https://www.thedp.com/article/2026/02/penn-hack-donor-data-ransom-one-million-shinyhunters-gse-emai
2•fortran77•6m ago•0 comments

BridgerClone

https://bridgerclone.app/
1•pain_perdu•6m ago•0 comments

Discord Alternatives

https://soatok.blog/2026/02/11/on-discord-alternatives/
2•speckx•7m ago•0 comments

Employee Monitoring and SimpleHelp Software Abused in Ransomware Operations

https://www.huntress.com/blog/employee-monitoring-simplehelp-abused-in-ransomware-operations
2•speckx•8m ago•0 comments

Unlock language-specific rich symbol context using new find_symbol tool

https://devblogs.microsoft.com/visualstudio/unlock-language-specific-rich-symbol-context-using-ne...
1•ingve•9m ago•0 comments

Convert your website into a native app with Expo DOM Components

https://expo.dev/blog/the-magic-of-expo-dom-components
1•denysonique•11m ago•0 comments

Microsoft announces new mobile-style Windows security controls

https://www.bleepingcomputer.com/news/microsoft/microsoft-announces-new-mobile-style-windows-secu...
1•akyuu•11m ago•0 comments

Show HN: Built a tool that generates cheap multi-city flights in Europe

https://eurofly.app/
1•mikoun•13m ago•0 comments

iOS 26.3 and macOS 26.3 Fix Dozens of Vulnerabilities, Including Zero-Day

https://www.macrumors.com/2026/02/11/ios-26-3-security-vulnerabilities/
5•akyuu•14m ago•0 comments

The benefit of AI-assisted coding isn't just about coding faster

https://johnlindblad.substack.com/p/what-changes-when-coding-with-ai
2•dacke•15m ago•0 comments

Automation without the security risks: safeclaw

https://github.com/princezuda/safeclaw
1•safestclaw•15m ago•1 comments

Components Will Kill Pages

https://bitsandbytes.dev/posts/components-will-kill-pages
1•cmsparks•17m ago•0 comments

Show HN: NetBox SSL – SSL/TLS certificate management plugin for NetBox

https://github.com/ctrl-alt-automate/netbox-ssl
1•ctrl-alt-auto•17m ago•0 comments

Something big is happening in AI – and most people will be blindsided

https://fortune.com/2026/02/11/something-big-is-happening-ai-february-2020-moment-matt-shumer/
2•FergusArgyll•19m ago•1 comments

The risk of a hothouse Earth trajectory

https://www.cell.com/one-earth/fulltext/S2590-3322%2825%2900391-4
6•Archelaos•19m ago•0 comments

Because Coordination Is Expensive

https://surfingcomplexity.blog/2026/01/24/because-coordination-is-expensive/
1•PaulHoule•19m ago•0 comments

Trump issues ominous cartel warning as drones swarm El Paso

https://www.dailymail.co.uk/news/article-15550191/Trump-cartel-warning-drones-swarm-El-Paso.html
2•Bender•21m ago•2 comments

Aligning One Matrix with Another

https://www.johndcook.com/blog/2026/02/11/orthogonal-procrustes/
2•ibobev•21m ago•0 comments

Show HN: Open-Source Skills for AI Agents

https://github.com/seb1n/awesome-ai-agent-skills
1•sebin1•21m ago•0 comments