DEV Community

Discussion on: Why deps.ts and mod.ts is BAD in Deno

Collapse
 
oganexon profile image
oganexon • Edited

At first I wasn't convinced
But the idea of separating the dependencies while keeping the possibility to update them without doing it for each file is well thought-out

This pattern should be proposed to more people, in the end it doesn't bring any disadvantages.

EDIT: this is very time consuming, not recommended.

Collapse
 
artis3n profile image
Ari Kalfus

Anyone else wondering what happened between the end of this comment and the edit. What did this person see.

Collapse
 
wongjiahau profile image
WJH

Hi @oganexon , thanks for the reply. But I have a question for you, isn't longer compile time time-consuming too?

Collapse
 
oganexon profile image
oganexon

I meant to divide each dep in it's own file.
My module only does one thing and the cli has its own dep in the file so I already divided the deps
So overall I support your idea to provide a mod folder but not a deps folder

Thread Thread
 
wongjiahau profile image
WJH

True, I might have taken that way too far lol