|
|
|
|
|
by andr3w321
3139 days ago
|
|
What I'd really like is a smarter compiler. My normal dev process is 1. Write code 2. Run code 3. See error 4. Google error 5. Write code to fix error 6. Repeat I'd like a compiler that helps speed up steps 3-5. I know IDEs do some of this, but I'd like a compiler that automatically fixes errors instead of just telling me what went wrong. One that fixes parentheses that I left off or automatically fixes typos in variable names or function calls. One that knows to keep things DRY and creates a function for me when it sees the same similar code written twice. One that knows when I wrote an inefficient bubble sort and swaps it out with a faster sorting algorithm etc. One that can make my code run faster. I think this is a long way off, and I know it's really hard to write a program that writes code, but it's always seemed that programming simple things is way harder and takes longer than it should to me. |
|
> One that knows to keep things DRY and creates a function for me when it sees the same similar code written twice
This is potentially an interesting idea.
> One that knows when I wrote an inefficient bubble sort and swaps it out with a faster sorting algorithm etc.
This is also the sort of thing that optimises out your security-critical delay loop or memory wipe.