DEV Community

Cover image for How do you make your old MacBook work?

How do you make your old MacBook work?

Fyodor on January 31, 2020

I'm a web developer. My main working machine is iMac and it's fantastic. My portable device is MacBook Air (5yo) and working on it becomes tortur...
Collapse
 
sfiquet profile image
Sylvie Fiquet

I'm not familiar with the MacBook Air but until recently I was developing on a MacBook Pro 2011. The main issue was memory. It was upgraded from 4 GB to the maximum 8 GB, which helped a lot but I still had to be careful.

I always had the Activity Monitor running to check on memory-greedy processes. And I was always reluctant to upgrade the OS in case it impacted the memory use. Right now it's on High Sierra.

I didn't use VS Code much. Too slow to start up and taking too much memory for my liking. I used Sublime Text instead and the command line. That worked fine with my use of Node and React.

My advice:

  • if not already done and possible (check the specs), upgrade the RAM
  • use a light-weight editor and use the command line
  • monitor memory use
  • close any app with a big footprint that you don't need for developing (I gave up on iTunes; I use Evernote as my second brain but it tries to keep everything in memory and once in a while I need to close it and start afresh)
  • close any browser tabs that eat a lot of memory (some pages run in the gigabytes)
  • I'd say keep an eye on the CPU as well but in my case it was never an issue.
Collapse
 
fyodorio profile image
Fyodor

Thanks for your detailed reply, Sylvie!

I see that even older MacBooks Pro work much better than Airs. I cannot upgrade the memory (it's not possible for Air, only for Pro). CPU is not a problem too, only memory, as I noticed observing the Activity Monitor. I'm very modest in using the resources, but when I need to run a couple of npm processes simultaneously or build native mobile apps with Android Studio and XCode, I get close to psychological breakdown.

What is your experience in similar situations? Do Pro and 8 Gb work well for you in such cases?

Collapse
 
sfiquet profile image
Sylvie Fiquet

Sorry I can't be much help. I tend to run npm processes sequentially and it's been years since I last used XCode. As far as I can tell XCode is a lot worse than VSCode in terms of RAM requirements.

Thread Thread
 
fyodorio profile image
Fyodor

Exactly. Thinking about delegating all the Xcode stuff to iMac

Thread Thread
 
sfiquet profile image
Sylvie Fiquet

It would probably make your life easier.

Concerning multiple npm processes, after a good night's sleep I remembered that I used to run a (small) MongoDB database, an Express server and a React client concurrently without problems.

Collapse
 
rhymes profile image
rhymes

I never had huge issues but I don't use XCode nor I develop things that are too CPU bound.

I have 16GB of RAM and a SSD inside a Macbook Pro 13" Mid 2012.

I love(d) VSCode but I switched back to Sublime Text 3 which is noticeably faster. The only thing kinda slow in Sublime Text (which is faster in VSCode because it uses a Rust binary) is the search inside the IDE.

I'm still on High Sierra not because of performance concerns but because I haven't bothered upgrading after I read some conflicting reports about it, I'm waiting for a stabler version (same with my phone and iOS 13).

I think 2020 will likely be the last year (or maybe not) of this computer. I'm curios to see if they release MB Pros 13" with a decent keyboard in June or something.

Unfortunately this is probably not much of help because you can't upgrade your MB Air.

I've never used Node but the NPM and JS ecosystem aren't super conservative on resources, I had a really fast feedback cycle when I was developing a web app in Go (though changing stack instead of changing hardware might be not a good idea :D).

Understand if you can change any variables in the hardware, if you can't you might need to use other tools. Look for tools that are native and/or compiled and which use less resources in general.

ps. the Rust based grep tool is github.com/BurntSushi/ripgrep which in my opinion is a game changer if you grep a lot in the command line like I do :D

Collapse
 
fyodorio profile image
Fyodor

Thanks, rhymes! I'm actually looking into playing with variables/configs, looks like it's inevitable. And I like Sublime too, it's really much faster 👍 I'd rolled back to High Sierra, not sure it will help, but who knows.

Collapse
 
itsasine profile image
ItsASine (Kayla)

I've never had an Air, but one thing to consider is maybe trying online-only options. On my Chromebook, I've been playing around with sites like Repl.it and Codesandbox so that it doesn't matter what my specs are. For something even more intensive, Google Cloud and AWS can both be used to make personal development environments (even within the free tier)

Collapse
 
fyodorio profile image
Fyodor

That can be an option. Already tried some stuff and it didn’t work quite well for me, but I’m going to proceed. Though I have projects where I need to use my local machine yet (I work as an independent consultant)

Collapse
 
raveneibu profile image
Agustin Arce Martinez

Hi, You can try to setup a ssh server (Linux VM) with VS Code and use the remote development extension for VS Code, and let the iMac do the heavy lifting.

Collapse
 
fyodorio profile image
Fyodor

Thanks, Agustin, I think I need to dive deeper in this direction. I had already tried some remote setup options but failed at getting reasonably good experience. I’ll check some more options 👍
If you could provide some more references on that (or your experience) I would highly appreciate!

Collapse
 
devdrake0 profile image
Si

Flash it with a Linux distro

Collapse
 
fyodorio profile image
Fyodor • Edited

I can not - I need to build iOS apps sometimes 🤷‍♂️