DEV Community

Cover image for Are you feel that is so dependent of packages, libraries or frameworks?
André Matias
André Matias

Posted on

Are you feel that is so dependent of packages, libraries or frameworks?

Well, I'm learning actualy about Node JS, and consequently JavaScript and all that I see in this world have dependencies, not just a single dependency but much more that normal.

Is it a new normal? Or I have to create things from scratch?

Like, if I have a job as developer, is normal to use frameworks just to don't waste time?

If you have some solution for this feeling, Let me know.

Top comments (5)

Collapse
 
vonheikemen profile image
Heiker

Is it a new normal? Or I have to create things from scratch?

Define normal. From my experience from the jquery days it has always been like this in the javascript world.

I for one would try to do something by myself before reaching for third-party code.

Like, if I have a job as developer, is normal to use frameworks just to don't waste time?

It depends. There is no absolute answer for this. Sometimes frameworks are a good solution sometimes they aren't, it's up to you to evaluate the situation and decide.

Collapse
 
andrematias profile image
André Matias

Hey, thanks to reply!
With "normal" I meant, is a good thing don't try make the subject that you want just because there is a package on npm?
For me it's weird think that way. Most of the "programmers" now a days think that make something that exists is waste time, and that worries me.
I come from C language where I had to think about algorithms and hard logics, and my feeling when I code in JS is like not so rewarding.
But maybe my head change.

Collapse
 
vonheikemen profile image
Heiker

With "normal" I meant, is a good thing don't try make the subject that you want just because there is a package on npm?
For me it's weird think that way. Most of the "programmers" now a days think that make something that exists is waste time, and that worries me.

I like to think they just want to be productive. The people that tell me that "reinventing the wheel" is a waste of time they usually follow that sentence with "I just want to deliver my product" or something like that. As long as they pick carefully the dependencies they put in their code I don't have a problem.

I come from C language where I had to think about algorithms and hard logics, and my feeling when I code in JS is like not so rewarding.
But maybe my head change.

You could try some areas where these algorithms come in handy. Maybe some data visualization, or game development, I'm sure something like that could bring you joy.

Collapse
 
xiumeteo profile image
César Ricárdez

I come from a Java background and now I'm working with C++. I've friend who work with JS closely and I myself had worked with JS for a couple of projects. Yes, I have the same feeling as you on JS and the overwhelming world of dependencies. The worst thing IMO is that there are a lot of libraries who do the same thing or almost the same thing.
My belief is that the whole ecosystem is still new compared with other langs, there is a lot of opportunity to play and a lot of opportunity to collaborate. On your projects it really depends on your goals, if you're aiming for a product, leverage on the work of others, after all you need to validate your product. I will advise on this to always be careful when picking dependencies, since if you choose a poorly supported project you will end with the responsibility of maintaining yourself. Also, take into account the complexity, could be that you only need a map and not really a whole in-memory db for your growing product. You are always iterating and making things better.
Finally, if your aim is to learn new concepts, try your best to do the things from scratch, there's no better way to learn.
PS. Yes JS has a fresh ecosystem, but with years in the back you can still see some trends in the area.

Happy coding!

Collapse
 
andrematias profile image
André Matias

Nice, thanks to reply.