Re:A dev's thoughts on developer productivity (2022)
by bn-l on Thursday June 27, 2024 @11:18PM
(#40817385)
Isn’t after too late though?
[ Parent
| on HN ]
Re:A dev's thoughts on developer productivity (2022)
by BurningFrog on Thursday June 27, 2024 @11:47PM
(#40817510)
It's really hard to design code before it exists!
Once it's working, you know enormously more than when you started, and all you have to do is refactor the mediocre design you happened to build into something better, without breaking the functionality.
With good test suites and solid refactoring skills, that is actually both very doable and often a lot of fun!
Re:A dev's thoughts on developer productivity (2022)
by reverius42 on Friday June 28, 2024 @02:28AM
(#40818256)
Wish I could upvote more.
Similarly, I always like to say you should plan to write (at least) two versions/iterations of everything. The first one bottom up, to discover what problem you're solving, and the second top down, once you know the problem.
Re:A dev's thoughts on developer productivity (2022)
by qohen on Friday June 28, 2024 @03:44AM
(#40818571)
Or, as Fred Brooks wrote in "The Mythical Man Month" (1976): "plan to throw one away; you will, anyhow."[0]
Re:A dev's thoughts on developer productivity (2022)
by bn-l on Friday June 28, 2024 @05:47PM
(#40825619)
That’s great if you have the time for it but a bit impractical to write, architect, then refactor.
Re:A dev's thoughts on developer productivity (2022)
by katze77 on Friday June 28, 2024 @06:53AM
(#40819405)
That is actually how Donald Knuth describes it in The Art of Computer Programming. The first program is merely written to understand the problem domain.
Re:A dev's thoughts on developer productivity (2022)
by BurningFrog on Friday June 28, 2024 @09:34AM
(#40820489)
How have I never heard that?
Knuth continues to retroactively impress me!
Re:A dev's thoughts on developer productivity (2022)
by mym1990 on Friday June 28, 2024 @09:58AM
(#40820658)
I feel like architecture has almost nothing to do with the low level task of coding, and more to do with organizing the order of operations which stem from the business level requirements, and identifying the services that will be used. Architecture is also useful for documenting how things work in a system, and then passing that understanding to anyone that is interested in the future.