Monthly Archives: April 2014

Permalink to single post

O’Reilly JavaScript


(I read Japanese version)

Sure, I have been using JavaScript. But I do not detail about JavaScript itself.

Things TIL about JavaScript:

  • Many semicolons can be omitted.
    • If the end of statement are return, some of semicolons in there can be omitted. (Not at all)
    • I have known that semicolons before end braces can be omitted.
  • In contrast, “return true;” becomes “return; true;”
    • There is some cases like this.
  • “var” and “function” can be referenced before their declaration because of ROLLING UP.
    • I had not been paying attention about it.
    • I had believed that “function hoge(){” and “hoge = function(){” are equivalence. But it is not. No ROLLING UP in the latter.
  • “void” is an operator.
    • It is always evaluated as undefined.
  • “debugger” statement
    • Programs break at the statement.
  • “bind” Method
    • I had always made closures for doing same.

I haven’t read the latter half about libraries. Of course, probably I do not know large part of them.

Permalink to single post

Livestreamer

I have been written programs handle video streams. There is many kinds of video services (ustream, YouTube, etc.). So I tought that the library handle easily these streams without care kind of service is useful. Sure, it is already exists.

The program can be used from CLI. It is made by Python, so it can be used as Python libraries. Probably It works on windows (Not checked yet). Great.

It supports about 25 services. Niconico douga (Japanese famous video service) is not supported. Inevitable.