Devtoberfest
Find out what's happening, and when, in the Devtoberfest schedule – don't miss out!
cancel
Showing results for 
Search instead for 
Did you mean: 

🟢 It's Time for TypeScript (CAP edition)

Devtoberfest

TypeScript simply adds types to JavaScript. We can use it to reduce run-time errors in our CAP Node.js apps by catching bugs at design-time. After bringing you up to speed with the TypeScript basics we will look at the great new TypeScript features in CAP and show you how easy it is to make the switch.

You can find more information about the Devtoberfest Sessions and Contest
https://community.sap.com/t5/devtoberfest-blog-posts/devtoberfest-2024-welcome/ba-p/9358
https://community.sap.com/t5/devtoberfest-blog-posts/devtoberfest-2024-week-1-contest-activities/ba-...

You can complete the following tutorial and earn the points for the Devtoberfest contest after the session ends.
https://developers.sap.com/tutorials/devtoberfest2024-week1-cap-session-validation.html

Slide-deck : https://d.dam.sap.com/a/5m4kBtt/Devtoberfest_MikeDoyle_Public.pdf?inline=true&rc=10&doi=SAP1123324

Speaker: Mike Doyle



Event has ended
You can no longer attend this event.

Starts:
Ends:
14 Comments
Madhu2004
Active Contributor

Is Javascript expertise required to attend this session?

KevinR
Developer Advocate
Developer Advocate

Hi @Madhu2004 ,

you should have a basic understanding of JavaScript to understand the conceptual differences between using TypeScript and JavaScript with CAP. That shouldn't hinder you to join the session anyway for you to get insight in how you could get started with TypeScript and CAP. 🙂

Nice Session , thanks for explaining, Any roadmap from sap that force customer should use type script rather using Java script. Or any plan which will lead customer to migrate existing one to typescripts.

KevinR
Developer Advocate
Developer Advocate

Hi @Harendra_singh167 ,

such Roadmap does not exist. The SAP Cloud Application Programming model provides you the option to go with Node.js or Java as natively supported languages. Because CAP is supporting Node.js which is a JavaScript flavor, we get TypeScript support as well. If you as a developer (Partner or Customer) want to use TypeScript instead of plain Node.js (JavaScript) because that is the expertise your development team has, or because it makes architectural sense, or any other reason, it is there available for you!

MikeDoyle
Active Contributor

Thanks! At the moment it's very much a matter of choice.  Not every developer wants to use TypeScript, although I reckon it pays back the little extra effort required pretty quickly.

Amongst SAP products the support varies.  The SAP Cloud SDK team are enthusiasts IMO.  Their generated clients are typescript by default.  The UI5 team have provided new tutorials and samples. The CAP team have added good new features quite recently.

thanks Mike and Nice session

SachinSinghg
Explorer

It was a good decision on TS. I understood using TS we can avoid runtime errors which may occur at execution level due to the wrong type mapping of data/variables. I'll implement TS for sure for further projects. Thank you so much 👏👏👏🙌🙌🙌

MikeDoyle
Active Contributor

That's great to hear! I'm sure that once you start using it you won't go back

naveenvishal
Contributor

Great starter session to begin with the development using TypeScript Mike! I hope more detailed ones comes soon 😀

MikeDoyle
Active Contributor

Thanks! The blog I mentioned has quite a lot more detail: https://community.sap.com/t5/technology-blogs-by-members/why-the-typescript-sheriff-has-come-to-clea...

Today's session was focused on CAP, and in particular the TypeScript features which were added in CDS8

Online you will find lots of TypeScript resources, because it's very widely used outside of the SAP world

Nikunj_Goel
Explorer

thanks Mike, Great Session with well-structured Demos

MikeDoyle
Active Contributor

Thanks for joining, glad you liked it

Tenorio
Participant

Greetings, great talk!!

MikeDoyle
Active Contributor

Thanks, glad you liked it!