Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2180 days ago. link 2 points
Would be better to use the DOM classList[1] API, which is already available on all major browsers for a couple generations now (limited support in IE).

I will say, if you're using React, this is a bit lighter than the classnames[2] module, which would be my own preference.  However, knowledge of Array methods (map, reduce, etc) can accomplish the same without an external dependency, or the runtime wrapping likely to happen.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Element/classList

[2] https://www.npmjs.com/package/classnames

Note: not the one who downvoted.
tracker1 2181 days ago. link 1 point
This is not the site for this content, it does not belong here.
tracker1 2183 days ago. link 1 point
Interesting read... really applicable to very large organizations that would want to distribute portions of visibility to different development organizations and teams.

For example, a large financial institution may want a consistent interface for header, footer and navigation, where each subsite will need to reuse/register their place in the larger application.

This is a very deep well in practice and there are infinite combinations and no perfect solution, only combinations of good enough in this space (imho).
tracker1 2183 days ago. link 1 point
Decent starting boilerplate for using docker compose for development.
tracker1 2183 days ago. link 1 point
This article is just wrong... it seems to be confusing `async function` and the `async` module in npm.  Do *NOT* follow this article's advice...

Should I just delete the link?
tracker1 2183 days ago. link 1 point
It does seem to come up for me.  Maybe a server caching hiccup.
tracker1 2183 days ago. link 1 point
Cool... though I'd probably prefer WireGuard if I'm rolling my own VPN setup at this point.
tracker1 2184 days ago. link 1 point
This is mostly about automated UI / Regression tests with selenium (and similar).
tracker1 2184 days ago. link 1 point
While JS is my favorite language... and it's more broadly available than pretty much anything else.  It's also probably the most widely used (by nature of web dev).  All of these things said, it's a poor language for a beginner to learn programming concepts with.

IMHO, if you are visually oriented and/or starting from a designer or front end perspective, JS might be the best choice to start with (this assumes you have some HTML and CSS knowledge to leverage).  If you are coming from ground zero and want to learn programming, Python is probably the best language to start with.

Python was created as a learning language and has expanded into many areas.  The learning content for Python is very broad without diving into hardware/cs concepts to get your feet wet.

I say this as someone that loves JS, and doesn't really know any significant Python at all.
[more]