Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2221 days ago. link 1 point
While I prefer to just use fetch-api, for those that like the extras that axios gives, this module is roughly 1/5 the size impact on your bundle.
tracker1 2221 days ago. link 1 point
If you're starting with a green project, and you really want to use Angular and Material Design.  The default components[1][2] from the Angular project implement material design.  You should use them instead of the bootstrap + theme.  The bootstrap material theme is missing some interactive parts and isn't quite right for material.  Namely, the forms and buttons, however there are other bits are just off and not quite right.

If you have an existing project with bootstrap you are trying to update, then in makes more sense, and you may just be better off keeping your bootstrap based components, and updating the (s)css to use the material theme for bootstrap.  I would not recommend starting with Bootstrap with modern frameworks (or bulma and similar css based frameworks).

What I would suggest is starting with component libraries that are component-first with sane styling implementations within the library itself.  I find that material-ui[3] for React is the gold-standard when it comes to component libraries for modern development.

It's important to note that a given component library (such as material-ui) is not the same as Material Design[4] as a design concept.  The libraries implement the design pattern and some do so more closely than others.

1. https://github.com/angular/components
2. https://www.npmjs.com/package/@angular/material
3. https://material-ui.com/
4. https://material.io/design
tracker1 2223 days ago. link 1 point
I like it... wonder how well it works with plain JS... doesn't seem like ts should really be part of the naming.
tracker1 2223 days ago. link 1 point
I am curious where the phrase "OK Boomer." scores.
tracker1 2225 days ago. link 1 point
Sorry, didn't mean to downvote... This is actually pretty cool.  Though the data sources are really big.
tracker1 2225 days ago. link 1 point
Looking at the readme on the github site, and I find it really icky in usage tbh.  I'd rather use TypeScript, and the module patterns just feel weird vs. the direction everything else is going. It feels like an over-engineered framework from the late 00's.

I'm really not trying to be overly negative, it just feels like a step backwards...
tracker1 2225 days ago. link 1 point
Interesting to see a jQuery extension as UMD in npm.

That said, the demo doesn't appear to work.
tracker1 2226 days ago. link 1 point
JavaScript is a really hard first language to use... Dive Into Python[1] is considered one of the best getting started books on learning to program.  I know it's a completely different language, but it's considered a really good jumping in path.

For JS, Head First[2] is a decent getting started... it's not great for actually understanding JS though.  After those, I would probably read Eloquent JavaScript[3] and/or JavaScript: The Definitive Guide[4] (O'Reilly), aka "The Rhino Book".

You may want to start with #4 for at least a few chapters and see how you get through it, it may be enough on its' own.

Also, you might find the Kahn Academy courses on JS useful... I've heard good things on their Intro To JS[5], which seems to be centered on making a web page more interactive as a point of entry.

1. https://www.amazon.com/dp/1430224150 - Dive Into Python
2. https://www.amazon.com/dp/144934013X - Head First JavaScript
3. https://eloquentjavascript.net/
4a. https://www.amazon.com/dp/0596805527 - JavaScript: The Definitive Guide (O'Reilly) 6th edition
4b. https://www.amazon.com/dp/1491952024 - JavaScript: The Definitive Guide (O'Reilly) 7th edition pre-order
5. https://www.khanacademy.org/computing/computer-programming/programming
tracker1 2228 days ago. link 2 points
Replication is *NOT* a backup strategy...

Data corruption attacks will corrupt your replica nodes.

NOTE: If you're using a file system capable of stapshots, then you can use replication + snapshots for redundancy + scale, but you need to snapshot on more than just one node.
tracker1 2233 days ago. link 1 point
I really don't care for these types of articles, because they're usually written poorly and the questions themselves have many, many holes in them. I hit the filter, senior, practical..

First question uses stringify to compare two object... Unfortunately this does not work, because there is no guarantee of property order in serialization... Use json-stringify-safe[1]

#8 Does it make sense to add directive ‘use strict’ in modern scripts?  No... if you are writing ESM, it's not just that babel adds the "use strict" it's that strict is implied and Babel adds it for standards compatibility.  It's not needed, even if using modules directly in the browser.

#10 is really muddy and not better in terms of being well understood.

#13 is not something someone should be expected to know out of hand... beyond this, the trend is towards simpler wrappers such as parcel that handle a lot of this for you.

#15 incomplete, assumes lodash, may as well assume jquery if doing that.  Better to ask about how one would handle this, than specific examples. Should probably check against the src to see if it's already the appropriate image src.  the TODO comment has no functionality to enforce.

#18 setting the height doesn't change the exposed object's height (getter preffered).

That's as far as I'm going... 


1. https://www.npmjs.com/package/json-stringify-safe
[more]