热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

哪个更类似于AS3,Java或C++?-WhichismoresimilartoAS3,JavaorC++?

IamActionScript3Flexprogrammer,itisthefirstlanguageIlearned.我是ActionScript3Flex程序员

I am ActionScript 3/Flex programmer, it is the first language I learned.

我是ActionScript 3 / Flex程序员,它是我学过的第一门语言。

I want to learn either Java or C++.
Would one of these be easier to learn based on my current knowledge?

我想学习Java或C ++。根据我目前的知识,其中一个更容易学习吗?

8 个解决方案

#1


It really depends what you want to do. C++ is more powerful and fast. But Java has a smaller learning curve.

这真的取决于你想做什么。 C ++更强大,更快。但Java的学习曲线较小。

I'd say learn C++, only because it will require you to gain a better understanding of how computers work under the hood. It will also help position you to learn Java, C#, or any other language down the road.

我会说学习C ++,只是因为它需要你更好地理解计算机是如何工作的。它还将帮助您学习Java,C#或其他任何语言。

#2


Java seems more likely to be directly relatable to your work in AS3; C++ is better for giving you a grounding in a different technology (pointer-style OO rather than object-style. C++ may feel eerily similar yet different).

Java似乎更可能与您在AS3中的工作直接相关; C ++更适合为您提供不同技术的基础(指针式OO而不是对象式.C ++可能会感觉非常相似但又不同)。

If you are doing C-ish C++, the pointer language learning process can be very informative as to how OS-level calls are written...

如果您正在使用C-ish C ++,那么指针语言学习过程可以提供有关如何编写OS级调用的信息......

The places where you will reach for one tool or the other are very different, and the use you have for the tool may be more important in deciding than their relative merits as languages - employability IS a use for a tool, after all.

一个工具或另一个工具所达到的地方是非常不同的,并且你对工具的使用在决定时可能比它们作为语言的相对优点更重要 - 毕竟,就业能力是工具的用途。

#3


Well, AS3 more closely resembles Javascript - they both follow the ECMAScript specification.

那么,AS3更像Javascript - 它们都遵循ECMAScript规范。

But to answer your question, I would say learning Java will be more beneficial and easier for you. Java supports Interfaces, and single inheritance, like Flex, whereas C++ supports multiple inheritance and lacks a formal notion of Interfaces. Java and Flex both manage memory for you, whereas C++ forces you to manage your own memory. Both Java and Flex have large helper libraries out of the box, and both have native String types, whereas C++ forces you to find a library to use and doesn't support native String types.

但是要回答你的问题,我会说学习Java对你来说会更有益,也更容易。 Java支持接口和单继承,如Flex,而C ++支持多继承,缺乏接口的正式概念。 Java和Flex都为您管理内存,而C ++则强制您管理自己的内存。 Java和Flex都具有开箱即用的大型辅助库,并且都具有本机String类型,而C ++强制您查找要使用的库,并且不支持本机String类型。

This may be my own bias, but it also seems more likely that you'll find a job that is looking for a Flex/Java developer, rather than a Flex/C++ developer. Java and Flex seem to work well together, with Flex as a front end and Java as a middle and back end.

这可能是我自己的偏见,但你似乎更有可能找到一份寻找Flex / Java开发人员的工作,而不是Flex / C ++开发人员。 Java和Flex似乎可以很好地协同工作,Flex作为前端,Java作为中间和后端。

#4


I would say Java is more similar to AS3 than C++. You will find lots of familiar metaphors and mechanisms. C++ on the other hand, will require more effort to learn. It is closer to the machine and demands an undertanding of lower level mechanisms. For instance, there is no garbage collection so you have to manage your memory resources yourself.

我会说Java与C ++更类似于AS3。你会发现很多熟悉的比喻和机制。另一方面,C ++需要更多的学习努力。它离机器越来越近,需要更低层次的机制。例如,没有垃圾收集,因此您必须自己管理内存资源。

Which is better to know depends on what you plan to do with the language. C++ is good at performance critical applications (games, all kinds of real time simulations etc.). Java makes it easier and safer to build things, but at the cost of performance.

哪个更好知道取决于你打算用语言做什么。 C ++擅长于性能关键应用程序(游戏,各种实时模拟等)。 Java使构建内容变得更容易,更安全,但却以性能为代价。

hope this helps

希望这可以帮助

regards

#5


C++ is, generally, harder to learn than Java. You will find this true pretty much no matter what your previous experience. Therefore, if you want to learn the easier, learn Java.

通常,C ++比Java更难学。无论你以前的经历如何,你都会发现这是真的。因此,如果您想学习更轻松,请学习Java。

