| General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-22-2010, 09:30 PM
|
#16
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
Original Poster
|
Charles,
Thanks again for the constructive reply.
First of all I would like to state that any comments regarding to the data structures should be made in that thread only, to keep all the discussions in one place.
Quote:
Originally Posted by catkin
but I would counsel keeping it simple at first. In this case, use arrays or even a single array for starters.
|
We had a course in our MCA, namely "System design and implementation". The pathetic professor taught nothing w.r.t the subject but instead gave us the data structure assignments to keep us busy. "Text Editor" was one of those assignments. And at that time we used "arrays" and nothing else. (The motive was to pass the exam  )
This time I am doing it for practicing: - programming skills
- design patterns
- learn new tools like "ncurses", "makefiles" etc.
Quote:
Originally Posted by catkin
You can even start without a versioning repository and without automated testing but they will save time overall so chances are you will want to add them later.If the intention is to practice application development then none of the time taken familiarising with the development environment toolset will be wasted
|
I hadn't heard (this is grammatically wrong I think) about "automated testing" before, I found this: http://www.opensourcetesting.org/
I'll be making this an open source project with GPL license and upload it on Source Forge.
Quote:
Originally Posted by catkin
You might like to incorporate debugging facilities from the outset.
|
Make the statement more clear, please. What does "from the outset" mean here ?
Quote:
Originally Posted by catkin
If you are really virtuous you will document it too -- starting with functional and interface (OS, internal and external) specifications, data structure descriptions, coding standards, naming conventions, architecture, etc.
|
That'll be done when I feel the project is moving in the right direction 
|
|
|
|
11-22-2010, 09:51 PM
|
#17
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
Quote:
Originally Posted by anishakaul
|
Another bunch of tools for you to learn! Ideally, as you implement support for each new feature in the text editor you create an automated test for it (taking care to cover the "edge cases") and, after debugging each new feature, you run all the tests to ensure that the new feature implementation hasn't broken anything. AFAIK this is called "regression testing".
Quote:
Originally Posted by anishakaul
Make the statement more clear, please. What does "from the outset" mean here ?
|
from the outset
BTW, this thread's title is grammatically incorrect. It should be either "more simple" or "simpler".
Good fortune with the text editor project! 
|
|
|
|
11-22-2010, 09:58 PM
|
#18
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
Original Poster
|
Quote:
|
You might like to incorporate debugging facilities from the outset.
|
It is still unclear, did you mean that I should use GDB, Valgrind..etc ? or you meant something else ?
and I was talking about this being wrong grammatically:
Last edited by Anisha Kaul; 11-22-2010 at 11:45 PM.
|
|
|
|
11-23-2010, 02:06 AM
|
#19
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
Quote:
Originally Posted by anishakaul
It is still unclear, did you mean that I should use GDB, Valgrind..etc ? or you meant something else ?
and I was talking about this being wrong grammatically:
|
I don't have experience of current tools so was writing generically. GDB and Valgrind look good and may be all that is necessary but I was thinking of something non-interactive that, when the program is started with debug turned on will log key events and data allowing you to very quickly see what happened. I don't C++ but the procedural equivalent would be to log function calls and data passed (by value or reference) on function calls plus anything else considered key. Some programs implement a numeric debug level, printing/logging more detail, the higher the number. In case this facility is not wanted after the development phase all the code for it can be enclosed in #ifdef #endif blocks and thus conditionally included/excluded at compile time.
"Hadn't heard" is correct. Actually it's perfect, specifically pluperfect.
|
|
|
|
11-23-2010, 02:11 AM
|
#20
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
Original Poster
|
Okay thanks again,
I was searching for some "active" data structure/algorithms forums, couldn't find any "active" forum  If you have knowledge of data-structures see if you can comment on the "new" last post of that thread,
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:24 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|