JavaScript Icon

JavaScript

JavaScript is an object-oriented programming language used alongside HTML and CSS to give functionality to web pages.
529 Stories
All Topics

GraphQL github.com

A lightweight (and isomorphic) GraphQL client for JavaScript

GraphQL is based on a very simple HTTP transaction, which sends a request to an endpoint with query and variables. Many libraries require complex stacks to make that simple request. In any project you don't use React, Relay, you'll need a simpler client which manages your query and makes a simple request. Isomorphic, in case you were wondering, means it runs both on the client and the server.

read more...

Alex Buzin Hackernoon

Writing a JavaScript tweening engine with Between.js

Alex Buzin: A month ago I decided to try my skills in writing own tweening engine and here’s how I did it… Tweening, in case you're wondering, is the process of animating an object from one position to another. You specify the start/end positions (or images) and the tweening engine handles all of the inbetween states. This post by Alex is a great way to introduce yourself to the topic.

read more...

React djangostars.com

What and how to test with Jest and Enzyme

Testing React components may be challenging for beginners and experienced developers who have already worked with tests. It may be interesting to compare your own approaches with the ones we use in our project. In order to cover the codebase, you have to know which components must be tested and which code exactly in component should be covered.

read more...

Node.js medium.com

The Node.js Foundation and JS Foundation intend to push the merge button

Hot off the press: An intent to merge means that we the boards of both Foundations have agreed to public discussions related to a possible merger. We have not made any formal decisions at this point regarding a new or merged Foundation and its potential organizational structure, governance policies, technical framework or leadership. This will be formalized based on feedback from the Node.js and JavaScript communities. There will be a panel and Q&A at Node+JS Interactive next week and you know that the JS Party crew will be there with the full coverage. 💪

read more...

React reactjs.org

Create React App 2.0 is here

Here's a few things that are new, but "don’t feel pressured to upgrade anything." 🎉 More styling options: you can use Sass and CSS Modules out of the box. 🐠 We updated to Babel 7, including support for the React fragment syntax and many bugfixes. 📦 We updated to webpack 4, which automatically splits JS bundles more intelligently. 🃏 We updated to Jest 23, which includes an interactive mode for reviewing snapshots. ...plus 7 more updates...

read more...

Ives van Hoorne Hackernoon

CodeSandbox Containers is in beta

CodeSandbox Containers was just announced by Ives van Hoorne on Hacker Noon. Today we’re happy to announce CodeSandbox Containers. We execute your code on a server, which allows you to work on any JavaScript project that works locally. But you gotta use it so they can test things and get it right. We can only test CodeSandbox Containers fully when we have other people using it. ... Please don’t use it for any project with files you don’t want publicly exposed. There’s also the chance that the service might be down because of things that we haven’t foreseen yet, in which case you’ll see a nice warning message. We will dedicate the coming months to squash every bug we can find, when we think that CodeSandbox Containers is stable enough to remove the beta warning we will announce this.

read more...

sorrycc umijs.org

UmiJS – a pluggable, enterprise-level React app framework

Umi is based on routing, supports next.js-like conventional routing, and various advanced routing functions, such as routing-level on-demand loading. Then with a complete plugin system, covering every life cycle from source code to build product, umi is able to support various functional extensions and business needs, currently umi have almost 50+ plugins in both community and inside company.

read more...

Yarn github.com

Getting rid of node_modules

The Yarn team is brewing up a new way to resolve dependencies: this RFC a new alternative and entirely optional way to resolve dependencies installed on the disk, in order to solve issues caused by the incomplete knowledge Node has regarding the dependency tree. We also detail the actual implementation we went with, describing the rational behind the design choice we made. Pretty exciting if/when they pull it off. The wins: Installs ran using Plug'n'Play are up to 70% faster than regular ones (sample app) Starting from this PR, Yarn will now be on the path to make yarn install a no-op on CI Yarn will now be able to tell you precisely when you forgot to list packages in your dependencies Your applications will boot faster through a hybrid approach of static resolutions

read more...

JavaScript github.com

You probably don't need Moment.js

When you pull in a library dependency, it is rare that you need all of the functionality it offers. This isn't usually a problem for backends, because that code never leaves the server. However, In frontend-land your users pay the price for all that unused functionality every time they hit your website with a cold cache. Moment.js is an excellent date/time library. It is packed with functionality, and you probably don't need everything it has to offer. Instead, check out date-fns, which offers small, highly targeted functions you can probably get by with. There's even an ESLint plugin that will help you identify places in your codebase where you don't really need Moment.js!

read more...

Apoorv Saxena github.com

Asynchronously resolve subscribed decisions in a pub/sub architecture (pure JS)

AsyncResolver.js implements a PubSub architecture where subscribers of events are decision makers (return promise when they receive an event) and after publishing an event, publisher gets the decision of the subscribers. Supports both Node and browser. The README has more details on when this might be useful to you.

read more...

Henry Zhu babeljs.io

Babel 7 released

After almost 2 years, 4k commits, over 50 pre-releases, and a lot of help we are excited to announce the release of Babel 7. It's been almost 3 years since the release of Babel 6! There's a lot of moving parts so please bear with us in the first weeks of release. Babel's role in the JavaScript ecosystem... Babel is fundamental to JavaScript development today. There are currently over 1.3 million dependent repos on GitHub, 17 million downloads on npm per month, and hundreds of users including many major frameworks (React, Vue, Ember, Polymer), and companies (Facebook, Netflix, Airbnb). It has become such a foundation for JavaScript development that many people don't even know that it is being used. Even if you aren't using it yourself, it's highly likely your dependencies are using Babel.

read more...

Evan You Medium

Vue CLI 3.0 is here!

Good news — the next generation of Vue CLI, the standard build toolchain for Vue applications, is here. Evan You writes: Vue CLI 3 is a completely different beast from its previous version. The goal of the rewrite is two-fold: Reduce configuration fatigue of modern frontend tooling, especially when mixing multiple tools together; Incorporate best practices in the toolchain as much as possible so it becomes the default for any Vue app. This means that any Vue CLI 3 project comes with out-of-the-box support most of today's preferred ways to build and ship applications.

read more...

Apple github.com

How far can JavaScript take us?

Tanner Villarete asked himself, "How far can JavaScript take us?" Then answered: Turns out, pretty dang far. This web app was my attempt at mimicking Apple's iOS music app, and I think I've come pretty close! I have to admit, he did a pretty good job. The frontend is built on React and Redux. The backend? A Laravel-based API running on a Raspberry Pi! Here's the live demo, but be nice because Raspberry Pi.

read more...
0:00 / 0:00