|
|
|
|
|
by larve
1080 days ago
|
|
For legacy code: - generate comments (hit or miss, but at least it can rewrite my random notes into consistent notes)
- generate type annotations
- refactor "broadly" (say, "rename all variables to match the following style" or "turn this class into a dataclass like XXX" or "transform the SQL queries into builder queries using XYZ"). Often requires some manual work but it gets a lot of tedious stuff out of the way
- reverse-engineer clean API specs by just pasting in recorded HTTP logs
- clean up logs into proper enums by generating the regexps
- write CLI tools to probe the system (say, CLI tool to exercise the APIs mentioned above)
- generate synthetic test data
- transform HTML garbage into using a modern component system / react
- transform legacy react/js into consistent redux actions
- generate SQL queries at the speed of mouth
I could go on forever... |
|
Can you go on more about this, please? This sounds, frankly, heavenly, but the second sentence gives me pause. I guess it's not necessarily a question of how reliably it can "broadly" refactor but rather how broadly "broadly" is meant to be taken...
>- generate SQL queries at the speed of mouth
...and this? I'm not really a database guy, but I do keep hearing from them about how (eg, a database guy's) stateful knowledge of a database can result much, much more efficient queries than eg a sales guy with a query builder. Are the robut's queries more like the former or the latter?