In "Webpack debugging" I walk through some tips and tricks to figure out common performance problems in Webpack. You can find subscriber questions here: github.com/fCh...
Hey man, thanks for the nice informational video. Can you tell me what the best way is to keep models in sync between clients and APIs in different languages? Let's say between a .NET Web API and a JS frontend.
Hi Jaimin! The way I do it is to declare a frontend model that validates the incoming data at runtime, I have a few videos on the way I do it but that is in essence the idea. Simply wrap the response from any ajax call in to a model that extracts the expected values and logs out an error if the value isn't there or if it is the wrong type. It works very well when you want to keep your models in sync as you will know as soon as the server model has changed in a way the frontend doesn't expect. Have a great day and thank you so much for watching!
Hey man, thanks for the nice informational video. Can you tell me what the best way is to keep models in sync between clients and APIs in different languages? Let's say between a .NET Web API and a JS frontend.
Hi Jaimin!
The way I do it is to declare a frontend model that validates the incoming data at runtime, I have a few videos on the way I do it but that is in essence the idea.
Simply wrap the response from any ajax call in to a model that extracts the expected values and logs out an error if the value isn't there or if it is the wrong type.
It works very well when you want to keep your models in sync as you will know as soon as the server model has changed in a way the frontend doesn't expect.
Have a great day and thank you so much for watching!
Ok, thanks. I look forward to the videos!
Thanks^^
12:38 I think you should `export *default* foo` there
thanks
No worries m8!
Have a great day and thank you so much for watching!