|
|
|
|
|
by jordache
2233 days ago
|
|
> I imported a new logging mechanism and called a specific method from it in one of my class's methods. Repeat for four similar classes. How would an IDE know the local variable you've declared, that is a suitable match to the logging method's parameter? |
|
i.e. a modal asking:
"As done to MethodA, do to MethodB?" "As done to VariableNameA, do to VariableNameB?"
And the B values would just be dropdowns that would let you correct it. Idk.
I'm just imagining what you could do with some decent speech-to-text, NLP, and an engine that understands code conceptually on a basic level.
"Create a new enum on line 14 called SuchAndSuchCategories, with the values A, B, and C. Replace the string literal on line 27 with SuchAndSuchCategories.B."
"Move method A above method B."
"Add a new method to class X called doSomething() that accepts three parameters: a string called A, a generic called B, and a SomethingClass called C. Inside the method, start a for-loop...."
Like, idk. These aren't repeat-after-me tasks but they're complimentary to them. It would just be great to be able to just talk code into existence.