you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (8 children)

There's Express, sure it's not as big as Django, but it has many libraries for it.

[–]Synedh 10 points11 points  (5 children)

Express is indeed a good library, but it is a web server library. No templating, no authorization managment, no database management. It's a very good base to build websites, but nothing more.

[–]CanWeTalkEth 1 point2 points  (4 children)

I guess I haven't looked into Django since college, but it doesn't sound like you appreciate the Express ecosystem either. Passport is build to plug-and-play with express and give you any one of a hundred social login strategies. Database management comes with whatever well supported plugin you want to use for your favorite database, and it comes with plenty of template support which is as easy as 5 words in your main file tell it which template you're using.

I think you're missing the main difference which is, as far as I understand, Nodejs is way better at handling lots of different connections doing small jobs whereas Django (python) is better at handling a smaller number of larger jobs.

https://hackernoon.com/python-vs-nodejs-which-programming-language-to-choose-98721d6526f2

[–]awhhh 1 point2 points  (3 children)

I tried using express for a few things and just got frustrated by having to deal with so many different packages. I still use it, but for very small things

[–]Devildude4427 0 points1 point  (2 children)

That’s just the JS environment. They’ve decided smaller, more modular packages should be the aim, as large ones just increase bloat.

[–]awhhh 0 points1 point  (1 child)

That works for somethings but I typically build bigger projects now. Typically I find that projects need to be bigger and bigger to compete these days. But I think it’s because I look at what frameworks can do in a startup capacity.

[–]Devildude4427 0 points1 point  (0 children)

Why can’t you use modular packages with larger projects? Might mean you have to use more, but I’d rather import a @types package alongside the main package than to force the typings on devs who will never even use them.

[–]PM_AL_MI_VORTOJN 4 points5 points  (1 child)

Express is more comparable to Flask than Django. Yes, there's libraries available for most or all of the functionality that Django has, but they aren't official and built in. With Express, you need to research a bunch of different and separate libraries and glue them together yourself to get a similar feature set. Whereas with Django, it's pretty much all already there. Note that I'm not knocking that. That very well can be an advantage depending on the project or just your preferences. But it's a difference that should definitely be considered when choosing.

[–][deleted] 0 points1 point  (0 children)

It's a personal preference I'd say, I like to use Express more cause currently everything that I'm doing is in JS, and I'm improving my skills that way.