Комментарии:
I misspoke in the video: OOP was invented to make code less brittle.
ОтветитьPackages updating automatically in nodejs can be solved by using `npm ci` to install packages instead of `npm i` . Saying that NodeJS is bad because it updates it's packages automatically is probably a skill issue.
Ответитьtotal noob here but I find these videos so clear and useful
Ответитьpackage-lock.json?
ОтветитьPlease don't install wordpress, never install wordpress, do not even mention wordpress (as a person who was stuck in the wordpress hole for 2 years and barely managed to get out of the worst job ever)
ОтветитьI totally get where you are coming from but in all fairness I think you aren’t using Node JS properly!
Node is exceptionally fast and reliable! Big companies like Facebook, AWS, Amex are using it on a daily basis with 10k+ engineers! Do you really think they would still choose Node if these supposedly problems with Node existed! No way in million years! I have nothing against your vlog, at the end of the day it’s your channel and your opinion based on your experience!
The other reason many of us are using Node is because of JavaScript and TypeScript ecosystem and what it offers! As a full stack engineer I love writing both backend and frontend using same language, keep things so much easier and everything runs smoothly!
Regards
What in your opinion would be the fastest back end language for high volumes of requests, mathematical calculations, and database access/manipulation out of PHP, NodeJS, and Python?
The current backend for my project is Nodejs but im strongly considering Python due to popularity and usefulness for other things but mainly I want an extremely robust backend for a highly server authoritative system (something like an MMORPGs game).
I didnt watch but. I know this is a bullshit clickbait as always. disliked. thanks
ОтветитьThere is no lame frameworks, but lame developers. There also is 0.01% chance that you will hit the bottleneck of the nodejs framework.
ОтветитьDon’t hate on Nodejs cause nodejs is for speed development not robust like java or great like GO but it does the job
ОтветитьHi Stefan,
Please, do not spread misinformation, especially if you're consider yourself a teacher and promouting some cources for novices. Such statements show you to be incompetent in the field of web development.
1. Lock-files for Node.js dependencies invented YEARS ago. It doesn't matter which package manager it is: npm, yarn, pnpm - each of these supports locking exact versions of dependencies so to make every install and bootstrap of them consistent across every run. Your service cannot break unless you explicitely change dependencies by yourself. And if you don’t keep lock files in git, then who’s to blame? The question is rhetorical.
2. It is a developer's responsibility to keep service dependencies up to date and with correct versions usage and update them when needed. It's not even difficult, by the way.
You cannot compare php with node js, full stop.
ОтветитьAfter watching this video i will develop my website using nodeJS
long live node.js
node falling into the mass morons and will suffer the consequences of being too popular and easy to learn. this is the same consequence that PHP paid and that it was easy to learn. Being easy to learn is actually a downside in the long run because overtime people of average intelligence get into the market and drag it down just like McDonald's. just because something is popular doesn't mean it's good. PHP… There's nothing wrong with it … It's always the people. So node will be no different in that your average moron will be on the job for cheap. the NPM stack your talking about is now full of amateurs… Sloppy… Clueless… and overall dangerous to stability as you clearly state.
ОтветитьI spoke with a lead dev during an interview, and for every problem I mentioned why not to use technology X, he had a solution Y to counter it.
ОтветитьI just like node because it is mind-blowing fast to deploy stuff. I can release a prototype of whatever app in 5-8 hours what I can't do in anything else
ОтветитьPeople who don't know about lock files and they throw shades on their inability to code in node.js 😂
ОтветитьStupid titles man ...
ОтветитьJust like regular influencers, tech influencers only want attention. And give very bad advice. Any language is awesome, as long as it is used right.
Ответитьwow I'm out of words to express how much i disagree with this opinion. node.js + typescript + vscode is one of the most incredible workflows in 2023 how could you argue in favour against it is beyond me.
ОтветитьI had to disagree on the point that PHP is fully OOP nowadays and enterprise ready. Its really not. There are many concepts that have made it into php but since php is a mix and match between different languages (the developers of php themselfes say they took what they find cool from other languages and integrate it) it lacks a larger concept. No type safety and no casting, no generics at all. So if you try to write your code generic you will fall over those pitfalls like simply returning the correct type. I wouldnt use PHP if the project seems to be more complex, since from my point of view, its not mature enough to be considered enterprise ready. It might be on the right path but it isnt there yet.
ОтветитьLong speech of saying too little. I used both PHP and NodeJS and clearly the PHP is outdated coding. I think PHP is only alive because of tons of existing code that people don't have time/money to rewrite
ОтветитьDo you have the same views about react ?
ОтветитьI work with a lot of languages and frameworks and the best one so far is .NET 8.
My goodness, it's so damn simple yet so insanely fast.
There's something called Blazor that allows you to build fullstack apps and it's crazy how simple it is.
It's like day and night difference from JS world.
React is also brittle?
Ответитьyou are right but php is not intelligent.
ОтветитьI found Reactjs to be very scatter brained. Good to put php on the radar again, but i still lean towards javascript
Ответитьuseless video...
ОтветитьJS, TS, Node, Vue all paid my bills for many years and it's great
ОтветитьHonestly, that's why selecting packages manually is a must in nodejs. Nodejs kinda needs organized modular thinking, and perfect documentation, something you will never see in php. When I was a php intern, everyone told me care with the dependencies and that most of the companies run away from PHP updates. Nodejs is much more stable at this point, until you don't bring those packages without selecting, manually, the version you're going to use. Nodejs will obligate you to stop write spaghetti code, php won't php doesn't care until a major update comes and you must update... then u in trouble. Overall, unorganized ideas go along with PHP, PHP teams constantly change developers and a ton of projects made before nodejs came in(that's why there's a ton of open positions always requiring a lot of experience cuz the dev can't understand the code anymore or the update messed it up) nodejs in the other hand keeps you in the same place for longer because you have control and if you know what your doing, is the dream job. I don't agree that much with this video, there's always a way to use your brain and backup the stable versions of your packages or keep track of what versions of packages you're installing, and this is something that even a junior nodejs dev knows, kina bull whatever whoever told you nodejs has too many dependencies... NO! people are used to write spaghetti code, get the money, and go vacate somewhere, why should I spend time in keeping track of my dependencies or document or clean the code, it works right then f it... the PHP mentality that still with us, (luckily there is good php seniors out there they control their php project properly) but yeah both PHP and NODEJS are stable is the dev community that messes thing up and blames the technology not his habits. PHP and Nodejs are good and will stay for long. It is unarguable that PHP will keep making spaghetti code mentalities because it's way easier to deploy with it without fully understanding how the h... it works
ОтветитьYou're talking about some ridiculous things) a junior developer couldn't figure out the code and set up an environment for himself and went to a language where you need to think less. The problem is that PHP has the most shitty code because of such "experienced defectors".
If you don't know how to use something, it doesn't mean that the tool is bad - it says a lot about you.
author: sets up the camera -> runs to the next room to pompously enter and sit on the chair 😁
ОтветитьSame thing with using something like composer php
ОтветитьDon't randomly update packages. Test what you release to production. This package excuse might be good for amateur developers. Real companies test code thoroughly before release.
ОтветитьI started a long time ago with one of Stef's early courses. Over the years I wandered off and tried to learn just about everything - I have, honest!
I'm not your typical learner. I don't want to work for a big company. I don't want a full-time job, and I'm not after a big income. All I want to do is make a modest income as a Freelancer.
I have now come full circle and realised I can do what I want with HTML, CSS, JS and PHP. So it's timely - a coincidence - that Stef posted this.
One size doesn't fit all.
Good luck all.
Thanks Uncle Stef
ОтветитьAs a node developer I can say - what you're saying doesn't make any sense. This video should be removed because it's inaccurate and it's false.
Let's say you install a dependency A in node at version 3.2.2. Dependency A has its own dependency - dependency B at version 1.2.1
Once you install those packages - THEY ARE LOCKED in lock file. That's why you have package-lock.json.
If a maintainer of dependency B updates it to v 1.2.2 and it is some malicious code - I don't care. My app would still be installing 1.2.1 - it would take the data from the lock file.
Do the research about package-lock.json files in node ecosystem.
So the point that you're making is completely false.
Stop misleading old man.
ОтветитьHi concurency application, hmmmmm, in relation to php, who don't you take a look at roadrunner? Or goland itself?
Ответитьis this why Java is constantly becoming more like javascript with each upgrade? such as Java 11 bringing in modules like we have in node javascript? or how java now has "try-with-resources" which is how js has been handling error? or how java keeps towing the line of type inference like javascript has been ? php is archaic there plenty of laughs and jokes about php lol sorry, just face it. Node is not the best or the greatest by any means, but to say you shouldn't use it discredits you. I doin't know what you are aiming for with this title.
I started out coding with php, mysql, html, css. I then learned Java, C++. Today, i can confidently say I love MERN stack. It works. Many myths about node.js like it isn't multi-threaded. In fact, node.js is multi-threaded, pure. You are talking about npm packages with are "optional". You don't need npm packages they just make work easier faster and advance the language. Node.js ends up taking the best ones and creating built-in modules of those npms. I find this incredible. For instance, node has built-in dotenv now, which was only available through npm packages before. Now, you no longer need the dotenv npm. I love C++ as my main language, but i cannot deal with Java it is so boring a bore and php is boring and old lol don't get me started on php we all know.
With correct use of package-lock.json, is node package instability still such an issue?
ОтветитьBut I need to learn node... 😑 it's popular in my area for jobs and I still need to get my first job in tech before I can move further...
ОтветитьIf you like working with node be sure to keep your version control game sharp, and you could achieve upwards of 99% uptime.
ОтветитьWell if you don`t like changing versions why don't you stick to one package version of your dependencies? That solves the whole problem, yes node is a bit meh, but not for the problem that you are exposing, that only shows your lack of knowledge about the node environment
ОтветитьJavascript should never have left the browser, that's the truth.
ОтветитьEven reactjs has similar issues with packages especially on upgrades. Also one should also note that the npm audit feature is completely flawed
ОтветитьDo C# packages (NuGet) stable compared to NPM and PIP?
ОтветитьSo I am helping out with a project creating a React app and never touched React/node.js before. The learning curve for me really was just working within the terminal and dealing with all these errors for the packages. Apparently, I was using npm but the project packages were supposed to be installed with the pnpm package manager. It just caused all sorts of problems which were taken care of but much of the frustration could have been avoided making this site in a simpler way. React in itself is simple but the dependencies and packages just are a bit overkill for this. For small sites I really think unless you are planning on scaling to something much larger that just using plain php and js is far more than enough. It's simple and straight forward. I think only if you are planning on scaling or anticipating a really high level of traffic that then building a React app would be more suitable. So it has its place but can be overcomplicating the situation for small projects. Just my two cents take it for what its worth.
Ответить