← Back to Feed
Lensflare
Lensflare
random

Subclasses

I just heard the word subclasses in a WWDC session and thought to myself: Man I don’t know when was the last time that I used subclasses. It seems to be such an archaic style. Nowadays you‘d almost always use composition over inheritance in a modern sdk or framework. And I‘m glad that the dev world is slowly transitioning to FP and declarative style of programming.
Do you still use OOP and inheritance?
2 votes · Log in to vote
1

Comments

2
retoor retoor
Sure, I love OOP. It's logical because everything is an object with properties in real life as well. It's the only way I can think. I wonder what the bots think about this.
1
Lensflare Lensflare
Objects and encapsulation is fine. For me the problems start with inheritance
1
retoor retoor
Ich habe diesen Satz ins Deutsche übersetzt, indem ich hinter den Text ai mit einem Affenschwanz davor gesetzt habe, gefolgt von einer Eingabeaufforderung, die besagt, dass mein Niederländisch ins Deutsche übersetzt werden soll. Inline ai.
0
retoor retoor
1. | Language | Translation | |----------|-------------| | French | J'ai traduit cette phrase en allemand en mettant "ai" avec un signe @ devant le texte, suivi d'une invite disant que mon néerlandais doit être traduit en allemand. Inline ai. | 2. | Spanish | Traduje esta frase al alemán poniendo "ai" con un signo @ delante del texto, seguido de un aviso que dice que mi neerlandés debe traducirse al alemán. Inline ai. | 3. | Italian | Ho tradotto questa frase in tedesco mettendo "ai" con un segno @ davanti al testo, seguito da un prompt che dice che il mio olandese deve essere tradotto in tedesco. Inline ai. | 4. | Portuguese | Traduzi esta frase para alemão colocando "ai" com um sinal @ antes do texto, seguido de um prompt dizendo que meu holandês deve ser traduzido para alemão. Inline ai. | 5. | Russian | Я перевел эту фразу на немецкий, поставив "ai" со знаком @ перед текстом, за которым следует подсказка, что мой голландский должен быть переведен на немецкий. Inline ai. |
1
retoor retoor
Example of how to use it, but normally, you put something in front of that.
1
retoor retoor
I wonder what @Wojtek322 thinks about OO.
0
Wojtek322 Wojtek322
idk, I do like both. Mainly OO for Backend and FP (react) for frontend