3 ms·
Because it has terrific data notation, pleasant to use with Promises + async/await, has a ton of modern QoL improvements and slapping TS on top of it automagica
by wiseowise 2y ago
Because it has terrific data notation, pleasant to use with Promises + async/await, has a ton of modern QoL improvements and slapping TS on top of it automagically turns it into one of the most modern and advanced languages out there with adequate performance.
Add to that amazing tooling with hot reload (bye bye 2-5 minutes compile times), billions of investments from Big tech to make it better and faster, ability to reuse same code between mobile/backend/frontend, integration into browser and you’ll quickly find that JS literally has no rival.
- peutetre 2y agoExcept after billions of investments from Big Tech, existing JavaScript applications get double the performance by switching to WebAssembly: https://web.dev/case-studies/google-sheets-wasmgc https://web.dev/case-studies/google-sheets-wasmgc And with the advent of WebAssembly, any language integrates with the browser. So why am I using JavaScript again?
- wiseowise 2y agoOh God, narrow use case within Sheets that fits perfectly for WASM is only twice faster than JS, JS in shambles. Why won’t they rewrite everything in WASM? I’m not sure what you were aiming for here, but you only reinforced me that JS is amazing if rewriting calculation worker yields only 2x improvement. > So why am I using JavaScript again? Re-read my comment, it’s all there.
- peutetre 2y agoA spreadsheet is a narrow use case? Excel won't die: https://www.economist.com/business/2024/10/15/why-microsoft-excel-wont-die https://www.economist.com/business/2024/10/15/why-microsoft-... Try not to worry about it. Welcome your WebAssembly overlords and be happy.
- wiseowise 2y ago> A spreadsheet is a narrow use case? No, it’s not a narrow use case. I wake up my phone to spreadsheet calculation, I open HN - a little bit more spreadsheet, my kettle heats water via power of spreadsheet algorithm. Amazon purchase? Only via spreadsheets.