DEV Community


Discussion on: What if we would share code instead of packages?

askubaid profile image
Ubaid Ur Rehman

I would say we should go back to the good old times, when we used to write functional code. And refer the required functions when and where needed in our project. All we needed to know about those functions was the interface(arguments and return values)

If we could simplify the packages into plain simple dead functions, which we will use as it is in our projects that would be great.

If there is an update, i will replace that function with a new function.

If someone has a bug, he can peek into that imported function and see if there is an error in that code.

The code is simply in front of you, if there is a suspicious activity. You will see it right there.