macos MacBook Air 适合偶尔的开发工作吗?(红宝石、Objective C、可可)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/402026/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 06:00:03  来源:igfitidea点击:

Is MacBook Air suitable for occasional Dev Work? (Ruby, Objective C, Cocoa)

macos

提问by nick_alot

Will a MacBook Air have enough horsepower for occasional development in Ruby? Objective C? Cocoa?

MacBook Air 是否有足够的马力来偶尔使用 Ruby 进行开发?目标C?可可?

Are there any other major limitations with doing this?

这样做还有其他主要限制吗?

Notes:

笔记:

  • I hook it up to a large Monitor.
  • I would be hoping to use standard mainstream Mac IDEs.
  • I know a MacBook or Pro would be more appropriate but they are simply not as cool.
  • This machine will mainly be used for web etc, very much a household appliance.
  • And you guessed it - I am an ignorant windows developer :)
  • 我把它连接到一个大显示器上。
  • 我希望使用标准的主流 Mac IDE。
  • 我知道 MacBook 或 Pro 会更合适,但它们根本没有那么酷。
  • 这台机器将主要用于网络等,非常适合家用电器。
  • 你猜对了 - 我是一个无知的 Windows 开发人员:)

采纳答案by Hank Gay

You're in good company: Wil Shipley (creator of Delicious Monsterand other famous Mac software) uses his MacBook Air for dev (cite). His first-gen with SSD was faster than the MacBook Pro he was using previously.

你是个好伙伴:Wil Shipley(Delicious Monster和其他著名 Mac 软件的创造者)使用他的 MacBook Air 进行开发(引用)。他的第一代 SSD 比他之前使用的 MacBook Pro 更快。

回答by Thomas Tempelmann

The MacBook Air has one annoying habit: While it has a Dual-Core CPU, it turns one of them off once the machine gets too hot. Which happens often once you're using XCode. Which makes you end with with a single-CPU machine, effectively.

MacBook Air 有一个令人讨厌的习惯:虽然它有一个双核 CPU,但一旦机器过热,它就会关闭其中一个。一旦您使用 XCode,就会经常发生这种情况。这使您以单 CPU 机器结束,有效。

XCode is a resource-hungry beast, often scanning your sources for its code completion awareness, etc. And two cores let you effectively build twice as fast. (One trick is to use a hidden setting that tells Xcode how many processes to launch for compiles - default is set to the number of cores, which doesn't lead to full CPU utilization, though. But when setting it to a higher value, e.g. 3 on a dual-core Mac, it'll make much better use of the CPUs. To get to this setting, install the "Secrets" prefpane.)

XCode 是一个资源饥渴的野兽,经常扫描您的源代码以了解其代码完成意识等。两个内核让您有效地以两倍的速度构建。(一个技巧是使用一个隐藏设置,告诉 Xcode 为编译启动多少进程 - 默认设置为内核数,不过,这不会导致 CPU 完全使用。但是当将其设置为更高的值时,例如,在双核 Mac 上使用 3,它将更好地利用 CPU。要获得此设置,请安装“Secrets”预制面板。)

I'd recommend a full-size MacBook or even a Pro version instead. Or look into a lighter PC Laptop which can run OS X. I haven't tried it myself but read reports that some PCs can be configured in a way that you can then install OS X out of the box, and also let OS X update itself without problems.

我建议使用全尺寸 MacBook 甚至 Pro 版本。或者看看可以运行 OS X 的更轻的 PC 笔记本电脑。我自己没有尝试过,但阅读了一些报告,称某些 PC 可以配置为开箱即用的方式安装 OS X,还可以让 OS X 更新本身没有问题。

Note: I am building bigger projects with Xcode, though, where a complete rebuild can take a minute or more. YMMV.

注意:不过,我正在使用 Xcode 构建更大的项目,其中完整的重建可能需要一分钟或更长时间。天啊。

Update April 2011:What I wrote was about the original MacBook Air. The new model (introduced 2010) may be better in this respect, but I'm not sure.

2011 年 4 月更新:我写的是关于最初的 MacBook Air。新模型(2010 年推出)在这方面可能更好,但我不确定。

回答by Soviut

Only if you're going to use it to code at Starbucks.

仅当您打算在星巴克使用它进行编码时。

I'm kidding. Most kinds of development don't require all that much horsepower. Just about any consumer grade, or even budget level, laptop should be more than sufficient for Ruby and Objective C development, especially "occasional development". The Air falls into this category.

我在开玩笑。大多数类型的开发不需要那么多马力。几乎任何消费级,甚至预算级,笔记本电脑都应该足以满足 Ruby 和 Objective C 的开发,尤其是“偶尔的开发”。空气属于这一类。

回答by Tim Sullivan

Yes. I use my Air full time, not just for occasional development work. I do miss having a larger screen, but to be honest, not that much. I code in Rails using TextMate, and XCode.

是的。我全职使用 Air,而不仅仅是偶尔的开发工作。我确实想念拥有更大的屏幕,但老实说,并没有那么多。我使用 TextMate 和 XCode 在 Rails 中编码。

