You are not logged in.

#26 2017-09-22 15:36:51

escondida
Regular User
Registered: 2008-04-03
Posts: 149

Re: C/C++ - How do you develop?

Obligatory "ED! ED! ED IS THE STANDARD!!!

"TEXT EDITOR."

https://ptpb.pw/~ed.txt

Offline

#27 2017-09-23 17:57:53

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 705

Re: C/C++ - How do you develop?

I use Eclipse-CDT and CMake. I like the capability to e.g. select a variable and ask the IDE to find its definition. Also the GUI frontend for GDB is a must for me (I never learned the GDB command line, even if it's on my TODO list since years...). Occasionally I use vim for quick edits especially on remote machines.

Offline

#28 2017-09-23 18:00:59

Alad
Wiki Admin/IRC Op/TU
From: The Land of The Bloat
Registered: 2014-05-04
Posts: 1,694
Website

Re: C/C++ - How do you develop?

Also the GUI frontend for GDB is a must for me

Try gdb -tui


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Closed until further notice)

Offline

#29 2017-09-24 08:43:15

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 705

Re: C/C++ - How do you develop?

Alad wrote:

Also the GUI frontend for GDB is a must for me

Try gdb -tui

That seems interesting, but in my opinion a GDB GUI frontend integrated in the IDE has some advantages (like placing breakpoints with a click or getting the value of a variable by simply placing the mouse cursor over it). I can imagine that a GUI frontend might be limited in functionalities, but for my daily needs it does its job very effectively.

Offline

#30 2017-09-24 19:18:18

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 751

Re: C/C++ - How do you develop?

I was using Code::Blocks for the longest of times until I became frustrated with it. So I switched to Gedit and make. Once I figure out how to place *.o files into obj/ without using mv *.o obj/ in my makefile I'll be good to go. smile


I have been diagnosed with Bipolar Disorder. Therefore, I apologize in advance if the quality/content of my posts decline sharply, at any point.

Offline

#31 2017-09-24 19:56:16

Eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 1,418

Re: C/C++ - How do you develop?

Err, I assume that would be done with:

$(OBJDIR)/%.o : %.c

Somewhat more elegant, depending on what you mean by elegant, is http://make.mad-scientist.net/papers/ho … use-vpath/ and the link to multi-arch builds, just without arch.

Offline

#32 2017-09-24 23:27:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,059

Re: C/C++ - How do you develop?

ewaller wrote:

As an emacs user, I can poke fun at it with the old cliché that emacs is a great operating system in search of a good editor ....

*ahem* Spacemacs to the rescue?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#33 2017-09-29 15:57:37

The Infinity
Member
Registered: 2014-07-05
Posts: 91
Website

Re: C/C++ - How do you develop?

I usually use Qt Creator, even for projects which don't use Qt. I like that has CMake/qmake integration but still allows to control the build process quite well (you see what's actually going on). The auto-completion and the shortcuts to find navigate to a specific class or method or following header includes and method calls (to definition) make finding this very fast. The idea of not wasting time with organizing tabs by not having tabs works for me. Besides, it integrates gdb well enough. For Qt projects the designer, QML debugger and shortcuts to documentation are very useful, too.

For anything else (not C++) I'm using either Kate or vim.

And my personal build system ranking from best to worst (only including the build systems I have actually already dealt with):
1. CMake: Syntax looks horrible, but when you get used to it, you have a powerful, fast and well documented build system.
2. qmake: Only suitable for projects which depend on Qt anyways. Simple and intuitive to use but not suitable for doing complex things IMO. Will be superseded by qbs.
3. autotools: I don't use it in own projects, but other projects using it are usually built without problems (even when cross compiling). Seems to be good at feature detection.
4. simple Makefile: Works as well (but even for very simple projects I prefer CMake).
1000. gyp: Used by ANGLE and just horrible.

Last edited by The Infinity (2017-09-29 16:12:13)

Offline

#34 2017-09-29 17:02:01

renato_garcia
Member
From: Brazil
Registered: 2009-08-14
Posts: 24

Re: C/C++ - How do you develop?

ewaller wrote:

As an emacs user, I can poke fun at it with the old cliché that emacs is a great operating system in search of a good editor ....

After some good ten years using emacs keychords, I'm now learning evil mode and I think that I have found a new editor to my EmacsOS.

Offline

#35 2017-10-01 06:18:24

Psirus
Member
Registered: 2012-01-29
Posts: 45

Re: C/C++ - How do you develop?

I'm using vim as well, specifically neovim. For writing C++, a couple of plugins really help a lot: YouCompleteMe for auto-completion, RTags for jumping to definition etc. (ctags just doesn't work properly with C++), and Neomake to trigger the build and get the compiler errors into the quickfix list.

Offline

#36 2017-10-01 20:37:15

yodermk
Member
Registered: 2012-07-17
Posts: 68

Re: C/C++ - How do you develop?

Pretty much agree with The Infinity. I find QtCreator to be quite great. I use it with cmake for non-Qt projects and with qmake for Qt projects.  KDevelop also seems pretty good but I just got used to QtCreator so use it for everything.

