Node.js Fundamentals: Web Server Without Dependencies
blog.bloomca.me
Node.js Fundamentals: Web Server Without Dependencies
1–10 of 44 posts
Re: Node.js Fundamentals: Web Server Without Dependencies
#2But can it left pad a string?
Re: Node.js Fundamentals: Web Server Without Dependencies
#3But can it left pad a string?
JavaScript has come a long way in recent years, but the lack of a comprehensive standard library is still absolutely mind boggling.
Re: Node.js Fundamentals: Web Server Without Dependencies
#4But can it left pad a string?
Yes, it is called `padStart`: https://devdocs.io/javascript/global_objects/string/padstart
Re: Node.js Fundamentals: Web Server Without Dependencies
#5But can it left pad a string?
Please don't do this here.
Re: Node.js Fundamentals: Web Server Without Dependencies
#6But can it left pad a string?
[deleted]
Re: Node.js Fundamentals: Web Server Without Dependencies
#7Re: Node.js Fundamentals: Web Server Without Dependencies
#8Re: Node.js Fundamentals: Web Server Without Dependencies
#9Earlier quoted context omitted.
JavaScript has come a long way in recent years, but the lack of a comprehensive standard library is still absolutely mind boggling.
This is really pretty sad. A standard library is paramount to a stable and easy to develop ecosystem.
It may be, but this is a weird thread to bring that up since Javascript has padStart, and TFA is about building a web server with only the standard library.
Re: Node.js Fundamentals: Web Server Without Dependencies
#10But can it left pad a string?
JavaScript has come a long way in recent years, but the lack of a comprehensive standard library is still absolutely mind boggling.
JavaScript's standard library has a fair amount.
Not Python levels of completeness, but near Java levels.
The parent's example is String.prototype.padStart() [1]
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...