LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2021, 01:19 PM   #16
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931

Quote:
Originally Posted by jsbjsb001 View Post
Yes, that's one of the biggest problems (maybe even the biggest) I have with trying to follow code. In that, if something, for example, is defined in a header and it's referenced in a c source file somewhere (or vica versa), then I've got to scan through the header to try and find what I'm looking at, and that's when I just get completely lost trying to find where I was up to in the c source file, then having to try and remember what I'd read beforehand, then try and follow the rest of the code. It's like trying to find my way through one of those hedge mazes where there is only one way out, but several dead ends, and I just keep hitting dead end, after dead end, if you know what I mean. And for that matter, even just in terms of c source files without looking at any header files it's pretty much the same story.

While if it helps in the meantime, where I can at least be able to follow code, I'm happy to give an IDE a go to develop enough skill to be able follow the code; I'd really like to be able to get to a point where I don't need to rely on an IDE, and just use the command-line like you.
You've got one or more distributions.

Go to the software manager and search the string "ide" it should find you some bunch of them. Common ones I've seen and heard about, Geany (I like), Codeblocks (heard a lot but never used), Eclipse (well ... I've used it, it does work as a full IDE, just ... I find it's very slow, takes a long time to load etc, but it is a full IDE and actually used quite a lot)

Or others.

What I can say about something like Geany, is that you can run it, open a few files. That's key, opening multiple files into tabs, just so you can swap from A to B easily.
Next it will be capable of searching either all open files, or if you make an actual project including those files, it will search "all project files"
The suggestion would be to use it on any code you've previously written, or write some "distributed across a few files code" and use it for those. I fully get that people learning may have all their code in one C and maybe one H file for each project they've done up to some point.

Other suggestion is to download some git project which contains a handful/dozen or two files (not hundreds) and give that a go just for driving/learning experience.

Yes there are more basic ones and with different ones you can build and debug all within them. Start with browsing code and then decide if you prefer also to set up building and debugging within them.
 
1 members found this post helpful.
Old 03-18-2021, 12:07 PM   #17
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Thanks pan, boughtonp, and RT.

I know Geany is in my distro's repo, so I think I'll just install that for now. And perhaps as well, do a combination of an IDE and writing stuff down on paper, or some such. Thanks again for your advice pan, boughtonp, and RT.
 
  


Reply

Tags
programming, reading code, understanding code



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding word (from a list) to a sentence... you'll understand when you read. cilbuper Linux - General 5 10-21-2015 02:43 PM
How do you actually do a code review in a serious project? Aquarius_Girl Programming 20 03-31-2014 01:49 PM
LXer: For the First Time, You Can Actually Own the Digital Comics You Buy LXer Syndicated Linux News 0 07-06-2013 07:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration