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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Young web dev asking what language to learn?

7 点作者 joshuahornby将近 13 年前
Over my summer break from uni I want to go away and learn a language which will further my skills as a web dev. What's the best to learn? JavaScript, Ruby, PHP? Any good books or sites which will help me learn one of the above. Is there something else I should be thinking about?

7 条评论

facorreia将近 13 年前
I'll try to help you giving you my point of view. It's a polemic subject I hope it doesn't start a flame war.<p>JavaScript is a very important language for web development. You can build web apps using it exclusivelly (called single-page applications) or running on a web server (with Node.js). I wouldn't advise any of these approaches to someone just learning web development, though. Single-page applications will required understanding and possibly implementing server APIs, and Node.js is a bit too new for beginners, or at least that's my perception.<p>Ruby (with Rails) is possibly one of the most popular choices nowadays for web development. I think the Ruby language itself is probably harder to fully grasp than others. But there's a lot of learning resources, just look for Rails books, tutorials and videos.<p>PHP is a very practical language, to extremes. It's newby-friendly and has been very popular. I have reservations about it because I think beginners are attracted to it and they don't know enough about pitfals (like, for instance, global variables) and end up creating code that can be very hard to understand, debug, maintain, not to speak keep safe against exploits.<p>Another popular option that's missing from your list is Python. It is a very good language, relatively simple to learn with less mystery than JavaScript or Ruby, for instance, and that promotes better code quality than PHP. Frameworks such as Django, web2py and Turbogears provide good foundations for web development (each in its own style). Django, for instance, has a great tutorial. And there are tons of learning resources about Python, such as <a href="http://learnpythonthehardway.org/" rel="nofollow">http://learnpythonthehardway.org/</a><p>So my advice, is, either learn enough Ruby to start playing with Rails, or try Python, possibly with Django.<p>Myself, I'm currently very happy with C# over the Microsoft ASP.NET MVC stack.<p>Good luck and feel free to ask any further questions.
评论 #4102777 未加载
smoyer将近 13 年前
Wow ... there are so many possible answers but I would definitely start with Javascript. Don't learn the whole language, just the "Good Parts". And that would be my first book recommendation - "Javascript: The Good Parts".<p>With that foundation, you could learn Coffeescript, NodeJS, JQuery, etc. Since you're talking about server side software, Javascript combined with NodeJS will give you both client-side (browser) and server-side capabilities.<p>You should take a look at the industries you want to join when you graduate to decide what back-end language you should learn. If you're working in a Fortune 500 company you're going to see lots of Java/J2EE. RoR is highly touted but not as wide-spread as you might guess. PHP and Perl are still widely used and there are popular Python frameworks as well.<p>Have a fun summer and good luck!
评论 #4097682 未加载
评论 #4097929 未加载
评论 #4097684 未加载
j21将近 13 年前
Whatever language you choose, I think you need to at least be able to work a little with javascript, since it's ubiquitous on the web.<p>As for myself, I picked Java and GWT for a first app since I'm familiar with Java. Going this route exposed me to the full stack of web development(front/back, server admin, security, databases, etc.) rather than staying confined to a language specific tutorial. In the process I found I needed to use javascript quite a bit (using Facebook APIs, integrating with Mixpanel for analytics, etc.) Now I'm looking to learn more javascript, as well as a sexier web language like python or ruby haha.<p>Anyway, the front-end of a web application will be HTML, CSS and javascript; the backend is what will have the other languages like php, ruby, etc.
computerslol将近 13 年前
Don't just learn; master.<p>HTML, Javascript, and CSS are a given. You have to learn them. To be good, you have to know them like the back of your hand. You need to know how far you can take them before they break, which means you need to break them. Over and over again.<p>Next choose a backend platform. This is where the magic starts happening. You can choose any of the popular platforms; it doesn't matter as much as you might think. You won't be able to make the magic until you MASTER your backend language. Take it over the limit. Break it. Over and over.<p>There will be a steep learning curve. There will be times where you hate it. You will get confused. You will get in over your head. Don't worry, you have to. All of the people you admire have been in over their heads. Being in over your head is your job.<p>Expectations grow steadily and the quality of our tools do not. The people that make it in this industry are the ones that can figure out how to create better experiences using our relatively over-complex and wonky tools.<p>When you run out of ways to break your platform, try getting closer to the metal.
评论 #4101429 未加载
评论 #4101419 未加载
anthonycerra将近 13 年前
I'm still a student myself and won't pretend to know which is best, but I can share the resources I've been using.<p>There are two great interactive courses on Udacity.com that will be helpful if you choose Python. The first course teaches you how to build a basic search engine while learning the Python language. Sergey Brin even makes an appearance. The second course is on how to create a web app using Python taught by a co-founder of Reddit (Steve Huffman). Both are totally free and incredibly high quality.<p>Codecademy.com will teach you Javascript for free. The Javascript tutorial is really great, but the jQuery tutorial has mixed reviews.<p>Finally, the de facto place to learn Ruby on Rails is railstutorial.org. The content is freely available as HTML, but the PDFs and screencasts are well worth the money.<p>Good luck!
bartonfink将近 13 年前
I think you'd do well to pick just one, learn it and then build an app or two that exposes you to the whole stack - from HTML to SQL. Web development is a big world, and the language used on the server is only a very small part of the whole picture.
评论 #4097678 未加载
debacle将近 13 年前
Learn JavaScript. It's the hottest language for the web right now, and you need it to do anything client side.<p>Learn PHP. It's the most ubiquitous language on the web, and you will never have trouble finding a library or OSS app that does what you need.<p>I'm not really sure about Ruby. It's a good language but it doesn't have the traction that it used to (outside of HN of course), and it has a weak reputation.<p>It never hurts to learn more languages. Learning a language will make you a better programmer in every other language you already know.