Тёмный

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

Brian Will
Подписаться 96 тыс.
Просмотров 19 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@OggerFN
@OggerFN 3 года назад
I really like these videos. Nothing knew but solid, language unspecific basics. That's what cs university should be like.
@MenkoDany
@MenkoDany 5 лет назад
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 5 лет назад
11:18 I think you got your Whale and Dolphin mixed up in the commented green text.
@noahwilliams8996
@noahwilliams8996 5 лет назад
I think this could benefit from an explanation of how these work internally.
@jaehyi2009
@jaehyi2009 2 года назад
Excellent tutorial!
@valcron-1000
@valcron-1000 5 лет назад
Solid content. Very clear explanations.
@BruceRicard
@BruceRicard 4 года назад
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 5 лет назад
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 5 лет назад
yes
@luckyboy20021
@luckyboy20021 5 лет назад
you're the best
@MachinesTakingOverTheWorld
@MachinesTakingOverTheWorld 4 месяца назад
I am a SeaCreature!
@Dan-gs3kg
@Dan-gs3kg 4 года назад
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 Год назад
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.
Далее
Every Programming Language in 15 Minutes
14:47
Просмотров 111 тыс.
Пчёлы некроманты.
00:46
Просмотров 24 тыс.
ARRAYLIST VS LINKEDLIST
21:20
Просмотров 64 тыс.
Rust Data Modelling Without Classes
11:25
Просмотров 174 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 89 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
Replacing the Unix tradition
40:46
Просмотров 126 тыс.
Every Programming Language Ever Explained in 15 Minutes
15:29
4 Programming Paradigms In 40 Minutes
41:28
Просмотров 490 тыс.
Hardware Basics
25:34
Просмотров 97 тыс.
The Programming Language Guide
24:25
Просмотров 483 тыс.