简体   繁体   English

Java IDE与Microsoft IDE

[英]Java IDEs vs Microsoft IDEs

I come from a strong Java background and in recent years have been also developing in C#. 我来自强大的Java背景,近年来也在C#中开发。

What I can never understand is how far behind (Personal Opinion) the Visual Studio IDE's are in compared with Intelli-J IDEA and Eclipse (Java). 我永远无法理解的是Visual Studio IDE与Intelli-J IDEA和Eclipse(Java)相比有多远(个人意见)。

There have been improvements by Microsoft from VS 2005 to VS 2008, but I feel they are not quite there in terms of taking the development experience to the next level. 微软从VS 2005到VS 2008都有所改进,但我觉得他们在将开发经验提升到新的水平方面并不是那么完美。

What I want to know is, is VS 2010 any different? 我想知道的是,VS 2010有什么不同吗?

Why is it that the tools and syntax editors are so much more "evolved" in the Java IDE's. 为什么工具和语法编辑器在Java IDE中更加“进化”。

Just to name a few: 仅举几个:

  • Code Completion (Much more advance in Java IDE's) 代码完成(在Java IDE中更进一步)
  • Ant Integration (Eclipse and IDEA) vs Visual Studio Build Events Ant集成(Eclipse和IDEA)与Visual Studio构建事件
  • Lack of Code Repository integration in VS (Subversion and CVS) out of the box. 缺乏VS(Subversion和CVS)中的代码库集成开箱即用。
  • Lack of Advance Re-factoring Tools in Visual Studio. Visual Studio中缺少高级重新分解工具。

Thanks. 谢谢。

A few points… 几点......

  • People tend to like what they know. 人们倾向于喜欢他们所知道的。

  • It is quicker to get up-to-speed in C# as the IDE and most of the tools / docs come from a single source. 作为IDE,C#的速度更快,大多数工具/文档来自单一来源。

  • In the Java world you have a lot more chooses, this is great for expert that spend times learning about them all, but does also lead to its own problems. 在Java世界中,你有更多的选择,这对于花时间了解它们的专家来说非常好,但也会导致它自己的问题。

  • Adding ReSharper or Refactor to Visual Studio may give you what you want. ReSharperRefactor添加到Visual Studio可能会为您提供所需的内容。

  • The Visual Studio debugging is great . Visual Studio调试很棒

  • Visual Studio tries to make life easy for you by trying to find missing dlls etc and then storing where they are in the registry. Visual Studio尝试通过尝试查找缺少的dll等,然后将它们存储在注册表中来尝试让您的生活变得轻松。 This may be great for a 1 man project, but can often lead to build problems across developer's machines if you are not careful. 对于1人项目来说这可能很棒,但如果你不小心,往往会导致开发人员的机器出现问题。 In the Java world you have to edit more config file by hand, but at least you can put these files under source code control. 在Java世界中,您必须手动编辑更多配置文件,但至少可以将这些文件置于源代码控制之下。

  • There is not a small command line tool that works well on a build server that will build all types of Visual Studio projects. 没有一个小的命令行工具可以在构建服务器上很好地工作,它将构建所有类型的Visual Studio项目。 However in day to day usage you don't need to learn how to use command tools, as Visual Studio hides them form you. 但是,在日常使用中,您无需学习如何使用命令工具,因为Visual Studio会将它们隐藏起来。

I think these days most programmers are just happier with the IDE they know best. 我想现在大多数程序员都对他们最熟悉的IDE感到满意。


Note I wrote this over 6 years ago , since then C#/.Net has got a lot more complex, with lots of open source projects. 注意我在6年前写过这篇文章 ,从那时起C#/ .Net已经变得更加复杂,有很多开源项目。 Microsoft has also open sourced a lot of the .net framework. 微软也开源了很多.net框架。 For web and server side development I expect there is now little to choose between the Java world and the .Net world. 对于Web和服务器端开发,我希望Java世界和.Net世界之间几乎没有什么可选择的。 For “smart clients” .net still have a lot to offer including the new support from cross device phone development. 对于“智能客户”,.net仍有很多可供选择,包括跨设备电话开发的新支持。

For multi-threaded IO, I think c# is years ahead of Java, but that could change as C# and Java keeps learning from each other... 对于多线程IO,我认为c#比Java早几年,但随着C#和Java不断相互学习,这可能会发生变化......

Visual Studio has definitely been coming on over the last few years - although many of the improvements have basically been things that Eclipse has had for ages (I haven't used IDEA myself). Visual Studio中,肯定是未来在过去的几年里-虽然很多的改进, 已经基本东西,Eclipse已经好久了(我没有用IDEA自己)。

You may well want to look at ReSharper , which brings more goodness to Visual Studio, along with the VS2010 Productivity PowerTools . 您可能希望看看ReSharper ,它为Visual Studio带来了更多的好处,以及VS2010 Productivity PowerTools

Also, have a look at Scott Guthrie's blog series about improvements in VS2010 . 另外,请看Scott Guthrie关于VS2010改进的博客系列。 Lots of goodies in there. 那里有很多好吃的东西。

All tools have their strengths and weaknesses - these days I'm about as happy in Visual Studio as in Eclipse... although I'm much happier writing C# than Java :) One area where Visual Studio really shines is debugging though... I find things like the VS Watch window to be much better than Eclipse's equivalent. 所有工具都有自己的优点和缺点 - 这些天我在Visual Studio中和在Eclipse中一样快乐......虽然我比编写C#更高兴但是编写C#但是Visual Studio真正发挥作用的一个领域是调试......我发现像VS Watch这样的东西比Eclipse的等价物好得多。

Visual studio 2017 is still far far behind Intellij IDEA. Visual Studio 2017仍然远远落后于Intellij IDEA。 I'm using both and i can say that even VS2017 with ReSharper is not comparable with IDEA. 我正在使用两者,我可以说甚至VS2017与ReSharper都无法与IDEA相媲美。

Biggest problem for me is that VS still doesn't offer usable hot reload debugging experience. 对我来说最大的问题是VS仍然无法提供可用的热重载调试体验。 I'm crying every time i have to rebuild my .NET MVC project (it is +- fast, but IIS Express load time ~ 15s EVERY time you make even the smallest change in your code). 每次我必须重建我的.NET MVC项目时我都在哭(它是+ - 快,但IIS Express加载的时间大约是15秒,即使是代码中的最小变化也是如此)。

If you want to argue with "Edit and continue" so so hotreload function - it is absolutely useless, you can't do almost any change in code without rebuilding (and everytime you have to manually break code and close opened tab with useless information). 如果你想与“编辑并继续”进行争论那么热备份功能 - 它绝对没用,你不能在没有重建的情况下对代码做任何改变(每次你必须手动破解代码并用无用的信息关闭打开的选项卡) 。

So i'm really looking forward for full version of IntelliJ Rider bringing all super user friendly possibilities of IntelliJ IDEA to the .NET world! 因此,我非常期待IntelliJ Rider的完整版本将IntelliJ IDEA的所有超级用户友好的可能性带入.NET世界!

I don't agree with you. 我不同意你的看法。 I think VS is much more easy to use. 我认为VS更容易使用。 For example, when i need to create a web application. 例如,当我需要创建Web应用程序时。 I open VS and create a new project (Web Application). 我打开VS并创建一个新项目(Web应用程序)。 After the project created, i press f5 and tadda!... But if want to create my web application with Java, i need to install a server or some frameworks. 项目创建后,我按f5和tadda!...但是如果想用Java创建我的Web应用程序,我需要安装一个服务器或一些框架。 Still i don't know how can i create a web application? 我还不知道如何创建Web应用程序?

Or, Windows Application. 或者,Windows应用程序。 At VS, you don't need do any thing to create a windows based application like web application. 在VS,您不需要做任何事情来创建基于Windows的应用程序,如Web应用程序。 but if i want to create windows based application with Java, i had to do something. 但如果我想用Java创建基于Windows的应用程序,我必须做点什么。

I think VS IDE is more user friendly than Java IDE's. 我认为VS IDE比Java IDE更加用户友好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM