JavaScript Daily
12.1K 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
How To Build Vue Components Like A Pro

This blog portrays some of the best practices that you may want to keep in mind when building an advanced Vue App.

https://blog.bitsrc.io/how-to-build-vue-components-like-a-pro-fd89fd4d524d


Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
React is a library and Angular is a Framework.
There’s obviously a big difference between the two that most people overlooked.

When you’re using a Library, it’s just one part of your application. So obviously the learning curve is small as well, and you can blend in some other libraries you might wanna use. Framework, on the other hand is big. And you are to adhere with their standard way of doing things.

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.

https://hackernoon.com/why-im-switching-from-angular-to-react-and-redux-in-2018-cb48be00fda7
Vue JS over Angular and React

This blog attempts to shed light on why there is a growing belief among developers that Vue.js is set to become the top JavaScript library, leaving behind Angular and React.

> 1,531,217 NPM downloads
> 26,000 Github Stars
> 100,696,367 pageviews on
Vuejs.org page
> Vue.js version 2.0 launched in September 2016
> Vue.js was 3rd most starred project in 2016 on GitHub


Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.

http://www.evontech.com/what-we-are-saying/entry/why-developers-now-compare-vuejs-to-javascript-giants-angular-and-react.html
Mousetrap JS
Mousetrap is a simple library for handling keyboard shortcuts in Javascript. It is licensed under the Apache 2.0 license. It is around 2kb minified and gzipped and 4.5kb minified, has no external dependencies.

Why Mousetrap?
> There are no external dependencies, no framework is required.
> You are not limited to keydown events (You can specify keypress, keydown, or keyup or let Mousetrap choose for you).
> You can bind key events directly to special keys such as ? or * without having to specify shift+/ or shift+8 which are not consistent across all keyboards.
> It works with international keyboard layouts.
> You can bind Gmail like key sequences in addition to regular keys and key combinations.
> You can programatically trigger key events with the trigger() method.
> It works with the numeric keypad on your keyboard.
> The code is well documented/commented.

Follow the project in Github
https://github.com/ccampbell/mousetrap

Also for full documentation visit
https://craig.is/killing/mice


Join @javascriptdaily for more daily updates of JavaScript / JS community news, links and events.
Modern Web Development is changing ...
Source:
https://medium.freecodecamp.org/a-roadmap-to-becoming-a-we

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links & more.
JS Promises
While synchronous code is easier to follow and debug, async is generally better for performance and flexibility. Why "hold up the show" when you can trigger numerous requests at once and then handle them when each is ready? Promises are becoming a big part of the JavaScript world, with many new APIs being implemented with the promise philosophy. Let's take a look at promises, the API, how it's used!

Promises will only become more prevalent so it's important that all front-end developers get used to them. It's also worth noting that Node.js is another platform for Promises (obviously, as Promise is a core language feature).

https://davidwalsh.name/promises

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
JavaScript : Maybe it could be compared to English, it isn’t a perfect language, it has lots of broken parts, a load of dialects of which only a subset of the language could be considered "globally understood" and many many people don’t really use it all that well. The universal language should have been well thought out and far more rational and organised, but I don’t speak Esperanto, do you? We are not going to get rid of English.
- David Walsh


Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
👍1
CamanJS

CamanJS is (ca)nvas (man)ipulation in Javascript. It's a combination of a simple-to-use interface with advanced and efficient image/canvas editing techniques.

CamanJS is very easy to extend with new filters and plugins, and it comes with a wide array of image editing functionality, which continues to grow. It's completely library independent and works both in NodeJS and the browser.

CamanJS is written in Coffeescript as of version 3.0. It works both in-browser and in NodeJS.


Check out - https://github.com/meltingice/CamanJS

For more of CamanJS - http://camanjs.com/



Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
A-Frame is a web framework for building virtual reality (VR) experiences. Originally from Mozilla, A-Frame was developed to be an easy but powerful way to develop VR content. As an independent open source project, A-Frame has grown to be one of the largest and most welcoming VR communities.


A-Frame is based on top of HTML, making it simple to get started. But A-Frame is not just a 3D scene graph or a markup language; the core is a powerful entity-component framework that provides a declarative, extensible, and composable structure to three.js.


A-Frame supports most VR headsets such as Vive, Rift, Windows Mixed Reality, Daydream, GearVR, Cardboard, and can even be used for augmented reality. Although A-Frame supports the whole spectrum, A-Frame aims to define fully immersive interactive VR experiences that go beyond basic 360� content, making full use of positional tracking and controllers.

Check out :
https://github.com/aframevr/aframe/

More documentation here:
https://aframe.io/docs/0.8.0/introduction/

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
#FoodForThought

Food for Thought

Following is the code to alert max number in an array. Can you think of a way to get the result without using loops ? Explore it yourself...


var numbers = [4,76,455,56,90,22];
var max = 0;
for(i=0;i<numbers.length;i++){
if(numbers[i]>max){
max = numbers[i];
}
}
alert("Maximum Number : "+max);



Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
#Animation

Border Animation for Text Box by Azouaoui Mohamed

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.

https://twitter.com/CodePen/status/1010224420110176256
#Events: Month of WebXR

This is a four-week hands on workshop on

* Creating VR/AR applications using A-Frame and AR.js
* Creating 3D art using Blender and Krita

What do you need to bring :

* Make sure you are getting a *Laptop* (BYOD)
* A mouse with middle click scroll/button (necessary to do Blender)

Schedule :

The entire series will run in two parallel tracks of Art & Tech.

Art Track :

We use open source software Blender & Krita to learn about creating 3D art. At the end of the workshop you will have an understanding of what goes into creating 3D models for your applications.

Tech Track :

We use open source frameworks threejs, Aframe and Ar.js to learn about creating applications. Our goal is to make you confident enough to explore and create a web application using the 3D model you have created in the art track.


RSVP here in Meetup:

http://meetu.ps/e/Fwfsz/yTfmH/d

Also Register here :
https://docs.google.com/forms/d/e/1FAIpQLSdta-pGMbDVrZkcLRgxGryjrfLmZdKxD-P4-z1DyBbb6G9jUw/viewform
Source: https://medium.com/@js_tut/javascript-operator-precedence-and-associativity-table-71ee154079c

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
👍1
Did you know that JavaScript was created in 10 days?

In May 1995, Brendan Eich wrote the first version of JavaScript in 10 days while working at Netscape.

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
Pushbar.js

Pushbar.js is a tiny javascript plugin for creating sliding drawers in web apps

It is fully customizable and dependency free.You can use it as sidebar menus or option drawers.

Get it: https://github.com/oncebot/pushbar.js

Explore: https://oncebot.github.io/pushbar.js/



Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
Natural Language Processing with NoSQL and JavaScript

In this article we'll see how to apply sentiment analysis on film (movie) reviews. Sentiment analysis means, that, based on an unknown review, an algorithm can decide whether a newly added review is positive (i.e. the review liked the film) or negative (i.e. the reviewer did not like the film).


Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.


https://fullstack-developer.academy/natural-language-processing-with-nosql-and-javascript/
Make Your PWA Work Offline Part 1:—Static Files

Creating a basic SW file to store static resources in the browser cache is only the first step of adding offline support to your application. You can extend this solution by introducing new features or modifying existing ones. 

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.

https://www.monterail.com/blog/pwa-working-offline
Pug.js to make your life easier with HTML templates

Pug.js is a HTML templating engine, which means you can write much simpler Pug code, which Pug compiler will compile into HTML code, that browser can understand. But why not write HTML code in the first place?

Pug has powerful features like conditions, loops, includes, mixins using which we can render HTML code based on user input or reference data. Pug also support JavaScript natively, hence using JavaScript expressions, we can format HTML code.

An application of that would be Email Templates to send email customized to particular user.

https://itnext.io/pug-js-to-make-your-life-easier-with-html-templates-9c62273626e0

See more here:
https://pugjs.org/api/getting-started.html

Fork it from:
https://github.com/pugjs/pug

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
Creating a Markdown editor/previewer in Electron and Vue.js

To explore Electron, we will build a Markdown editor with live preview of generated HTML, using an HTML template of your choice. The UI will be built with a combination of Vue.js, Bulma/Buefy, and the ACE editor component.

Vue.js is a framework for implementing components that run in the web browser. Vue.js applications are built using these components and in theory one could build the UI entirely with Vue.js plus custom-developed CSS and JavaScript. But, again, there are several open source projects offering prebaked UI components with responsive web best practices built-in.

https://blog.sourcerer.io/creating-a-markdown-editor-previewer-in-electron-and-vue-js-32a084e7b8fe

Fork the code:
https://github.com/sourcerer-io/electron-vue-buefy-editor

Join @javascriptdaily for more updates of Daily JavaScript / JS community news, links and events.
👍1