Giter Site home page Giter Site logo

arnaudbuchholz.github.io's Introduction

GitHub stats

Most Used Languages

linkedin

arnaudbuchholz.github.io's People

Contributors

arnaudbuchholz avatar arnaudbuchholz-sap avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

arnaudbuchholz.github.io's Issues

Gotta capture them all

An introduction to regular expression using regex101.com
Must show capturing groups and JavaScript examples (in particular string.replace)

Editor story

When I started coding JavaScript my only tools were: notepad, a command prompt and cscript.exe
Times were hard and I learned many lessons that way (such as a good understanding of JS is required prior to start debugging)
Then I discovered tools such as WebStorm and grunt. On one hand, the editor offers lots of helpers to write code and embeds linters... On the other hand, grunt has a huge collection of tools to automate...
Now that my library has a complete set of build tools, I could go back to notepad. Almost every character that is typed goes through linting and unit testing.

Sneaky JavaScript Technics III

Use of Symbol to add properties to an object that won't be serialized in JSON or even accessible to anybody not having the symbol

REserve series

Create a list of videos explaining REserve through different examples from the simple server to more advanced examples

Promise patterns

  • A different approach for Promise.all
  • Secure asynchronous cache

JS Interview Question

Use the famous example

for(var i = 0; i < 10; ++i) {
  setTimeout(function () {
    alert(i)
  }, 1000)
}
  • What is the expected behavior
  • Show the behavior (jsFiddle)
  • Explain the behavior (setTimeout, alert, closure)
  • How can we change this example to display 0 to 9

[WUC] ? and ! in typescript

class Player {
    something () {}
}

// Type guard
function isPlayer (anything: unknown): asserts anything is Player {
  if (typeof anything !== 'object' || !(anything instanceof Player)) {
    throw new Error('Not a player');
  }
}

class Example {
  private _currentPlayer: Player | null;

  getCurrentPlayer () : Player {
    if (this._currentPlayer === null) {
        throw new Error('No current player');
    }
    return this._currentPlayer;
  }

  doSomething1 () {
    this.getCurrentPlayer().something();
  }

  doSomething2 () {
    isPlayer(this._currentPlayer);
    this._currentPlayer.something();
  }
}

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.