A new developer joins your team and struggles to understand the project because every file follows a different coding style. What would you recommend?, Your team is debating whether to spend time creating coding standards or continue coding freely. Which option would you support?, A senior developer says, "Good code doesn't need comments." Do you agree?, You're reviewing a pull request with working code, but the formatting and naming are inconsistent with the rest of the project. Would you approve it?, You discover that an old comment describes behavior that no longer matches the code. What should you do?, teammate writes one very large function instead of several smaller ones because "it works." Would you ask them to refactor it?, Your company wants developers to write detailed comments for every function. Do you think that's a good policy?, You're maintaining a project where variables have names like a, temp1, and value2. How would this affect your work?, A project has excellent coding standards, but nobody follows them. How could the team improve the situation?, You're starting a brand-new project. Which three rules would you establish first to keep the code maintainable?

Avoiding spaghetti code - Discussion

Leaderboard

Visual style

Options

Switch template

Continue editing: ?