Menu
Logged-In As
ACCOUNTNot Logged In
Implement new API function to reduce duplicationBRL-CAD
Status: ClosedTime to complete:
72 hrs
Mentors: Sean
This is a follow-on to a new API design task.
This task involves implementing a new function that will measurably help reduce code duplication. You'll need to have already identified a piece of duplicated code that needs to be refactored and/or modified.
This task involves implementing the function per the header doxygen comment specification. Make sure your implementation is clean, fits well with our existing conventions, and is an efficient implementation that will help reduce code. Be meticulous.
Submit a patch file with your implementation.
Uploaded Work
File name/URL | File size | Date submitted | |
---|---|---|---|
tmp_bn_poly_area-1176587867.patch | 4.0 KB | December 31 2013 10:59 UTC | |
bn_poly_area.patch | 7.9 KB | December 31 2013 15:25 UTC |
I would like to work on this task.
This task has been assigned to Johannes Schulte. You have 72 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
The function itself looks reasonable. However, I'm missing at least two usages of bn_polygon_area() in your patch so that this function indeed reduces code.
One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.
Is this also part of this task, or should it be done in one of the code duplication tasks?
The work on this task is ready to be reviewed.
Implementing the reduction isn't part of this task but you do have to identify the code that is deplicated (i.e., submit what code that is somewhere (not in the patch, a text file or comment)). You don't really have to worry about a task count, so it's more helpful that this is included together with this patch (it's not a 100+ line reduction anyways unless you know of more places to use it). All tasks will get weighted by complexity and completeness (among other factors) so it doesn't really help you to break this up into multiple tasks unless you're worried about not making the top five.
The patch looks pretty good except for a few issues:
Assuming you can fix the remaining issues on commit.
Congratulations, this task has been completed successfully.
committed in r59239