DEV Community

Discussion on: Should you pick C# over JS? Maybe.

Collapse
 
denvercoder profile image
Tim Myers

With JavaScript you can use the fetch api but it sucks and almost no one does so you ‘npm install’ axios and then add an import statement. JavaScript doesn’t have good date time handling so you ‘npm install’ date-fns.

Would you like to see how many import statements I have on my current JavaScript project?

Thread Thread
 
denvercoder profile image
Tim Myers

There are several files with 30+ imports but the average is about 12 per file.

Now with Blazor all of your front-end usings can be put into one file and you can maintain them there.