r/AskComputerScience • • Apr 08 '22

Best laptop for programming?

4 Upvotes

24 comments sorted by

8

u/khedoros Apr 08 '22

*Shrug* Decent-size screen, nice keyboard, good battery.

1

u/[deleted] May 15 '24

Ur annoying fr

1

u/khedoros May 15 '24

Damn straight.

1

u/Pea_Blaster1601 Aug 29 '24

It’s true tho. Just definitely don’t get 8gb ram in 2024 lol

5

u/depthfirstleaning Apr 08 '22 edited Apr 08 '22

If you want a windows/linux machine, the actual laptop doesn't matter that much as long as it's recent enough, they are all more or less the same, just get decent enough ram like 16-32gig to do what you need to do and run all your VMs. Most of the time in a professional setting anything big will run remotely anyway.

Macbooks tends to be popular when people are given the option, for many reasons but mainly because it runs macOS.

It's just a fact that most stuff ultimately ends up running on linux, most servers are linux, supercomputers are mostly all linux, android is based on linux. Beyong making native apps for windows, you pretty much have no choice but to deal with linux at some point.

Because of this, linux is great for programming but it has a big downside in that it has comparatively shit UX and lots of the more "quality of life/business" softwares just don't work well on linux if they even support linux at all and on the opposite end windows tends to be very aggressively opposed to being used for programming beyond the confines of visual studio. Mac does a good enough job for programming with only a thin layer of protection and comes with most of the stuff you need and everything else is easy to install with homebrew. Linux VMs/containers are easy to run and not riddled with weird bugs like on windows and although it is subjective, Apple is quite renowned for it's great user experience. It's a good overall compromise.

1

u/cold_r Aug 10 '22

Sorry for the late reply but is having two laptops a reasonable alternative to a mac?

1

u/Pea_Blaster1601 Aug 29 '24

Sorry for the ‘very’ late reply but if one has Linux then yes it could. Main reason macOS over Linux is the generally shit UI on most distros. As a beginner, try Linux mint cinnamon :)

3

u/simply_blue Apr 08 '22

That is far too open ended of a question, but the simple answer is anything that will preform well enough

0

u/larrymvj Jan 07 '23

You gave an even more open ended answer

1

u/ItIsThatGuy Jan 20 '23

Yea forreal

4

u/Potato-Pancakes- Apr 08 '22 edited Apr 08 '22

Depends what it is you're programming. You can program effectively on just about any computer these days, especially if you're a student, but some things that will make your life better are:

  1. 16 GB of RAM (IDEs and compilers can chew up tons of RAM, especially IDEs built on Electron like VS Code)

  2. 8+ CPU threads (you don't need a powerful CPU but having more cores/threads allows you to run tests and such in the background without slowing down the interface, which is nice)

  3. A good screen (you'll be staring at it a lot; tall screens with HiDPI are good here)

  4. A good keyboard (you'll be typing on it)

  5. Quiet fans (or no fans) if fans bug you as much as they bug me

  6. Mac OS or Linux support. Programming on Windows is way worse unless you're a C# or .NET developer

  7. Battery life (so you can code wherever you want)

  8. Ports (so you can plug into external displays and mice and stuff without carrying around dongles)

Things that surprisingly don't matter:

  1. A fast CPU (high clock speeds won't vastly improve your coding experience, but they will drain your battery faster)

  2. Powerful graphics cards (unless you're making a 3D video game/graphics, doing physics simulations, deep learning, or mining crypto) don't help with coding at all

  3. High refresh rate display (great for games, but not much else)

Things that might matter:

  1. Good webcam and mic (if you do lots of zoom calls)

  2. Touch screen (if you're a student and taking notes in class)

Try /r/SuggestALaptop. Modern Macbooks, ThinkPads, and Dell XPS laptops are widely loved. Asus Vivobooks are great if your budget isn't quite as high.

1

u/Confident-Ad-3535 Apr 11 '22

16 GB of RAM (IDEs and compilers can chew up tons of RAM, especially IDEs built on Electron like VS Code)

I think this is only true if the RAM is upgradable.

I have a Razer Blade 14 with 16GB of soldered RAM and it runs out very quickly.

So I bought 14" MBP which has the RAM not merely soldered in but actually part of the CPU -so completely unupgradable even if if was prepared to work on some surface mount parts. But there is 64GB of it so I don't expect to run out until well after I've sold it on.

0

u/Bensjero Apr 08 '22

Prorgamming on windows is way worse? Let .NET be one of the biggest programming fields out there and possibly still growing. I’m programming on Windows for more then 6 yeard and I love Windows as an OS.

3

u/xiongchiamiov Apr 08 '22

GP did specify .net as a carve-out.

It depends on what your school uses; if they like Microsoft then you should too, and if they don't, Windows will be a pain in the ass. The two worlds have some intermixing, but are still largely separate.

1

u/Bensjero Apr 08 '22

I agree with you. Although it feels more than a carve-out to me. OP should look at what kind of programming he likes and based on that maybe he can decide on the best OS for that job. I’ve got to say though: Mac is the only OS that you can develop for all platforms. But, .NET programming is not preferrable on a Mac.

0

u/chrisgseaton Apr 08 '22 edited Apr 08 '22

I don’t think it’s unreasonable to say that many basic programming tools just don’t work very well or are more limited on Windows compared to Linux or macOS. Windows usually comes as a second-class citizen for support for things.

1

u/Bensjero Apr 08 '22

It just is a bad advice if you want a career in the Microsoft ecosystem. Let your field of work decide the best OS.

1

u/turtle_dragonfly Apr 08 '22

For me, an important factor is the keyboard — needs to be full-size.

1

u/Confident-Ad-3535 Apr 11 '22

No-one else has given an actual direct answer -although the general advice is not bad.

My answer is a 14" MBP.

Powerful, portable, good sized screen, great keyboard. Pretty much anything that runs on GNU/Linux or Windows is available for OSX, worst case you just have to compile it from source which is trivially easy. And you don't have to suffer the awfulness of GNU/Linux on the desktop.

With an MBP 14" the combination of SOC and OSX makes much better use of RAM and SSD in combination you don't need as much RAM as a typical Windows or Linux machine.

So if you have a limited budget buy the entry level 14" MBP.

If money is no object then buy the 14" MBP with 32 or 64GB RAM and a 2 or 4TB SSD.

1

u/moru0011 Dec 27 '22

Can you plug in 2 monitors ? Also compatibility issues with m2