Are there some source code shorteners? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for a program that would read C++ source code, remove all unnecessary whitespace and replace all names so that the source code as measured by the number of bytes is as short as possible. I do not care about the obfuscation, size is all that matters.
I am solving this competition programming problem and the source code size is set at 2000 bytes.

For automatic condensing, check out creduce for C and C++ here
I'm not sure how smart it is but having a good design in your code, managing class explosion, etc. helps far more since I doubt any automatic whitespace trimmer would be as effective as rethinking and refactoring out poorly written code.

Related

Again on build systems. Let's talk about complete correctness [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Recently I tried tup and I am VERY impressed by its correctness and speed, and the fact that monitoring the file system makes the tool really robust. It is also very easy to understand.
It never gets anything wrong, and when it does, it will show me. I would like to find a tool that is more mainstream and cross-platform friendly as long as it meets the requirements below.
My questions are:
Do you know any alternative build tool that has:
O(1) rebuilds.
Completely correct dependency tracking.
(Optional) Takes advantage of filesystem access.
EDIT: This is not a subjective "recommend me a tool" question, it is give me names of tools that meet these requirements because I would like to further research on how they behave for my use cases.

Updating K&R-style parametrs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Are there any utilities (along the lines of unix indent) that will automatically reformat code using K&R-style c function parameters to modern (well, post-1989) style?
I'm working on a moderately large old scientific code, which is littered with declarations like:
int cylind_volumes(w, icomp)
WindPtr w;
int icomp;
{
[...code...]
It seems like it should be doable, and would make it easier to maintain & further develop (and potentially update to C++ etc.). This must be a solved problem?

Enforce comments in function implementation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a way to enforce adding comments for code blocks inside functions. for example I want each for loop, if condition etc. to have one or two lines of comments describing what the code actually does.
I know Doxygen and I know it is not capable of doing this task. is there any other tool that can be used to give some information/metrics about the quality and amount of comments in function implementation?
What could be interesting is to search for methods with a high cyclomatic complexity(using many if,for,while,..) and not well commented, for that you can use CppDepend and execute a CQLinq request like this one:

What is the best development estimate template you've found? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've been putting a fair number of estimates together lately and I'd like to see if I can get a more thorough and - to be honest - better presented estimate document.
Do you have a template that you use regularly that's available online or is there particular content or presentation that you believe is important to include?
Never mind. I've gone and written my own. Hopefully I'll get feedback on how it might best be improved.
Excel Software Estimate Template

Corner Stitching Datastructure, Any Open Source Implementations? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I recall learning about the corner-stitched data structure a number of years ago and have been fascinated with it ever since. It originated with a paper by Ousterhout.
I've searched and not been able to find a free/open implementations. I'd prefer a C++ implementation, but at this point would accept any pointers people might have.
Note: a corner-stitched data structure is a way to store 2 dimensional, rectangluar data, explicitly maintaining the whitespace between inserted elements. This is as opposed to a quad-tree which just stores the inserted data elements. There are many trade-offs, I'm mostly interested in an implementation - but would also accept alternatives that have similar properties.
Ousterhout's own software package Magic implements corner stitching. The C source code is available BSD-licensed at http://opencircuitdesign.com/magic.