Recently Updated Pages
Command substitution vs Process substitution
https://unix.stackexchange.com/a/393352
Variables, types, mutatbility, functions, and control flow
Variables By default variables are immutable in Rust. Once you assign a value to it you cannot c...
Ever wonder what apt-get does underneath?
Shower thoughts This question came from when I was showering one day: What does apt-get or apt o...
Getting started
Hello world fn main() { println!("Hello, world!"); } The main function is always the first f...
Downloading and Installing Rust
Instructions To download and install Rust it is pretty simple. Just run the following curl comma...
CSS Max-width
Max-width This property is interesting because if you specify a max-width, the content's width w...
Parameterization and string substitution
String substitution In the context of building a database query like so: CREATE TABLE fish (nam...
OAuth 2.0
Time before OAuth Before OAuth was invented, a common way to give third-party application access...
All about modules
Two different standards In the browser JavaScript ecosystem, JavaScript modules depends on impor...
Async and await
async keyword async keyword is placed before a function like so: async function f() { return ...
More promise API
Promise.all This API will allow us to take in an iterable, an array of promises and return a new...
Try...catch
Syntax try { // Code } catch (err) { // Error handling } finally { // Excuted always,...
Getters & setters
Virtual property In addition to the normal property that we have for objects, we can also set up...
Objects and object references
Objects In JavaScript objects are used to store key to value pair collection of data. You can th...
JSON
JSON file When you want to transport say a complicated object or an array of object to another c...
Destructuring assignment
Destructuring assignment A special syntax to let us unpack either array or object into different...
Map and set, weakmap and weakset
Map Very similar to an object, however, with object the only key that is allowed is a String. Ma...
Iterables
Iterables A generalization of arrays, it allows us to make any object iterable in the context of...
Arrays and methods
Array Two ways of creating empty array let arr = new Array(); let arr = []; Create an array w...
Symbol Type
Symbols In JavaScript there is two primitive types that can be used as object property key St...