# writing-code > General code writing guidelines and preferences for code style, testing, and design - Author: Rodrigo Picanço Tavares - Repository: rodrigo-picanco/dotfiles - Version: 20260206215742 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/rodrigo-picanco/dotfiles - Web: https://mule.run/skillshub/@@rodrigo-picanco/dotfiles~writing-code:20260206215742 --- --- name: writing-code description: General code writing guidelines and preferences for code style, testing, and design --- ## Art of Programming Guidelines ### Code Clarity - Code should express meaning - Code should be vertically compact, unless whitespace expresses meaning - Variable names must be as descriptive as the context needs ### Testing - We should test behaviour, not implementation - Specs should try to cover as much as possible with as little code as possible ### Design Patterns - Dependency injection should be tried before mocking - Functional iteration is better when there's no performance penalty ### Performance - Performance is not an afterthought