Tag: Javascript
-
Write function overloads using JSDoc and TypeScript
Posted on November 1, 2021, Level beginner Resource Length medium
I like TypeScript, but I prefer the JSDoc syntax for writing it. That should be obvious if you've read any of my JavaScript articles, especially Get Started With TypeScript the Easy Way. By Austin Gil.
Tags javascript app-development web-development nodejs
-
Simplify state machines and statecharts with JavaScript
Posted on October 30, 2021, Level beginner Resource Length medium
Let's look at managing application state from a different perspective. If you're a frontend developer or a backend developer, you probably deal with state management daily. XState is a JavaScript/TypeScript implementation of the finite state machine and statecharts that will make your life easier. By Michal Sevcik @nearform.
Tags javascript frontend app-development web-development react
-
Build and secure FastAPI server with Auth0
Posted on October 26, 2021, Level intermediate Resource Length medium
Learn the basics of FastAPI, how to quickly set up a server and secure endpoints with Auth0. By Mark Halpin.
Tags apis app-development infosec javascript python
-
Hosting SQLite databases on Github Pages
Posted on October 25, 2021, Level beginner Resource Length medium
I was writing a tiny website to display statistics of how much sponsored content a Youtube creator has over time when I noticed that I often write a small tool as a website that queries some data from a database and then displays it in a graph, a table, or similar. But if you want to use a database, you either need to write a backend (which you then need to host and maintain forever) or download the whole dataset into the browser (which is not so great when the dataset is more than 10MB). By phiresky's blog.
Tags database app-development mysql javascript
-
How to cancel an HTTP request in Node.js
Posted on October 21, 2021, Level intermediate Resource Length medium
If you're making an HTTP request in Node.js there's a good chance you'll want to cancel it if it takes too long to receive a response. Or perhaps you have a slightly more complex situation where you're making multiple requests in parallel, and if one request fails you want to cancel all of them. By Simon Plenderleith.
Tags devops nodejs javascript web-development open-source app-development
-
How containment in React can improve your code
Posted on September 27, 2021, Level intermediate Resource Length medium
Component composition is undoubtedly where React shines. Being able to freely compose larger views from smaller, flexible building blocks is great. But you have to be careful because it's easy to get it wrong (or at least suboptimal). By Tomasz Gil.
Tags react javascript web-development app-development
-
JSON Schema bundling finally formalised
Posted on September 14, 2021, Level intermediate Resource Length medium
OpenAPI has long since put the spotlight on JSON Schema, and the release of OpenAPI 3.1 has huge implications for the future of both projects. Truly exciting! By Ben Hutton & Mike Ralphson.
Tags json nodejs javascript app-development web-development
-
How to write NPM package without publishing to Git/NPM
Posted on September 13, 2021, Level intermediate Resource Length short
Want to write an npm package without publishing to npm or git? And be able to use it in a project? Well, keep reading! By Tomas Nilsson.
Tags nodejs javascript app-development web-development
-
Refactoring JavaScript — 5 Common problems to look out for and how to fix them
Posted on August 20, 2021, Level intermediate Resource Length long
Refactoring is like the NeverEnding Story: you might think you're done, but as long as the plot (the project) is ongoing, there is always room for more changes. By Fernando Doglio.
Tags code-refactoring app-development learning javascript
-
Integrating Firebase with React Native
Posted on August 6, 2021, Level intermediate Resource Length medium
Firebase is a Backend as a Service (BaaS) that provides an advantage to mobile developers who use React Native for developing mobile applications. As a React Native developer, by using Firebase you can start building an MVP (minimum viable product), keeping the costs low and prototyping the application pretty fast. By Aman Mittal.
Tags app-development nosql react javascript frontend
-
Testing implementation details
Posted on August 5, 2021, Level intermediate Resource Length medium
Testing implementation details is a recipe for disaster. Why is that? And what does it even mean? By Kent C. Dodds.
Tags react javascript tdd app-development web-development
-
Safari isn't protecting the web, it's killing it
Posted on July 30, 2021, Level beginner Resource Length long
I have seen some interesting rebuttals, most commonly: Safari is actually protecting the web, by resisting adding unnecessary and experimental features that create security/privacy/bloat problems. That is worth further discussion, because it's widespread, and wrong. By Tim Perry.
Tags browsers cloud javascript infosec