SemanticsWorks in <code />
About me
  • Sep 30, 2020

    Please your library user with typescript generic

    In typescript, generic is a tool that api/library author to please its consumer. What does this means.

  • Sep 30, 2020

    Class field initialization in typescript

    In typescript class, you can define your field initialization in multiple ways. Here is one typical way to do that.

  • Apr 12, 2016

    A JavaScript interview question which can be fixed by 'let'

    A very popular JavaScript interview question on Lexical scope and closure is like the follow.

  • Aug 26, 2015

    Minimize the price (not the benefit) of type in Typescript

    I watched Anders Hejlsberg introducing typescript in 2012. Then I thought I don't have the problem it tries to solve. Type in Javascript has not yet caused any problem for me, as I have unit test, renaming and intellisense is also not a problem for me, because I have webstorm. Then, I found that Douglas Crockford said something in google plus

  • Aug 24, 2015

    TypeScript is duck typing.

    When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.
  • 5
  • 6
  • 7

Subscribe

  • Fred Yang

A blog of a frontend developer