Anyone here still using C or C++ and why?

Stability, not to be decompiled, system independent, rock solid, simply classic.
You use both correct? Is there any reason to use C over C++ given that C has no object orientation (at elast in its well known form if I remeber correctly)?
 
You use both correct? Is there any reason to use C over C++ given that C has no object orientation (at elast in its well known form if I remeber correctly)?

Yes, I use both, but only due to downwards compatibility reasons.

The new projects I started since 2018 or so are 100 % C++ already.

Another advantage: Customer X asks about a social media bot, high performance, but "as cheap as possible". No problem. He will receive the compiled/linked executable file to do everything, being happy, but he won't be able to start a copycat with it (no source code available, except he pays for the source code). If I would have delivered a Python script...
 
Yes, I use both, but only due to downwards compatibility reasons.

The new projects I started since 2018 or so are 100 % C++ already.

Another advantage: Customer X asks about a social media bot, high performance, but "as cheap as possible". No problem. He will receive the compiled/linked executable file to do everything, being happy, but he won't be able to start a copycat with it (no source code available, except he pays for the source code). If I would have delivered a Python script...
I decompiled Python game as a kid. Not much was needed.

Most people just do web apps which can't be decompiled. But can be hacked.



----

Everyone makes use of ffmpeg written in C. Without it, a bot for a lot of social media platforms would be a piece of shit. Indeed, you use that power even if you don't realize it.
 
Force of habit, excellent editing and debugging capabilities in Visual Studio. If you remove the bottleneck of typing by learning blind typing, you don't lose much by having to write more text. In the end, more time is spent coming up with algorithms or program structure than actually typing lines. I calculated my type time to take around 5% of development time, so why should I bother with optimizing line count when I win at debugging? Also, a strong typed language prevents many bugs during compile time. C could be preferable to C++ for 1 man or small team projects (but then again, Linux kernel, which is a gigantic project written by 5k people, is written in C). C++ allows to impose coding restrictions which makes f-ing up harder, but there's this tendency to overthink and ponder which language feature to use to achieve this or that (because there's too many). C is super straightforward so you end up thinking only about what's needed to get things done.
 
I learned to code C++ when I was 14.

Many years later, after scripting some stuff in PHP, I asked myself why Facebook released HipHop (a PHP to C++ converter on a low level).

I remembered my C++ skills, thought about the Facebook structure, and I continued with C++ instead.
 
I learned to code C++ when I was 14.

Many years later, after scripting some stuff in PHP, I asked myself why Facebook released HipHop (a PHP to C++ converter on a low level).

I remembered my C++ skills, thought about the Facebook structure, and I continued with C++ instead.
Pretty wild, learning C++ at such a young age. Its one of the best if not the best (with C) from what I know, so it seems to have been a well paid off investment on your side.

Do you have experience with Rusk? I read/heard much about it, similar to Huskel, but not sure what to make out of them, since they are less popular than the current perfomance giants C/C++
 
Force of habit, excellent editing and debugging capabilities in Visual Studio. If you remove the bottleneck of typing by learning blind typing, you don't lose much by having to write more text. In the end, more time is spent coming up with algorithms or program structure than actually typing lines. I calculated my type time to take around 5% of development time, so why should I bother with optimizing line count when I win at debugging? Also, a strong typed language prevents many bugs during compile time. C could be preferable to C++ for 1 man or small team projects (but then again, Linux kernel, which is a gigantic project written by 5k people, is written in C). C++ allows to impose coding restrictions which makes f-ing up harder, but there's this tendency to overthink and ponder which language feature to use to achieve this or that (because there's too many). C is super straightforward so you end up thinking only about what's needed to get things done.
I will start with C then I think, since its recommended usually to understand what is going on inside the PC, althouhg albeit not as well as assembly or binary, but still it will proably give a better grasp than higher level languages like Python, Javascript etc.
 
C++ because I need both performance and stability.

A language is like a tool in the toolbox. You need the right one for the job. However, that means you need many tools so it’s always good to be well-versed in many languages.

Plus C++ teaches you memory management, etc, so you learn good habits.
 
Yes, I use C++ because it was the language I learnt from the start and it is just classic and it also have performance and stability.

So it is a win win
 
I will start with C then I think, since its recommended usually to understand what is going on inside the PC, althouhg albeit not as well as assembly or binary, but still it will proably give a better grasp than higher level languages like Python, Javascript etc.
It's not for understanding. (I mean, it is but it's a side effect :P) It's for maximum power you had in the 90s or 80s or 70s and people in power have idiots underneath them and those idiots create tools for idiots. I hope that's clear why the whole industry looks the way it does. There's always some genius and cretin in the same room. :p Sometimes a genius becomes a cretin, and sometimes a cretin becomes a genius. This world is changing quickly.
 
Back
Top