SShortSingh.
Back to feed

Not All Code Style Rules Are Worth the Argument, Here Is How to Tell

0
·54 views

A software developer reflects on years of code review disputes and proposes sorting style rules into three categories based on their actual impact. Some formatting rules — such as one statement per line, line length limits, and brace discipline — have measurable consequences for readability, diff clarity, and bug visibility. Others, like brace placement style or spaces versus tabs, lack supporting evidence and cost more in review time than either outcome is worth. Tools like auto-formatters can resolve the latter category instantly, freeing reviewers to focus on substantive concerns. The most valuable review energy, the author argues, belongs to questions about logic, naming, responsibility, and hidden contract violations — issues no formatter can ever settle.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Lumio AI Aims to Bridge Beginner Lessons and Hands-On AI Engineering Projects

The creator of Lumio AI, a learning platform for beginners pursuing AI engineering, is developing the project as a way to ease the transition from tutorials to building. The platform intends to offer approachable, beginner-friendly lessons paired with hands-on practice. The developer is still refining the project and has invited learners and builders to share what helped them move from basics to their first useful project. Interested readers can join a waitlist at lumioai.dev to follow the platform's progress.

0
ProgrammingDEV Community ·

Official Samsung firmware can be flashed with a locked bootloader, with limits

A locked bootloader does not prevent flashing official Samsung firmware, since the bootloader accepts any software carrying Samsung's signature. Odin can load stock AP, BL, CP, and CSC files in download mode as long as they are genuine and match the phone model. Two conditions apply: the firmware must be unmodified and signed by Samsung, and its bootloader version cannot be older than the one already installed due to rollback protection. Custom recoveries, custom ROMs, and root methods break the signature check, so they still require unlocking the bootloader. Flashing stock firmware does not change the lock state or trip Knox, leaving the phone's lock status and warranty status unchanged.

0
ProgrammingDEV Community ·

Five hosting platforms compared for letting Claude deploy apps through MCP servers

A developer reviewed the official MCP documentation of five hosting platforms in November 2026 to see which ones let Claude deploy an app directly. The key test was whether a server accepts code as files from a chat, or requires a Git repository or a local CLI first. Vercel and Netlify focus on frontends and serverless functions, while Railway and Render suit services and databases that are already set up. The author, who builds InstaPods, recommends it for always-running backends whose code lives in the conversation, while noting where competitors fit better.

0
ProgrammingDEV Community ·

Human-in-the-loop architecture binds approvals to exact payloads

A DEV Community primer outlines a repeatable workflow in which a proposed action runs only after deterministic checks and a human approval. The approval token is cryptographically bound to the exact payload, so the human decision becomes a verifiable part of the transaction rather than a disclaimer. The design separates four sources of truth: stored context, live authoritative API values, enforceable business rules, and model tuning, with tuning never replacing rule-based enforcement. The article pairs a diagnostic table of common failure modes with a flow from proposal through risk policy, approval, and execution to an immutable audit record. It also includes a standard-library Python teaching example demonstrating deterministic risk tiering, hash-bound approval tokens, and verification before execution.