promises-spec
q
promises-spec | q | |
---|---|---|
22 | 9 | |
1,831 | 14,957 | |
0.2% | - | |
0.0 | 0.0 | |
9 months ago | 6 months ago | |
JavaScript | ||
Creative Commons Zero v1.0 Universal | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
promises-spec
-
Implement Promises/A+ from scratch
Today, I tried implementing Promises/A+ from scratch to test my coding skill. In the process, I’ve crafted this guide to share my insights and experiences with those who share a similar interest. Without further ado, let’s dive in.
-
Using XPath in 2023
That made me chuckle.
For those not familiar with the promise design controversy:
http://brianmckenna.org/blog/category_theory_promisesaplus
https://github.com/promises-aplus/constructor-spec/issues/24
https://github.com/promises-aplus/promises-spec/issues/94
-
Why is JavaScript so hated?
If you really want to go down the rabbit hole on this one, start here
-
What the imperative shell of an Functional Core/Imperative Shell language looks like
Advantage 1, nesting, is the most important here, and it's often the most-overlooked advantage. Overlooking nesting is how Promises in Javascript got to be fundamentally broken.
-
[AskJS] Is JavaScript missing some built-in methods?
Have you read the infamous GitHub thread where people tried to fix this before it got finalized? It's quite a trip
-
This typo lasted several pomodoro sessions.
1.) JS implementation of Promise is not a monad. See this StackOverflow answer or this GitHub discussion for more details
-
How to implement Promise in a FAANG interview
In this article, we will go over how to implement a basic version of a promise during a FAANG interview. The standard for promise implementation is called A+, but it includes a huge amount of details, making it almost impossible to implement all of them during a one-hour coding interview. Therefore, we will focus on implementing a basic variation that should be enough to show the interviewer your solving skills.
- what object
-
Oopsy Poopsy ahahaha *sharts uncontrollably*
Hey, at least you weren't these guys: https://github.com/promises-aplus/promises-spec/issues/94
-
Haskell is the greatest programming language of all time ... the rational adult in a room full of children ... When I program in Haskell, I am in utopia. I am in a different world than 99.9% of what I see posted on Reddit.
Total carnage
q
-
How to make Ajax request through NodeJS to an endpoint
How can I achieve this in NodeJS. I wonder if Q Library can be utilized in this case
- WTF ¿Qué es una promesa en Javascript?
-
es6-cheatsheet
Prior to ES6, we used bluebird or Q. Now we have Promises natively:
-
One programming concept that took you a while to understand, and how it finally clicked for you
JavaScript Promises were a nightmare to wrap my head around. Not the fancy async/await syntax we have now, but the early stuff like kriskowal’s q. Wasn’t really until Promise was native did I fully understand it. Someone told me “the .then function only runs if you call resolve() in the previous block”. I think that’s what made it click.
-
How to specify resolution and rejection type of the promise in JSDoc?
I have some code that returns a promise object, e.g. using Q library for NodeJS.
-
Resolved Promises and Promise Fates
Before promises arrived natively in JS, there were(and still are) many separate independent promise implementations in the form of third-party libraries for example Q, RSVP, etc. Even jQuery has its own custom implementation that they call deferreds. The name and the implementation might differ from library to library but the intention is the same, making asynchronous code behave like synchronous code.
-
Introduction to Asynchronous JavaScript
Promises are a popular way of getting rid of callback hell. Originally it was a type of construct introduced by JavaScript libraries like Q and when.js, but these types of libraries became popular enough that promises are now provided natively in ECMAScript 6.
-
7 tips for a Node.js developer
Another great library is Q https://github.com/kriskowal/q. This library is exposes the concept of promises. A promise is basically an object that is returned from a method with the “promise” that it will eventually provide a return value. This ties is very neatly with the asynchronous nature of javascript and node.js.
-
How to Return multiple functions and values while working with REST APIs (Part 1)
q : This module is used for creating custom promises. Check it out here
What are some alternatives?
proposal-symbol-thenable
async - Async utilities for node and the browser
zx - A tool for writing better scripts
Bluebird - :bird: :zap: Bluebird is a full featured promise library with unmatched performance.
proposal-set-methods - Proposal for new Set methods in JS
angular-async-loader - Load modules and components asynchronously for angular 1.x application.
cats-effect - The pure asynchronous runtime for Scala
contra - :surfer: Asynchronous flow control with a functional taste to it
purescript - A strongly-typed language that compiles to JavaScript
when - A solid, fast Promises/A+ and when() implementation, plus other async goodies.
fantasy-land - Specification for interoperability of common algebraic structures in JavaScript
ObjectEventTarget - A same behaviour EventTarget prototype, that can work with any object from JavaScript