Ask HN: Tools for programmatically improving a big legacy code base?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • pygccxml

    pygccxml is a specialized XML reader that reads the output from CastXML or GCCXML. It provides a simple framework to navigate C++ declarations, using Python classes.

  • Hello,

    I work on a 6500+ file, 1-2 million line, 30 year old code base in C++. There are many problems with it, and we've been gradually ratcheting up the use of tools to improve code quality (creating automated testing tools, pr validation pipelines, etc.; I recently went through our biggest projects and set them to level 3 treat warnings as errors; there were a lot).

    But I had a thought the other day to use Python to try to const everything that could be constified in our code base. The general idea was, write some code to const all basic types at declaration, then, again, using Python, try to incrementally build the project with MSVC/MSBuild, parsing the output, deconsting anything that was fails, and hopefully end up with relatively few hard to solve errors in this fashion.

    I imagine this is going to be bigger than I expect, and I already expect it to be a big job. But I've been reticent to use some of the parsing tools available (like [pygccxml][0]). I have some experience with structured text processing so I imagine this is actually doable.

    However, I figure there's _got_ to be something that already exists to do simple linting tasks like this. But my Google Fu fails me.

    Does anyone know of any tools for simple code improvements like const-ing everything const-able? Autoformatting tools don't make code changes as far as I know, and what I'm specifically looking for is a code-improving tool.

    If not, does anyone have any experience programmatically improving a code base, especially in C++? Any tips or suggestions?

    Thank you

    [0]: https://github.com/CastXML/pygccxml

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: SQLFrame – I ran PySpark without Spark on a SQL database

    2 projects | news.ycombinator.com | 20 May 2024
  • Cover Agent: open-source test generation (implements Meta's TestGen-LLM paper)

    1 project | news.ycombinator.com | 22 May 2024
  • 💸Ahorra en tus cuentas de AWS. usa 💥aws-nuke💥 para limpiar recursos.💸

    1 project | dev.to | 22 May 2024
  • WaveCoder

    1 project | news.ycombinator.com | 22 May 2024
  • Images That Sound

    1 project | news.ycombinator.com | 21 May 2024