Похожие чаты

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

oop

11 ответов

28 просмотров

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.

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

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

как правильно удалить сддм? прописал в etc/portage.use/plasma-meta -sddm , но при обновлении юзов мне предлагает поставить lightdm (ещё лучше 😡), добавил туда - display-manage...
REDis
25
Telos is at a pivotal moment. While ambitious projects like zkEVM and SNARKtor have shown promise, the delay in delivering EVM 2.0—a cornerstone of the ecosystem—is a growing ...
Trinidad
8
#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Except the wealthiest, people that buy crypto want to "cash out" at the end of the day, one way or another. Converting to fiat is craziness, converting to BTC is unwise. Hold ...
Erdelanax
2
Всем привет! Решаю 99 OCaml Problems и столкнулся со следующей проблемой (прошу палками не забивать, я OCaml практически не трогал до этого момента): open OUnit2 let create_...
К|/|pи/\/\ 6е3yглbIи
2
Hello guys, hope you can help me with a quick question. I've staked some ZIL using Atomic Wallet some while ago and wanted to claim my rewards and unstake it. Atomic Wallet sa...
Martin | #bornbrave
14
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
возможно ли как-то передать в электрон или таури медиа поток с рендера 2д движка? двиг запускается как dll, а дальше надо как-то отправлять рендер кодировать не подходит, зр...
Kyle Nekto
7
Карта сайта