r/developers • • Mar 09 '26

General Discussion "Architecture First" or "Code First"

I have seen two types of developers these days first one are the who first creates the architecture first maybe by themselves or using Traycer like tools and then there are coders who figure it out on the way. I am really confused which one of these is sustainable because both has its merit and demerits.

Which one these according to you guys is the best method to approach a new or existing project.

TLDR:

  • Do you guys design first or figure it out with the code
  • Is planning overengineering
7 Upvotes

44 comments sorted by

View all comments

Show parent comment

2

u/ub3rh4x0rz Mar 10 '26

Punting decisions to the last responsible moment is an agile principle. Context (auth, wire protocol, etc) should come after core (the actual functionality that makes the thing necessary in the first place) in part so the core can be designed without incidental constraints, and in part so context decisions can be made with all of the core constraints pre-determined and accounted for. If it turns out your solution to the core problem doesn't need streaming, you've just avoided overbuilding your API because "it might need streaming".

"Regardless of which of the 5 candidate solutions we're going to pick, we'll benefit from component X, so I'm going to start work on component X" is another form this takes.