1,105,644 Community Members

Project of C++ atleast 1000 lines of code.

Member Avatar
nabeelkhanjadoon10
Newbie Poster
1 post since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I am first semester student and studiyg CS. I need a c++ project atleast 1000 lines of code. but the project is too simple. I have studied yet Arrays..

Member Avatar
Taywin
Posting Maven
2,632 posts since Apr 2010
Reputation Points: 134 [?]
Q&As Helped to Solve: 378 [?]
Skill Endorsements: 17 [?]
 
0
 

Hmm... I am not sure what you mean by your post. You want a C++ program source code that contains more than a 1000 lines of code? But what does "the project is too simple" mean??? You haven't even studied array and you think there would be a reasonable simple program which contains more than a 1000 lines of code without using any array or pointer?

Anyway, if you want to find some source code, you should google it. There are tons of codes left on google code site or any opensource project.

Member Avatar
Schol-R-LEA
Nearly a Posting Virtuoso
1,401 posts since Oct 2010
Reputation Points: 639 [?]
Q&As Helped to Solve: 227 [?]
Skill Endorsements: 28 [?]
 
0
 

Can you please describe this 'too simple' project for us? We can only give advice when we know what we're dealing with...

Member Avatar
rubberman
Senior Poster
3,999 posts since Mar 2010
Reputation Points: 513 [?]
Q&As Helped to Solve: 501 [?]
Skill Endorsements: 87 [?]
 
0
 

I recently wrote a C++ program to take sar data from a linux system (system activity reports) and convert it into time-series metrics. The code is about 1500 lines. The original code took a few days to write. Getting it into production in a major corporate environment to monitor all of our world-wide servers (2000+ servers in 4 data centers) has taken another 9 months... most of which is politics and smoothing the rough edges (reliability, availability, failure-tolerance).

The basic project (capture system performance data into a time series database) was not difficult. Less than a week of effort to prove the concept and get valuable data from production systems. Just a lot of string parsing and filtering.

Member Avatar
ddanbe
Posting Expert
5,361 posts since Oct 2008
Reputation Points: 2,066 [?]
Q&As Helped to Solve: 908 [?]
Skill Endorsements: 46 [?]
Featured
 
0
 

What is your definition for "a line of code"?
Does it really matter how many lines of "code" a program contains?
Is a program with 100000 lines of code better that one with 1000 lines of code?

Member Avatar
rubberman
Senior Poster
3,999 posts since Mar 2010
Reputation Points: 513 [?]
Q&As Helped to Solve: 501 [?]
Skill Endorsements: 87 [?]
 
0
 

ddanbe - good point! A good engineer can write in 1000 lines what another may not accomplish in 10,000. A great one will reduce that to 100 lines that do no more, and no less, than needed... :-)

This is why most "enlightened" organization measure productivity in "function points" and not lines-of-code. However, that still begs the question as to whether or not those function points are relevant to the comapany's goals - 10 appropriate FPs may be more valuable than 1000 that don't address the organization's needs.

Member Avatar
Smeagel13
Junior Poster
108 posts since Oct 2011
Reputation Points: 5 [?]
Q&As Helped to Solve: 11 [?]
Skill Endorsements: 8 [?]
 
0
 

1500+ lines in a few (2) days...

Either that includes a hell of lot of blank lines, copying and pasting, or there was no testing because that's just daft!

Member Avatar
mike_2000_17
21st Century Viking
4,085 posts since Jul 2010
Reputation Points: 2,259 [?]
Q&As Helped to Solve: 800 [?]
Skill Endorsements: 73 [?]
Moderator
Featured
Sponsor
 
0
 

1500+ lines in a few (2) days...

Either that includes a hell of lot of blank lines, copying and pasting, or there was no testing because that's just daft!

First, it certainly doesn't include blank lines or comment lines, nobody includes those in code-line counts. Second, rubberman did mention that the code only got to production code about 9 months later, after thorough testing / QA / debates. Third, counting only the time for writing the code, starting from nothing to having a fully working (somewhat tested) piece of code of about 1500 LOCs is easily done in a few days if the task is relatively straight-forward.

Member Avatar
rubberman
Senior Poster
3,999 posts since Mar 2010
Reputation Points: 513 [?]
Q&As Helped to Solve: 501 [?]
Skill Endorsements: 87 [?]
 
0
 

Re. Smeagel13:

1500+ lines in a few (2) days...
Either that includes a hell of lot of blank lines, copying and pasting, or there was no testing because that's just daft!

Well, after 30+ years of writing code that runs a lot of the biggest manufacturing enterprises in the world, a first cut of 1500 lines to solve a problem is, for me, about 2-3 days effort. One day of that was to design/model it in a top-end UML tool. FWIW, I wrote a complete TCP/IP stack for an embedded real-time operating system in the early 1990's, and that was 6 months from start to first formal system-level test. Every line of code is original. If you are interested, check out US Patent # 7185325. I am the sole inventor of it (although Applied Materials owns it): http://www.google.com/patents/US7185325

FWIW, the SAR project is now about 6000 lines of C++ code (started about 9 months ago), not including support scripts, rpm file specs, etc, and that is only a part of what I have been doing, such as mastering the Amazon cloud, Hadoop, developing algorithms (including all the math) for predictive analytics to determine when systems will fail using the data that the tool captures. We are collecting with this tool in real-time, data from a number of our world-wide data centers (about 1 billion data points per DC per day), and soon will be analyzing it, also in real-time. Do you know what a Kalman filter is? :-)

What did I do today? I spun up a 15 node hadoop cluster in the Amazon cloud, installed Hadoop and OpenTSDB, started collecting data to test the latest versions of Hadoop, OpenTSDB, our new secure cloud servers, and our latest code that adds another 350M data points per day from each data center when online - all between 9am and 5:30pm. What did you do?

Ok. I'll stop beating my chest now... :-)

Member Avatar
DoRight
Light Poster
35 posts since Feb 2013
Reputation Points: 2 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

Rubberman wins. [grn]

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article