DEV Community

Discussion on: Practicing YAGNI - Show me the code

Collapse
leojpod profile image
leojpod

Hi Jason!
That was a nice read.

How do you approach YAGNI with framework? I can see how I would do it with Elm and to some extend I try to approach it that way. But what about the build system or the introduction of a framework? Do you start with it right away or wait until you feel the need for it?

Maybe it's a dump question and YAGNI isn't incompatible with a framework, you just start going with YAGNI once the framework installation is completed.

Collapse
gonedark profile image
Jason McCreary Author

YAGNI is really framework agnostic. One might argue you could call YAGNI on the use of a framework. However, I try not to call YAGNI on tooling - common tech among a team. That’s not to say their use should never be challenged, but YAGNI shouldn’t be the only motivation.

So, yes, YAGNI is something you practice regardless of tooling. In the case of a framework, you could use YAGNI as a motivation to stick closely with the conventions of the framework and not try to customize it too much.

Collapse
leojpod profile image
leojpod

YAGNI must work well with something like Sails.js then.
Thanks!