JavaScript Icon

JavaScript

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

Prisma Icon www.prisma.io

Prisma raises $4.5M to build the GraphQL data layer for all databases

Big news from our friends at Graphcool, now Prisma. Today, we have some very exciting news to share: We've raised a $4.5 million seed round led by Kleiner Perkins and are rebranding to Prisma (from Graphcool). In this post we'd like to share our thoughts on Prisma today and our plans for the future. If you haven't yet, check out The Changelog #297: Prisma and the GraphQL data layer.

read more...

Anil Dash Medium

What if JavaScript wins?

Very insightful post from Anil Dash about the impact of network effects on JavaScript and coding culture. Anil writes on his Medium: What this suggests is that JavaScript may be reaching escape velocity as a network, and as an ecosystem of related technologies. To be clear, there’s no winner-takes-all here — domain-specific languages will always have their uniquely valuable areas of focus. But for general-purpose coding? Everything from spreadsheet macros to Internet of Things hardware seems to default to having JavaScript be one of the primary ways to make things programmable.

read more...

Matías Olivera warrior.js.org

WarriorJS – an exciting game of programming and Artificial Intelligence

A JavaScript game you play from the terminal: In WarriorJS, you wear the skin of a warrior climbing a tall tower to reach The JavaScript Sword at the top level. Legend has it that the sword bearer becomes enlightened in the JavaScript language, but be warned: the journey will not be easy. On each floor, you need to write JavaScript to instruct the warrior to battle enemies, rescue captives, and reach the stairs alive... Whether are new to programming or a JS guru, WarriorJS will put your skills to the test. Will you dare? Check out the gameplay docs to get a feel for things. This could be a lot of fun!

read more...

Steven Loria github.com

Making the Node.js REPL more productive

Project-specific REPLs for Node.js I'm a bit surprised this functionality isn't in the box, nonetheless: local-repl saves you from typing out imports every time you open a new Node.js REPL. You specify the modules and objects that you want to automatically import in either package.json or .replrc.js. It also lets you use await in the REPL without wrapping your code in async functions. That sounds quite nice.

read more...

Flavio Copes flaviocopes.com

A guide to JavaScript regular expressions

Flavio Copes: Learn everything about JavaScript Regular Expressions with this brief guide that summarizes the most important concepts and shows them off with examples. Regular expressions can be a developer's best friend or worst nightmare, depending on how well you can wield them. I've been using them (with varying degrees of success) since the early aughts, yet I still learn something new every time I read a tutorial like Flavio's.

read more...

JavaScript Icon github.com

A new date library with a "largely Moment.js-compatible API"

Why use Day.js? 🕒 Familiar Moment.js API & patterns 💪 Immutable 🔥 Chainable 📦 2kb mini library 👫 All browsers support It's worth noting that the author doesn't claim 100% API compatibility with Moment.js, but they say it's close enough that "If you use Moment.js, you already know how to use Day.js." If your app targets modern browsers and is currently packing Moment.js' 16.4kb in its JS bundle, maybe you can get by with Day.js' 2kb instead...

read more...

Paul Kinlan paul.kinlan.me

Use `onappinstalled` to know when your PWA gets installed

Paul Kinlan, developer advocate for Chrome and the open web at Google writes: Chrome implemented window.onappinstalled event. It's triggered when a user installs a progressive web app via the Add to Homescreen API or now more importantly via the manual method of Add to Homescreen. This is a very useful addition because it allows you to see engagement on the prompt vs people who use the system banners or menu buttons to install a progressive web app. Now you can track your PWA's install engagement based on the method of install — via the prompt or manually via a custom prompt. Read the docs for more details. Also, make sure you subscribe to JS Party to hear discussions about PWAs and the web platform.

read more...

Ashley Willams Mozilla

Hello wasm-pack!

