Recently, I wrote about the value of senior developers in an AI world. What are the most important skills a software developer should focus on in this world? Here are my top 3… or perhaps top 7 because the last one has 5 parts.
System Architecture and Design
Context is king when it comes to designing systems. You may have planned the most elegant and “correct” architecture, leveraging all of the greatest new advancements and patterns used in Big Tech, but you are only wasting your time if you are building an MVP at a 2-person startup. AI still struggles to understand when to apply what architectures. It is important to understand what you need today and also the patterns you want to apply in the future.
Knowing When to Optimize (and When Not To)
Most know the famous quote from Donald Knuth:
“Premature optimization is the root of all evil”
As a senior developer, you should know when and what to measure so you can make intelligent choices on what to optimize. Yes, Python may be X times slower than Rust, but does that level of performance matter to your business?
AI will optimize code when asked, but it needs to be prompted to do so, so you need to know when it is appropriate.
Code Quality
Code quality has always been important. Developers read way more code than they write, and we have known for many years the importance of having a readable codebase. This is even more the case with AI. AI can easily get confused if the code does one thing but says it does another. AI will be able to be more efficient with your codebase if it is already in good shape.
Whether it is hand-written code or AI-assisted, and you are just reviewing it, these are things you should watch out for.
Writing Less Code
The best developers write less code to achieve the same results. AI notoriously will massively inflate the quantity of code in your codebase. More code is not better. A seasoned developer knows code is a liability, and the less we have to get the job done, the better. Each additional line of code is one more that needs to be maintained, can have bugs, and can have security vulnerabilities. Write Less.
Naming and Clarity
Naming is one of the most important things when writing code. A good name communicates intent clearly. Good naming forms the foundation of communication with your team and with your future self. AI sometimes does a poor job at naming. It tends to be biased towards words used in the prompt, even if a clearer, specific name would be more appropriate.
Strategic Code Reuse
Most developers understand the nuanced balance of DRY (Don’t Repeat Yourself). It is important to know when to and when not to repeat code. Sometimes repetition is desired to keep systems decoupled, but in most cases, the less repetition, the better. AI-generated code often writes large quantities of code that should be reused or made more generic. It also does a poor job of leveraging what is already built.
System Organization and Structure
Experienced developers excel at answering the question “Where should I put this thing?”. Understanding how to neatly organize code will benefit both humans and AI when it comes to finding things.
Robust Error Handling
Developers should know when to catch an error and when to propagate it up the stack. AI-generated code often catches all errors, but it often handles them improperly. This can lead to a minefield of future bugs.