r/AskProgramming • u/TryTryDontTry • Jan 25 '21
Ultimate noob question. Can I program/compile with a shit 150 dollar laptop? Are there online compilers so I can actually run programs?
I mostly want to write math programs.
59
Jan 25 '21 edited Jan 25 '21
Yes, you can. Simple programs are not resource intensive most of the time.
Depending on what math you want to do, it will just take longer or shorter to complete a calculation. But you don't really have anything to worry about, $150 laptop is fine.
Online compilers are a pain in the ass, but they exist.
1
u/throwaway4284168 Jan 25 '21
Online compilers are a pain in the ass, but they exist.
I hear friends at work talking about, I think, fusion 360? Or some other cad software that makes use of online rendering. That's probably where you'd see the most benefit from online "compiling", as long as you have good internet I suppose
3
u/dannypas00 Jan 25 '21
Well the other options would be CI/CD, which on github for example is free, but it takes longer than 99% of all potato pcs out there.
Also, you won't ever be rendering when building applications. At most maybe a cutscene in a game or art you use for the app, but that wont be made on a potato laptop.
1
u/throwaway4284168 Jan 27 '21
Just trying to capture both sides. From my experience with those free services, the priority queue probably took longer than the operation itself. Not sure if that's by design or...
15
u/robocorp Jan 25 '21
If you're just starting out, absolutely. You'll run into trouble if you try to compile absolutely huge projects, but you're honestly not going to encounter those for a while. Stay away from heavy IDEs, and get yourself a text editor, too. There are online compilers, but they're limited in such a way that they're often not worth it. Don't sweat it - your computer should handle your programming just fine.
8
u/chessset5 Jan 25 '21
VS Code is my favorite, not VS Studio
6
u/Vakz Jan 25 '21
VS Studio
Visual Studio Studio?
3
u/funbike Jan 25 '21
"I'll be in my Studio, Studio, ah ah, in my Studio Studio" https://www.youtube.com/watch?v=-cZ7OT7BmM8
1
1
1
3
u/AnonPH009 Jan 25 '21
May I ask why?
6
u/bysiffty Jan 25 '21
IMO is because you can customize everything from it. Also the plugin/add-on marketplace is amazing and can bring support to any language.
3
u/2this4u Jan 25 '21
The customisation and plugin marketplace is extremely extensive, and it's very easy to change settings. It's simply extremely useable even if it misses a few features.
Contrast this to Studio where it's a pain to even change colour theme.
3
1
u/chessset5 Jan 25 '21
More or less all the other answers + I can easily change the compiler without trouble and the fact that it's not a 50GB download.
1
Jan 25 '21
Man I got my optimization down from an hour to 10 minutes by throwing in a check to see if ul impossible parameters were being guessed, and then I switched languages and it takes a minute at most.
9
u/iamgreengang Jan 25 '21 edited Jan 25 '21
if you're just doing math, you're fine. a lot of resources get eaten trying to do GUI stuff, but if you're just using a text editor and want to spit out some numbers, you'll be good! (also it's good to use linux and learn the CLI)
Finally, if you haven't bought a laptop yet and you're saying your budget is $150, you can get a very very usable used thinkpad for that price. On ebay you can get something like a t450 if you can stretch closer to $200, or a t430/t440 if your price is strictly under $150
Don't buy new. Consumer electronics crater in price after a couple years, and buying used can get you a machine that is several times better than a new one.
6
4
Jan 25 '21
If you're laptop can browse the internet than it's good enough to write code. Compile times only matter in non trivial applications. If you're just writing math functions it'll be no problem at all.
3
u/WJMazepas Jan 25 '21
I used a laptop with a Celeron N4100 and 4GB of RAM for some time and could do a lot of C and Python for college just fine.
Unless you make physics simulation, then you will be fine. Hell, its probably that the IDE will be harder for your PC than your codes. In my laptop i couldnt use Amy IDE of Jetbrains or It would crash.
If anything, you can install a lightweight distro of Linux that will make things better
2
2
u/Fidodo Jan 25 '21
You may want to install a light weight linux distro to get the most out of your computer, but you're fine.
2
Jan 25 '21
(and try ruby and try erlang and try haskell and Godbolt and just typing JavaScript snippets for your Web browser)
(and SSHing to a server with more resources)
and today's "shit 150 dollar laptop"s are incredibly powerful compared to just a few years ago.
1
u/Lukalot_ Jan 25 '21
Especially for math (without graphics) this should be no problem. Recursive programs will take longer but it will still be “quick” because computers are good at math.
I would recommend you install your language of choice locally and use VS-Code or a terminal which will probably use less RAM and perform better than a fully featured browser though.
1
u/VirtualLife76 Jan 25 '21
Many people program on a $5 raspberry pi computer, it can be done on most anything, even some languages on your phone.
It can be annoying slow at times tho.
1
u/theguy2108 Jan 25 '21
Coding on the cloud is relatively new and is still quite immature but it is still possible. I would recommend you to give a shot at running Linux on your local machine and using a text editor like vscode to see how that works. I think the experience should be pretty good. Don't use IDEs and imo they are not great for beginners anyway. For a Linux distribution that is lightweight, you could try Xubuntu or Lubuntu. Both are very lightweight and made for not great hardware.
If you are not satisfied with the experience there are some options online -
You could try something like Google Colab if you work in Python and do stuff like numerical analysis, data science etc. Really great service imo.
There is Codespaces by microsoft (though it is still in beta).
There are websites like https://codesandbox.io/ which focus on creating new web development type projects.
At the end of the day, you could get a virtual machine on AWS with Windows or Linux. And code on that. AWS has a free tier for 1 year and you would not need to pay any money for that. (Side note: I am confident that you can get the Linux instance for free but not too certain about the Windows instance.). Make sure to google on free tier and dont enter you credit card info(if AWS asks for it, enter it and then remove it a day later) otherwise you may get charged.
Imo, it is definitely possible and there are even upsides to programming on the cloud(for example in AWS, you will learn more about AWS that developers start learning about later) but try to make it run locally since that is a littel easier. People have been able to do coding on Rasberry pis I think so should definitely be possible.
1
u/EternityForest Jan 25 '21
My work laptop is probably shittier than yours in terms of specs, I don't want to ride the bus with anything too nice.
I don't know what kind of math you want to do, and I don't really know math in general, but it's hard to go wrong with Python. Download VS Code, Numpy/Scipy, and you'll be fine.
1
Jan 25 '21
I work on a number of different devices, including a raspberry Pi l, an android phone and a laptop that is frequently n 2013 (with a nice set of stickers). You'll be fine, it's attitude that counts...
Just stay away from maths and graphic intensive programs!
1
u/Ascomae Jan 25 '21
I would also recommend to look for used business notebooks.
They have cheaper spare parts and better engineered, compared to cheap every level notebooks.
1
u/turtle_dragonfly Jan 25 '21
This is mainly used for debugging and checking behavior of various compilers, but http://godbolt.org/ is quite good for trying things out in C/C++ (and a few other languages).
I would say start with Python and numpy. Python is quite popular in scientific computing, and so there are some very good quality "number crunching" modules available.
One of the great things about computers is how available they are; no special equipment needed, usually. A $150 laptop is certainly plenty powerful to get started. Lots of people learned (and loved) programming on Commodore64 and such, which is like, less powerful than a FitBit (:
1
u/denialerror Jan 25 '21
Seeing as people were programming with your $150 laptop cost ten times as much, obviously yes.
1
u/lifeeraser Jan 25 '21
I'm going to be the devil's advocate. A $150 laptop will leave you wanting more.
A good laptop goes a long way toward being productive--esp. with the number of browser tabs you can keep open while doing other stuff. There are high-power apps like Discord and Slack, that are unrelated to programming, but can be generally helpful for learning, everyday tasks, etc. Big IDEs often come with newbie-friendly features.
You need more technical know-how to maintain a cheap used laptop--something I wouldn't recommend to a self-proclaimed noob.
VS Code is nice but it's not the lightest text editor. Add some plugins and you'll notice the slowdown.
1
u/theInfiniteHammer Jan 25 '21
What kind of math programs? If they're something that needs a GPU then you'll probably need better, but other than that it should work.
1
Jan 25 '21
As everyone else says, this is almost certainly possible.
Caveats:
You say "math programs." That's a pretty large domain. If you are doing, for example, numerical linear algebra, any of the pre-built libraries (BLAS/LAPACK, Numpy) should be fine. Eigen, a C++ template library, may not be fine.
If you can try it out in the store, that might be nice. The thing that scares me on a $150 laptop is the keyboard, not the CPU.
1
u/djfreedom9505 Jan 25 '21
If it's a Chromebook, you can use linux using Crouton. That would give you more than enough power to write math program. Now what kind of math problems are we talking here because if they're resource intensive it will just take you alot longer to calculate it. Also are you planning on producing data visuals, because that will also be something factor in.
1
u/413612 Jan 25 '21
You spend a comparatively tiny amount of time compiling compared to running programs (for the average user at least). Not sure what math you're using - that may be time/resource intensive. Generally, complex math (in terms of human understanding) isn't gonna take up as much resources as math using large amounts of data.
0
u/DecisiveVictory Jan 25 '21
If you have a decent network, look into free AWS (and other cloud provider) instances.
But if you just want to program in, say, Rust on Linux then I think even a $150 laptop would be OK. Especially if it's $150 used instead of $150 new.
6
u/chessset5 Jan 25 '21
If I can do it on a $20 raspberry pie you can do it on a $150 laptop.