Marked: DEPENDENCIES.md

Created on 20 Jan 2018  路  5Comments  路  Source: markedjs/marked

We are starting to add a few more dev dependencies to try and improve things. Was thinking about it and it might be worthwhile to create a dependencies list file. I tend to shy away from dependencies for a few reasons:

  1. What if the dependency falls into disrepear or something better comes along?
  2. The YAGNI principle - do we actually need what the library gives us?
  3. Another principle I will call the community principle: If you create or acquire it, you help maintain it. (Less dependencies, less things I'm actively or passively helping to maintain.)

Initial thoughts on the layout of a dependency document

What problem is being solved

  • The dependency being used

Fallbacks/Alternatives

  • List of
  • alternatives
  • that would
  • help resolve
  • the same or similar problem
proposal question

Most helpful comment

I'm with you on this, I don't like pointless dependencies either. All of them should be motivated with valid reasons. And we still want to be lightweight.
The good thing is that dev dependencies are not required for marked to _work_ as it should, they only aid in developing it. So, in this sense, we're still lightweight, marked has no dependecies.

All 5 comments

I'm with you on this, I don't like pointless dependencies either. All of them should be motivated with valid reasons. And we still want to be lightweight.
The good thing is that dev dependencies are not required for marked to _work_ as it should, they only aid in developing it. So, in this sense, we're still lightweight, marked has no dependecies.

Agreed. I'm also thinking if we can find things that follow a "plug-in" architecture (thinking Bob Martin here). We have the test capability provided by @chjj and @UziTech, for example, and the things we add (like the differ) should be able to plug into that...that way we could bail on it, but still have the test capability...just to make sure we're being explicit there. ;)

I don't know if we need to have a file to list the dependencies. Anyone can look in the package.json file for a list of dependencies.

For all of my projects I use https://david-dm.org/ to add a badge to my readme which will turn red if any of our dependencies are found to be insecure, and yellow not up to date

Here are the ones for this repo:

dependencies

devDependencies

@UziTech: Interesting. Thanks, might be worth having. What about tracking why we use them and fallbacks shoudl they turn into what Marked had become?

That was one of things I noticed a lot going through the issues. Folks didn't really know what to use other than Marked. Some of this is also my own baggage since the proliferation of packages in general - developers not fully understanding what, if anything, the dependencies were are giving them...a crutch, so to speak (again, my baggage on the subject).

Closing as not a lot of traction. Maybe when the dependencies stabilize a bit more.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

james4388 picture james4388  路  3Comments

FireflyAndStars picture FireflyAndStars  路  3Comments

raguay picture raguay  路  4Comments

samit4me picture samit4me  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  4Comments