I wish there was some sort of "use strict-typed" or something that let you use in-browser interpreted typescript
Well, you could use jsDoc to hold your types instead of writing them in typescript. The typescript compiler can still check types in jsDoc comments but you do not need a build step and the javascript you ship to the browser would be the same you write in your editor.
Why Vanilla JavaScript
21–30 of 176 posts
Re: Why Vanilla JavaScript
#22Re: Why Vanilla JavaScript
#23I appreciate the sentiment, but can't agree fully. I used vanilla JS for many years before AngularJS even existed (and I also tried AngulasJS when it was the new thing). Vue is just a huge convenience over raw JavaScript for large, complex view. Sure, I don't get to do direct DOM manipulation, but when I write C code I also don't get to pick which variable goes in which CPU register. I accept giving up control that A…
Re: Why Vanilla JavaScript
#24It’s been a minute since someone ranted about frontend frameworks. Take a shot.
Re: Why Vanilla JavaScript
#25window.i = 0; // initialize all my for loops in one go!
Re: Why Vanilla JavaScript
#26Re: Why Vanilla JavaScript
#27It’s been a minute since someone ranted about frontend frameworks. Take a shot.
Re: Why Vanilla JavaScript
#28I appreciate the sentiment, but can't agree fully. I used vanilla JS for many years before AngularJS even existed (and I also tried AngulasJS when it was the new thing). Vue is just a huge convenience over raw JavaScript for large, complex view. Sure, I don't get to do direct DOM manipulation, but when I write C code I also don't get to pick which variable goes in which CPU register. I accept giving up control that A…
Re: Why Vanilla JavaScript
#29What’s the Idiomatic Vanilla JavaScript way to bind data and UI in a web browser?