4 ms·
> There's also work where it makes no sense at all to do while looking ahead at most only two weeks. > For instance, if you have a good experienced architect,
by lmm 6y ago
> There's also work where it makes no sense at all to do while looking ahead at most only two weeks.
> For instance, if you have a good experienced architect, a small amount of time spent on a high-level arcitecture will pay you back on even a slightly successful project. Not to mention it will increase your agility. E.g., don't design a sophisticated privilege mechanism until you know you need it. But if there's a reasonable chance a privilege mechanism will be important in the future, know where one would fit in in a way that wouldn't require a substantial rewrite. Now you'll be able to slot in a simple privilege mechanism, if/when you need one, and later replace/evolve that with a sophisticated one, if needed, all quickly and without substantial rewrites.
No. This is the most seductive myth in software development, and it's exactly what Agile exists to avoid.
I've worked with experienced architects. I've worked with very intelligent architects. I've worked with extremely highly paid architects. None of them ever managed to add value to the project rather than subtracting it.
Write the simplest thing that might possibly work. Write plain code that's easy to refactor. Ensure that your test cases (or better still your type system) capture your business requirements so that you can refactor fearlessly and mercilessly. And as if by magic, retrofitting that sophisticated privilege mechanism will turn out to be easy, because you don't have a bunch of architecture getting in your way.
- aksjfnkajsnd 6y ago> (or better still your type system) capture your business requirements How do you mean?
- lmm 6y agoCreate types that express the requirements that you have, and use them to ensure that requirements are always met. For example, if some fields should only be accessed by administrators, have an AdministratorsOnly type; if some method can only be invoked in a transaction, have a MustHappenInTransaction type. I find that when you have cross-cutting requirements, types are often the most lightweight way to express them.
- InfiniteRand 6y agoPlanning out a type system to match business requirements sounds like architecture level work to me (especially if you use a diagram to plan out those type relationships/hierarchy). Of course my perspective might be skewed, I have only really worked in small teams.
- lmm 6y agoYou don't plan it. You let it evolve to meet your business requirements. As the requirements change, so do the types you use.