Xah Web Dev Blog 2019-09
dot product of n vectors of any dimension
const vecDot = (( ... vectors) => vectors . reduce ((v1, v2) => v1. map ((x,i) => x * v2[i])) . reduce ( (a,b) => (a+b)) );
Xah Talk Show
Xah Talk Show
The Garbage Webpack Wants You to Do
the garbage webpack wants you to do. basically, they are normalizing hack. creating hack solution to solve problem. like unix did to industry.
i think webpack basic features a great, e.g. bundling, removing unused code, minimize js, etc.
they try to make the dependency clear. but the way they did is a hack job, seems they are popularizing the practice by the tool.
that's how programing industry becomes garbage.
following webpack official tutorial, 7 lines of code (213 bytes) becomes 134 lines 565k. jesus.
imgur reactjs bloat
this is supposed to be the latest and greatest, better than angular react vue https://svelte.dev
npm choke on node version
apparently, in some dinosaur age, npm decided to sit on /usr/local/lib/node_modules , and that became a relic. by the way the whole /usr/local/ is the relic inherited from your love of the unix philosophy. few milen gen understand it today.
my unix skillz of 1999 comes back to life. had to do surgery to get npm upgraded on MacOS. #nodejs the pesky error “npm WARN npm npm does not support Node.js v11.14.0”
The Story of XML
The rise and fall of XML. Be conservative in what you send; be liberal in what you accept. 2019-10-01
Load Order (major update)