That said I don't do C++ anywhere near as much as I'd like. I'm jealous of those who have jobs coding in it. Maybe some day!

Offline

#37 2018-01-09 12:08:05

Mardukas
Member
From: Lithuania
Registered: 2007-08-05
Posts: 97

Re: C/C++ - How do you develop?

I haven't done much C programming, but when I was learning for fun - used CLion. Mainly because it's familiar - keybinds and functionality is the same as in Visual Studio + ReSharper or WebStorm or Rider or AppCode.

Offline

#38 2018-01-10 22:59:34

Steef435
Member
Registered: 2013-08-29
Posts: 478
Website

Re: C/C++ - How do you develop?

(Neo)vim without any fancy stuff (no completion etc.) and plain makefiles for me. I hardly use a debugger and always have to look up the commands, but when I do, I use gdb.

Interesting to see people program without syntax highlighting, I never thought about it like that.

Since we're already on the vi vs emacs track, I thought I'd mention I use tabs for indenting and spaces for alignment. smile

Offline

#39 2018-01-11 18:31:51

the_krock
Member
Registered: 2018-01-04
Posts: 2

Re: C/C++ - How do you develop?

At the moment I write pretty much all my code in Geany, for C++ and everything else, with a terminal or two opened to compile and run.

The article about syntax highlighting is really interesting, I never even thought of coding without it before. But it reminded me of that guy I help that's coding C++ with Visual Studio, every time some word doesn't show up the color he expects it to be, he's like "there must be an error", when most of the time it's just VS that hasn't updated the colors...

Last edited by the_krock (2018-01-11 18:32:36)

Offline

#40 2018-01-11 23:23:50

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 349

Re: C/C++ - How do you develop?

the_krock wrote:

The article about syntax highlighting is really interesting, I never even thought of coding without it before.

That's an old article born out of people's natural resistance to change. I really don't think any serious developer would try to argue anymore that we are better off without syntax highlighting?!

I started using vi on Unix around 1978 and for the first 20 years(!) or so I didn't have syntax highlighting. I used to laugh at the young programmers on windows with their fancy color IDE's and think they were kidding themselves. Then we finally got syntax highlighting in vim around 1998 and I realized how much more pleasant coding was with it.

I remember once many years ago I was spending heaps of time looking for a bug in someone else's C code via a small black and white screen on an ancient legacy system. I eventually got tired of the small screen and awkward keyboard so I copied the files back to my linux laptop (via kermit serial transfer) and fired up vim on the same file I had been looking at only to see that the many pages of C code I had been looking through were all blue! I.e. all that code was actually ifdef'd out!

Last edited by bulletmark (2018-01-11 23:25:14)

Offline

#41 2018-01-11 23:39:30

Trilby
Forum Fellow
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 17,896
Website

Re: C/C++ - How do you develop?

bulletmark wrote:

That's an old article...

Does the age of a logical argument impact it's validity?  In that case we should throw out geometry, Euclid is ancient!  And forget calculus, that's old news, so clearly no longer valid.  Newton is so dated.

bulletmark wrote:

... born out of people's natural resistance to change.

Maybe, maybe not.  But that too has no relevance on the validity of the argument.  Even if the author of it was not only resistant to change but also a child molestor and homicidal maniac, their points would still stand.  I don't agree with their conclusion as I don't weigh out the pros and cons the same as they do, but to disgregard all their points this way is nothing more than an ad hominem.

bulletmark wrote:

I really don't think any serious developer...

And you top it off with a No True Scotsman.  The nice thing about this fallacy is that your point is so readily falsifiable.  Linus Torvalds has been reported to not prefer syntax highlighting, though I can't source this claim at the moment.  Rob Pike, however, is down right hostile about it and has claimed to have the goal of getting rid of syntax highlighting entirely.  I guess he's not a serious developer.

bulletmark wrote:

... would try to argue anymore that we are better off without syntax highlighting?!

So are you suggesting that there has been a substantial evolutionary change in human perception and cognition from the state it was in from 1978 to 1998 and now?  Such that what used to be a useless and laughable add-on to editors is now of great value?  I find it far more parsimonious to rely on demonstrated psychological tendencies of one to justify their own behavior.  You used to laugh at syntax highlight, now you rely on it: you couldn't possibly admit to having been wrong, no the objective facts of human perception and cognition must have changed.

Last edited by Trilby (2018-01-11 23:50:38)


Resist the GNU world order.

Offline

#42 2018-01-12 02:51:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 15,337

Re: C/C++ - How do you develop?

Trilby wrote:

...And forget calculus, that's old news, so clearly no longer valid.  NewtonLeibniz is so dated.

FTFY.

As long as I am here, I'll state I do like syntax highlighting in editors.  And I like DRC (Design Rules Checks) in CAD schematic capture and board layout systems.  And I read compiler warnings to figure out if I am digging myself a hole.  Believe me, I a human and make my share of stupid mistakes.  Sometimes it is nice to get a little hint that I am not expressing myself well; either to other humans or to compilers.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB