Akos Profile picture
25 Oct, 7 tweets, 3 min read
A Short Introduction to TypeScript πŸ’™

πŸ§΅πŸ‘‡
TypeScript (TS) is a superset of JavaScript (JS) - meaning: any JS code you write is already valid TS code (not necessarily error-free though πŸ˜„).

The TypeScript compiler turns TypeScript into JavaScript.

So what's to point of all this if it's turned into JavaScript anyway? πŸ€”
The TypeScript compiler analyses your code. It creates itself a map describing how all your code is related - based mostly on the types you provide.

This is called Static type-checking.

If you look carefully at the code below you'll notice that it's 🀏 close to being 100% JS.
Yes, it's the extra "name: string" that does all this magic - and the TypeScript compiler of course.

This is of the Primitive TypeScript types, there are three in total:

πŸ”Ήstring
πŸ”Ήnumber
πŸ”Ήboolean

There's also an Array to combine all these and a special type called "any".
The TypeScript compiler is also smart enough to figure out things for itself.
It can detect types in your code based on the type of the initializer:

For example, in the above code, writing:

const firstName = 'Bob'

wouldn't result in an error but:

function log(message)

would
What does the above error message mean, why does TS generate it? What's any type anyway? 🀭

This is only the tip of the iceberg πŸ§—bear with me in the next two weeks and we'll explore all these concepts.

Everything you see here you can also try out in typescriptlang.org/play.
If you found this thread helpful, please Re-Tweet the first Tweet.

If you'd like to see more content like this, consider following me on:

πŸ’™ Twitter @akoskm
❀️ YouTube youtube.com/channel/UCaExB…

and also check out my blog akoskm.com.

Until next time πŸ‘‹

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Akos

Akos Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @akoskm

6 Oct
10 FREE React Courses to Level Up your React Skills πŸ„

Thread πŸ§΅πŸ‘‡
1⃣ Code 15 React Projects - Complete Course

Improve your skills with the React JavaScript library by building 15 projects using React.ΒŸΒ”Β— Code: github.com/john-smilga/re…

πŸ”—
2⃣ React JS Frontend Web Development for Beginners

Learn React JS along with Modern JavaScript from absolute scratch. This course is a getting started guide for beginners. - Free Course

πŸ”— udemy.com/course/react-t…
Read 12 tweets
5 Oct
Are you spending too much time on research for your next blog post/thread?

Tutorial hell ➑️ Research hell

3 steps I use to keep my research time under control

πŸ§΅πŸ‘‡
1/5 Main & Subtopics

I estimate the scope of my main topic and explain it in a few sentences. Think of this as writing the intro of a blog post.

Break the main topics into sub-topics. I like to work with 5 to 10 subtopics, they're ideal for Twitter threads later.
2/5 Length

I try to limit the stuff I write to a blog post-sized piece ~1000 - 1500 words.

Usually, I can make 5-8min length videos from the same posts.

Longer or shorter videos might work better for you, but I think this length is a good start.
Read 7 tweets
4 Oct
8 Websites to find REMOTE Jobs in Tech

πŸ§΅πŸ‘‡
1⃣ RemoteOK

Browser over 45 000 remote jobs as a Developer, Designer, Copywriter, Customer Support Rep, Sales Professional, Project Manager, and more! Find a career where you can work remotely from anywhere.

πŸ”— remoteok.io
2⃣ We Work Remotely

We Work Remotely is the best place to find and list remote jobs that aren't restricted by commutes or a particular geographic area. Browse thousands of remote work jobs today.

πŸ”— weworkremotely.com
Read 10 tweets
28 Sep
6 FREE Course Platforms for Developers

πŸ§΅πŸ‘‡
1️⃣ Full stack open 2021

Free Introduction to the modern web development.
Learn React, Redux, Node.js, MongoDB, GraphQL, and TypeScript! The main focus is on building single-page applications with ReactJS that use REST APIs built with Node.js.

πŸ”— fullstackopen.com/en/
2️⃣ freeCodeCamp

Our all-time favorite! πŸ€—
Thousands of videos, articles, and interactive coding lessons - all freely available to the public. Learn to code for free!

πŸ”— freecodecamp.org
Read 8 tweets
27 Sep
7 FREE Courses to Level Up your Front End Skills πŸ„

Thread πŸ§΅πŸ‘‡
1⃣ Free HTML Tutorial - Web Development By Doing: HTML / CSS From Scratch

Web Development From Scratch: Learn By Doing For Complete Beginners. HTML And CSS. Code Your First Website In 1 Hour. - Free Course

udemy.com/course/web-dev…
2⃣ Web Design for Everybody: Basics of Web Development & Coding

Offered by University of Michigan. Learn to Design and Create Websites. Build a responsive and accessible web portfolio using HTML5, CSS3, ... Enroll for free.

coursera.org/specialization…
Read 9 tweets
10 Sep
5 FREE Time Tracking Apps For Freelancers (and teams)

6 years ago when I started Freelancing I thought time tracking apps are evil. 😈

Now they are saving me hours by the end of the month when I'm doing my invoices.

A Thread πŸ§΅πŸ‘‡
1️⃣ Klokki

@KlokkiHQ My personal favorite, it sits in my tray unnoticed. It's really easy to start/stop work sessions. If you work for multiple clients it's really easy to organize your different sessions in folders.

The only downside: Mac only. πŸ₯Ά

klokki.com
2️⃣ Clockify

Clockify is a time tracker and timesheet app that lets you track work hours across projects. Pricing: free forever, unlimited users.
You can also use it as a team and track team activity, create invoices, and much more. My next best pick.

clockify.me
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(