Hello,

I installed Ubuntu a few months ago on my work laptop and I’ve been running and loving it since.

However, I am used to VsCode, so this is what I am using in Ubuntu as well.

So I am curious, what kind of coding so you do? And what is your workflow.

I am an embedded firware developper and mainly use C. I am cross compiling my code in VsCode for a FPGA from Xilinx (dual core arm + PL)

Never dove into make files and cmake more than what I needed in the past, but I had an opportunity to learn CMake and build a project from it.

So my workflow is :

  1. Code in VsCode
  2. Build in CMake
  3. Transfer the app through scp on the target with a custom script (target is running petalinux, which is yocto + Xilinx recipes)
  4. Use gdb server to debug the code.

It’s a pretty simple workflow, but I’d like to know what you guys are running so that I can maybe upgrade my workflow.

28 points
  • Code in VSCodium
  • Code in Kate to keep thing fresh
  • Code in Nvim because I still need to learn it
  • Cry while debbuging a React app because the error messages aren’t very good
  • Wish I were working with Svelte or had enough backend experience to switch to being a backend dev
  • Play with terminal configs and shell scripting to distract myself from my woes
  • Rinse and repeat.

Aside from the (not so much) jokes, give VSCodium a try, it’s to VSCode what Chromium is to Chrome, and works just as well.

permalink
report
reply
5 points

Ooh. I did not know about vscodium! I’ve removed vscode and installed it on my Mac. Thanks.

permalink
report
parent
reply
1 point

You’re welcome! Hope you enjoy it~

permalink
report
parent
reply
4 points

I will look into VSCodium. I’ve heard a little about it, but I couldn’t tell you what is the difference between the two.

permalink
report
parent
reply
6 points

Microsoft develops vscode as open source, but compiles it with proprietary telemetry tooling.

VSCodium compiles from the same source code but without the telemetry

permalink
report
parent
reply
4 points

Then i will definitely switch. Are the VsCode addon compatible with VsCodium?

permalink
report
parent
reply
1 point

There is, or was, also code-oss. Can’t remember all the differences though

permalink
report
parent
reply
2 points

BUT, it is not made by the same people who made VSCode. Completely different team.

permalink
report
parent
reply
25 points

Am I the weird one that just uses jetbrains for everything?

permalink
report
reply
4 points

Isn’t JetBrains a paid suite? I’ve heard a lot of good things about it, but since my workflow is basic, VsCode was always the choice wherever I worked.

permalink
report
parent
reply
6 points

There is a “community edition” which is free.

permalink
report
parent
reply
2 points

It’s also open source but only for java.

permalink
report
parent
reply
3 points

Nope - that’s exactly my workflow too.

permalink
report
parent
reply
3 points

IntelliJ for Java and Rider for C#. VSCode for everything else.

permalink
report
parent
reply
3 points

I do too. Nvim for text editing, vs code for the occasional one/two file script, jetbrains for anything more extensive

permalink
report
parent
reply
2 points

I use it too. It’s very good if you prefer an IDE and one stop shop for it all.

permalink
report
parent
reply
1 point

JetBrains with vim bindings for me.

permalink
report
parent
reply
1 point

JetBrains, the refactoring tools are much better than any alternative, and that is a great productivity booster. Also, it has excellent remote support. Mainly at the moment, I’m using pycharm and clion.

permalink
report
parent
reply
13 points
  1. Code in Emacs
  2. Create a Nix Flake for building my Environment
  3. Build with whatever buildsystem the language requires, often Stack or Cargo
  4. Package for nixpkgs
permalink
report
reply
2 points

Never heard of the points 2 to 4, so I will look into it.

permalink
report
parent
reply
13 points

I’m an old school emacs guy, I prefer that for c++/python/etc and run KDE Neon because I like KDE and I’m used to ubuntu (and Kubuntu has some issues). For c++ I use CMake, google test. Not really a fan of docker etc. but I have used Kubernetes and docker in the past. Those types of containers just create new and more complicated problems than just testing on the target platform, but in some niche cases it can be useful.

I can’t stress enough how awesome emacs is, but it takes a serious investment to get efficient with it.

permalink
report
reply
7 points

emacs with magit and meow are just amazing efficiency add-ons to my workflow. when your tools just get out of your way and keep you in the flow, it’s much easier to stay productive.

permalink
report
parent
reply
3 points

How long did it take you to get comfortable with emacs? I have it installed on my work laptop, but it was daunting to use when everything was new to me.

I can’t use containers with my target platform since I only have 64Mb of qspi flash and 512Mb of Ram. So it’s baremetal for me, but i’m used to that.

permalink
report
parent
reply
11 points

Tmux + nvim for editing code and bspwm for a fully keyboard only workflow. I have some keybinds in tmux to open a new pane and run cargo or whatever command is necessary to run the code.

permalink
report
reply
2 points

How long have you been using nvim/vim in general?

I have to use vi/vim from time to time for basic editing (like on petalinux for example), but it is quite intimidating to get into. I’m already over my head right now, so adding a new learning curve might not be the best timing.

permalink
report
parent
reply
4 points

I had to use vi for work (only editor installed on the servers), and it snowballed and now I can barely type in anything that doesn’t have vim bindings.

The first few days were pretty rough, but I learned the absolute minimal basics, and then just organically learned features as I needed them/whenever I felt like what I was doing was tedious, and there had to be a better way. It’s been about 10 years, and I’m still learning!

One small suggestion, check YouTube for videos of people showing off vim features, e.g. https://youtu.be/5r6yzFEXajQ. You won’t remember everything from one watch, but it’ll help you see what is possible/how powerful vim is, which can guide your “this is so painful how do I make this better” searches down the line.

permalink
report
parent
reply
5 points

Here is an alternative Piped link(s): https://piped.video/5r6yzFEXajQ

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

permalink
report
parent
reply
1 point

Someone suggested vim adventures to learn vim so I will look into that for sure. I really like the proposition of the Vim.l workflow, but I need to set time aside right now that I don’t have. But once my project is started properly, I will definitely dive into Vim

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments