vb to java_從VB.net過渡到java

Well, syntax-wise VB.NET and Java aren't very much alike but in my experience syntax is the least of the problems in learning a new language.

那么,語法方面的VB.NET和Java並不是很相似,但根據我的經驗,語法是學習新語言中最少的問題。

You certainly have to come to grips with the standard class library of Java which is a little differently organized than .NET, although it contains essentially almost the same stuff.

您當然必須掌握Java的標准類庫,它與.NET有點不同,盡管它基本上包含相同的東西。

What's more is that Java has very little syntactic sugar to make tasks easy for you. Writing larger programs alsmost invariably need design patterns and Java is a language which is pretty heavy on those. Learning them and knowing when to use them (or at least spot them in the class library) might take some time, unless you already have knowledge in that area.

更重要的是,Java幾乎沒有語法能力讓你輕松完成任務。編寫較大的程序幾乎總是需要設計模式,而Java是一種非常重要的語言。學習它們並知道何時使用它們(或者至少在課程庫中發現它們)可能需要一些時間,除非您已經掌握了該領域的知識。

For example while in VB.NET you have events for propagating messages between objects such a concept does not exist directly in the Java world. There's the observer pattern for that kind of thing. Depending on how you look at it, .NET events are just syntax sugar for the observer pattern, going on below the hood unbeknownst to the beginning programmer, or .NET simply doesn't have the need to approximate a solution with classes and interfaces where a proper one is already in place.

例如,在VB.NET中,您有用於在對象之間傳播消息的事件,這樣的概念在Java世界中不存在。這種事情的觀察者模式。根據您的觀察方式,.NET事件只是觀察者模式的語法糖,在初始程序員不知情的情況下進行,或者.NET根本不需要使用類和接口來近似解決方案一個適當的已經到位。

Actually, my biggest gripe with Java is verbosity and the fact that nearly everything has to be a class.

實際上,我對Java的最大抱怨是冗長,事實上幾乎所有東西都必須是一個類。

But for learning, I'd suggest you try just diving right in. There are a whole lot of tutorials out there to help you get started (Sun has many good ones covering key aspects of the Java platform). You can redo a project you already done in VB or come up with a task you want to solve yourself (although I'm not very good at such things, ymmv :-)).

但是對於學習,我建議你嘗試直接進入。有很多教程可以幫助你入門(Sun有很多很好的教程,涵蓋了Java平台的關鍵方面)。你可以重做一個你已經在VB中完成的項目,或者想出一個你想要自己解決的任務(盡管我不太擅長這些事情,ymmv :-))。

But the easiest way to learn a language is to actually program in it. You'll certainly be no expert until September but solving some problems should be entirely doable. Also, I doubt they'll expecting you to have already mastered the language by then.

但學習語言最簡單的方法就是實際編程。你肯定在9月之前不會成為專家,但解決一些問題應該是完全可行的。此外,我懷疑他們會期望你已經掌握了這門語言。

As for IDEs we use Eclipse a lot around here and just grazed BlueJ during a single lecture. I'd say you should use what works best for you, although I remember BlueJ not so much as an IDE but rather an interactive Java playground or so. I may be mistaken though as I regularly didn't pay attention to the lectures at that time :-).

至於IDE,我們在這里使用Eclipse很多,只是在一次演講中放棄了BlueJ。我會說你應該使用最適合你的東西,雖然我記得BlueJ不是一個IDE而是一個交互式的Java游樂場。我可能會弄錯,因為我當時經常不注意講座:-)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值