(This is partly a matter of design philosophy. C++ was designed to be mostly upward compatible from C, at least the C at the time C++ was being designed. It was also designed to be useful and permissive, with ease of learning being secondary. Java was designed partly as a reaction to C++, as a generally safer and easier language. C++ is more expressive than Java, but this comes at a price: it's harder to learn C++, and easier to screw up with it.)

(这部分是设计理念的问题.C ++被设计为大部分向上兼容C,至少是C ++设计时的C语言。它也被设计为有用且宽容,易于学习是次要的。 Java的设计部分是作为对C ++的反应,作为一种通常更安全和更容易的语言.C ++比Java更具表现力,但这需要付出代价:学习C ++更难,更容易搞砸C ++。)

That being said, you never said why you wanted to learn another language. You might well be better off learning C++, even though it is more difficult.

话虽如此,你从未说过为什么要学习另一种语言。你可能会更好地学习C ++,即使它更难。

#6


Whatever you'll finally decide to learn, do yourself a favor and read either Thinking in Java or Thinking in C++.

无论你最终决定学习什么,请帮自己一个忙,然后阅读Thinking in Java或Thinking in C ++。

Both books are available - for free! - at Bruce Eckels website. They are very, very good.

这两本书都是免费的! - 在Bruce Eckels网站上。他们非常非常好。

C++ is more complex than Java so I'd suggest to take a look at Java, first.
However, this isn't meant as C++ bashing. Both are great language, it just depends on what you'd like to do in the end.

C ++比Java更复杂,所以我建议首先看看Java。但是,这并不意味着C ++抨击。两者都是很棒的语言,它取决于你最终想做什么。

#7


I would go with Java. It will be easier to learn and, given your background, I'm guessing you do more web/internet work in which case you'll probably find more ways to apply the Java knowledge then you would C++.

我会选择Java。它会更容易学习,并且考虑到你的背景,我猜你做了更多的网络/互联网工作,在这种情况下,你可能会找到更多的方法来应用Java知识然后你会C ++。

#8


I think you would find Java more similar.

我想你会发现Java更相似。

Learning C++ will likely require you to learn concepts that you could avoid with other high level languages (such Java and AS3) e.g. manual memory management, pointers, non forward looking compiler, multiple inheritance, etc.

学习C ++可能需要您学习使用其他高级语言(例如Java和AS3)可以避免的概念,例如:手动内存管理,指针,非前向编译器,多重继承等。


推荐阅读
  • 在Docker中,将主机目录挂载到容器中作为volume使用时,常常会遇到文件权限问题。这是因为容器内外的UID不同所导致的。本文介绍了解决这个问题的方法,包括使用gosu和suexec工具以及在Dockerfile中配置volume的权限。通过这些方法,可以避免在使用Docker时出现无写权限的情况。 ... [详细]
  • 本文介绍了设计师伊振华受邀参与沈阳市智慧城市运行管理中心项目的整体设计,并以数字赋能和创新驱动高质量发展的理念,建设了集成、智慧、高效的一体化城市综合管理平台,促进了城市的数字化转型。该中心被称为当代城市的智能心脏,为沈阳市的智慧城市建设做出了重要贡献。 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction ... [详细]
  • sklearn数据集库中的常用数据集类型介绍
    本文介绍了sklearn数据集库中常用的数据集类型,包括玩具数据集和样本生成器。其中详细介绍了波士顿房价数据集,包含了波士顿506处房屋的13种不同特征以及房屋价格,适用于回归任务。 ... [详细]
  • 拥抱Android Design Support Library新变化(导航视图、悬浮ActionBar)
    转载请注明明桑AndroidAndroid5.0Loollipop作为Android最重要的版本之一,为我们带来了全新的界面风格和设计语言。看起来很受欢迎࿰ ... [详细]
  • 如何自行分析定位SAP BSP错误
    The“BSPtag”Imentionedintheblogtitlemeansforexamplethetagchtmlb:configCelleratorbelowwhichi ... [详细]
  • 生成式对抗网络模型综述摘要生成式对抗网络模型(GAN)是基于深度学习的一种强大的生成模型,可以应用于计算机视觉、自然语言处理、半监督学习等重要领域。生成式对抗网络 ... [详细]
  • Iamtryingtomakeaclassthatwillreadatextfileofnamesintoanarray,thenreturnthatarra ... [详细]
  • Commit1ced2a7433ea8937a1b260ea65d708f32ca7c95eintroduceda+Clonetraitboundtom ... [详细]
  • [译]技术公司十年经验的职场生涯回顾
    本文是一位在技术公司工作十年的职场人士对自己职业生涯的总结回顾。她的职业规划与众不同,令人深思又有趣。其中涉及到的内容有机器学习、创新创业以及引用了女性主义者在TED演讲中的部分讲义。文章表达了对职业生涯的愿望和希望,认为人类有能力不断改善自己。 ... [详细]
  • 本文介绍了Hyperledger Fabric外部链码构建与运行的相关知识,包括在Hyperledger Fabric 2.0版本之前链码构建和运行的困难性,外部构建模式的实现原理以及外部构建和运行API的使用方法。通过本文的介绍,读者可以了解到如何利用外部构建和运行的方式来实现链码的构建和运行,并且不再受限于特定的语言和部署环境。 ... [详细]
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • CF:3D City Model(小思维)问题解析和代码实现
    本文通过解析CF:3D City Model问题,介绍了问题的背景和要求,并给出了相应的代码实现。该问题涉及到在一个矩形的网格上建造城市的情景,每个网格单元可以作为建筑的基础,建筑由多个立方体叠加而成。文章详细讲解了问题的解决思路,并给出了相应的代码实现供读者参考。 ... [详细]
  • web.py开发web 第八章 Formalchemy 服务端验证方法
    本文介绍了在web.py开发中使用Formalchemy进行服务端表单数据验证的方法。以User表单为例,详细说明了对各字段的验证要求,包括必填、长度限制、唯一性等。同时介绍了如何自定义验证方法来实现验证唯一性和两个密码是否相等的功能。该文提供了相关代码示例。 ... [详细]
author-avatar
Amy刘晓玲
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有