Пікірлер
@pacsltd
@pacsltd Жыл бұрын
ZZZZZZZZZZZZ
@j_dv2008
@j_dv2008 3 жыл бұрын
Any updates to this, or is it all still relevant to those moving legacy code away from WCF.
@nikitaosadchuk1467
@nikitaosadchuk1467 3 жыл бұрын
you can use it) www.typescriptlang.org/play#code/FAYw9gdgzgLgBAQzgXjgb2HLiBcBGPAGk2wCMcAiKai4AX2BgE8AHAUzgGUYAnASwgBzAAo8w7HswDyAMwA8AFThsAHjDYQAJlDhhSAKzYgYAPhRwAoipAAbAK6a2cjFgDaAaTgC4AazZMwGTgFAF0cYOU1DW04ACUjMB5NOXdCOFh+IRMSLAB+OAg2ADc2Hhy4cPd6Vz8AoNC0uy02GQE2TWzgGSbjPkg4GQhFAFkwRxtI9S0dePAkuQQIJkJFphNCBVFxSeidbkyRMQlpeQVR8ZMTAAoAWzG2Gxwz+5tCFiOnrZYASnRgen+4Gg8FIWFQgyuCEIFFIFG+QA
@gulshantara422
@gulshantara422 4 жыл бұрын
please Write down the complete AJAX code to avoid page caching.
@victoremidio2146
@victoremidio2146 4 жыл бұрын
Amazing, Jess. When you will stream again?
@daemongriffons2578
@daemongriffons2578 4 жыл бұрын
crazy good code.. do you have a github repo???
@samuelbudai4979
@samuelbudai4979 4 жыл бұрын
that would be very good
@handypda
@handypda 4 жыл бұрын
Excellent discussion...cheers
@kauseralrashid5190
@kauseralrashid5190 5 жыл бұрын
hmm.. this filming set looks familiar
@justinasbei
@justinasbei 6 жыл бұрын
Don't forget npm install tsd, folks!
@shardulGhanti
@shardulGhanti 7 жыл бұрын
Great presentation very off-topic question : What headsets are you using ?
@DanishAnton
@DanishAnton 7 жыл бұрын
Very useful. Thanks.
@afare17
@afare17 7 жыл бұрын
Can't hear a single stuff from Panda
@raja2005vnr
@raja2005vnr 7 жыл бұрын
You are good in teaching this sir, much useful to me.
@talhazaryab3300
@talhazaryab3300 7 жыл бұрын
?
@talhazaryab3300
@talhazaryab3300 7 жыл бұрын
I'm right now watching your course on Lynda.com. You are awesome and a great teacher. KiU.
@MrVurtan
@MrVurtan 7 жыл бұрын
Thanks for making the introduction. For me it was very useful to get started with TypeScript!
@pussiestroker
@pussiestroker 7 жыл бұрын
it's an hour-fourty-minute lecture, so I thought I'll start start off by saying those aren't concentric circles on your first slide. lol
@user-wr8cj7ie7j
@user-wr8cj7ie7j 8 жыл бұрын
我的天字幕啊
@rajeemcariazo
@rajeemcariazo 8 жыл бұрын
I hope you get guests on your podcast like Anders Heilsberg, Scott Hanselman, Jeff Atwood, Joel Spolsky, etc
@chetandnyane2824
@chetandnyane2824 8 жыл бұрын
Awesome Introduction Jess, have been working with JavaScript for a while now and the issues I have faced especially with the IDE intelligence missing definitely seem to be solved by TypeScript :) Planning to explore more, thanks
@munishtyro
@munishtyro 8 жыл бұрын
Thank you for your efforts Jess !!
@juancarlosrecio8533
@juancarlosrecio8533 8 жыл бұрын
I enjoyed it a lot! great guys!
@jagadeesh1492
@jagadeesh1492 8 жыл бұрын
Please add subtittles
@dirkpostma77
@dirkpostma77 8 жыл бұрын
@15.00 is there an underscore missing in de constructor body? Or is this some language feature?
@dirkpostma77
@dirkpostma77 8 жыл бұрын
And also in sayHello. And in the interface. this._name and this.name... Makes me think..?
@taocoyote
@taocoyote 8 жыл бұрын
It works because the getter and setter are defined for name
@georgemilev9986
@georgemilev9986 8 жыл бұрын
Awesome podcast!
@DemanaJaire
@DemanaJaire 8 жыл бұрын
Well, in JS you can do this to make some properties kind of private var Call = (function(){ var name = 'name'; // I want this to be private function getName(){ return name; } return { getName: getName } })(); The closure returns an object with properties and methods I wanted, I can't see what's in Class.name, but I can do Class.getName() to access it. Why does typescript return the whole object if it could do it like that?
@tonyb3123
@tonyb3123 8 жыл бұрын
Because if you then want to create a class that inherits from Call, you will have inherited the method `getName()` but not the private variable it's accessing, since it's neither attached to the prototype, nor the constructor.
@Dan-ng5jk
@Dan-ng5jk 8 жыл бұрын
This video was fantastic. The explanation of the TypeScript super layer of JavaScript was very precise. It has served me really well to understand how to better use the language. Being a Java developer, this serves me well! :)
@nebojsaburgic3508
@nebojsaburgic3508 8 жыл бұрын
clear ... ty ...
@alexleung842
@alexleung842 8 жыл бұрын
Why doesn't TypeScript use scoping to implement private instance variables? JavaScript does allow one to create private variables, but for some reason the creators of TypeScript have decided not to take advantage of that.
@tonyb3123
@tonyb3123 8 жыл бұрын
Would create a confusing situation where you have a base class with a private method that's not inherited to sub-classes because it's private-via-closure and not on the prototype.
@alexleung842
@alexleung842 8 жыл бұрын
A subclass is not supposed to inherit the private methods of its superclass.
@tonyb3123
@tonyb3123 8 жыл бұрын
+Alex Leung The issue is classes may have public methods, but those public methods can use private variables. So the inherited version of that method is trying to use something that wasn't inherited alongside it. Could lead to nasty runtime errors.
@alexleung842
@alexleung842 8 жыл бұрын
I disagree. When inheriting a superclass, the methods on the superclass object are closures with references to private properties within the superclass itself, so the subclass methods cannot reference these private members but the superclass methods still can. Still not convinced? Here's a super simple working example I whipped up. github.com/AlexLeung/typescript_could_inherit_with_scoping Compare example_ts.ts to example_js.js After compiling example_ts.ts and opening index.html, you'll notice that not only do both files implement inheritance, but both also produce the same output when given identical tests.
@tonyb3123
@tonyb3123 8 жыл бұрын
The issue with example_js.js now is the accessor methods to the private variables aren't defined on the prototype anymore. So the "class" method will actually return true on a "hasOwnProperty" check of an instance of that class. Its important to keep in mind that the TypeScript "class" keyword needs to follow the ES-future spec of the class keyword. So that's a deal-breaker. jsbin.com/kehuwakica/edit?html,js,console
@Stormystormybg
@Stormystormybg 8 жыл бұрын
Hey guys. Enjoyed the show. Good points on all sides. Old timer here too. Developed in early years of AOL on "Rainman". Still in therapy. Looking forward to your next shows. - Rob
@chunk1978
@chunk1978 8 жыл бұрын
Great video. TypeScript is really exciting, makes JS less ghetto when approaching it from other OOP languages. Side note: you have a really great radio voice
@Bapholo
@Bapholo 8 жыл бұрын
I went to the GitHub that you use in this video to download the project and follow along. But it looks like the GitHub project has been updated so that it no longer matches this video. So, unfortunately, it doesn't appear that I can follow along. This video would have been significantly more valuable if I were able to code along with it.
@karthikr3970
@karthikr3970 8 жыл бұрын
Vary useful tutorial
@ulriksorber717
@ulriksorber717 8 жыл бұрын
Good thorough introduction to TypeScript and Angular type definitions. Thanks.
@Aragorn.Strider
@Aragorn.Strider 8 жыл бұрын
Thank you very much! This was the video I was waiting for! One small detail is at 55.49 you use /// reference. The Typescript code I saw in other projects they use "import {Component} from 'angular2/core' with "export class" Is the /// reference old-style TS code ?
@durnevm
@durnevm 8 жыл бұрын
It's because angular2 has complete typescript implementation. so these lines '"import {Component} from 'angular2/core' just import them as is, written in pure typescript. Reference links are as i understand for typescript type hinting got from *.d.ts files generated from javascript libraries if you haven't specified tsconfig.json to allow typescript compiler look to source files as a project. take a look at definitelytyped.org/ - definition files for js libraries.
@karolmierzejewski1392
@karolmierzejewski1392 8 жыл бұрын
Tutorial is ok, but your lips movement - sooo out of sync. It is so annoying.
@karolmierzejewski1392
@karolmierzejewski1392 8 жыл бұрын
Tutorial is ok, but your lips movement - sooo out of sync. It is so annoying.
@leonbogenhausen2044
@leonbogenhausen2044 8 жыл бұрын
Great Video! Thanks a lot!
@mileschan8322
@mileschan8322 8 жыл бұрын
cool and excellent video. thank you
@redgreenbluehex
@redgreenbluehex 8 жыл бұрын
loved this podcast. subscribed. please keep making them.
@zhixiangyuan9652
@zhixiangyuan9652 8 жыл бұрын
Best Typescript tutorial that i could found on internet until now.!!!thanks, i am about to study angular 2 and ionic 2, your video is helpful!
@rambideunt
@rambideunt 8 жыл бұрын
this is the clearest introduction to typescript so far from many I have watched. thank you!
@sssthegreat
@sssthegreat 8 жыл бұрын
Wow. TypeScript in one slide at 11:24 is just awesome - all the main concepts told indigenously in one screenshot. Learning from you seems way too natural, as though I am in a conversation sitting next to you. I hope you do Angular 2 as well. Thanks a lot.
@AcnAPyX681
@AcnAPyX681 8 жыл бұрын
Great job m8. Keep up the good work :)
@albertgao7256
@albertgao7256 8 жыл бұрын
Great video! Thanks!
@jeewanmaharjan2712
@jeewanmaharjan2712 8 жыл бұрын
Hahaha
@MishaVucicevic
@MishaVucicevic 8 жыл бұрын
Great class ! very understandable and clear ! Thx
@ericka.montanez6821
@ericka.montanez6821 8 жыл бұрын
Thank you very much for taking the time to make this video.
@hanzo2001
@hanzo2001 8 жыл бұрын
I'm in a full hour of video and my head is still screaming array.forEach(fn,**this**); // basic javascript!!!!!!!!!!! Am I doing something wrong? is using the **thisArg** as defined in the prototype method signatures a bad thing? I'm open for instruction
@JessChadwick
@JessChadwick 8 жыл бұрын
No you're not missing anything. That way is perfectly legitimate when the function that you are calling supports it. Most APIs are not built that way.
@hanzo2001
@hanzo2001 8 жыл бұрын
what about the bind method? (function(){this;}.bind(thisArg)); or call() or apply() There seems to be a lot of tools on native JS that are being under-appreciated... but I admit, they can be verbose and ugly to OCD eyes. Anyways, this TypeScript looks fabulous and I want to try it out ASAP. Thanks
@medidisukumar2062
@medidisukumar2062 8 жыл бұрын
Jess Chadwick You are awesome Thanks for the video