Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jsx language-notes

1,109 views

Published on

Used in Tsukuba.pm#2 (2012/7/7)

Published in: Technology, Business
  • Be the first to comment

Jsx language-notes

  1. 1. JSX language notes gfx <gfuji@cpan.org> Tsukuba.pm #2 Tanabata Hacks 2012/7/7 #tsukubapm
  2. 2. MyselfName: Fuji Goro (gfx)Working at: DeNA, Co., Ltd.Job: software engineerInterested in: software development
  3. 3. WhatJSX is a faster, safer, easier alternativeto JavaScript
  4. 4. Why T be used in middle- to large-scaled osoftware development
  5. 5. HowBased on ECMA-262 StandardStatic typesClass model
  6. 6. Status (2012/7/7) Basic syntax are fixed Advanced feature like templates are not Supported in jsdo.it TODO: jsxdoc, more code completion, template functions, loading JS modules
  7. 7. DemoExampleProfilerDebuggerCompletion
  8. 8. Nullability Primitive types are NOT nullable Object types are nullable Nullable.<PrimitiveType> are nullable
  9. 9. Variant Type Directly mapped to JavaScript value Have to cast it to another type to use
  10. 10. Parameterized Types a.k.a templates For generic programming
  11. 11. Lambdafunction (a : int) : int { return a + 1; }(a : int) -> int { return a + 1; }(a) -> a + 1
  12. 12. Development Toolsnodejs for compilersprove(1) for testingidl2jsx.pl to convert WebIDL to JSX

×