Do You Like C or C++ More ? #programming #coding #lowcode

preview_player
Показать описание

👨‍💻💬 Do you prefer C or C++? 🤔#C #programming #coding #developers #tech

🔥🔥🔥 SOCIALS 🔥🔥🔥
Рекомендации по теме
Комментарии
Автор

c++ is like a continent full of countries. everybody uses a different language derived from a root language. you can kinda understand but not really

ThePandaGuitar
Автор

I don't mind C++ code I wrote because I only use the subset of features I like and understand. The biggest problem of C++ is that everyone uses a different subset of the language and so trying to learn a new program every is like learning a new language.

norhamsfinest
Автор

With macros, every C++ project becomes it's own programming language.

happyfase
Автор

People say you can simply avoid using the ugly parts of C++. The problem is that you still have to read and use code written by people who DO use those features.

ISKLEMMI
Автор

Low level is great because it feels like you understand everything but abstraction is great cause you can get stuff done quick

rkroll
Автор

Many people told me Im the smartest guy that they ever met. So I bought an Unreal Engine C++ course, but the only thing I learned was that they lied to me.

KLANGMUSIC
Автор

"You can tell what every line of code is doing"

*laughs in compiler optimizations*

bobson_dugnutt
Автор

I think C++ makes sense in a large project where the abstractions can make code easier to read and write, but I admire how simple C is and how you are more or less writing code exactly how the CPU will execute it.

jackdavenport
Автор

This in general is a "problem" with abstraction. You trade code that is more traditionally readable and more concise for not immediately knowing low level details of what does what.
Which is better is very dependant on the use case and personal preference.
For most sub millisecond usecases I've had to deal with when writing stuff with C++ using some linear algebra library that does operator overloading it was more than fast enough for the job while making it just easier to write simple vector and matrix maths.

sinom
Автор

As somebody who writes code in both C and C++, there is a huge difference - C++ provides you high level programming tool with lots of goodies while allowing to go low level when needed. So it has a great value for complex systems especially with tools like RAII, destructors, resource management and smart pointers.

C is way simpler language but the code is way more verbose. It makes somewhat harder to do OOP or have simple data structures. It is requires whey more discipline since there is no automation whatsoever

artyombeilis
Автор

I like c++ because I can choose how much I want to abstract if at all. And once you get experienced with it, you know what's underneath the abstractions too and can think of it in both ways.

aliendroid
Автор

You're obviously correct. You read C, you know what it does, C++ not so much. But that's the thing with OOP and higher level. That's the point. You don't really care to know how a tire is made. You just wanna use a tire to swap it for your flat tire in your car. In the same way, I don't wanna build a doubly linked list in C yet again, I'd rather just use something like a C++ std::list or whatever suits my problem.

EscapeVelocity
Автор

You could say the same for C. It is also an abstracted form of assembly.

HoneyBunny-oq
Автор

I like C++ more as long as it's used for the initial goal of "C with classes"

CrittingOut
Автор

"'Do you like C or asm more?' Dude, 100% like asm more, now this gonna probably come off as a skill issue, and it might, but, I don't like C because I think it abstracts away a lot of how the computer actually behaves. The reason why I like asm is because I can tell you exactly what every line of code is doing on the actual hardware."

lukewatson
Автор

Even though I dropped out, a moment of my computer science course that permanently changed the path of my career is when we compiled a non-trivial C program by hand. Since then I’ve worked a lot on compilers, with low-level hot loop optimisation (including giving talks/workshops on working with the compiler to produce faster code), and on real-time signal-processing.

ZombiesWerePeopleToo
Автор

In my personal projects I generally just create cpp files but write mostly C code and occasionally use C++ features where I need them and where I see a clear benefit over C counterparts. That's also why I really LIKE C++. You (mostly) aren't forced to use C++ features. Theoretically if someone really wanted, they could write a program in C++ but only using C features without anything from C++. Also I think there are good uses for both C and C++. For example when I'm writing more low level stuff (like drivers, internal os stuff etc) I like to use C. But for example when I'm writing code for games or stuff with UI, I prefer C++ and the OOP aproach instead of functional. This is my personal opinion, but writing game stuff or UI stuff not in OOP is pain, and on the other hand writing low level stuff in OOP is pain too, so I think everything has it's own use cases

zonea
Автор

Did a lot of C++ programming, and the first lesson I learned was that operator overloading is overrated and should be used *sparingly*. It just confuses things.

UteChewb
Автор

Yess! C is quite readable and understandable. But Cpp has so many variants and features that each project is effectively written in it's own language. At least thats how I feel about it.

jamesjamey
Автор

rust can also heap allocate with the minus sign lmao

mintx
visit shbcf.ru