JavaScript Daily
11.6K subscribers
34 photos
2 videos
270 links
Daily JavaScript / JS community news, links and events.

"First, software ate the world, the web ate software, and JavaScript ate the web."

'JavaScript' is a trademark of Oracle Corporation in the US. We are not endorsed by or affiliated with Oracle.
Download Telegram
Let’s Build a Custom Vue.js Router

Plenty of tutorials exist that do a great job in explaining how Vue’s official routing library, vue-router, can be integrated into an existing Vue application.

But, simple applications often don’t need a fully fledged routing library like vue-router. In this article, we'll build a simple custom client-side router with Vue. By doing so, we’ll gather an understanding of what needs to be handled to construct client-side routing as well as where potential shortcomings can exist.


“Let’s Build a Custom Vue.js Router” by @djirdehh
https://hackernoon.com/lets-build-a-custom-vue-js-router-7de634be87c4
What Are DocTypes and Why Do They Matter to You?

The unfortunately reality, though, is that there are still crummy web pages on the web from the 90s, and these crummy pages were designed to run properly only on the crummy web browsers of their day. To maintain backward compatibility for these pages, browsers essentially started including at least two rendering engines – the old "quirky" engine for rendering ancient pages that don’t adhere to standards, and the new standards-compliant engine for rendering newer pages that do adhere to standards and want to take advantage of new functionality.

So, how do browsers decide which rendering engine to use? You guessed it – the DocType.

http://www.dwuser.com/news/2012/01/what-are-doctypes-and-why-do-they-matter-to-you/
One big 2018 goal for the Rust community is to become a web language. By targeting WebAssembly, Rust can run on the web just like JavaScript. But what does this mean? Does it mean that Rust is trying to replace JavaScript?

The answer to that question is no. We don’t expect Rust WebAssembly apps to be written completely in Rust. In fact, we expect the bulk of application code will still be JS, even in most Rust WebAssembly applications.

This is because JS is a good choice for most things. It’s quick and easy to get up and running with JavaScript. On top of that, there’s a vibrant ecosystem full of JavaScript developers who have created incredibly innovative approaches to different problems on the web.

https://hacks.mozilla.org/2018/03/making-webassembly-better-for-rust-for-all-languages/
Explore the JavaScript Crypto Libraries

WebCryptoAPI
Stanford Javascript Crypto Library
cryptojs
FoxyCrypt
PolyCrypt
Cifre
jscrypto
pidCrypt
OpenPGP.js
js-nacl
and much more

https://gist.github.com/jo/8619441
👍1
https://eloquentjavascript.net/

This is a book about JavaScript, programming.
Written by Marijn Haverbeke.

Licensed under a Creative Commons attribution-noncommercial license.
⁨L20n⁩ by Mozilla
A developer-friendly JS framework that places language in the localizer's hands.

* It's a new localization framework for the Web, allows localizers to put small bits of logic into localization resources to codify the grammar of the language.

* It removes the need for developers to thoroughly understand the specifics of a natural language and provides an opportunity for localizers to create better translations.

http://l20n.org/

Follow @javascriptdaily for frequent updates about JavaScript updates, news and event alerts.
Harvard has released a introductory playlist for #JavaScript to consume at your own pace. Happy JS Learning.

https://youtu.be/K1EeEps-zXc

Follow @javascriptdaily for frequent updates about JavaScript updates, news and event alerts.
Introducing Lodash:
Lodash makes JavaScript easier by taking the hassle out of working with arrays,
numbers, objects, strings, etc. Lodash’s modular methods are great for:

- Iterating arrays, objects, & strings
- Manipulating & testing values
- Creating composite functions

Find more info here
https://lodash.com/

Learn and Explore Lodash
https://lodash.com/docs

The Functional Programming Guide
https://github.com/lodash/lodash/wiki/FP-Guide

https://github.com/lodash/lodash
" You Don't Know JS " is an exploration of the mysterious, confusing, complex, and controversial parts of JavaScript.

If you write JavaScript for your primary job, odds are, you're pretty good at it. But honestly, how well do you really know the language? Most of us spend years writing JS and never really going beyond a surface understanding. And then we blame our WTF moments on "the bad parts".


Know More:
https://www.kickstarter.com/projects/getify/you-dont-know-js-book-series


Get the Digital Copies here:
https://github.com/getify/You-Dont-Know-JS
clipboard.js
A modern approach to copy text to clipboard

Copying text to the clipboard shouldn't be hard. It shouldn't require dozens of steps to configure or hundreds of KBs to load. But most of all, it shouldn't depend on Flash or any bloated framework.

That's why clipboard.js exists.

Explore more:
https://clipboardjs.com/

Get it here:
https://github.com/zenorocha/clipboard.js