|
I'm working on my masters right now and just started a class where the bulk of the assignments will be in C++ which I haven't written a single line of since I finished my undergrad ~5 years ago. There isn't any standard VM image or box to SSH into that's being provided as the recommended dev environment for the course. My day job is all .NET, Azure, Windows, and other than a Raspberry Pi all my personal machines are running Windows. I think I remember hearing not-terrible things about C++ development on VS Code/WSL ITT in the past. Anyone with experience using it think it'll be fine for 1 term of homework assignments or should I just spin up an Ubuntu VM and get a free student license for CLion (the last C++ dev environment I can remember using)?
|
# ? Jan 10, 2022 04:19 |
|
|
# ? May 17, 2024 09:27 |
|
you can install Visual Studio Community Edition and use that
|
# ? Jan 10, 2022 04:25 |
|
but wtf is this class where there’s no “here’s the compiler and OS your coursework needs to run on” in the syllabus? is there a shared academic computing environment (a la CMU’s Andrew, MIT’s Athena, Standord’s Leland, etc.) everything is assumed to be done under?
|
# ? Jan 10, 2022 04:27 |
|
i dont think ive ever heard of a college with a standard platform for development, but yeah just use visual studio community.
|
# ? Jan 10, 2022 04:36 |
|
eschaton posted:but wtf is this class where there’s no “here’s the compiler and OS your coursework needs to run on” in the syllabus? is there a shared academic computing environment (a la CMU’s Andrew, MIT’s Athena, Standord’s Leland, etc.) everything is assumed to be done under? The syllabus says we can use any setup we want for local development, but there will be a "designated Linux configuration" that assignments will need to run in. It does say we'll get an appropriate environment to test assignments, but I get the impression that means something like "SSH into this box, dump your source into this directory, compile with this specific command, run your program and make sure it doesn't crash".
|
# ? Jan 10, 2022 04:43 |
|
in that case find out as much as you can about the environment from your TAs, classmates, whatever, and just set up a local VM
|
# ? Jan 10, 2022 04:54 |
|
or use WSL as you were originally planning. don’t use Microsoft’s c++ compiler unless you’re willing to test and fix incompatibilities before turning in
|
# ? Jan 10, 2022 04:55 |
|
Or just write portable code
|
# ? Jan 10, 2022 04:56 |
|
leper khan posted:Or just write portable code did you just tell him to etc. etc. anyway I'd definitely use CLion if you can, or I guess eclipse cdt with gcc if you can't; using visual studio to develop code that will not be compiled in it will just make you want to hurt yourself
|
# ? Jan 10, 2022 05:27 |
|
thanks for the Visual Studio recommendations eschaton and Shaggar, it looks like VS uses the same WSL integration for Linux C++ development as VS Code does on Windows and I don't want to do C++ Windows development because I'm specifically trying to avoid this:Nomnom Cookie posted:or use WSL as you were originally planning. don’t use Microsoft’s c++ compiler unless you’re willing to test and fix incompatibilities before turning in eschaton posted:in that case find out as much as you can about the environment from your TAs, classmates, whatever, and just set up a local VM This seems like the safest default. I think what I'm really asking is if WSL will be roughly equivalent for this or if I'm going to run into a bunch of footguns that I'd avoid by doing a little extra work and setting up a VM.
|
# ? Jan 10, 2022 05:33 |
|
I guess if you're going to use wsl/gcc with VS studio that's fine too; I still think you'd be better off with clion though, visual studio really shines when you use the whole ecosystem but otherwise I find clion nicer to use
|
# ? Jan 10, 2022 05:36 |
|
ThePeavstenator posted:thanks for the Visual Studio recommendations eschaton and Shaggar, it looks like VS uses the same WSL integration for Linux C++ development as VS Code does on Windows and I don't want to do C++ Windows development because I'm specifically trying to avoid this: WSL is basically an officially blessed / well integrated VM? Linux dev comedy option: WSL, on Windows 11 ARM, virtualized running on a M1 Mac. Who knows, it might work
|
# ? Jan 10, 2022 05:38 |
|
Nomnom Cookie posted:or use WSL as you were originally planning. don’t use Microsoft’s c++ compiler u can stop right here
|
# ? Jan 10, 2022 06:00 |
|
if it compiles in clang it will usually compile in the ms compiler the other way around is not true because the ms compiler is too lenient
|
# ? Jan 10, 2022 10:30 |
|
ThePeavstenator posted:This seems like the safest default. I think what I'm really asking is if WSL will be roughly equivalent for this or if I'm going to run into a bunch of footguns that I'd avoid by doing a little extra work and setting up a VM. I teach a computer systems course where the students program in C and use POSIX APIs. WSL (either one) works perfectly, and to some degree it is actually better than macOS (e.g. Valgrind works and clang doesn't lie about being gcc). It's a remarkable change from the old days, where the Windows users were a never ending source of trouble (and usually had to do all their work in a clunky VirtualBox). You will find no footguns in WSL for your homework.
|
# ? Jan 10, 2022 11:45 |
|
I used to dual boot Linux at home to work on my personal c++ project but since wsl2 was released I've only used that and it works perfectly
|
# ? Jan 10, 2022 12:18 |
|
and it is indeed an incredible blessing in education. not just removing a lot of time waste helping students, but it also exposes them to a reasonable environment without a ton of distractions and overhead. as opposed to configuring some just-almost-correct mess on their actual os of choice (ever suspecting every error to be a stealth environment one) or having to install and get to grips with a linux dist (which remains a healthy thing to try, but tbqh most students are better off staying on-task).
|
# ? Jan 10, 2022 12:40 |
|
loving around with msys and cygwin was absolutely genuinely one of the worst parts of my degree esp when using haskell which had a bunch of clibs it felt like literally nobody had ever attempted to use in windows before
|
# ? Jan 10, 2022 12:51 |
|
gonadic io posted:loving around with msys and cygwin was absolutely genuinely one of the worst parts of my degree esp when using haskell which had a bunch of clibs it felt like literally nobody had ever attempted to use in windows before cygwin was and still remains the worst experience of my academic life
|
# ? Jan 10, 2022 13:07 |
dioxazine posted:cygwin was and still remains the worst experience of my life
|
|
# ? Jan 10, 2022 13:24 |
|
Athas posted:I teach a computer systems course where the students program in C and use POSIX APIs. WSL (either one) works perfectly, and to some degree it is actually better than macOS (e.g. Valgrind works and clang doesn't lie about being gcc). It's a remarkable change from the old days, where the Windows users were a never ending source of trouble (and usually had to do all their work in a clunky VirtualBox). thanks, this is exactly what I was hoping would be true Private Speech posted:I guess if you're going to use wsl/gcc with VS studio that's fine too; I still think you'd be better off with clion though, visual studio really shines when you use the whole ecosystem but otherwise I find clion nicer to use I will probably still use CLion though, looks like it has WSL support - https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-product.html
|
# ? Jan 11, 2022 02:07 |
|
cygwin is like tofu, it’s fine in its own right but if you’re expecting it to be a drop-in replacement for a steak then you’re going to have a terrible time or maybe I’m just getting old and prefer to keep using bad things instead of changing to good ones
|
# ? Jan 11, 2022 09:31 |
|
i was exploring some c++ nooks and crannies recently. the vscode cmake plugin has a default project template that took care of the build system stuff immediately and debugging just worked. it’s a pretty decent default environment for dumb projects.
|
# ? Jan 12, 2022 05:53 |
|
So it’s the same as CLion but you have to use vscode lol
|
# ? Jan 12, 2022 07:31 |
|
what’s new in programming languages besides Lattner leaving the Swift Core Team I mean
|
# ? Feb 22, 2022 01:18 |
|
guido mailed me a sneak peak of python4
|
# ? Feb 22, 2022 01:33 |
|
Armitag3 posted:guido mailed me a sneak peak of python4 my deepest condolences for your loss
|
# ? Feb 22, 2022 01:35 |
|
Armitag3 posted:guido mailed me a sneak peak of python4 using the mail makes it a federal crime and you should report him to the fbi
|
# ? Feb 22, 2022 01:36 |
Armitag3 posted:guido mailed me a sneak peak of python4 was it shaved
|
|
# ? Feb 22, 2022 01:36 |
|
I got to tell a friend about for else recently
|
# ? Feb 22, 2022 02:02 |
|
nrook posted:I got to tell a friend about for else recently I looked it up the other day because, for the millionth time, I couldn't remember exactly how it works and thought it might be useful. then I got a vision of the reviewer of the code and all future readers of the code doing the exact same thing, and I saw the light
|
# ? Feb 22, 2022 02:07 |
|
it's probably a good thing that the thing that for-else actually does isn't very useful because if it was then people would be tempted to use it
|
# ? Feb 22, 2022 02:30 |
|
but if it was useful, people would know it as an idiom time paradox, snake!
|
# ? Feb 22, 2022 03:16 |
|
i've used for else a few times. i forget why python 3.6 was peak python and everything after that was adding pointless features for the sake of features. i really, sincerely believe this so it's not trolling
|
# ? Feb 22, 2022 04:31 |
|
assignment expressions bro
|
# ? Feb 22, 2022 04:48 |
|
my homie dhall posted:assignment expressions bro I almost never use the Walrus, but the one time I did was very satisfying. I'm still dreaming about finding an excuse to write something for work in Pony.
|
# ? Feb 22, 2022 05:03 |
|
every post-3.6 version of python has had at least one good feature. if only they only had two total features per version.
|
# ? Feb 22, 2022 06:56 |
|
Nomnom Cookie posted:i've used for else a few times. i forget why
|
# ? Feb 22, 2022 07:01 |
|
mystes posted:This but python 2.2 It didn't start going completely off the rails until after 2.4. But the writing was on the wall for sure.
|
# ? Feb 22, 2022 07:06 |
|
|
# ? May 17, 2024 09:27 |
for-else is a good feature with a confusing keyword. I still use it sometimes, with a comment likePython code:
|
|
# ? Feb 22, 2022 08:34 |