4 ms·
You must be a native programmer. I have found that collegues using managed languages are much less conservative compared to collegues who program using native l
by sebazzz 9y ago
You must be a native programmer. I have found that collegues using managed languages are much less conservative compared to collegues who program using native languages (primarily C/C++).
- mcepl 9y agoOr she is a programmer working with a sensible programming language with sensible standard library (e.g., Python). I would really like to like NodeJS, JavaScript is not that bad language in itself, but missing standard library is a problem for me.
- mort96 9y agoNode has a pretty big standard library really (in fact that's all node.js is; a module system and a ton of modules built on top of a JS engine). What do you find is missing compared to Python's standard library?
- bausshf 9y agohttps://xkcd.com/353/ https://xkcd.com/353/
- mort96 9y agoI'm pretty sure that's talking about all the third-party libraries which exist for Python; that this "antigravity" library is available for Python, not a part of its standard library. (I might be wrong though, I'm not Randall Munroe)
- Doxin 9y agoThe fact that there was a need for the left-pad module is pretty telling on how comprehensive the stdlib in js is.
- Thiez 9y agoWhich programming language are you using that has left-pads functionality in the standard library?
- mort96 9y agoWell, python's strings have the ljust and rjust methods which left- and right-pad, and javascript has the padStart and padEnd methods (since ECMAScript 2017).
- scarface74 9y ago.Net https://msdn.microsoft.com/en-us/library/system.string.padleft(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/system.string.padle...
- mort96 9y agoI wasn't really interested in your opinion based on the lack of one 1-line utility function (and it is one line: `new Array(10 - str.length).fill("0").join("") + str`). I was interested in what significant functionality OP found lacking in node.js' standard library.
- greenhouse_gas 9y agoI think its about which languages have good dependency management. For example, Go, C and C++ have bad dependency management, so most programmers will try to stick to stdlib solutions, only moving to dependencies if copy-paste is an overkill (I wouldn't copy-paste sqlite wrappers, but I would copy-paste a left-pad like function). NPM and Rust (which isn't managed) has great dependency management, so they move things out of stdlib into packages. But, it backfired when no one is sure which packages are official, so Rust made a "nursery" of officially maintained out-of-stdlib standard functions.
- kazinator 9y agoDependency management isn't a concept in C++. C++ is an ISO standard language with numerous implementations; it's not a software package. A C++ compiler from Microchip for your PIC microcontroller has nothing to do with Microsoft Visual C++ has nothing to do with GNU C++ on your Linux box, etc.
- greenhouse_gas 9y agoECMAScript is also an (ECMA) standard language. Yet it has NPM.