So, I have been mostly self thaught programmer (C++), as its a big part of my job (not a regular developer). But so far I have been using a simple text editor like Geany to code and I compile stuff either in terminal (linux) or produce my own make file.

I am starting to wonder if I should switch to a full IDE, as I am on linux, I was thinking of trying KDevelop. But I am simply not sure if its worth, do I even need it?

I have never used an IDE, it seems kind of complicated for the start with “projects” and I havent really found any good introductions to how this workflow is supposed to work.

Do you think using and IDE is something everyone should use? Or do you think a text editor with producing your own make files should be enough?

  • Hexorg@beehaw.orgM
    link
    fedilink
    arrow-up
    24
    ·
    1 year ago

    In this Thread: people telling you how IDEs suck then proceed telling you how to turn their terminal based text editor into an IDE

    • SkierniewiceBoi@lemmy.one
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      There’s a learning experience to it though. When coding in intellij I’m just using writing some java without deep understanding how the build system works ans what’s done underneath. Setting up some nvim with lsp forces you to focus more on the whole process so I’d say it can be beneficial

      • Hexorg@beehaw.orgM
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Yes but people should also factor OP’s experience into recommendations. They are not a regular developer, self-taught programmer who uses C++ for work. They are probably not familiar with many build-chain internals, command line debuggers, and compiler search paths. So while everyone in this thread can probably agree that something like code completion is better than not having code completion, I think it’s also fair to get op started with something quick and easy like VSCode and then once they are comfortable they can go figure out how to install cool plugins for neovim

        • SkierniewiceBoi@lemmy.one
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Yup that’s also true, I’ve hit the wall multiple times when trying to use vim/emacs. Now I’m in neovim and feel like I get a better understanding of buildsystems but I won’t say it’s something that everyone should start with. I don’t know what the C/C++ intellij is though. On windows it’s probably visual studio. On Linux maybe vscode but I’d say if op wants to try some morw serious ide then clion may be a better choice

      • reversebananimals@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        For beginners you’re right, but once you’ve done that one time and understand how it works, it no longer provides value and often results in slower productivity.

    • zmhanham@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It’s less about “sucks” and “not sucks” but the point I think is important is that IDEs are generally a closed system. You can’t modify them very much, if at all, to fit your needs. If the IDE out of the box is a good fit for your needs then by all means use it! But if there comes a time that you need to do something that isn’t supported by the IDE you either need to drop to the command line or attempt to hack together some solution in whatever limited extension language/API they support. Or hope that an extension already exists.

      Vim, emacs, and other programmable editors make it easy for you to do that one specific thing you need to do. And there is very likely already a package/plugin that someone made for it. But if there isn’t, it’s so much easier to modify a programmable editor than a closed IDE.

      So really it just comes down to what do you need from your editor? Now if you’re someone like me, I need to try to perfect the way I program. Always trying to find the most efficient way to do some common operation. But if that’s not you that’s totally ok (and honestly I envy you lol)

  • SNEWSLEYPIES@lemm.ee
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    1 year ago

    For my money: yes, you should use an IDE or something like one, but not because you’re “missing out” - rather, because a plain text editor will limit your progress.

    There are (still!) people around who think it’s some sort of badge of honour to only use text editors, but in reality, this means they miss the syntax errors and typoes that we all make because we are human, and end up wasting hours looking for them when an IDE would let them see them.

    You wouldn’t turn up at a cookery school saying “I’m still a beginner, so I’m only going to use this pair of scissors” - specialised knives and utensils are part of the chef’s toolkit, and becoming a better chef is just as much about learning to use them effectively as it is about memorising recipes. It’s the same with programming.

    • isosphere@beehaw.org
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I stick with vim for years out of that sort of badge of honor. Now I use vscode and nobody is taking it from me.

      You can do almost anything in vim or emacs, but I can do it faster in vscode. It’s a really fantastic tool and it’s completely free.

      • _bug0ut@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        1 year ago

        I stick with vim because every time I try to use vscode, I get so bogged down trying to set things up and figure out how to use it that I end up just being like, “eh, fuck it - I’ll do this later.”

        Some younger admins and engineers look upon me with awe, but really I’m just secretly a really lazy bastard. I don’t even pack plugins into vim anymore to make my life easier. Just plain old vanilla vim.

        • Hexorg@beehaw.orgM
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          At the end of the day there’s some cost-benefit analysis for time spent setting up environment vs time saved by previously setup features. Autocomplete saves a good amount of time but even something like same-file-word suggestion can save a lot of time without any setup.

          • _bug0ut@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            Yeah, for sure - I don’t deny that at all. For me, it’s a confluence of general burnout, laziness, and comfort with what I already know… and likely not a really urgent need to move to a proper IDE. The majority of my coding is small, one-off Python scripts where I can :wq and run it and then open it back up to refine, fix bugs, add debugging prints, etc.

            • Hexorg@beehaw.orgM
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Even for that there are some nice (vim and otherwise) features where clicking on an error automatically opens up the right file and sets the cursor at the location of the error. Or just seeing errors in a separate panel from the rest of the code.

              • _bug0ut@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                1 year ago

                Yeah, I used to configure vim with syntax highlighting and auto-suggestions and whatever else. I just like… don’t anymore. I’ve been feeling less burned out over the last few months and it seems, at least, like its still lifting slowly. Maybe when I get the energy back, I’ll take another crack at vscode.

      • Deebster@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Do you use the vim plugin for VSC to keep your speedy navigation? I miss things like “select up to the next quote” but I’m not enough of a vim user to make the switch myself.

  • nii236@lemmy.jtmn.dev
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    It’s worth figuring out an IDE “lite” like vscode to see how you go. It’s pretty lightweight and easy to spinup compared to something like IntelliJ

  • Communist@beehaw.org
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

    I use vim, and I can safely say, it was worth bothering to learn it and set it up, ESPECIALLY if you make a career out of it, and one time I had a friend who didn’t use an IDE and I showed him how much easier it was to do certain things on vim and he felt very very stupid for using notepad.

    • XTL@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I’ve moved to neovim myself after 20+ years of vim and 30+ years of programming with various editors and even monitors. I’ve used IDEs when in projects where everyone does and where the build may rely on them (yes, that’s a disaster) or when it’s the only tool offered (old obscure embedded systems). But I’ve never wanted to use any of them or found the results useful. Debuggers and editors can be extended to do anything extra an IDE does.

      Extra tips: Helix might have an even better command system. Kate almost works like an IDE and offers a vi command mode in a GUI editor.

        • BlueBockser@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Tbh, that just sounds like an IDE with extra steps. IntelliJ for example does all of those things as well IIRC and you don’t need to rely on third-party tools.

          Of course you’ll learn a lot more along the way if you configure vim to effectively be an IDE, but the end result is not that different.

          • Communist@beehaw.org
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            While it was a ton of configuration work, it’s now an extremely slim text editor that I use for literally every text file on my computer

            I don’t think intellij’s performance could compare.

            Plus, now that it’s already configured, I just have to share my dotfiles and it’s immediately setup anyway, and I love how vim works with modality and all, i’m not familiar with intellij but it’d have to do quite a lot to sway me at this point.

  • IndependentRanger@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    Interesting question. Personally, I started with a text editor transitioned to vim, then to VSCode and now I’ve settled on a customised neovim install.

    I’m a believer of PDE, that is personal development environment. It’s a concept one of the Devs of Neovim TJDeVries talks about.

    In essence it’s the idea of building your development environment how you want it. Personally, Neovim allows me to do this. For example, I have a VSCode style debugger, incredibly fast searching with ripgrep, vim keyboard shortcuts and uses the same language servers as jetbrains products.

    Here’s a link to his full conversation on the topic: https://youtu.be/QMVIJhC9Veg

    Stay awesome!

    • gears@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Can you elaborate on your debugger?

      I’ve been trying to switch to neovim, and I’ve got a pretty decent setup with treesitter and also lspconfig. My search and debugger are still non-existent and I’m not sure what is best.

      I write python and c/c++ (for MCUs) at work, and I’m curious what the state of integration with potential debuggers is.

  • tranzystorek_io@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I think there are two key aspects to IDEs:

    a) the larger the codebase and the less familiar you are with it, the more of a nightmare it will be to hunt bugs or search places to insert code; this is where an IDE becomes extremely helpful by e.g. letting you search a struct across multiple modules, showing lints, compiler errors etc.

    b) IDEs are only as helpful if they can be configured with your codebase, and sadly there are probably numerous codebases that won’t play nice and let you crate a working config

  • starship_lizard@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    There’s a lot of value in using an IDE, from just general formatting stuff to being able to tell what class functions do without having to dig into the class itself. Not to mention autocomplete.

    There’s lots of free solutions out there now, so if you’re curious I’d give it a shot. I think you’ll find once you start using one it’ll be hard to go back to just a plain text editor.

    I like vs code a lot, if you’re looking for specific recommendations. It’s lightweight and can be upgraded to do pretty much anything via extensions.

  • Pekka@feddit.nl
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Some IDE’s really speed up development, yes. They provide tools for running tests, automatically do formatting and make it very easy to navigate around the code. For me, that last point is the main reason to use an IDE, it is so much faster to just click on a function and go to the file where that function is implemented. IDE’s can also help with setting breakpoints and using the debugger.

    I’m not sure how things are for C++ though. Personally, I mostly develop with Java, Typescript (Svelte), Python and Rust. For Java, I use IntelliJ, for all others I just use VS Code.

  • luciole@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Step by step debugging is very enlightening when it comes to inspecting execution. If your current setup doesn’t include that, I’d strongly suggest to revise it.

  • teri@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    You may actually miss out when using an IDE. Driving without training wheels is more fun :)

    I’ve used IDEs (Netbeans, Intellij) in the beginning but then started migrating away. They where just too heavy for me. Also, often IDEs do lots of stuff in the background such that you easily don’t understand fully what is going on. Now I settled using the ‘helix’ text editor. It provides some IDE-like features like integration with language-servers, syntax highlighting, code completion, file navigation, code navigation, symbol search. But there are no dozens of buttons for triggering compilation etc. You do all this on a separate terminal.

    Quite handy for such setups are tiling window-managers like i3. They allow you to easily fit the editor and terminals on the screen. This way you also don’t need the build-in terminal of an IDE.

    • teri@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      IDEs can automate build/test flows. But you can also automate them with scripts. This has the significant benefit that you can check this scripts into your version-control system (git) and publish them together with the code. Then your collaborators can use the exact same scripts. With IDEs that’s really not working well because it would force others to use the same IDE as you. Possibly the IDE configuration is not even version-control friendly.

  • StrayCatFrump@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    I’ve been doing development in many languages over the years, including C++, Java, Python, and Go. i do everything from the command line: tmux for multi-tasking, vim for editing, the specific compiler and other language tools, makefiles, grep, etc. I am plenty productive, and I find the speed and generality of the tools I use make up for the features an IDE might have out-of-the-box and that I have to either take a couple more steps to accomplish or write some kind of script to help with. Basically “the command line is my IDE”. Also nice to not be dependent upon a windowing/desktop environment to get stuff done. Nice and portable and lightweight on dependencies.

  • True Blue@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    The line between IDE and text editor is kinda blurry nowadays anyway. I don’t know that much about Geany, but many of the text editors I’ve used were basically full IDEs, except that the IDE features were opt-in.

    Currently I use VScodium as my editor, and I’ve been happy with it. I hear a lot of good things about Kate too, and as a KDE user, I feel like I should try it some time. Kate to me looks like the same spirit of text editor as Geany. Maybe if you’re comfortable with that style of editor, give it shot.

    The 2 editors that have really been catching my eye lately have been Helix and Lapce. I think it’s really cool that Helix went with a Kakoune style “selection → action” system instead of the normal vim style “action → selection”. I think Lapce is trying to be a similar style of editor to Vscode, with simple IDE features by default, but then an extension sytem to expand that. Maybe an editor like that would be approachable to you. Although unlike Helix, Lapce seems to be less production ready for now, so maybe wait on that.

    For now you could of course just try VScode (or VScodium if you’re like me and want open-source software) since that’s a popular one right now.

  • hiajen@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Hm, i do thing witu c/c++ the benefits of using an IDE are not as great as for other languahes like java/python etc etc but still existant.

    I wont programm java without my IDE, for c/c++ i mostly just use vim with someplugins for autocompletion. I could be a snowflake tho.

  • souperk@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    A good IDE takes the basics and supercharges them.

    Navigation along with block expand/collapse, make reading code much easier, they allow you to focus on what really matters.

    Syntax highlighting, inspections, and formatting allow you to focus on what you write and not if you missed a semicolon.

    Visual debugging is so much better that you just have to try it once, no debate.

    Run configurations, especially for tests, are a nice treat if you running multiple apps/different configurations.

    While there are many benefits to using an IDE, you have to keep in mind that they are not an one for all solution. Sometimes it’s better to open a terminal.

    Also, they are great as long as they assist your flow and not disturb it, you will need to spend time to figure out the configuration that works for you. I have been changing IDE configurationd since 2012 when I first used eclipse.