Views on Vue
Views on Vue
Steve Edwards, Luke Diebold
VoV 038: Webassembly and Typescript with Eduardo San Martin Morote
56 minutes Posted Nov 20, 2018 at 3:00 am.
– Advertisement – Kendo UI
– Chris: Today’s panel is Joe Eames who organizes many different conferences.
– Joe: That was long introduction! Hi everyone! I organize an Angular conference, too; it’s very small.
– Chris: Divya is also on our panel and is an awesome speaker and conference organizer. Our special guest is Eduardo San Martin Morote!
– Chris: Actually it’s good that I get your full name. I do speak a little bit of Spanish.
– Panel goes back-and-forth.
– Guest: It was good and sounded like American Spanish.
– Chris: This is about Eduardo and not my Spanish. You used to be a game developer?
– Guest.
– Chris: You wrote a lot of C++?
– Guest: Yep!
– Chris.
– Guest: It’s optimized – you can handle 1 million requests per second – but that doesn’t happen unless it’s a huge organization.
– Chris: Can you talk about C++? Compare it to JavaScript?
– Joe talks about transferring from JavaScript to C++.
– Guest: I am an instructor, too, and teach Vue.js to people. The thing to me is the variable scoping of functions.
– Chris: Variable scoping – let’s not get into too much detail, cause we are an audio medium.
– Guest: When you look at the syntax and create classes with JavaScript...I think C++ has always had classes from the beginning.
– Chris: I used to write things back in the day with C++. I remember some features that were added later that I never got to take advantage of. I can’t remember what they were. I thought classes were one of those things. It won’t be a fruitful line of discussion cause I would be guessing.
– Guest: It’s not that it’s important it’s necessary.
– Guest: Pointers are an integer that...
– Guest continues.
– Chris: In C++ when you say memory management you are...
– Guest talks about integers, JavaScript, memory, C++, and building games! Check out this discussion here!
– Panelist talks about web assembly and asks a question.
– Guest: You will always have...the thing is that you are always getting the most out of the hardware. Computers keep getting faster and faster and people are building games with more effects.
– (Guest continues): Native video games will always be a step ahead of what web assembly can achieve.
– Have you heard of Blazor (from Microsoft)? (No.) You write it all in C#.
– Chris: What is different about web assembly compared to trans-piled to JS languages that are basically Ruby. That compile to JavaScript – you don’t have to write the JavaScript (it’s basically Ruby) and your browser will interpret the JavaScript.
– Divya: Doesn’t it run on the GPU? That it runs on the graphic card?
– Chris: It works at a very low-level. Take any language and have the same low access that languages do (low as safely as possible) in the browser b/c there is still security concerns.
– Guest.
– Chris: What if I am using Canvas?
– Guest: ...the logic of your game will be faster.
– Chris: You have more fine-grained control? And you can control the speed of operations?
– Guest: You should be able to. If you are using a program like C++...
– Chris: I don’t know this...I know that JavaScript is an interpretive language you read it from top to bottom...
– Panel: Can JavaScript read from top to bottom? I thought you had to see the entire thing? Correct me if I am wrong?
– Chris: Yeah, yeah – absolutely.
– Panel: I think that’s roughly accurate. We are way off topic!
– Chris: Would it be accurate (since we aren’t all experts), but it sounds like web assembly is that it does work on a lower level than JavaScript, so it’s possible to achieve optimizations that wouldn’t be possible with JavaScript. Is that true?
– Divya: I think you could say that...there is an article by Lin Clark that you should check out!
– Panel: See link to show notes to find article and here!
– Chris: What got you started into web development? Why no longer game development?
– Guest: When I started coding at 13-14 years old. It’s funny b/c at 15 years old I was coding and I didn’t even know that I was doing it.
– Chris: Toxic like...?
– Guest: Before I was thinking of the long hours and people were working too much, and not getting the recognition that they deserve. It was toxic, and it was a diverse environment. I realized that diversity is very important. The field is changing, but that’s why.
– Chris.
– Chris: Something else, it sounds like more familiar with C++ is TypeScript. Talk about that please?
– Guest: What got me into it were the generic types.
– Chris: What is a generic?
– Guest talks about generics. He mentions integers and other terms.
– Panel helps to clarify about generics, too.
– Panel: I got into generics when...
– Guest.
– Panel: Where I see generics being used is with RJS.
– Advertisement – Get A Coder Job!
– Chris: What is the point?
– Guest: I think there are many points of view with this. When I build my libraries...
– Chris: You said that in VS code but I can get that in JavaScript. What is the extra advantage of using TypeScript on top of that?
– Guest.
– Chris: Let’s say I ignore the auto-completion, I type quickly – would TypeScript give me a warning?
– Guest: Yes that is true. If you use it with JavaScript you probably won’t have an error.
– Chris: A compile time...
– Guest: For a project you have to create a...
– Chris asks a question.
– Guest: Yes, I think it does. Pretty sure it does.
– Chris and Guest go back-and-forth.
– Chris: See Show Notes for TS Config.
– Panel.
– Chris: If they choose not to use TypeScript what are the downsides?
– Panel talks about his experience and why people might not use TypeScript. He also mentioned CoffeeScript, C#, and JavaScript.
– Panelist continues. He says that people love the freedom of JavaScript.
– Chris: If most of your bugs aren’t being caught by...
– Panel: Something that looks and sees and fits super well doesn’t mean that it’s a good idea. A big project is totally different. When you dip your toe in the water it might be more overhead that you don’t’ need. You have to think about the smaller / larger cases. I think that’s why Vue is getting a lot of popularity.
– Chris: I don’t think I have found anyone coming from JavaScript that say that TypeScript is not worth it.
– Guest: I like TypeScript I don’t like writing applications in TypeScript. I like writing my libraries somewhere else. The flexibility that you have in JavaScript helps a lot. I don’t like my components to be typed. I do like having...
– Guest continues.
– Chris: Why is it different bad or different good?
– Guest: It’s bad.
– Chris: What hurts your development?
– Guest: You get typing errors.
– Chris: It sounds like with applications you are doing more proto typing and changing requirements. Making the types really strict and specific can really hurt you?
– Guest: That’s better.
– Chris asks another question.
– Panel: That’s mostly true.
– Chris: Types can make some refractors easier, but overall a lot of refractors are going to take longer with TypeScript. At least with your application say it’s organized in both cases.
– Chris: One more thing about TypeScript – some people (if not coming from C# or C++) I have found that people are spending a lot of time (making sure the typing is working really well) rather than writing unit tests and stuff like that. There is an opportunity cost there.
– Panel: As the team grows so do the benefits!
– Chris: Anything else? Where can people find you?
– Guest: I am giving a workshop in Toronto in November!
– Guest: Twitter!
– Advertisement – Fresh Books! DEVCHAT code. 30-day trial.
0:00
56:10
Download MP3
Show notes
Panel:
Chris Fritz
Joe Eames
Divya Sasidharan
Special Guest: Eduardo San Martin Morote
In this episode, the panel talks with Eduardo San Martin Morote who is a member of the Vue.js team, a speaker, and trainer who currently resides in France. The panelists and Eduardo talk about developing games, coding, WebAssembly, C++, Vue, Angular, memory management, and much more! Check it out!
Show Topics:
0:00 – Advertisement – Kendo UI
2:17 – Panel goes back-and-forth.
3:17 – Chris: You wrote a lot of C++?
4:24 – Chris: Can you talk about C++? Compare it to JavaScript?
4:37 – Joe talks about transferring from JavaScript to C++.
4:48 – Guest: I am an instructor, too, and teach Vue.js to people. The thing to me is the variable scoping of functions.
6:10 – Guest: When you look at the syntax and create classes with JavaScript...I think C++ has always had classes from the beginning.
6:58 – Chris: I used to write things back in the day with C++. I remember some features that were added later that I never got to take advantage of. I can’t remember what they were. I thought classes were one of those things. It won’t be a fruitful line of discussion cause I would be guessing.
Chris: What’s different about C++ is that the types are more important?
8:47 – Guest continues.
8:52 – Chris: In C++ when you say memory management you are...
9:23 – Guest talks about integers, JavaScript, memory, C++, and building games! Check out this discussion here!
11:00 – Panelist talks about web assembly and asks a question.
12:50 – Have you heard of Blazor (from Microsoft)? (No.) You write it all in C#.
Panel talks about Silver Light.
18:58 – Divya: I think you could say that...there is an article by Lin Clark that you should check out!
19:37 – Panel: See link to show notes to find article and here!
23:52 – Chris: Something else, it sounds like more familiar with C++ is TypeScript. Talk about that please?
24:17 – Guest: What got me into it were the generic types.
24:44 – Guest talks about generics. He mentions integers and other terms.
25:30 – Panel helps to clarify about generics, too.
Panel: Did you get into generics around the same time as C++?
28:00 – Panel: Where I see generics being used is with RJS.
28:33 – Advertisement – Get A Coder Job!
You mentioned that you could enable some of these checks in JavaScript. How do you do that?
Say you have an editor like VS Code, but can actually when there is a potential error?
34:20 – Chris asks a question.
35:05 – Chris: See Show Notes for TS Config.
35:53 – Chris: If they choose not to use TypeScript what are the downsides?
36:05 – Panel talks about his experience and why people might not use TypeScript. He also mentioned CoffeeScript, C#, and JavaScript.
He gives an analogy of riding a motorcycle and a truck.
38:04 – Panelist continues. He says that people love the freedom of JavaScript.
40:00 – Panel: Something that looks and sees and fits super well doesn’t mean that it’s a good idea. A big project is totally different. When you dip your toe in the water it might be more overhead that you don’t’ need. You have to think about the smaller / larger cases. I think that’s why Vue is getting a lot of popularity.
42:27 – Guest continues.
The guest gives a specific example.
45:44 – Chris asks another question.
Try TypeScript – it might be for you!
48:24 – Guest: I am giving a workshop in Toronto in November!
48:54 – Guest: Twitter!
49:40 – Advertisement – Fresh Books! DEVCHAT code. 30-day trial.
Links:
Vue
React
JavaScript
C#
C++
C++ Programming / Memory Management
Angular
Blazor
JavaScript
DevChat TV
Graph QL
WebAssembly
VuePress
HACKS
TypeScript: Generics
Generic Types
TypeScript: TS Config.json
VS CODE
CoffeeScript
Opinion – “In Praise of Mediocrity” by Tim Wu
GitHub: Vue-Cli-Plugin_Electron-Builder
Eduardo’s GitHub
Eduardo’s Twitter
Eduardo’s Code Mentor
Eduardo’s Medium
Eduardo’s Trello
Sponsors:
Fresh Books
Cache Fly
Kendo UI
Get A Coder Job!
Picks:
Joe
Framework Summit Videos on Youtube - Coming soon.
Divya
Lin Clark Cartoons
In Praise of Mediocrity
Chris
Vue CLI Plugins Electron Builder
Read nooks
Eduardo
Remote work due to traveling
Special Guest: Eduardo San Martin Morote.
Advertising Inquiries: https://redcircle.com/brandsPrivacy & Opt-Out: https://redcircle.com/privacy