|
- Ubuntu 18.04, using a mix of the
apt and nix package managers (apt because it's the standard Ubuntu one, nix where I want newer versions of tools like CMake and ninja than are offered by apt in 18.04). - WSL1 (I don't use WSL2 because I want to work on a Windows filesystem, and WSL1 is better in that scenario).
- VSCode running under Windows (possibly using the Remote extension, but with WSL, VSCode doesn't necessarily need that).
- I do builds using a WSL bash prompt running in VSCode's integrated terminal. However - you can run a WSL command-line from a CMD or Powershell prompt too. I actually perform Linux and Windows builds from WSL bash. VSCode's 'tasks' can be used to do the builds as well.
I use CMake and ninja to perform builds - I find CMake the simplest way to have a single cross-platform build description. - On Windows, MSVC. On Linux, I build with g++ but use clang's static analysis tools (
clang-tidy primarily). oh - unless I'm doing a fuzzing build, when I use clang and libfuzzer. - I use VSCode for all debugging. It integrates with the native debugger that (I guess) Visual Studio uses, and for WSL, it fires up a gdb running under a WSL process and automates it using GDB's 'machine interface'.
- I use command-line Git (usually the Linux version, but if I use
git.exe at the command prompt rather than git , I'm using Windows native Git rather than Linux Git) and also GitKraken running under Windows. The only concessions I make to Windows are some git config settings: core.filemode is set to false and core.ignorecase to true . - Can't remember anything offhand...
I've been working like this very happily since 2018, doing Windows and Linux builds in tandem. The way I work is to develop under Windows primarily, then when I reach some significant point build under Linux (with static analysis) and run unit tests to ensure that I have parity between platforms.
I have some projects with Windows-only features - I find that's easy enough to do with CMake.
The only time I break out Visual Studio is if I need disassembly level debugging - one of the projects I work on has a JIT compiler, and debugging the JITted code needs that really. Aside from that, I often find myself developing small, self-contained features in Compiler Explorer, as that makes it easy to use libraries I often use (fmt, MS-GSL, Catch2) in a single source file without needing any build system.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
modified 20-May-21 9:18am.
|
|
|
|
|
For five year I used to develop in C++ on Windows for both Windows and Linux.
In the beginning I try to use Visual Studio solution for cross platform and failed miserably; on all VS versions 2015, 2017, 2019... Too many problems when projects grows.
Another problem I had was to have to "program" the build on Linux using Make, CMake ...
I don't want to "program" the build, for me, basically, build a C/C++ project is just a matter to make a long command line.
From one year being fully on home office I completely abandoned Windows and now work fully on Linux (Debian 10), but need to build my projects on Windows too.
So I adopted VSCodium as my main editor and construc a mini build system (CPPMagic) that meet my needs, fully in Python. With this I can build on both Windows and Linux the same way (no need even an editor).
1. Debian 10;
2. I use 2 phisical machines;
3. VSCodium;
4. CPPMagic (CppMagic: A Python 3 script to help build C/C++ projects cross-platform.[^]);
5. GCC and MSVC;
6. GDB on Linux and MSVC on Windows;
7. Command line;
8. I personally don't like to use complex building systems and whenever I can use static libraries.
I don't clame that my build system is a final solution, it still raw, and I evolve just for my needs, but it works.
|
|
|
|
|
You are asking some great questions here!
1. Ubuntu distro, typically later than 16.
2. I do development using an Oracle VirtualBox VM running on Windows 10. I like the ability to manage separate VMs for separate development environments and always save both an "O/S only" VM as well as a "O/S + development tools" VM. I usually do full clones of the "O/S only" for build and deployment testing and use the "O/S + development tools" to create new development environments for separate projects. Full clones eat disk space like nobody's business, so you need a good hunk of disk storage.
3. I use...wait for it...Eclipse for editing and the GUI debugger (which is just a GUI riding on top of gdb). I often hear bad things said about Eclipse, and I have to agree, some of them are justified, but I like the things an IDE has to offer even though Eclipse ain't great like GUI debugging, the code indexer so you can right click on a variable or method and it will take you there, etc. It often takes a while to get Eclipse configured to do builds and debug (in both C++ as well as mixed C++/Python where Python is the typical entry point) and can be frustrating. I've had a lot of issues with the indexer picking up dependencies.
4. My build model typically consists of cmake with hierarchical CMakeLists.txt files. cmake has a generator that can produce eclipse project files via the -G"Eclipse CDT4 - Unix Makefiles" option, which is handy and seems to work pretty well, but honestly haven't tried it on the latest versions of Eclipse. One key thing you have to account for is that the generator (at least in the past) doesn't like a folder structure that stores build files in a subfolder lower in the directory hierarchy, e.g. doesn't like ~/username/MyProjects/SoftwareProjectA/build, so you have to get cmake to create the top-level Makefile directly in the top-level of the source tree, i.e. ~/username/MyProjects/SoftwareProjectA. This will allow you to debug your code using the Eclipse GUI front-end to gdb.
5. g++. Basically, go to source tree and run "cmake -G"Eclipse CDT4 - Unix Makefiles" -DENABLE_DOXYGEN=$BUILDDOCS -DCMAKE_BUILD_TYPE=<release debug="" relwithdebinfo="" etc.=""> -DCMAKE_INSTALL_PREFIX=<your prefix="" folder=""> .", then run "make -j4 install".
6. I typically use the Eclipse GUI-based gdb debugger, but this can be tricky to set up sometimes, but worth it.
7. Interface to github is usually done through Linux command-line "git".
8. Playing poker with anyone whose first name is preceded by a city, e.g. "Minnesota Jim", "Vegas Dave". Also, bears.
|
|
|
|
|
When I did Linux development, I preferred using Fedora in a VirtualBox VM. I vastly preferred using CLion as my IDE (though used Eclipse for one job. I shudder.)
When I first started Linux development, both GCC and Clang were stalled. GCC got it's act together. It took a while for Clang to do so. Yet, as they did, I found their response to well documented bugs severely lacking to the point where I still don't trust them.
|
|
|
|
|
1. Anything Debian-based can be considered a "typical" Linux
2. WSL when you don't need X11 or Wayland or specific device drivers, VM when you do
3. VS Code if you just want to get the job done, Visual Studio if you prefer IntelliSense
4. using the Clang support in VS Code or Clang support in Visual Studio
5. Clang
6. Waiting for debugger support in WSL, I just build for Windows and debug that instead. YYMV
7. VS plugin because it's easy to use, does everything, and prevents me from making typo's
|
|
|
|
|
Twitter = Sing
Revealed ? = let on
Pattern = Singleton
OG actually got it in another thread but didn't mention the actual word - he said lonesome heavyweight
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
modified 19-May-21 10:09am.
|
|
|
|
|
That's because I couldn't justify it - I had Singleton, but no reason why ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That would have been worth a shot in my book
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Yeah, but I had just done three in a row and wanted to give others a chance.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
True
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
OriginalGriff wrote: wanted to give others a chance.
It seems we needed much more than just a chance
|
|
|
|
|
Does anyone here know of a very good article that can get someone started with writing automated unit tests for an ASP.NET web forms application (C#) using selenium?
Their documentation seems to be throwing me in different places.
|
|
|
|
|
For my sins, I am Secretary of a cricket club.
Having some spare time today, I decided I could no longer put off reading the latest Covid-safety info from the governing body, just to make sure we have every safety measure in place.
So, the main page lists 7 documents to read. I open the first one. It is 31 pages long. It contains links to 71 other documents and, from experience, I would guess that on average they all contain links to 10 more documents, and so on.
That was just one out of 7 "top level" documents. I haven't opened the rest.
So, officials are covering their a***es by claiming you've been given all the information whilst no sane human being could possibly read it all let alone take it all in. I'm guessing someone gets paid a lot more than I do to waste their time producing this rubbish.
If I was five years younger, I'd probably have decided to write a little program to follow all the links in all the documents and find how how many words you'd have to read to get the full info. Alas, that would probably mean having to read some Microsoft documentation which I suspect would be a circular process - leaving me fuming at that too...
|
|
|
|
|
Rich Leyshon wrote: which I suspect would be a circular process
Oh pretty much definitely: these people don't like to write their own stuff in case they make an mistake which can be traced back to them. Hence they quote and reference each others documents in the certain knowledge that you won't find an original thought in any of them ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Rich Leyshon wrote: no sane human being could possibly read it all The question that arises is: Are these copying T O S agreements or vis-versa ?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Just tell the boys and girls, "no kissing". You may want to tell the non-binaries, transes, trannies and other new genders also.
|
|
|
|
|
Apologies if this gag came from this site (can't remember where I saw it).
I have been making great efforts to improve my equality and diversity awareness. I've been asking everyone I see what LGBTQ+ stands for, but nobody will give me a straight answer.
|
|
|
|
|
|
MAP
Included in the ideology, fully part of the fundamental transformation movement, but not quite ready to tell everyone about it.
|
|
|
|
|
Written by lawyers for use by lawyers to protect the power elites and stomp on anyone who isn't. Shakespeare had it right - kill all the lawyers.
|
|
|
|
|
As the old gag goes (and I did once tell this to a lawyer!)
What do you call 100 lawyers at the bottom of the sea?
A promising start.
|
|
|
|
|
What's red and black and looks good on a lawyer?
A doberman ...
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
The "fun" part is when you follow the links and find they are eventually circular and self-referential.
|
|
|
|
|
Twitter revealed ? this pattern (9)
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
MORONS'R'US?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|