Lately i started to wonder how to gain information about common programming bugs to create new rules for Assistant. It striked me, actually I can use StackOverflow. So I choose TypeScript (and Angular) as a starting point to find out, if it is possible to map StackOverflow as a problem base and provide real-time coding assistance with Visual Studio Code Assistant. Below you will see 5 most popular problems with Angular that Assistant can provide real-time while-coding solution to:
1. Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
1414 votes on StackOverflow. If you want to bind to ngModel you will receive an error: “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’”. It does not say what is the solution. With Assistant it becomes clear.
"message": "Make sure to add FormsModule to imports inside app.module.ts"
2. Constructor should not have code inside (most of the time)
"message": "Constructor should not contain code (without v. good reason)"
3. Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
When using formGroup a lots of folks out there (833 votes on StackOverflow) seem to not know how to make it work. They get error: “Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’”
"message": "Make sure to add ReactiveFormsModule to imports inside app.module.ts"
4. No provider for HttpClient
376 people upvoted a question about an error stating there is no provider for HttpClient. It is easy one. But we can make it clearer with Assistant:
"message": "Make sure to add HttpClientModule to app.module.ts imports"
5. Can’t bind to ‘formGroup’ since it isn’t a known property of ‘input’
Similar problem like in the point 3. It was upvoted by 369 users. This is already covered by a rule mentioned in the point 3.
As you can see it is possible to map StackOverflow knowledge to real-time coding assistance. Since Visual Studio Code Assistant is language and framework agnostic, it is plausible that the same approach can be used to map knowledge about problems of other languages and frameworks into a real-time assistance.
It opens the door to vastly improve programming performance, and lower learning curve for all software developers around the world. If we think about hundreds of thousands of programmers, and minutes, or hours spend on solve common problems, if Assistant would be used wordwide we talk about maybe, millions of dollars of savings on coding time, and bug fixing. More hair on programmer heads!
Currently the extension is used by 92 programmers world-wide. 21% more in one week!
Join Assistant supporters!
You can support Assistant development. All you need to do is to go to Patreon and choose your plan. Writing rules and development takes time. Every support we can get is very helpful:
Check out my previous articles where I cover Assistant more