JavaScript Icon


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


Extract the structure of a Postgres database into JavaScript

When your database is the source of truth, it’s often useful to inspect that truth and reuse it elsewhere in your application. import pgStructure from "pg-structure"; async function demo() { const db = await pgStructure({ database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] }); const table = db.get("contact"); const columnNames = =>; const columnTypeName = table.columns.get("options"); const indexColumnNames = table.indexes.get("ix_mail").columns; const relatedTables = table.hasManyTables; }

read more

Manuel Vila

Do we really need a web API?

Most of the time, web APIs are not functional requirements. They don’t add any value to the product we are building. They are just a necessary evil so the frontend can communicate with the backend. But is that really the case? Wouldn’t it be possible to get rid of these web APIs? In response to this, Manuel built Liaison, which is still in alpha, but aims to seamlessly bridge the divide between frontend and backend without having to formalize an API between the two. From reading the post, it appears to be akin to our old friend, RPC. If you are interested enough to dive into the code, he’s put together a RealWorld example which holds up quite well to the competition on a lines-of-code-to-implement basis.

read more


The HTTP Archive's first annual *state of the web* report

Our mission is to combine the raw stats and trends of the HTTP Archive with the expertise of the web community. The Web Almanac is a comprehensive report on the state of the web, backed by real data and trusted web experts. It is comprised of 20 chapters spanning aspects of page content, user experience, publishing, and distribution. There’s so much to digest here. 85 contributors! Quite an achievement and one that I’m excited to dig in to.

read more

Liran Tal Snyk

JavaScript frameworks security report 2019

Liran Tal: In this report, we investigate the state of security for both the Angular and React ecosystems, looking at best practices, secure coding, and security vulnerabilities in React, Angular, and other frontend projects such as Bootstrap, Vue.js, and jQuery. Inside you will find the report in it’s digital format as a PDF to download and review offline.

read more

AI (Artificial Intelligence)

Meet the new AI that knows you better than you know yourself

Winner of Mozilla’s $50,000 award for art and advocacy exploring AI. Stealing Ur Feelings is an augmented reality experience that reveals how your favorite apps can use facial emotion recognition technology to make decisions about your life, promote inequalities, and even destabilize American democracy. Using the AI techniques described in corporate patents, Stealing Ur Feelings learns your deepest secrets just by analyzing your face. If you haven’t tried this yet, drop what you’re doing and give it a go. Top notch production.

read more

Yaser Adel Mehraban

A comprehensive intro to Vue.js

From Yaser Adel Mehraban on getting started with Vue.js. Vue.js is an approachable, versatile, performant, and progressive framework to build user interfaces with. This core library is focused on building the view layer only. It uses the goodies of Angular (such as template syntax) and React (such as Virtual DOM) and adds a few more enhancements on top. … Another bonus point of it is that migrating to it is really easy. You just need to add a script tag to your page and you’re good to go.

read more


Jsfuzz – a coverage-guided fuzzer for testing JavaScript/Node packages

Fuzzing for safe languages like nodejs is a powerful strategy for finding bugs like unhandled exceptions, logic bugs, security bugs that arise from both logic bugs and Denial-of-Service caused by hangs and excessive memory usage. As we recently learned on Go Time: pessimists write tests, fuzz functions, and sleep well at night. 💤

read more

freeCodeCamp Icon freeCodeCamp

So long Meetup, and thanks for all the pizza

Meetup hiked their prices in a way that shifts the burden off the organizers and on to the participants. They’ve received enough blow back from this change that it wouldn’t surprise me if they adjust (or revert) course, but it may be too late. The open source community is already on the move. This will be a self-hosted Docker image that you can one-click deploy to the cloud, then configure through an admin panel. No coding required. Quincy and the freeCodeCamp team don’t have much more than a README and a schema right now, but objects in motion tend to stay in motion. It’s a great time to jump in and contribute. ✊

read more

Philip Walton

Cascading cache invalidation

Turns out one of our asset caching best practices (content hashes in filenames + far-future expiry) has a serious flaws in it: In practice, changes to one of your source files almost always invalidates more than one of your output files—and this happens because you’ve added revision hashes to your filenames. Philip goes on to explain why this happens and then proposes 3 possible solutions. Good stuff 👌

read more

0:00 / 0:00