169 похожих чатов

I know this is a flames question, but I'm tired

of seeing C vs C++ topics.

I'm a C programmer, but anywhere I go they tell me to just move to C++, and I don't understand why.

I admit that the last time I coded in C++, I left it for C# and my last C++ version was 11 if I'm not wrong.

Here are my opinions: I find C++ unnecessarily complex. Stuff you do in C++ with templates and classes, you can do it with a few methods in C - that might be the same for C++, but I find C to be more clear and above all straight-forward instead of trying to even guess what kind of *_cast<😠) you need. I also find C++ horribly unreadable at times and all that sugar may lead to errors.

I also noticed you more often need helpers / refactoring and thinking than in C. I mean, why do I need a class for simple tasks that don't require it?

Most examples I found about C vs C++ were specific cases for both languages where you don't or can't argue because it's both true and wrong.

Also people having hatred/contrasting opinions don't really help.

What's your points?

3 ответов

7 просмотров

C and C++ have different advantages and disadvantages, so just use whichever is better. If you're more comfortable with C you can continue using it unless you're like making a game or smr(im mostly using C for 5 years now)

I'd just say get used to get flamed for your language choice...its normal

C++ doesn't force you to create new classes

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

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

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
70
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
25
Книга Юрова В.И пойдёт для обучения?
Botsman
24
Люди добрые, помогите с идеями, потому что свои закончились. У клиента падает софтина в момент инициализации модуля OtlEventMonitor на RegisterWindowMessage('Gp/OtlTaskEvents/...
Михаил Усков
7
$params = [ 'formid' => 'feedbackForm', 'formTpl' => '@CODE: <form class="form-validate" data-id="ajax_form"> <fieldset class="margin-bottom-md"> ...
Pathologic
1
> Примечательно, что новый владелец удаляет из GitHub любые жалобы, указывающие на подозрительную активность или смену владельца, и, видимо, рассчитывает на то, что пользовате...
Alex Sherbakov
2
GridView fully ignored first parent(SizedBox), and take width from second parent(Container). How can I constrain GridView by first parent? Widget build(BuildContext context) {...
Hamster
1
Hey there Which is the best Linux destro for developers (coding)? To my research on reddit, they said Linux mint is good for mid level spec and Ubuntu for high Lev hardwar...
Wiz 🪄
11
И ещё вопрос: можно ли типа как на дос как-то запариться и с помощью прерываний выводить текст, вместо функции printf ?
НѣкъиⰘижєжєиꙁъвьсєсвѣтьноѣсѣтиѥсть•
34
а мы ещё не созрели до того, чтобы создать отдельный чатик про настройку редакторов?
Cheese Syrowiecki
16
Карта сайта