Mono for OSX 是否适合学习 C#?
我需要学习 C#。我的所有计算机都是运行最新版本 OS X 的 Mac。我不想使用 Windows,但如果必须的话我会使用。
话虽如此,作为一名新程序员,我可以在 OS X 上使用 Mono 平台高效地学习 C# 吗?
编辑 我希望学习 C# 以获取编程知识并开始独立游戏开发。在获得合理的理解后,我将研究一些游戏框架/平台和/或更特定于操作系统的语言。
I need to learn C#. All of my computers are Macs running the latest version of OS X. I do not want to use Windows, but I will if I must.
That being said, as a new programmer, can I learn C# efficiently with this Mono platform on OS X?
Edit I'm looking to learn C# to gain programming knowledge and start indie game development. After a reasonable understanding is achieved I will then look at some gaming frameworks/platforms and or a more OS specific language.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
一句话:是的。
首先,感谢 Jonathan Pobst 更新什么是 Mono 页面。也就是说,Mono 目前支持 C# 的所有版本,即 1.0 到 4.0。
由于您的计划是先学习该语言,然后再研究其他内容,例如框架和工具,因此您应该对 Mono 感到满意。一旦您开始进行特定于平台的开发(即 Windows GUI),那么您可能需要考虑切换到 Windows 计算机。
http://mono-project.com/What_is_Mono
http://en.wikipedia.org/wiki/C_Sharp_(programming_language)#Versions
In a word: Yes.
First of all, thanks Jonathan Pobst for updating What Is Mono page. With that said, Mono supports all versions of C# at present, that is 1.0 to 4.0.
Since your plan is to learn the language first before looking into other things, such as frameworks and tools, you should be fine with Mono. Once you start getting into platform-specific development (i.e., Windows GUI), then you might want to consider switching over to a Windows machine.
http://mono-project.com/What_is_Mono
http://en.wikipedia.org/wiki/C_Sharp_(programming_language)#Versions
如果您要针对 Windows 进行开发,那么使用 Windows 计算机是您的最佳选择。如果您只是想学习该语言,Mono 应该没问题。
If you are going to be developing for Windows, then using a Windows machine is your best bet. If you are simply trying to learn the language, Mono should be fine.
您应该能够,但请记住,虽然大多数示例代码都可以运行,但有些代码可能无法在 Mono 框架上运行,因为其实现并非 100% 与 .NET Framework 兼容。当然,Mono 也不支持某些东西,例如 WPF。
我在 Linux 上使用过 Monodevelop,它大部分工作正常,但因为我也在 Windows 上使用 VS2010 进行开发,所以我对使用较差的 Monodevelop 感到犹豫,但作为一个新手,它对你来说应该不重要。
You should be able to, but just keep in mind that while most of the example code will work, some may not on the Mono framework as the implementation is not 100% compatible with .NET Framework. Also, of course some things like WPF aren't be supported by Mono.
I have used Monodevelop on Linux and it mostly works but because I also develop on Windows with VS2010, I am put off by using the inferior Monodevelop but as a newbie it shouldn't matter to you much.
是的,既然 MonoMac 已经问世了,那应该没问题。 http://www.mono-project.com/MonoMac
如果您想将其用于游戏使用 OpenGL,请下载此存储库并查看 openGL 内容以开始使用。然后去 NeHe 等地方了解有关 GL 等的更多信息
。安装 git 来提取存储库:: http://git-scm.com/download
MonoMac 示例:: https://github.com/mono/monomac/tree/master/samples/
NeHe:: http://nehe.gamedev.net/
代码示例:: http://www.codesampler.com/
Yes that should be fine seeing as MonoMac has come out. http://www.mono-project.com/MonoMac
If your wanting to use it for games with OpenGL, download this repo and look at the openGL stuff to get started. Then go to places like NeHe to learn more about GL ect..
You will need to download & install git to pull the repo:: http://git-scm.com/download
MonoMac Samples:: https://github.com/mono/monomac/tree/master/samples/
NeHe:: http://nehe.gamedev.net/
Code Sampler:: http://www.codesampler.com/
视情况而定。
如果只是学习与图形无关的C#语言和CLR核心库,C#/MonoDevelop就可以了。
要学习OS X上的图形编程、游戏编程,我建议你先学习Objective-C、Cocoa,然后学习MonoDevelop/MonoMac。原因是 Cocoa API 是围绕 Objective-C 语言设计的,这与 C# 有着根本的区别。通过 C# 使用 Cocoa 很容易开始,但很快就没有什么意义,除非您了解 Cocoa 模式和模式。 Objective-C。
Depends.
To just learn the C# language and CLR core libraries which are not graphics related, C# / MonoDevelop is okay.
To learn graphics programming, game programming for OS X, I suggest you first learn Objective-C, Cocoa and then MonoDevelop/MonoMac. The reason is that the Cocoa API's are designed around the Objective-C language which has fundamental differences to C#. Using Cocoa via C# is easy to begin with, but quickly makes little sense unless you understand Cocoa patterns & Objective-C.