面向Ruby/Rails开发人员的JSP工具? [英] JSP tools for a Ruby/Rails developer?

查看:76
本文介绍了面向Ruby/Rails开发人员的JSP工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名全职的红宝石专家,非常喜欢Rails,Sinatra等.但是,目前,我发现自己从事Java/TomCat/JSP项目.

I am a full time rubyist, really enjoying rails, Sinatra, etc. Currently, however, I find myself working on a Java/TomCat/JSP project.

我希望有人能帮助我找到工具,文章,书籍以及其他任何使我更舒适的资源?

I was hoping someone could help me find tools, articles, books, and any other resources that will make me more comfortable?

我知道Java与Ruby有很大的不同,社区也有很大的不同.话虽如此,关于Java的所有文档(我发现)都是一团糟,在这个社区中很难发现.

I'm aware that Java is very different from Ruby, and the communities, likewise, are very different. That being said, all of the documentation around Java (that I have found) is a mess, and discovery is very difficult in this community.

我正在寻找的东西

  • 开发环境设置提示
  • 记录器,日志记录,色彩丰富的输出,最佳实践等
  • 图书馆资源和文档
  • 易于浏览Java SE 6的文档
  • 您发现的任何可以改善您日常生活的东西

谢谢!

推荐答案

首先,您正在正确的道路上探索Java EE的优雅程度.由于您处理了各种主题,因此我会将答案分为不同的部分:

first of all you are on the right road to discover how elegant Java EE is. since you adressed various topics i will divide my answer into different parts :

  • 开发环境: 无需进一步讨论,我建议您直接选择Eclipse Java EE Juno(最新版本)版本,但是,如果您想查看其他IDE,则可以检查NetBeans 7.2(最新版本)或IntelliJIDEA 11.2 Ultimate (我知道的最新版本,我知道的).基本上,Eclipse具有大量的插件和功能,并得到了一个非常庞大,热情洋溢的社区的支持.
  • Development environment: Without further talk i will advise you to directly go and pick your eclipse Java EE Juno (last release) version, however if you'd like to have a look at other IDEs you can either check NetBeans 7.2 (last release) or IntelliJIDEA 11.2 Ultimate (last release i know of and that I have). Basically Eclipse has tons of plugins and features and backed up by a very great, large and passionate community.

[我亲自尝试过NetBeans和IntellijIDEA,但是由于它的外观,功能,炫酷的色彩主题等,使Eclipse更加舒适

[ i personally tried NetBeans, and IntellijIDEA, but felt more comfortable with Eclipse because of its look, features, cool color theme etc]

对于JSP和HTML,CSS,JS东西,我还是推荐Jetbrains Webstorm的出色IDE,它具有zen编码以及许多其他功能,例如快速自动完成和对许多框架的支持.

For JSP and HTML, CSS ,JS stuff, i however recommend the great IDE of Jetbrains Webstorm it has zen coding as well as many many other things like fast auto completion and support for many frameworks.

最后,选择Sublime Text 2作为文本编辑器进行快速编辑或仅检查源文件,它的布局非常漂亮,并支持多种语言以及大量插件.

Lastly, pick up Sublime Text 2 as a text editor for quick edits or to just check a source file, it has a very beautiful layout and support for many languages as well as tons of plugins.

  • 资源和文档:

所有Java API规范都可以在Oracle网站上免费进行脱机查看,并且与其中提供的各种SDK打包在一起.

All the Java API specifications are available for offline viewing for free in Oracle's website and come packaged with the various SDK that are available there.

  • 易于浏览的文档: Eclipse IDE可以很容易地将JavaDoc和Source附加到组成JDK的不同jar文件中,也就是说,一旦设置,您的学习和编码经验将大大增加. IDE,您可以简单地按住Ctrl命令,然后右键单击它,然后将在另一个选项卡中打开类实现的源代码.是的,这就是开源世界的力量:)

  • The easy to navigate documentation : Eclipse IDE makes it very easy to attach JavaDoc and Source to the different jar files that make up a JDK, that said, your learning and coding experience will be greatly increased once you've set that up.So when you type Connection for example in IDE, you can simple hold Ctrl command then right click on it and the source code of the class implementation would be opened in a different tab. yes yes it's the power of the open source world :)

关于技巧和窍门: 我建议您使用//TODO注释,因为Eclipse支持它们,并且您可以在设置中设置自己的TODO注释,也可以使用TASK注释,Mylyn也可以在本地管理错误,任务或连接到您喜欢通过连接器访问的错误和问题跟踪器,因为有许多连接器可用于此目的.添加到此列表中的可能性可能是配置书签,以帮助您在源文件满行时管理源文件.

Concerning tips and tricks : I'll recommend you use //TODO comments as Eclipse has support for them and you can setup your own TODO comments in settings, also you can use TASK comments, you've Mylyn too to manage your bugs, tasks either locally or connect to your favorite bug and issue tracker through a connector since many connectors are available for such purpose. Add to this list the possibility to configure bookmarks to help you manage your source files when they become full of lines.

关于Tomcat: 好吧,如果您的目标是制作不需要Java EE规范的高级功能的Java EE应用程序,那么您可以使用易于使用和配置的甜蜜Tomcat,以及众所周知的Web容器.

About Tomcat: Well if your goal is to make Java EE applications that do not require the advanced features of the Java EE specification, then you can use the sweet Tomcat, it's easy to use and configure and a well known web container.

但是,如果不是这样,并且您想专门研究Java并花费大量时间尝试了解这一庞大规范的来龙去脉,则可能需要支持所有Java EE组件的经过认证的Application Server.它们有很多可用,但是由于您要寻求建议,我在这里给出我的建议,我建议您选择GlassFish Application Server,它是开源的,例如,一旦将其安装在Eclipse IDE上,它将是与Java EE 5和Java EE 6 API文档捆绑在一起.这意味着没有时间浪费在浏览不同的工具和选项卡上,您将所有内容分组在Eclipse IDE中,这样您就可以100%地完成手头的任务.

However if that's not the case, and you wanna specialize in Java and spend lots of time to try to understand the ins and outs of this huge specification, you are likely to need a certified Application Server that supports all Java EE components. There are lot of them available, but since you asked for advise and I am here giving my modest suggestions I would advise you to pick the GlassFish Application Server, it's Open Source, and once you install it on Eclipse IDE for example, it will be bundled with both Java EE 5 and Java EE 6 API doc. This means no time to be wasted on browsing different tools and tabs, you will have everything grouped inside your Eclipse IDE so that you are 100% on the tasks at hand.

p.s:如果您还有其他问题,请随时给我ping通.

p.s: if you've any more questions please feel free to ping me.

  • 任何好的技巧或窍门: 享受Java的乐趣,因为您将每天学习新的东西:)
  • Any good tip or trick : Have fun with Java, because you will be learning everyday something new :)

p.s:我没有提到任何框架,因为当您习惯Java EE时,您将可以选择适合您需求的框架.还忘了提及JUnit(测试框架)和一个出色的eclipse插件EClemma来进行代码覆盖(比Cobertura/eCobertura好得多,并且更易于使用),当然您可以尝试使用Maven作为其他提到的文章,或者尝试使用Apache Ant作为构建工具工具.

p.s: i didn't mention any framework, because by the time you get used to Java EE you will be in position to pick the one that suits your needs. Also forgot to mention JUnit (Testing Framework) and a great eclipse plugin EClemma for code coverage (much better than Cobertura/eCobertura and easier to use), and of course you can try Maven as the other post mentioned, or try Apache Ant as build tool.

这篇关于面向Ruby/Rails开发人员的JSP工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