The thing about the Air that I love love love is how light it is. I can use it for hours on the couch without problems or a power connection. It's remarkable.

我爱爱爱爱爱的空气的事情是它是多么轻。我可以在沙发上使用它几个小时而不会出现问题或连接电源。很了不起。

As for being an ignorant Windows developer, that's my background as well. I not only found the transition to be mostly painless, but I also found that I now understand why Mac people say "it just works." It isn't that it just works, it's that there are myriad little things that just feel so nice that the overall experience is highly pleasant.

至于作为一个无知的 Windows 开发人员,这也是我的背景。我不仅发现过渡几乎没有痛苦,而且我还发现我现在明白为什么 Mac 人说“它只是有效”。并不是它只是有效,而是有无数的小东西感觉非常好,整体体验非常愉快。

My (revised) only wish: I had the sexy new 11-inch Air, not the tubby-by-comparison first-gen. Nevertheless, still very happy.

我(修改后的)唯一的愿望:我拥有性感的新 11 英寸 Air,而不是粗壮的第一代。尽管如此,还是很开心。

ETA: I now have the sexy new 11-inch Air, and it's fantastic for development, though it pretty much requires working in full-screen mode.

ETA:我现在拥有性感的新 11 英寸 Air,它非常适合开发,尽管它几乎需要在全屏模式下工作。

回答by dtc

Yes, it is. Although I don't use one I know a few Ruby developers that do.

是的。虽然我不使用,但我知道一些 Ruby 开发人员会使用。

Also...

还...

"I know a MacBook or Pro would be more appropriate but they are simply not as cool."

“我知道 MacBook 或 Pro 会更合适,但它们根本没有那么酷。”

omg... lol.

天啊……哈哈。

回答by Uri

Apple generally sets its machines up with very little RAM. This is true even for the Mac Pro (mine came with a measly 1GB even though I had four Xeons). Mac OS X Leopard is also very hungry.

苹果通常用很少的内存来设置它的机器。即使对于 Mac Pro 也是如此(即使我有四个 Xeon,我的也只有可怜的 1GB)。Mac OS X Leopard 也很饿。

Therefore, if you intend to use an intensive IDE like Eclipse, I would recommend avoiding the air.

因此,如果您打算使用像 Eclipse 这样的密集型 IDE,我建议您避免使用空气。

Also, and this may appear silly at first, but most IDEs use a white backgrounds. You can actually save a lot of battery by having most of your screen be black with the font in lighter colors. You can toggle this sort of negative in the universal access panel. If you use the air for development away from an AC, this may help.

此外,这起初可能看起来很傻,但大多数 IDE 使用白色背景。通过将大部分屏幕设为黑色并使用较浅颜色的字体,您实际上可以节省大量电池电量。您可以在通用访问面板中切换此类否定。如果您在远离空调的情况下使用空气进行显影,这可能会有所帮助。

回答by Jauder Ho

In my experience, the more RAM you can stuff into a Mac, the better it is going to be. I used a Mac Mini =) for a while and it was severely RAM limited. Worked fine after a memory upgrade.

根据我的经验,Mac 中可以塞入的 RAM 越多,性能就越好。我使用 Mac Mini =) 有一段时间了,它的 RAM 严重受限。内存升级后工作正常。

As for black backgrounds, take a look at Nocturne

至于黑色背景,看看夜曲

回答by lottadot

Control-alt-cmd-8 will get you a "more black" screen for battery-saving :)

Control-alt-cmd-8 将为您提供“更黑”的屏幕以节省电池电量:)

I have a 17" MBP that has 4GB Ram. It was fine when I was doing perl/LAMP/Cocoa. Now that I'm doing quite a bit of C#/.Net in VM's, I've mostly migrated to a Mac Pro. The 4GB on the laptop wasn't enough.

我有一个 17" MBP,有 4GB 内存。当我在做 perl/LAMP/Cocoa 时很好。现在我在 VM 中做了很多 C#/.Net,我主要迁移到 Mac Pro . 笔记本电脑上的 4GB 是不够的。

I'd think if Shipley is fine coding Cocoa on his MBAir, then you will be too.

我想如果 Shipley 在他的 MBAir 上对 Cocoa 进行良好的编码,那么你也会如此。

回答by navitronic

make sure that you get the most recent revision with the nvidia chipset as it will be more capable of driving an external display than the previous generation.

确保您使用 nvidia 芯片组获得最新版本,因为它比上一代更能驱动外部显示器。

Also, the new unibody macbooks are very much similar in look and feel to the air and are a bit cheaper and higher spec.

此外,新的一体式 macbook 在外观和感觉上与空气非常相似,而且价格更便宜,规格更高。

回答by Duncan McGregor

I have Just bought a new model 13" Air, 2.1 Gz, 4Gb, 256 Gb SSD. It clean builds my current Java project in less than half the time of my previous unibody MacBook, which had a faster CPU but a plain old rust disk.

我刚买了一个新型号的 13" Air、2.1 Gz、4Gb、256 Gb SSD。它干净地构建我当前的 Java 项目的时间不到我以前的一体式 MacBook 的一半时间,它有更快的 CPU 但一个普通的旧锈盘.