Ask HN: Which laptop for development?
1. Refurbished Lenovo T420. 2nd gen i5, 16 gigs of RAM. Really cheap for 250$. Just concerned since the cpu is old
2. [A cheap 6th gen core i3 laptop](https://www.amazon.in/dp/B074DYBT2K/ref=cm_sw_r_cp_apa_i_W290zbRF005PZ). Brand new. 450$. At least the battery would last a couple of hours and since it's new it might not break down for another 2 years.
3. A MacBook air. 1000USD. Pretty expensive for me. But willing to Shell out the money if it is absolutely worth it. Concerned about learning the weird shortcuts (and force forgetting them when working on my desktop). It's 'nix but it's really not Linux. I've heard that getting some libraries to work on Mac is a pain - if at all possible. Still worth it? Battery life would be liberating but not sure if it is relevant for me
Thanks in advance.
PS: My desktop has an SSD so I am planning to take it out and put it on the laptop I end up buying.
91 comments
[ 3.4 ms ] story [ 25.2 ms ] threadA 2nd gen i5 will almost be certainly fine for what you're using it for, but potential concerns here are 1. battery life and 2. feeling left out for not having a shiny Memebook Pro, although I personally prefer the Thinkpad aesthetic.
[1]https://news.ycombinator.com/item?id=14741749
I also on a Macbook Pro and frankly it is nicer in many ways but if you money strapped it probably isn't worth the price.
Lenovo's T-line of laptops used to be pretty good. I hear that recently they've cheapened up the production line. So I don't think you can go wrong as long as you're willing to put up with subpar battery life (Sandy Bridge, 2nd Gen Intel, has much worse battery life than modern processors)
However, I am _much_ more frustrated by the lack of MagSafe. I am a tremendous klutz (as are my kids, and my cats, etc), so the peace of mind of being able to not destroy my laptop, should I ever trip on a cord or step on it, is something which I am wary of. For those of you with newer Macbooks, how do you handle charging?
Unless you're mostly a native iOS developer, in which case the Macbook will obviously come in handy.
I tend to prefer Macs these days over Linux. The library problem is real when upgrading things like Xcode (which is a problem that just bit me trying to `pip install lxml`).
`brew` is not as good as `apt-get`/`pacman`/`yum` but it's almost always more up to date since it's like an AUR for macOS.
My issue with the Air is that they rarely update/improve it. It's a great laptop though.
</rant>
Lenovo X270
- 20-ish hour battery life
- Awesome water-resistant keyboard. Did I mention it’s one of the best laptop keyboards IMHO?
- Lightweight
- Portable size for train, plane, automobile use
- Choice of displays
- Kensington lock port, headphone jack, USBs and SD card slot
Do not buy an Apple any longer: unrepairable, $750 LB repairs, glued in batteries, soldered-in RAM and SSDs, unupgradeable and new terrible, feedbackless keyboards. Watch Louis Rossmann’s channel if you need any more convincing that Apple’s are often overpriced money-pits.
Lenovo’s are sturdy as heck too. That, standard upgradable parts and the industry best keyboard make them the most practical for both coding and corporate work. She may not be the prettiest date, but she has a great personality and is amazing at her vocation.
But to go off your list here a bit I'd say bump up to the T430. i7 versions can be had on eBay for $250.
If you have an attachment to the keyboard on the T420[1] you can easily buy the keyboard and put it on the T430 (I did this on my x230 from a x220).
Also if you become interested you can neutralize the Intel Management Engine and install something like coreboot and sea bios.
[1] http://www.thinkwiki.org/wiki/Install_Classic_Keyboard_on_xx...
EDIT: To take it further you could even upgrade the CPU to a i7-3632QM which is a quad core.
Much better than a cheap new one. Build quality is worth it when you're using it all day long.
But if you're going to spend 1000 on a Mac why not spend 1000 on a new ThinkPad?
The good thing about going to the T430 is because it has the later Intel Ivy Bridge (as opposed to the Sandy Bridge) processors. The Ivy Bridge / newer chip sets brought USB 3.0 with them. Even the i5 version of the T430 has two USB 3.0 ports.
Remember to check if the T420 has an Nvidia Quadro card inside. If it does, the Display Port is wired to the Nvidia card and works badly under Linux and sucks the battery dry quite fast.
MacBooks are fantastic but if you're not already an OS X user and you have a tight budget, it may not be a good choice for you. A second-hand Air should be way less than $1000, though (but maybe not in India).
I don't get the appeal of doing development on hardware that's optimized for mobility, especially if you spend 99% of the time working in the same place (like me.)
I have two machines I use, the Desktop at work (Ryzen 1700/32GB) and my laptop (T470P - i7-7700P/16GB (for now)) 95% of the time I don't notice the difference and even where there is one it's simply often not noticeably different.
Take my incremental webpack build times with Typescript and some multi-thread hacking around, on my work desktop it takes ~545ms if I touch a bunch of stuff, same change on the Thinkpad is 620ms and on the Ryzen I give it more cores to play with.
Hilariously (to me) some things on the Laptop run faster (Selenium tests and anything involving heavy disk I/O (Thinkpad is NVMe, Desktop is SATA SSD).
The 5% cases are when I need to do something that really benefits from more and faster cores (like rip 60,000 hidpi multipage tiff's to multipage jpeg compressed PDF's - don't ask...) there the difference was huge (Ryzen finished in <50% of the time of the Thinkpad).
1. Are you going to do any photoshop work, or other design tasks?
2. Do you want to use an external monitor? If so, does the T420 have good specs?
One final thought: We've been moving towards using docker for most development, and Apple is behind the curve on this one, mainly due to the crazy workaround required to get adequate filesystem support. If that's at all in your future, stick with linux.
Still on my first 13" 2012, i5 cpu, 4 gb mem, 128 gb ssd model. The battery is shot, but otherwise it took a beating and is still running like a champ.
Hopefully next year they will still be selling these puppies. Because I can not find something with similar price, spec and build quality. Air is really one of your best priced ultrabooks.
Otherwise I recommend you don't settle for a i3, you are going to regret it. Had to give my brother-in-law advice on buying a notebook for writing docs and surfing, etc. Said a i3 should be fine for his needs... did I regret that at our next "free technical support session" :/ get a i5 atleast!
> It's 'nix but it's really not Linux.
Also, macOS is a Unix[0]. gnu/linux is the 'nix like os around here ;)
[0]: https://en.wikipedia.org/wiki/Single_UNIX_Specification#macO...
Apple will replace that battery for $120 (still on the same MBA as you!). I bought two cheap refurbs as spares, and plan on using them for the rest of my tech career (<10 years).
I am still using same model as well, but I am going to upgrade this week as I've got some weird issues lately. Thinking about buying new Mac Air or maybe cheapest Pro.
Second the self installed battery option. I did it just over a year ago and it gave my air a new lease on life
That's technically correct, but in practice, a Linux-compatible OS is much more valuable than a Unix-compatible OS, if just because Linux is what runs in production.
MS acknowledges this with WSL.
The only downside for me is the 128gb drive which limits my options when it comes to VMs.
Looking at what has come from Apple since this model, I haven't seen anything tempting. I'll run this one into the ground.
What would tempt me would be this machine again with 16gb ram and at least 256gb ssd. Retina and a newer CPU would be icing.
I run IntelliJ on mine, the basically feature rich version of PyCharm.
You can find older Air's for around $500 used.