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

🖼️ Behold, a diagram so dense it makes spaghetti code look like a minimalist art piece. Because who wouldn't want to spend their free time deciphering the Linux Network Stack in 2024? 🎨🍝 Apparently, it's a fun pastime for those with a PhD in Hieroglyphics. 🧑‍🏫💀
https://zenodo.org/records/14179366 #LinuxNetworkStack #SpaghettiCode #DiagramArt #PhDLife #TechHumor #CodeComplexity #HackerNews #ngated
Entire Linux Network stack diagram

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

Zenodo
🚀✨ Behold, yet another #Rust project promising to revolutionize your streams faster than you can say "input-output"! It's like a Swiss Army knife for data streams, except nobody asked for one with 72 unnecessary functions. 🤖🔧 But hey, at least it’s open source, so you can marvel at all the code complexity without spending a dime! 🤑
https://github.com/arkflow-rs/arkflow #OpenSource #DataStreams #CodeComplexity #Innovation #HackerNews #ngated
GitHub - arkflow-rs/arkflow: High-performance Rust stream processing engine, providing powerful data stream processing capabilities, supporting multiple input/output sources and processors.

High-performance Rust stream processing engine, providing powerful data stream processing capabilities, supporting multiple input/output sources and processors. - arkflow-rs/arkflow

GitHub
🎉 Welcome to the magical world where everything accidentally becomes Turing-complete! 🧙‍♂️ From C++ templates to Java generics, if it can compute, it will compute. 🤔 Because who doesn't love turning simple tools into complex computational nightmares? 😂
https://beza1e1.tuxen.de/articles/accidentally_turing_complete.html #TuringComplete #C++Templates #JavaGenerics #ComputationMagic #CodeComplexity #HackerNews #ngated
Accidentally Turing-Complete

A list of things that were not supposed to be Turing-complete, but are.

Ah, yet another riveting tale from the cryptic world of GPG-encrypted env vars 🕵️‍♂️—because code, like our lives, just isn't complicated enough. But don’t worry, GitHub Copilot is here to save the day with AI that'll write shoddy code faster than you can say "Oops!" 🤖💥
https://github.com/waj/shell-secrets #GPGEncryption #GitHubCopilot #AIProgramming #CodeComplexity #TechHumor #HackerNews #ngated
GitHub - waj/shell-secrets: Encrypted environment variables

Encrypted environment variables. Contribute to waj/shell-secrets development by creating an account on GitHub.

GitHub

@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.

#FuckJavascript #fucktypescript

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

#CodeComplexity #TechDebt #RubyOnRails

What Is Cyclomatic Complexity and Why You Should Care - FastRuby.io | Rails Upgrade Service

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.

What is cyclomatic complexity and why you should care by @mateusdeap
Next meetup 8th Feb - Calvin Hong reduces complexity with "How do I get rid of my ifs"
Register to attend in-person or online at https://www.meetup.com/en-AU/adelaide-dotnet/events/290867786/
#CodeComplexity #SoftwareEngineering #dotnet
How do I get rid of my ifs, with Calvin Hong, Wed, 8 Feb 2023, 5:30 pm | Meetup

An in-person and online event! **How do I get rid of my ifs** You've been bashing your head against a wall for 5 hours trying to figure out what went wrong. Suddenly you r

Meetup