Sometimes in order to make our application more responsive and fast, we use client JS.
Are there any best practices of effective porting C# code to JS?
Things that come to my mind are:
- parameterizing scripts
- generating scripts
- dynamic or static script linking
- usual workarounds for typical cases as validation.
- synchronizing modifications,
- criteria when to double logic, when to have only client or only server way.
Thanks in advance. UPD. I asked not about tools mostly - but about patterns. I'm ready to write bit by bit, but with concern to general rules if such exist.