Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 130
  1. The [Learning How to Learn](https://www.coursera.org/learn/learning-how-to-learn/home/welcome) course proposed an idea that there are two modes of thinking: **Focused** and **Diffuse**.

  2. In RxJS, a [Subscription](https://rxjs.dev/guide/subscription) is an object that represents an execution of an [Observable](https://rxjs.dev/guide/observable).

  3. **Structured data** is a special data snippet you can insert into your page to help Google Search identify your content in a richer way (called **Rich Result**).

  4. **The curse of knowledge** is a cognitive bias of **assuming that others have the same background knowledge to understand what you are talking**.

  5. **Painting** and **Compositing** are the last two steps to generate a frame in the [browser's pixel pipeline](/everyday/03-06-2022-reading-notes-browser-s-rendering-process).

  6. When a DOM node is written (change of style, attribute, or inner content), and the action triggers a layout change, the browser must do a layout recalculation (reflow).

  7. **Article:** https://fs.blog/feynman-learning-technique/ There are 2 types of knowledge: - Knowing the name of something...

  8. ## The big picture Most devices refresh their screen 60 times a second.

  9. If you are busy, here is the **TL; DR**: **React Reconciliation** is the tree diffing algorithm that React used to update your application's DOM tree between renders.

  10. The Zeigarnik Effect means: **If you are working on a task and being interrupted, the task remains longer in your mind, making it easier to remember the task's details**.

  11. CODEOWNERS file

    On Github, you can create a `CODEOWNERS` file in the `.github/` or `docs/` folder to specify which person or team is responsible for the code in a repository.

  12. One of the most confusing things in JavaScript is the context object `this` inside a function.

  13. Notes Tetris Effect

    **Article:** https://en.m.wikipedia.org/wiki/Tetris_effect *Tetris Effect* is an effect that happens **when you devote a large amount of time and mental effort to do something, it will shape the way y...

  14. By default, the TypeScript compiler tries its best to analyze the code and infer the type of your variables.

  15. [The Elm Architecture](https://guide.elm-lang.org/architecture/) is not something necessary exclusive to the Elm language but should be viewed as a generic design pattern for architecting GUI applicat...

  16. **Article:** http://nathanmarz.com/blog/suffering-oriented-programming.html OK, so I came across this very interesting article about product building.

  17. Lookup Types

    Let's say you are tasked to build the next Amazon, and you gotta start small.

  18. Enums at runtime

    In TypeScript, an enum can be defined in various ways: a numeric enum, a string-based enum, or heterogeneous enum.

  19. When you specify a percentage value for the CSS padding or margin of an element, this percentage is **based on the width of the containing block**, not the width of the element itself.

  20. This note only covers the mechanism of Bitwarden's end-to-end encryption for a single user, between one or more clients.

  21. Cryptography PBKDF2

    PBKDF2 is a key derivation function, used in the process of deriving encryption keys.

  22. **Article:** https://blogs.scientificamerican.com/symbiartic/rediscovering-the-forgotten-benefits-of-drawing/ In the old times, scientist are required to have drawing skill, because they have to recre...

  23. **Reference Link:** https://eric.ed.gov/?

  24. Beware the delete

    Unlike C/C++, the [delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete) operator in JavaScript has nothing to do with memory deallocation.

  25. There are two ways to represent a graph data structure, each come with its own pros and cons. ## Using adjacency matrix An adjacency matrix is a square matrix, each element in the matrix indicate whet...

  26. The unknown Type

    You can think of `unknown` as a type-safe version of `any`.

  27. Macro is a complex type of repeation, it allow you to record and replay a sequence of actions.

  28. In Rust, there is a [Result](https://doc.rust-lang.org/rust-by-example/std/result.html) type that could return either an `Ok(T)` value if the operation is succeeded, or an `Err(E)` value if the ...

  29. Railroad Diagram

    **Railroad Diagrams** (or **Syntax Diagrams**) are the graphical way to represent [context-free grammars](/everyday/02-10-2022-parsing-context-free-grammar).

  30. BNF

    **Backus-Naur Form (BNF)** is a metasyntax for [context-free grammars](/everyday/02-10-2022-parsing-context-free-grammar), is used to describe the syntax of languages used in computing such as program...

  31. A derivation of *a string* for *a grammar* is a *sequence of production rule applications*.

  32. Context-Free Grammar

    Context-Free Grammar (CFG) is a grammar where **production (or rewrite) rules** are in the form of: $$ A \rightarrow \alpha...

  33. One thing about JavaScript that is sometimes confusing: The **named imports**.

  34. Like [Ngrok](https://ngrok.com/), Cloudflare Tunnel is a lightweight daemon that run on your server (or local machine) and create a tunnel between your machine and the Cloudflare edge, allowing you to...

  35. Timing Attack

    **Timing attack** is the type of attack when an attacker tries to analyze the time it takes your application to do something, in order to guess the data it's operating on.

  36. Testing with Jest

    To use Jest for testing a TypeScript library, we need to install a couple of things: ``` yarn add -D jest @types/jest ts-jest ts-node...

  37. With Parcel 2.0, it's very easy to build a TypeScript library and publish them to NPM later on, with automatically generated types and built-in support for both CommonJS and ESModule.

  38. Non-English Variables

    In JavaScript, you can use any ASCII characters as variable or function names, even non-English words or some special symbols: ```javascript const π = 3.1415...

  39. When you load custom web fonts with just the regular font-weight, no bold or italic styles, the browser tries its best to render them in bold and italic style by **faking** it.

  40. Interpolation Methods

    **Interpolation** is a type of estimation method for finding new data points based on the range of a discrete set of known data points.

  41. Safari on iOS and macOS devices have the ability to automatically retrieve and autofill the OTP code sent via SMS if your input has the `autocomplete="one-time-code"` attribute: ```html

  42. Sometimes, we want to call an FFI function that is CPU-bound.

  43. FFI API

    From version 1.13, Deno introduced the FFI API (foreign function interface API) that allows us to load libraries built in any language that supports the C ABI (like C/C++, Rust, Zig, Kotlin,...).

  44. Row Level Security

    In Postgres, tables can have [Row Level Security](https://www.postgresql.org/docs/current/ddl-rowsecurity.html) that restrict the user's action on each row.

  45. [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) is an awesome tool made by **rustwasm** team, make it very easy to expose Rust's data/functions to JavaScript and vice versa.

  46. WebAssembly is executed using a stack-based virtual machine.

  47. **Table** is another shared instance in WebAssembly just like Linear Memory, but it can only store **function references**.

  48. Linear Memory in WebAssembly is a contiguous and mutable array of **uninterpreted bytes**.

  49. How to read WASM code

    Just like a good-old-Assembly program, a WebAssembly module is made up of different sections: !

  50. A quick guide

    WebAssembly is a new type of code that **can be loaded and run by the JavaScript VM** on web browsers.