Похожие чаты

Should I learn oop by c++? I know nothing about

oop

11 ответов

43 просмотра

I would recommend you first get confident in using templates before OOP in C++ as static polymorphism is nowadays more common than dynamic polymorphism

Md. Redwan Hossain- Автор вопроса
Ludovic 'Archivist' Lagouardette
I would recommend you first get confident in using...

Template means? I'm new in c++ but I coded in C for a long time.

Md. Redwan Hossain
Template means? I'm new in c++ but I coded in C fo...

Then forget C before you dive into C++ (I feel like I already told you to not think of them as the same thing)

Md. Redwan Hossain- Автор вопроса
Md. Redwan Hossain
Please say in English 🤣 it sounds like Chinese

When you will actually use class hierarchies will be moments you will regret and try to forget and then laugh about after a few years

There's usually two ways people code in C++, first is deliberately limiting yourself to near C like subset of features in C++ with some C++ conveniences like namespaces, better type system, organising functions inside of classes/structs, etc.This way of doing things is perfectly fine imo if and only if you know what you're doing (intent of avoiding OOP, etc) and it is a concious decision. It can lead to bad code so not really recommended for beginners. Second is using almost all available C++ features with the intent of writing good C++ code keeping it's strengths and weaknesses in mind. Here you'll need to let go from doing things like you would do in C. This allows you to use OOP, etc.

Md. Redwan Hossain- Автор вопроса
Manav | avoid unnecessary messaging me
There's usually two ways people code in C++, firs...

I think the second option is not for me because I am not going to choose c++ as my primary language. I like JS, golang, php as my motive is to be a web dev but in a better way. That's why I'm learning programming using low level languages like c and c++

Md. Redwan Hossain- Автор вопроса
Manav | avoid unnecessary messaging me
Well I'll suggest you don't use OOP in C++ then.

Should I learn oop with python then? Though I don't like python that much for its indentation system

Md. Redwan Hossain
Should I learn oop with python then? Though I don'...

Yeah any other language will do. python, javascript, etc. If you want to do OOP in C++ better to do it with templates. Also do know that OOP is falling out of favour as "The Way To Code" because of problems it leads down the line if you do crazy stuff.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта