Mapping StackOverflow into real-time assistance

Image for post
Image for post
Photo by FreePIk

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.

Assistant rule:

Result:

Image for post
Image for post

2. Constructor should not have code inside (most of the time)

There are several reasons why constructor should not contain code in Angular. You can read more about it in this article and this StackOverflow question with 1104 votes.

Assistant rule:

Result:

Image for post
Image for post

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’”

Assistant rule:

Result:

Image for post
Image for post

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:

Assistant rule:

Result:

Image for post
Image for post

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.

Conclusion

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:

Support Assistant on Patreon for 3$

Links

Check out my previous articles where I cover Assistant more

Install Assistant

Written by

Senior software development consultant. Programming for 20 years. TOP 2% of StackOverflow users. 2 million views on Quora. Currently Angular, TypeScript etc

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store