TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Node.js or Python/Django?

17 点作者 Zisko超过 10 年前
I've been using Node.js for quite a while and have become pretty invested. But I can't help but have a "grass is greener" feeling about python and Django. Python is just so much prettier than Javascript, but I feel like I'd be jumping off of the fast- moving node train! I am currently a senior CS student, so I'll also be looking for a job soon. Should I focus my time on python? or stay with node?

13 条评论

nostrademons超过 10 年前
Stick with Node because the job market is currently hotter for it, get into a hot startup to get practical experience and make some contacts, and then wait for the next technology cycle. I suspect that both Node and Django will be obsolete in roughly a year or two.<p>(My background: I started doing Java Swing before college; wrote a bunch of PHP in college; got my first job working on Java webapps with servlets and JSF; founded a startup that successively ended up using web.py, Pylons, and Django; got into Google where I ended up writing webapps in C++; participated in the rewrite of that C++ server in Java, and am now using straight Django for my second startup. The technology world really does move in cycles. Use whatever you&#x27;re most familiar with, learn it well, milk all you can out of it, and then move on only when you have to. You can save yourself years of effort by avoiding the latest fad and &quot;grass is greener&quot; syndrome.)
评论 #8622751 未加载
评论 #8625221 未加载
评论 #8622694 未加载
Ronsenshi超过 10 年前
Hard question, which I&#x27;m dealing myself too.<p>Right now I think you should concentrate on Node.js - finish your degree, maybe join some exciting startup or start something yourself. Keep looking at python from time to time. Maybe do some hackathons or tiny projects by yourself.<p>Node.js is certainly fast moving train. But where would it end up in? I don&#x27;t really keep my hand on the pulse of the node.js community, but I&#x27;m not sure node.js is here to stay in the long run. Node.js will be used for various things for a long time. It has amazing websockets implementation, asyc execution does have some great benefits, but the code. My god is it messy. As mundanevoice points out below - you have to be a very solid and experienced developer to keep it all sane.<p>About python. I think it&#x27;ll be around for a while. It is solid, it is readable, it is fast. Python community is large, there&#x27;s a lot of very high quality tools written for it. It may not be so hip as node, but there&#x27;s a lot of jobs for python devs out there.<p>All said, I myself is still torn about this question, though. I know both languages, but I&#x27;ve used node.js in more exciting projects than python. Python is so beautiful, but node.js stuff is interesting. So I&#x27;m still on the crossroads - which way I want to go all the way. And should I?<p>Python is a solid choice in the long run - it&#x27;ll be around. Node.js? Most likely too, but for what purpose and how many companies would go with it?
评论 #8626429 未加载
dagw超过 10 年前
It really depends on what you want to do. Python wins big with a wide and varied ecosystem outside the basic web domain. Do things like computational science, data analysis, mathematical modelling, statistics, GIS etc. sound like something you might want to get into? If so python is a much better bet. If ,on the other hand, you&#x27;re happy in the web services domain where node has its main strengths, then node.js vs python pretty much works out to a draw and there is not too much reason to switch.
mundanevoice超过 10 年前
I am writing Python&#x2F;Django professionally for two years now. I have also written some Node.js at work and Open Source. (<a href="https://github.com/vinitkumar/node-twitter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vinitkumar&#x2F;node-twitter</a>). So, I think I would be able to give some advice.<p>Node.js is all cool to experiment with and build some projects but it gets incredibly tough when you want to write something complex. I am not saying that it is impossible to build something complex, but it would take a very experienced developer to do all of that in acceptable time.<p>Python&#x2F;Django on other hand has a very mature ecosystem and the development is really fast as compared to Node.js which also has a fast start but you get stuck when you need to build something complex. There are many quality plugins for Python&#x2F;Django which in IMHO much better in quality than npm packages.<p>Python on other hand is a better language than JS and you won&#x27;t need to fight the language to write better code (The point is it is very easy to shoot yourself on foot while using JS).<p>If I were you at this stage of your career, I would suggest to start doing Python&#x2F;Django and maybe learn some good Golang&#x2F;C++.
kyllo超过 10 年前
There&#x27;s absolutely no reason you can&#x27;t be fluent in JS, Python <i>and</i> Ruby. Just try Python for your next project, then maybe try Ruby for the one after that. Or perhaps a functional language like Clojure or Haskell. Each successive language you learn will take about half as long as the last one, because you&#x27;ve accumulated the concepts and it&#x27;s just learning more syntax.<p>Node may turn out to be a fad, so don&#x27;t hitch your wagon to it fully. To be a good (web) developer you are often going to need to learn new languages and frameworks as the tech landscape changes.
CyberFonic超过 10 年前
I&#x27;ve programmed a lot in Python before I started using NodeJS. Once I got over the shock of the tangled mess that can be written in JS, I found NodeJS + NPM very productive. I&#x27;ve never grokked Django well enough to use it in production.<p>At this point in your career I&#x27;d suggest polishing your Node &#x2F; JS skillz and make yourself valuable to a potential employer. Being so-so with Python (or any other language) is not likely to increase your value in the marketplace.<p>If I were in your situation, I&#x27;d sooner look at Go or Rust than Python, but only once you are earning good money.
评论 #8624053 未加载
jardaroh超过 10 年前
I personally love the Python environment and community. There is very little you ever need that you can&#x27;t find a module for. It is also a very well adopted language that many developers know and is increasingly popular in education so the amount of people using it is almost artificially increased. Django as a framework is used by a ton of big companies and sites and has proven itself to be very scalable and durable. Node to me is horrible just because of javascript, so take my bias with a grain of salt ;)
svs超过 10 年前
Why limit your choices to these two? There are more great frameworks and great languages. Ruby on Rails is an obvious candidate. Ruby is a lovely language and Rails is a solid framework, perhaps even the best web framework out there for many tasks. There&#x27;s also plenty of demand for Ruby&#x2F;Rails talent.
emergentcypher超过 10 年前
Scala!<p>You&#x27;ll have the excellent Play Framework and Spray IO. WebJars, SbtWeb, and its plugins lets you add all sorts of goodness including calling nodejs stuff on your javascripts. And you won&#x27;t stray too far from the JVM.
munimkazia超过 10 年前
No harm to learning Python, especially when you are a student and have the time.<p>You need to learn multiple languages&#x2F;platforms, and learn to use the best tool for the problem.
CmonDev超过 10 年前
What is Node.js? It&#x27;s an implementation of the Reactor pattern along with some package management capabilities plus a bit of hype:<p><a href="http://en.wikipedia.org/wiki/Reactor_pattern" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Reactor_pattern</a><p><a href="http://en.wikipedia.org/wiki/List_of_software_package_management_systems" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;List_of_software_package_manage...</a><p>Both are possible in Python, while leveraging a <i>MUCH</i> better language.
_RPM超过 10 年前
If you have the time, don&#x27;t jump into Django right away. Try Python without a framework first, if you have time.
thezisko超过 10 年前
This is a horrible question, why would you even ask something so stupid and mundane. If I were you I&#x27;d just give up and become a wordpress developer