Carbon Lang First Look & Crash Course | Google's C++ Successor

preview_player
Показать описание
Carbon is Google's new C++ successor. In this video, we will talk a little bit about it and then look at the basic syntax including variables, data types, arrays, tuples, classes, generics and more.

💻 Carbon Main Repo:

✅ Gist File From Video:

⭐ My Courses & More

💖 Show Support

👇 Follow Me On Social Media:

Timestamps:
0:00 - Intro
1:37 - Carbon - What & Why?
7:26 - Setup With Homebrew
13:15 - Package Namespace
14:16 - Main() Function
16:40 - Print() Function
18:00 - Creating Functions
19:40 - Primitive Data Types
21:37 - Naming Conventions
22:14 - Variables
24:15 - let Keyword
26:22 - auto Type
27:06 - Global Variables & Scope
28:52 - Multi-Line Strings
29:27 - Function Arguments
31:49 - Arrays
35:10 - Tuples
37:42 - Structs
41:11 - Classes & Objects
43:32 - Class Methods
46:10 - Class Functions
47:52 - Pointers
52:35 - If Else Statements
54:55 - Match Statement
59:04 - While Loops
1:01:32 - Generics
1:05:22 - Outro
Рекомендации по теме
Комментарии
Автор

I watched this video 10 times and now have the required 10 years of Carbon experience for my unpaid internship. Thanks Brad!

tbnlyfe
Автор

I was pleasantly surprised that you have already covered carbon in such depth. I will be following Carbons development and adaptation very closely. Thank you for providing yet another great course for all to watch for free.

chriswinslow
Автор

It's great to see you again Brad. You are always one of my favorites. Thanks for all that you do.

dabunnisher
Автор

The fact you picked up this to teach us .. I'm grateful...

theophilus
Автор

i wasn't expecting a tutorial about this language anytime soon... i liked it!

corewwwi
Автор

I have always thought D to be the unofficial C++ successor. But after years of using D, I have to admit that D feels like a second broken C++. So I am really excited how Carbon goes.

Elite
Автор

31:01 `var` makes the parameter mutable, instead of immutable by default.

JuniorBloxHD
Автор

You are very fast. Carbon is a new and fresh thing right now and you already did crash course.

provokator-provocateur
Автор

This is the right way to design new programming languages. Interoperability with the incumbents is absolutely necessary.

philmarsh
Автор

Ah takes me back to junior year at college. I took C++ because I liked my first year C class. I liked C++ so much, I used the internet to learn python. Then I wanted to make a Windows app so I learned C#. Then web dev with JavaScript.

Now here I am because I heard about Carbon. Full circle. What a ride it's been.

InarusLynx
Автор

New languages that google came out with have actually seen growth and use cases like dart/flutter and go. So might be useful to learn relatively early on.

PlasmaSnake
Автор

No need for Carbon, go check Nim and Zig guys. Both have great interoperability with C and C++, both are really fast, both have the "issues" of C and C++. And you will have a lot of fun using them.

BrdButtwski
Автор

It would have been cool if you showed Carbon interoperability with CPP. That is the killer reason for this language. In the same way Kotlin can use Java.

JaskoonerSingh
Автор

to get code highlighting working, change the file extension to ".carb" it still compiles fine but you get code highlighting. :)

michaelshort
Автор

I see potential on this, gonna make a few stuff on this

coolmn
Автор

Thanks a lot for this great video man !

SaeedAhmed-wlpb
Автор

enjoyed this very much indeed keep up the good work:)

georgereasonproductions
Автор

Sounds like Carbon isn't actually a new language, but rather an exoskeleton that reinforces proper movement with increased strength.

Alexithymiander
Автор

If this goes the way that other google languages have gone this will most likely have a great future

codedbyshoe
Автор

Brad It was a Joke!!!
But seriously, You are great, Learnt so much from you and Love your videos ❤

sumitkumarsoni