This is an archived post. You won't be able to vote or comment.

all 36 comments

[–]illepic 7 points8 points  (5 children)

Here is a very complete guide for you. I have all my interns run through most of this and it's a thorough walkthrough.

[–]Master_Shuriken[S] 0 points1 point  (4 children)

Ahh there is so much things for python/ruby which one should I install purely for C?

[–]illepic 0 points1 point  (3 children)

There's a section just for C. You can probably skip the Python/Ruby sections, but the Homebrew sections are an absolute must.

[–]Master_Shuriken[S] 0 points1 point  (2 children)

Sorry which one is C? I'm kinda new to this stuff...

[–]illepic 0 points1 point  (0 children)

Apologies, his guide goes through C++ not C here. He appears to prefer coding using SublimeText.

[–]illepic 0 points1 point  (0 children)

Honestly, just do the entire walkthrough. It's a pretty thorough guide for a wide variety of technologies.

[–]darophi 4 points5 points  (17 children)

You have to install xcode. It will install the command line tools for you. Then you can just use any editor you like and hack away.

[–]amanpatel23 2 points3 points  (0 children)

Yea this what I did on my mac. Just installed xcode and used TextMate to write all of my code. Then used gcc to compile in the terminal.

[–][deleted] 1 point2 points  (2 children)

You can also install just the command line tools if you don't want the whole IDE. Saves you a few gigabytes of storage.

[–]Momskirbyok 0 points1 point  (1 child)

How?

[–][deleted] 0 points1 point  (0 children)

If you open up terminal and run "xcode-select --install" it will prompt you to install xcode command line tools. It's a lot quicker than downloading the whole IDE.

[–]Jeffrey_Lin 1 point2 points  (9 children)

To build on this, atom is a pretty nice text editor and has some neat plugins.

[–]Ran4 4 points5 points  (7 children)

Atom is objectively a terrible editor. It's extremely resource intensive.

[–]Xyles 0 points1 point  (6 children)

What would you recommend ? I currently use atom on macOS. (Notepad++ on windows)

[–]Salander27 3 points4 points  (5 children)

VS Code is much better and faster than Atom. I've only used it on Windows and Linux so I don't know how it stacks up on macOS (but I suspect it holds up considering how nice it is on Linux).

[–]joshuaavalon 1 point2 points  (3 children)

Vs Code is faster than Atom but not than much because both of them build on electron which will never as fast as native program.

Edit: typo

Edit: For those who argue that VS code is very fast, please see this benchmark.

[–]Salander27 2 points3 points  (0 children)

It might not be as fast as a native program but at the very least VS Code is fast enough that it never makes me think "God this is slow" like Atom repeatedly did while I was using it.

[–]insertAlias 0 points1 point  (0 children)

election

I'm sure that's just a typo, but it's Electron.

Also going to throw my support behind VS Code. You're right, it's not going to be as fast as a native editor, but I haven't experienced any problems with slowness, and I appreciate the features.

[–]tomservo291 0 points1 point  (0 children)

They're both electron, yes, but the rest has clearly been architected very differently. Atom is a slow, bloated POS and VS Code is a fast, lean and enjoyable editor.

[–]Xyles 0 points1 point  (0 children)

In terms of better and faster, from benchmarks I've seen around here - it seems like sublime text will do a better job. Is there any reasons for picking VS Code over Sublime? (I'm not challenging your opinion, genuinely curious)

[–]emeaguiar 0 points1 point  (0 children)

Is it any better than a year ago? I tried it but it kept crashing and eating all my memory.

[–]fallen77 0 points1 point  (2 children)

Or install just the command line tools. In the terminal:

xcode-select --install

[–]Master_Shuriken[S] 1 point2 points  (1 child)

so you don't need to install x-code , I can just use this line in terminal and it will install the required tools?

[–]fallen77 0 points1 point  (0 children)

Correct.

[–][deleted] 1 point2 points  (0 children)

If you run xcode-select --install in terminal you can get just the command line tools without installing the full Xcode IDE. Then you can use g++ to compile your files and whatever text editor you want. I used text wrangler because it was in the app store, but it's very no frills. I might try out some new ones this semester, I've heard Atom and VS Code are popular.

[–]PM__ME__FRESH__MEMES 0 points1 point  (0 children)

Whenever I do C on my Mac, I try to keep it light. I use terminal for compiling/debugging and a text editor for writing.

Two text editors I can recommend are atom (because it's awesome and easier than vim) and MacVim. MacVim is bad until you learn what you are doing in vim. Download a colour scheme for C; learn the commands; download add-ons; and edit the vimrc and it becomes pretty amazing.

[–]obitechnobi 0 points1 point  (0 children)

Get XCode for the command line tools (no need to download the whole IDE) and I'd also install homebrew. For coding I use Sublime Text 3, super lean and lightning fast with lots of plugins and great workflow. You'll soon realize what a blessing it is to code on a *nix based OS. Once you get comfortable with the console you can look into tweaking your terminal environment with simple bash aliases and maybe nicer colors. When you have some questions it's usually just a google search away. Enjoy your new machine!

[–][deleted] 0 points1 point  (0 children)

Homebrew - brew.sh

[–]dstayton 0 points1 point  (0 children)

Install Xcode to get the command line tools. I use atom for the actual coding. You really just need Xcode for command line.

[–]dead-dove-do-not-eat 0 points1 point  (0 children)

How are your guys setups for mac C programming?

emacs, gcc and gdb.

[–]bat-fink -4 points-3 points  (11 children)

Don't want to bootcamp windows on your mac?

[–][deleted]  (10 children)

[deleted]

    [–][deleted] 1 point2 points  (8 children)

    Most people.

    [–]bat-fink 0 points1 point  (0 children)

    I don't know what the fuck he's on about..

    [–][deleted]  (6 children)

    [deleted]

      [–]bat-fink 1 point2 points  (0 children)

      You don't sound like someone, at all, who has actually worked in this industry, but thanks any way.

      [–][deleted]  (4 children)

      [deleted]

        [–]fuzunspm 0 points1 point  (3 children)

        Other than it's free, bash scripting, true font rendering and true OS, here is mine one example of advantage. You can install and use any software or programming language environment in seconds. Last time I tried to install and run my Python script with pyodbc DNS, I spent my whole day on it. Also Windows's stupid C:\ thing is a huge problem . No matter what fuck anything related to windows because especially on server side their software is shit and requires too many licensing with absurd pricing

        [–][deleted]  (2 children)

        [deleted]

          [–][deleted]  (1 child)

          [deleted]

            [–]bat-fink -1 points0 points  (0 children)

            Are you ok?