2 ms·
Yes but how sophisticated is the code analysis? I’m curious if there are tools that can do things like: - detect and replace first party algorithms with third p
by catlifeonmars 6y ago
Yes but how sophisticated is the code analysis? I’m curious if there are tools that can do things like:
- detect and replace first party algorithms with third party libraries. For example, recognizing a hand-rolled binary search implementation and swapping it out.
- recognize design patterns
- apply suggestions based on solid principles
- jolux 6y agoWell in C# the collections have efficient searching and sorting built in :) but as for whether they can recognize design patterns — VS and R# can definitely move members and symbols around fluidly within a class hierarchy.
- foepys 6y agoFor performance you subscribe on a specific syntax kind in the syntax tree (like if, condition, operator, variable definition, etc.), the compiler calls your analyzer, and then you get a context object where you get full access to the syntax tree. After that you are only limited by your imagination.
- jolux 6y agoI believe you can also filter by semantics as well.