Your Choice JavaScript News

Reactjs, msbuild, mongodb, apis & much more…

TypeScript News Friday, May 25

Flow vs TypeScript in React — My two cents – gitconnected

  • Flow vs TypeScript in ReactMy twocents – The pros and cons of TypeScript andFlow – Should you use Flow or TypeScript in your next React project?
  • Strict Types: Typescript, Flow, Javascriptto be or not tobe?Flow and TypeScript are both fantastic ways to limit technical debt in your JavaScript projects, allowing you to, among other things, evolve your codebase with confidence.
  • For a while I wrote React projects in TypeScript, React Native projects in Flow, and everything was love and all was well.
  • Moreover, support for React in both TypeScript and Flow is becoming more and more sophisticated, and it could be good to develop a strong expertise in only one of the two type systems.
  • Upfront compile errors : This can probably be configured in both TypeScript and Flow, but having upfront compilation errors instead of a non mandatory type check seems to save time when testing your code by preventing you from running code that is bogus anyways.

Tags:

Flow vs TypeScript in React — My two cents – gitconnected

Best of Build 2018 #MSBuild

  • Between tons of technical sessions, lots of new announcements, reconnecting with old friends, attending lots of parties and best of all, getting to hang out with bunnies and small horses (yes, Build had a petting zoo this year…), we had another great show.
  • We have a yearly tradition of picking out our favorite sessions from Build so without further ado… – – Keynote: Microsoft PACKS their keynotes with cool demos, videos, announcements, and did I mention demos?
  • Satya Nadella, CEO of Microsoft, is a great speaker and talks about the future of AI in the intelligent edge and the intelligent cloud.
  • In this demo heavy session, starting from just a blank desktop, Abel Wang creates a new DevOps project and a complete pipeline.
  • This is a great session to learn more about Microsoft’s IoT plans.

Tags:

Best of Build 2018 #MSBuild

Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScript — Part 4

  • Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScriptPart4 – (Image from OctoPerf)There is a course about how to build a Web APIs on Lynda, but they didnt use TypeScript.
  • Im appreciated that;) – Part 1: Setting Up Project – Part 2: Implement routing and CRUD – Part 3: Using Controller and Model for Web APIs – Part 4: Connect Web APIs to MongoDB or others – Part 5: Security for our Web APIs (Im working on it) – In…
  • ts… – import * as mongoose from mongoose; – – class App { – – … – public mongoUrl: string = ‘mongodb://localhost/CRMdb’; – – constructor() { – … – this.mongoSetup(); – } – – private mongoSetup(): void{ – mongoose.Promise = global.Promise; – – } – – } – – export…
  • Create your first contact – – I will send a POST request to http://127.0.0.1:3000/contact with the information of a contact in the body.
  • After this, now we have a fully working RESTful Web APIs application with TypeScript and Nodejs.

Tags:

Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScript — Part 4