Mono for OSX 是否适合学习 C#?

发布于 2024-09-30 09:13:32 字数 235 浏览 4 评论 0原文

我需要学习 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

旧伤还要旧人安 2024-10-07 09:13:32

一句话:是的。

首先,感谢 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

流年已逝 2024-10-07 09:13:32

如果您要针对 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.

逆光下的微笑 2024-10-07 09:13:32

您应该能够,但请记住,虽然大多数示例代码都可以运行,但有些代码可能无法在 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.

擦肩而过的背影 2024-10-07 09:13:32

是的,既然 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/

云胡 2024-10-07 09:13:32

视情况而定。

如果只是学习与图形无关的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文