https://philodev.one/posts/2026-04-code-complexity/ #codecomplexity #softwaredevelopment #programminghumor #HackerNews #ngated
Nghiên cứu mới chỉ ra sự tương quan chặt chẽ giữa độ sâu thụt lề (indentation depth) và độ phức tạp vòng (cyclomatic complexity) của mã nguồn.
Thay vì dựa vào các công cụ phân tích cú pháp phức tạp, phương pháp này đo lường độ phức tạp dựa trên khoảng trắng, giúp nó có khả năng áp dụng trên mọi ngôn ngữ lập trình. Đây là cách tiếp cận đơn giản nhưng hiệu quả để đánh giá chất lượng và khả năng bảo trì của code.
#Programming #CleanCode #SoftwareEngineering #LậpTrình #CodeComplexity
https://www
Diagram of entire Linux Network Stack, including: Virtualization and Linux containers: Emulation and Paravirtualization. Network sockets. Network stack: Upper layer of Network stack (TCP, UDP). Low layer of Network stack with GRO, RPS, RFS and GSO. Network Scheduler. NetFilter and traffic controll: Bridge and Bond interfaces. Tap interface, ... Device Driver: Queue. NAPI. IRQ handler. Network functions accelerated by NIC: Checksum offload, VLAN, VxLAN, GRE, TSO, LRO, RSS, ... Network card. All (above) sections (layers) include tips for optimizations and/or statistics. This diagram is part of the book: Operativni sustavi i računalne mreže - Linux u primjeni https://doi.org/10.5281/zenodo.8119310
High-performance Rust stream processing engine, providing powerful data stream processing capabilities, supporting multiple input/output sources and processors. - arkflow-rs/arkflow
@sinisterporpoise I used #javascript for a side project. 6 months in, the code became a horrifying mess.
There would be too many warnings and errors in npm. Fixing 1 bug would create 2-3 more. Adding new features became impossible. That codebase still gives me nightmares.
I decided to abandon it and preserve my sanity. Never too late to realise the importance of #typesafety, #testing and keeping #codecomplexity low.
Cyclomatic Complexity Demystified
Overwhelmed by nested if statements? 😱 Cyclomatic complexity helps you identify & tame complex logic. Break down decision points, refactor, and keep your code maintainable! 💡 Check out our latest article to learn more. https://go.fastruby.io/2tw
There are many ways to measure a program's complexity. Here we try to illustrate one of the metrics used in many tools to determine how complex an application is.