Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
simulate3053276dIsn't programming always like this..?
I mean I am only used to c++ but thats how it has always been for me. Think of a feature, imagine a possible design, improve that design, start implementing it, struggling, running into problems you didnt think about, go to bed, think about what to do in every free second of the day, get back on the computer to implement solution/workaround, refactor, think of next feature...
I kind of love that because it is really creative. You might say that it is frustrating because it never works that easily, but it would not feel so good to get things done if it was easy.
boopboop2561276d@simulate Yeah. I'm also getting used to enjoying it now. Maybe It's because I programmed in python only and the errors weren't really too hard to fix and I got used to the language so I didn't take too much time to find and fix but now I'm learning C++ so errors are appearing more often and are difficult for me as I'm not used to the language. But that's the fun of it 😄.
simulate3053276d@sshehriyar dont worry, as with any language, once you get used to it you will know more and more what you are doing (of course)
With C++ you just have to remember that it came from C and it works at a very low level. The cool thing is that technically, everything at a higher level is still possible. By writing generalized functions and classes you can move up in abstraction and do more with less code.
Spoiler: template classes and functions are very powerful for generalization
At first error
RememberMe8069276dI wouldn't recommend using an IDE when you're learning, but anyway. VSCode's C++ support is utter garbage except for the debugger. Use Visual Studio, or JetBrains CLion. They're both way, way better.
@RememberMe I used to use vim in my early time of learning C++. I switched because vim slowed down even when I ran async linters. I do go down to the command line when required e.g. I'm using cmake for compiling but I do sometimes use g++ and compile/link only the required files etc. Not the best example but oh well 😄. I'm not a fan of IDE's which is why I'm using vscode as its close to IDE but not an IDE itself. I do like atom a lot but I don't see a good c++ ide package etc.
RememberMe8069275d@sshehriyar I meant, the autocomplete and code linting features are exactly what you shouldn't use in the beginning. Why not just use vim with only syntax highlighting, and use g++ with all warnings?
If you're using it for a project though it's illogical to not use the powerful autocomplete and linting that VS and CLion can do. Believe me, they're way better than all other options. I tried to switch to a non-IDE workflow, didn't really work. C++ is a language that requires a pretty heavy frontend, and really benefits from it.
Plus, since you like CMake: CLion uses it as its build system. It's integrated really well, you can swap toolchains in and out on the fly and stuff.
RememberMe8069275d@sshehriyar happy to help.
Check out clang-tidy, it's an analyser that gives you suggestions for improving your code and avoiding possible errors.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job
xjose97x11Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
dfox6If you're not learning anything new at your job it's probably time to move on.