C ++ vs(Java和C#):当C ++是...时,人们为什么选择Java或C#? [英] C++ vs (Java and C#): Why do people choose Java or C# when C++ is...

查看:95
本文介绍了C ++ vs(Java和C#):当C ++是...时,人们为什么选择Java或C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用了两年多学习C#并且几天前读过C ++。



C ++完全可以访问操作系统的所有API。 br />
但是Java和C#依赖于框架,他们无法访问所有API。

这意味着使用C ++你可以做更多的事情。



那么,为什么Java最受欢迎?为什么人们在选择C ++时会选择Java和C#?



我认为这是因为Java和C#更容易管理。



我想了解它,请帮助,谢谢你)

我也在这里检查我的知识,如果我错了,请误解我)

解决方案

人们选择编程语言有很多原因 - 最常见的是他们在其中工作的开发组织的文化。文化是由多种因素决定的,但最重要的三个因素是:



老板喜欢什么?如果你的老板很长时间是C#/ Java / C ++ / Perl / Fortran / Javascript爱好者,你就知道你将要使用什么。



当前编写的代码库是什么在?如果你正在使用C编写的大量代码库,那么你将不得不成为一名C程序员。



什么是时髦的?十年来,没有一个嘻哈的小孩子会在游戏和嵌入式行业之外接触C ++,所以它的使用率下降了不少。当大家都在听Sun的营销时,Java爆炸了。现在Java主要是服务器端,而C ++正在卷土重来,因为可以使单线程代码快速运行。



还有其他人(例如国防承包商过去需要很大程度上进入阿达)但一般我发现这三个是主要的驱动因素。


如果你不得不问,你会不会理解......:笑:< b / b


它们是不同的语言,它们各有优点和缺点 - 通常其中一个的优势被其他人视为弱点。 C ++非常强大,是的 - 它可以在各种环境中以各种方式提供。但是......这种力量使它变得复杂,并且可能妨碍产生代码。它的年龄显示(它来自C,并且已经超过40年了!)在某些方面。 C#是一个更新的,更加集中,可以很多,更快地开发。而Java是Android应用程序的默认本地语言。



我没有运行C ++ - 它是一个很好的工具,我用了很长时间 - 但对于我所做的大部分工作,C#更快,更容易阅读和维护,并且不太容易泄漏。

I used learning C# over 2 years and have read about C++ a few days ago.

C++ completely gets access to all of APIs of the operation system.
But Java and C# are depended on frameworks, they do not get access to all APIs.
It means with C++ you can do more by anyway.

So, why Java is the most popular? Why do people choose Java and C# at all when they can choose C++?

I think it is because Java and C# are easier because they are managed.

I wanna understand it, please help, thank you)
I am also checking my knowledge here, if i am wrong, please mistake me)

解决方案

People choose programming languages for many reasons - the most common one is the culture of the development organisation they work within. The culture is set by a variety of factors but the three biggest ones are:

What does the boss like? If your boss is a long time C#/Java/C++/Perl/Fortran/Javascript enthusiast you know what you'll be using.

What's the current code base written in? If you're working on a massive code base written in C from the dawn of time you're going to have to be a C programmer.

What's trendy? For a decade none of the hip young kids would touch C++ outside of the games and embedded industries so it's use declined a fair bit. Java exploded as everyone listened to Sun's marketing. Now Java's mostly server side while C++ is making a comeback as the thing that can make single threaded code run fast.

There are others (e.g. defense contractors used to have to be into Ada in a big way) but generally I've found that those three are main drivers.


If you have to ask, you wouldn't understand...:laugh:

They are different languages, and they each have strengths and weaknesses - and often the "strengths" of one are seen as "weaknesses" by the others. C++ is powerful, yes - and it's available in various flavours across a broad range of environments. But...that power makes it complex, and that can get in the way of producing code. And it's age shows (it's derived from C, and that's over 40 years old!) in some ways. C# is a lot newer, a lot more "focussed" and can be a lot, lot quicker to develop in. And Java is the default native language for Android apps.

I'm not running C++ down - it's a good tool and I used it for a long time - but for most of what I do, C# is quicker, easier to read and maintain, and less prone to "leaking".


这篇关于C ++ vs(Java和C#):当C ++是...时,人们为什么选择Java或C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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