wasm-pack is a tool for assembling and packaging Rust crates that target WebAssembly. These packages can be published to the npm Registry and used alongside other packages. This means you can use them side-by-side with JS and other packages, and in many kind of applications, be it a Node.js server side app, a client-side application bundled by Webpack, or any other sort of application that uses npm dependencies. We're recording a show with Lin Clark today and will definitely ask her all about the progress Mozilla folks have been making on merging the JavaScript and Rust worlds via WebAssembly. Exciting times!

read more...

Martijn Versluis martijnversluis.github.io

🎼 ChordFiddle – your online playground for ChordPro chord sheets

Like JSFiddle, but for ChordPro chord sheets. I'm no musician, so I'm not embarrassed to say I had to google to learn ChordPro is an ASCII text file format for transcribing songs with chords and lyrics. ChordFiddle is loaded with features and has more coming on the project board. Look under the hood and you'll find two more open source libs: ChordSheetJS and ChordJS.

read more...

Jon Stødle blog.jonstodle.com

PWAs are going to eat the (app) world

Yesterday's bearish link about PWAs caused a bit of a stir in our community Slack. Here comes the bull: PWAs are going to be versatile enough and robust enough that they're going to supplant some of the native apps you might have on your phone (or computer) today. I appreciate the caution on display by use of the word "some". Jon may be bullish, but he's not a zealot! Why does he think PWAs will finally get over the hurdle? One acronym: WASM With the ease of install of PWAs and high performance of WASM, I think we're also going to see some Electron apps moving to be PWAs. Great article. Definitely click through and read the whole thing. 💯

read more...

JavaScript Icon debuggerdotbreak.judahgabriel.com

I built a PWA and published it in three app stores. Here’s what i learned...

Judah Gabriel starts this post off with the question "Why even put your app in the app stores? Just live on the opened web!” — and I don't fully disagree, until you think about where your users will come from. The answer, in a nutshell, is because that’s where the users are. We’ve trained a generation of users to find apps in proprietary app stores, not on the free and open web. There are many more lessons learned about the process — from creation to submission — but here's the tldr... Turning a web app into a Progressive Web App (PWA) and submitting it to 3 app stores requires about a month of work, a few hundred dollars, and lots of red tape. (We're planning a deep-dive on PWAs for an upcoming episode of JS Party. Subscribe to be notified.)

read more...

Evan You vuepress.vuejs.org

VuePress – a Vue-powered static site generator

Here's a shiny new new project from Vue's creator. There are plenty of static site generators in the wild, but most of them are created with blogging or generic content in mind. VuePress has a specific angle: VuePress is composed of two parts: a minimalistic static site generator with a Vue-powered theming system, and a default theme optimized for writing technical documentation. It was created to support the documentation needs of Vue’s own sub projects. The default theme looks great (no surprise there) and the supporting documentation/story telling around VuePress is quite impressive as well. But perhaps you're wondering, "Why not $X?", where $X is a similar alternative. Here's why.

read more...

Henry Zhu DEV

I wasn't ready to become the maintainer of Babel

I wasn't ready to become the maintainer of Babel. After all, I had never published my own npm package or explored much of the codebase. But slowly (sometimes really slowly) I got used to it. I recall Kent C. Dodds saying that if you want to be a maintainer, just act like and do the things a maintainers does. Sounds easy enough 🤣. I particularly enjoyed the linked post on imposter syndrome from Rachel Smith.

read more...

Jeremy Keith A List Apart

Going offline

Jeremy Keith in an excerpt from his new book Going Offline on A List Apart: The internet is a network of networks, all of them agreeing to use the same protocols to shuttle packets of data around. Those packets are transmitted down fiber-optic cables across the ocean floor, bounced around with Wi-Fi or radio signals, or beamed from satellites in freakin’ space. As long as these networks are working, the web is working. But sometimes networks go bad… When the network fails, the web fails. That’s just the way it is, and there’s nothing we can do about it. Until now. I'm really excited to see Jeremy Keith write a whole book on service workers. I've dabbled a bit here and there, but now that support for them continues to grow, I'm excited to dive in.

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