Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2119 days ago. link 1 point
Spent a few hours with the github api on Saturday evening setting up a nightly build/release on a project, was kind of interesting.
tracker1 2119 days ago. link 1 point
When creating a site with ads, wrap your placeholder with an "ad" class, and define the demensions.  Also, make sure that it renders well with `.ad { display:none !important;}` set so that you work well with ad blockers.

When working on injecting ads/content, don't use heavy frameworks like jquery, stick to micro frameworks or preferably hand-craft what you need and use rollup to build/bundle.  http://microjs.com/ is your friend on this one.  If you can come in under 5kb for js+gz, that's your best bet here.
tracker1 2124 days ago. link 1 point
AFAIK optional chaining and the nullish coalescing operator are not in any browser or in Node 12. I'm am using a babel transform for it in my web projects. Also, I believe TypeScript has added support, so you get it there.
tracker1 2124 days ago. link 1 point
Nice little library... probably a great option for adding dynamic elements to server-rendered content, where you might otherwise reach for jQuery (or Knockout).
tracker1 2124 days ago. link 1 point
React is a View engine.  Redux is a state management module.
tracker1 2125 days ago. link 1 point
Didn't dig into it, the project is missing a license file, and doesn't seem to have much documentation either.  Readme file is overly sparse.
tracker1 2129 days ago. link 1 point
Just a minor note... You probably want to stick to the most recent 100 entries by last modified date and let any search engine navigate/remember the rest.  Inflating the sitemap too big can work against you.
tracker1 2129 days ago. link 1 point
One thing to mention... If you're using AWS Lambda in particular, just use the largest option, you'll usually save enough time to overcome the extra cost as you get more compute with the added memory.  Also, if your job *might* take more than 3 minutes, then Lambda is a risk as iirc there's a 5 minute max.
tracker1 2129 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.
[more]