πβοΈ How to Document Your JavaScript Package
Youβve written some useful code, you want to distribute it.. what next? Useful docs! The Deno team demonstrates the value of JSDoc and writing documentation alongside your usual source code.
THE DENO TEAM
Youβve written some useful code, you want to distribute it.. what next? Useful docs! The Deno team demonstrates the value of JSDoc and writing documentation alongside your usual source code.
THE DENO TEAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€8π2π€©2π€1π€£1
CHALLENGE
var foo = {};
var bar = Object.create(foo);
foo.a = 1;
console.log(bar.a);
β€4π₯2
π19π€6π€©5π₯1
A commercial, turn-based strategy game available on the Steam Store, but now with an open sourced engine and tooling. The game is published by Null, an indie game publisher founded by GitHub cofounder Chris Wanstrath.
CHRISTOPH NAKAZAWA
Please open Telegram to view this post
VIEW IN TELEGRAM
π11β€4π₯1π€©1
CHALLENGE
function Person() {}
var person = new Person();
console.log(person instanceof Person);
console.log(person instanceof Object);
β€5π₯2
π15β€7π₯4π€©4
It basically loads your code into this site (which you can use directly, if you'd rather not install an extension) where you can tweak settings/theme and export to either a PNG or SVG.
VKRSI / VISUAL STUDIO MARKETPLACE
Please open Telegram to view this post
VIEW IN TELEGRAM
π7π€2β€1π₯1
CHALLENGE
function X() {}
X.prototype.getValue = function() {
return this.value;
};
function Y() {
this.value = 42;
}
Y.prototype = Object.create(X.prototype);
Y.prototype.constructor = Y;
var y = new Y();
console.log(y.getValue());
β€8π€7π₯4π3π€£3
π6β€5π₯5
Create a schema, spin up a server, and youβre good to go (then you get to wire everything up). Supports GraphQL subscriptions via SSE. Designed to run across numerous environments from Node to AWS Lambda, Deno, Bun etc. GitHub repo.
THE GUILD
Please open Telegram to view this post
VIEW IN TELEGRAM
π7π₯2π€2β€1
CHALLENGE
function A() {}
A.prototype.value = 1;
function B() {}
B.prototype = new A();
B.prototype.value = 2;
var b = new B();
console.log(b.value);
π7β€3π₯2
β€11π5π₯5
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£73π4π€3β€1
CHALLENGE
let obj = { a: 1 };
let proto = { b: 2 };
Object.setPrototypeOf(obj, proto);
for (let key in obj) {
console.log(key);
}
π3π€2
π₯13π9π€5β€4
A less significant release, feature-wise, than 22.0 or 22.1, but lots of little bug fixes, tweaks around core dev experience, getting Nodeβs built-in ESLint rules ready for ESLint v9, and the Υ--inspect-waitΥ flag to make the debugger wait for a connection in order to debug code from the very start of execution.
MICHAΓL ZASSO
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€4π₯2π€©2
CHALLENGE
let obj = { a: 1 };
Object.freeze(obj);
console.log(Object.isFrozen(obj));
console.log(obj.a = 2);
console.log(obj.a);
β€5π₯5π1π€1
π€19π6β€3π₯2