TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to prepare your fresh Mac for software development

28 点作者 mtkocak将近 9 年前

12 条评论

bitwize将近 9 年前
Step one is to install Xcode or the Xcode command line tools. These are necessary for brew to build from source.<p>Once brew and clang are working it&#x27;s mostly a matter of installing packages as on a normal Unix system. Definitely want to install command-line git.<p>Of course what this guide is missing is how to set up the runtime for whatever environment&#x2F;framework you&#x27;re using. For Rails you&#x27;ll want rvm&#x2F;rbenv; for Node, nvm. You also may wish to test everything in a Linux VM that mirrors prod, in which case configuring your Mac to transfer or share the code jn your src directory with the VM is necessary.<p>Getting the actual dependencies of your code up and running is generally the most crucial -- and most difficult -- part of prepping any new dev box.
评论 #12218553 未加载
drinchev将近 9 年前
&gt; Let&#x27;s start with a list of essential things you need.<p>&gt; ...<p>&gt; Github — The essential version control system<p>git is the VCS. GitHub is a service ( website ) that provides git repositories.
评论 #12218296 未加载
评论 #12219595 未加载
pathikrit将近 9 年前
Here&#x27;s mine: <a href="https:&#x2F;&#x2F;github.com&#x2F;pathikrit&#x2F;mac-setup-script&#x2F;blob&#x2F;master&#x2F;setup.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pathikrit&#x2F;mac-setup-script&#x2F;blob&#x2F;master&#x2F;se...</a>
sciencerobot将近 9 年前
I like homebrew-bundle [1]. It lets me list all of the apps I use in a text file and install them with a single command.<p>You can also run `brew bundle --cleanup` to purge your system of apps that you no longer need (as long as you installed them with homebrew&#x2F;homebrew-bundle in the first place).<p>- [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;homebrew-bundle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;homebrew-bundle</a>
pfooti将近 9 年前
I like laptop from thoughtbot. It is a good starting point.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;thoughtbot&#x2F;laptop" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thoughtbot&#x2F;laptop</a>
asteinbr将近 9 年前
This one is better: <a href="http:&#x2F;&#x2F;sourabhbajaj.com&#x2F;mac-setup&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sourabhbajaj.com&#x2F;mac-setup&#x2F;</a>
评论 #12218217 未加载
评论 #12218167 未加载
MasterScrat将近 9 年前
Setup for Homebrew, GitHub Desktop and an IDE? This seems excessively basic...
评论 #12218386 未加载
评论 #12219369 未加载
gaius将近 9 年前
For &lt;a very small subset of development&gt;. When I get a new box I install among other things, OCaml and Forth...<p>This is a good rant tho&#x27; <a href="https:&#x2F;&#x2F;medium.com&#x2F;my-name-is-midori&#x2F;software-development-is-fucked-up-a002b3435be8#.bba2fro3h" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;my-name-is-midori&#x2F;software-development-is...</a>
nbmh将近 9 年前
For setting up a Mac, I can&#x27;t recommend a .osx file highly enough. Dot files in general make setting up a new computer really easy, especially when combined with homebrew&#x27;s cask. I&#x27;ve been able to setup a familiar dev environment on a new machine in less than 15 min because I&#x27;ve maintained dotfiles. It&#x27;s a relatively small time investment upfront and the payoff can be massive, especially if anything ever goes wrong on your main machine.
评论 #12218337 未加载
technojunkie将近 9 年前
This does seem a little basic but I forked and rewrote another setup guide specifically for front-end developers using a Mac.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;asuh&#x2F;front-end-osx" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;asuh&#x2F;front-end-osx</a>
teh_klev将近 9 年前
Apologies, but I can&#x27;t help myself:<p><a href="http:&#x2F;&#x2F;widgetsandshit.com&#x2F;teddziuba&#x2F;2011&#x2F;03&#x2F;osx-unsuitable-web-development.html" rel="nofollow">http:&#x2F;&#x2F;widgetsandshit.com&#x2F;teddziuba&#x2F;2011&#x2F;03&#x2F;osx-unsuitable-w...</a><p>But the problem ranted about above doesn&#x27;t just apply to Macs. One of the most common things I see on our support system is the dev team who&#x27;ve built their app on Windows + XAMPP then wonder why stuff doesn&#x27;t work the same when they deploy to their production CentOS box.<p>If you&#x27;re writing any server side code you should be developing on a machine (or VM) that closely matches your production targets. Then there&#x27;s no surprises.
评论 #12218623 未加载
lsaferite将近 9 年前
Things like this make me die a little inside every time:<p>&gt; Open a fresh terminal and enter this command: &#x2F;usr&#x2F;bin&#x2F;ruby -e &quot;$(curl -fsSL <a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;Homebrew&#x2F;install&#x2F;master&#x2F;install)&quot;" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;Homebrew&#x2F;install&#x2F;master&#x2F;in...</a>
评论 #12218378 未加载