Thursday, January 4, 2024
JS feature roundup, the growth mindset, and autosave woes | Coding quiz | | | Promoted Surfshark: Get robust antivirus protection with Surfshark One. Scan files while downloading, enjoy webcam protection, and shield against new viruses. Save 73% off now. | Featured content | | | There were all about writing shorter, safer, and more expressive code.
1.Private methods and fieldsWith ES2022, we can now add private fields and members to a class, by prefixing it with a hashtag (#). Trying to access them from outside the class will cause an error: | | 2.Promise.any()If you know Promise.all(), then you can easily guess what this does: wait for one Promise to resolve and return the result. | | | | | What if we see coding as a delicate act of nurturing, a digital development brought about by our creativity and the intricate logical reasoning of our minds? | With every single line of code added, deleted, and refactored, the software grows into greatness. With every additional library, package, and API fastened into place, low-level combines into high-level; the big picture unfolds; a fully formed digital creation emerges. | | | | 1.I actually don't have unlimited CPU and RAMYou can't dare call VS Code a "text editor" in 2023; The bloat is real.
Thanks to Electron, we now live in an era where a near-empty app boasts installation sizes of almost 100MB and proudly gobbles as much as 500MB of RAM.
What do you think will happen when a build watcher like Create React App is also running? Or a massive memory hog like the Android emulator, constantly reloading on every autosave? | | | On Twitter | | | | | | | |
|
|
|
| |
0 Komentar untuk "👑Top 10 new JavaScript features (2021 to 2023)"