Giter Site home page Giter Site logo

workspace's Introduction

workspace

Here will record the problems encountered in the work.

workspace's People

Contributors

wotterfree avatar

Watchers

 avatar

workspace's Issues

[Symbol.for('nodejs.util.custom.inspect')] can hook your `console.log`

Recent use bson package which a npm package for Node.js, I find the result very strange when log the new ObjectId()

const { ObjectId } = require('bson');
console.log(new ObjectId());

then get this result:

new ObjectId(xxxxxxxxxx)

I find it use Node.js internal logic below:

class ObjectId {
    [Symbol.for('nodejs.util.custom.inspect')]() {
        // other logic
    }
}

it can hook your console.log :-)

xcode init LLDB and envs

  • cmd + shift + ,
  • set LLDB init file on Info tab
  • set CHROMIUM_LLDBINIT_SOURCED = 1 on Arguments tab

image

V8 Local vs Handle

See: https://groups.google.com/g/v8-users/c/S7_hgrH3cEo/m/Ic1ijihPNQ4J

"Handle" is a historical artifact and will go away completely soon: There will be only v8::Local (normal implicitly handled references to JavaScript object) and v8::Global (explicitly handled persistent references, currently known as "UniquePersistent", but this name will go away, too).

All those handle-related changes in the external API are a bit unfortunate, but it simply took us some time to make the API correct and more or less fool-proof.

document load process tips

  • link load css will block renderer and script download/scripting
  • DOMContentLoaded will be called back after all script excuted including defer script(does not wait for resource to loaded)
  • onload will wait for all resource to loaded

.clangd configuration

CompileFlags:
    Add: 
      [
        -std=c++14,
        -Wno-documentation,
        -Wno-missing-prototypes
      ]
Diagnostics:
  ClangTidy:
    Add:
    [
        performance-*,
        bugprone-*,
        modernize-*,
        clang-analyzer-*,
        readability-identifier*,
    ]
    CheckOptions:
      readability-identifier-naming.VariableCase: camelCase

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.