Identify and eliminate dead code (100+ lines) #7BRL-CAD
Status: ClosedTime to complete: 96 hrs Mentors: Gauravjeet Singh, Kesha ShahTags: C, consolidation, code reduction, refactoring, cleanup

BRL-CAD is huge. With any large body of code, one inevitably ends up with a mix of good and bad coding practices. On the whole, BRL-CAD is actually better than most but we are constantly working on improving the code. This includes eliminating duplication.

References:

  • http://en.wikipedia.org/wiki/Don't_repeat_yourself
  • http://brlcad.org/wiki/Code_Cleanup
  • http://brlcad.org/wiki/Compiling
  • http://brlcad.org/wiki/SVN

This task involves reducing BRL-CAD's source code by 100 or more lines of code by refactoring and eliminating duplicate code. You can use whatever method you like to identify duplication, but beware that there are more than 1 million lines of code in BRL-CAD, so you're not likely going to find this duplication just by browsing.

We suggest using a code duplication detection tool like Simian. See our Code_Cleanup page for details.

Download our latest Subversion trunk sources and make sure you can compile cleanly first. Then you can run Simian or do whatever you need to find sources of code duplication. Make your edits, then make sure the code still compiles (run "make", "make test", "make regress" and "make benchmark" to test your changes). Finally, create and submit a patch file of your changes (see the references, svn will create the patch file for you).

Feel free to join the brlcad-devel mailing list or IRC channel to discuss your changes beforehand.

Uploaded Work
File name/URLFile sizeDate submitted
proc_db.patch12.2 KBJanuary 16 2015 12:46 UTC
Comments
John Moreon December 3 2014 04:19 UTCTask Claimed

I would like to work on this task.

John Moreon December 3 2014 04:20 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Nicholas Sturges-Bresleyon December 3 2014 20:43 UTCTask Claimed

I would like to work on this task.

Deepak on December 3 2014 20:44 UTCTask Assigned

This task has been assigned to Nicholas Sturges-Bresley. You have 100 hours to complete this task, good luck!

Nicholas Sturges-Bresleyon December 3 2014 20:44 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Goofyman16on December 3 2014 22:03 UTCTask Claimed

I would like to work on this task.

Goofyman16on December 3 2014 22:04 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Goofyman16on December 4 2014 15:42 UTCTask Claimed

I would like to work on this task.

Goofyman16on December 4 2014 15:44 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Moretti Georgievon December 5 2014 06:40 UTCTask Claimed

I would like to work on this task.

Popescu Andrei on December 5 2014 06:53 UTCTask Assigned

This task has been assigned to Moretti Georgiev. You have 100 hours to complete this task, good luck!

Moretti Georgievon December 5 2014 20:10 UTCCompilin just one file

Hello,


How to compile just one file not the whole project. For example if I make changes to exampleFile.c. Is there a way to compile only this specific file.


Thank you!


Moretti Georgiev

Melange on December 8 2014 10:53 UTCTask due soon

There are less than 24 hours left until the deadline, please submit your work soon.

Moretti Georgievon December 8 2014 16:52 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Goofyman16on December 8 2014 20:38 UTCTask Claimed

I would like to work on this task.

Goofyman16on December 8 2014 20:42 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

mandarjon January 2 2015 06:03 UTCTask Claimed

I would like to work on this task.

Gauravjeet Singh on January 2 2015 06:40 UTCTask Assigned

This task has been assigned to mandarj. You have 100 hours to complete this task, good luck!

mandarjon January 2 2015 06:52 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

shardulcon January 16 2015 11:36 UTCTask Claimed

I would like to work on this task.

Daniel_R on January 16 2015 11:38 UTCTask Assigned

This task has been assigned to shardulc. You have 77 hours to complete this task, good luck!

shardulcon January 16 2015 12:50 UTCReady for review

The work on this task is ready to be reviewed.

Popescu Andrei on January 16 2015 12:57 UTCTask Closed

Congratulations, this task has been completed successfully.