this post was submitted on 11 Oct 2023
1 points (100.0% liked)

Programming

3 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
 

why node.js makes me uncomfortable
I've always programmed with php for the web and during that time I've never needed to download packages (like npm) and update them. When I needed a specific function, like sending emails, uploading files or making my application drier, I just had to look at the documentation and implement it. But with node.js it doesn't work like that, and that bothers me. If I'm wrong, please correct me

#programming

top 3 comments
sorted by: hot top controversial new old
[–] DmMacniel@feddit.de 1 points 1 year ago

You never used Composer or the like and always built on bare code base? You never used libraries?

You can develop like that with nodejs and bun.sh as well. It's just quite tedious just like in php.

[–] xiffu@kbin.social 1 points 1 year ago

my biggest fear in all this is the malware spreading around :/

[–] MrGG@lemmy.ca 1 points 1 year ago

You've never had to do something outside of what is included in the PHP standard library? You've never used composer or included a third-party library?

You must dedicate a lot of time to writing things from scratch, things that are already solved (almost certainly better than you or I can ever do ourselves) and can be utilised by using a third-party library / module / package etc.

Node does take things to the extreme sometimes, but often packages are saving you hundred or thousands of hours a year, so you can focus on overall logic rather than creating an already existing tool for sending high-volume templated email, for example.