Library vs framework vs DIY seems domain specific.
If your thing has been built so often already that much of the logic can be factored out into a framework, great - may as well use that. Unit testing also works well as structure you plug tests into.
If parts of your thing occur elsewhere but the overall structure doesn't, probably want libraries for the common parts. Equally use libraries for when the frameworks that fit don't look good enough.
If you can't find an adequate library, DIY time.
Write your own language seems difficult to justify economically but I really like the domain/language fit you can get out of it.