Every programming language in (another) 15 minutes: data types

  Рет қаралды 18,634

Brian Will

Brian Will

Күн бұрын

A very brief survey of the most essential concepts about data types common to most programming languages. Follow up to • Every Programming Lang...

Пікірлер: 19
@OggerFN
@OggerFN 2 жыл бұрын
I really like these videos. Nothing knew but solid, language unspecific basics. That's what cs university should be like.
@MenkoDany
@MenkoDany 4 жыл бұрын
I thought I wouldn't learn much from this video, but I actually learned a lot because it connected some ideas in my head and revealed relationships that I haven't seen before, great content!
@cacheman
@cacheman 4 жыл бұрын
11:18 I think you got your Whale and Dolphin mixed up in the commented green text.
@valcron-1000
@valcron-1000 4 жыл бұрын
Solid content. Very clear explanations.
@jaehyi2009
@jaehyi2009 2 жыл бұрын
Excellent tutorial!
@noahwilliams8996
@noahwilliams8996 4 жыл бұрын
I think this could benefit from an explanation of how these work internally.
@luckyboy20021
@luckyboy20021 4 жыл бұрын
you're the best
@BruceRicard
@BruceRicard 3 жыл бұрын
Beware that inheritence does NOT imply sub-typing, in general. You can in theory have a Dog class inheriting an Animal class such that you cannot upcast an Animal into a Dog.
@MuhammadBinZafar1
@MuhammadBinZafar1 3 жыл бұрын
Suddenly inheritance & interface & sub-type started to stop making senses.
@Madsy9
@Madsy9 4 жыл бұрын
Good video and explanation overall. Only constructive criticism I have is the emphasis on downcasting which is generally a bad idea, although I can see why you went that route. A better way to get access to the concrete type is to put the code that depends on it somewhere with more context: Where you have access to the this-reference. I'm assuming here that your videos here is only about languages with single-dispatch, since you mentioned this-references. For single-dispatch languages with a 'this' or 'self' reference, you would typically use what's called the Visitor pattern or at least something of the same flavor. A situation where this is useful would be in the example you mentioned with an array or collection that uses subtyping to get around arrays being homogeneous. A visitor implementation would allow you to perform some operation on the array that requires knowing the subclass of each individual element, but be more maintainable and less error-prone than downcasting.
@zxxczczczcz
@zxxczczczcz 4 жыл бұрын
yes
@Dan-gs3kg
@Dan-gs3kg 3 жыл бұрын
The funny bit is that this is heavily biased towards Haskell's opinions on types, and polymorphism. Not a bad thing, but gives an argument for replacing OOP with FP, while clarifying why OOP leaves you exposed to various problems.
@0ptikGhost
@0ptikGhost 2 жыл бұрын
The video uses terminology that is particularly popular in functional languages but that terminology is still appropriate and correct for imperative languages. In fact, I can't think of a single imperative language for which the statements made in this video are incorrect.
@firephoenixgamers8590
@firephoenixgamers8590 Жыл бұрын
@@0ptikGhost ^^^^^
@raianmr2843
@raianmr2843 9 ай бұрын
This is like going to a biotech conference and complaining about why everyone is pro-vaccine. Type theory is a research domain led almost entirely by functional programmers and researchers. Alan Kay's OOP instead advocated for extreme late-binding and dynamic typing. C++, Java, and C# merely inherited the need for at least a barebones type system from C.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Hardware Basics
25:34
Brian Will
Рет қаралды 94 М.
请善待你的娃娃第二集 #naruto  #cosplay  #shorts
00:52
佐助与鸣人
Рет қаралды 23 МЛН
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Every Programming Language in 15 Minutes
14:47
Brian Will
Рет қаралды 110 М.
4 Programming Paradigms In 40 Minutes
41:28
Coding Tech
Рет қаралды 486 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 208 М.
Fake Antivirus being used to sell real McAfee
8:06
The PC Security Channel
Рет қаралды 21 М.
Data Structures (1 of 2)
20:39
Brian Will
Рет қаралды 71 М.
Functional Programming in 40 Minutes • Russ Olsen • GOTO 2018
41:35
GOTO Conferences
Рет қаралды 800 М.
Unix system calls (1/2)
45:16
Brian Will
Рет қаралды 420 М.