@buncol
Still mentioning; things like a polymorphic pointer it is the same with memory management.
You also have advanced memory management in C ++, and in C # or PHP it is much more truncated and many of these things are simply done“ underneath” so you don't have to deal with it.
Therefore, C ++ is a language generally used to write operating systems, robotic automation systems, AI, etc. It's a very hardware language’ new, closely related to hardware’ m, it's great for this.
In turn, however, for example, for web development, C ++ is suitable as a cunt grease. Patting web development, backend of websites in C ++ is generally a stupid job, it is done a lot longer, crudely, because C ++ does not have many of these“ shortcuts” what PHP has, among others.
Example, file operations:
PHP:
<? php
$ file = fopen ("file.txt", 'w +');
fwrite ($ file, "textn");
fclose ($ file); // close the file
Thank you, goodbye, after the problem, I added something to the existing file in 3 lines of code.
Yet another example, in PHP, when you use an array, you do not have to be afraid that you have given too little target number of the array elements in its initialization, you do not have to worry that reaching the new index value will crash you with an error. For example in C #:
string [] tab = new string [] {" 1 "," sd "};
tab [2] = "new";
something like this will throw you an error:
Run-time exception (line 11): Index was outside the bounds of the array.
Stack Trace:
[System.IndexOutOfRangeException: Index was outside the bounds of the array.]
at Program.Main (): line 11
In PHP, on the other hand, you would simply do:
<? php
$ tab = ['1,' sd '];
$ tab [] = 'new';
Thank you, after the problem, the new item will add itself and the array will automatically increase.
And in C ++, that's all, I guess it would be even more work. These are the nuances that compel the programmer to stay longer“ he prayed” work on something that is obvious and which is tiring, crude work, because they will fuck some mistakes if he doesn't take care of something.
It takes longer to produce the code, it is exhausting.
This is not the case in PHP, and it takes care of where you really need to care, i.e. where something with the logic of the system can generally go wrong. And as a result, in C # in many of these places you need to care more often than not in the code
the most important thing, i.e. the logic of the system, you only care about crap and stupidity, like just checking if there is a key in the glossary, because if it exists, and you add the same, the program will fuck you - okay, but being aware programmer, you know that there will be an overwritten key in this line if it already exists - you know it, you realize it, you are not stupid. Same on arrays, you KNOW that adding a new array element will increase the size of the array - you KNOW it. In turn, in C # you will get an error, because you initialized an array with 2 elements, and you add a third one, i.e. there will be an IndexOutOfRangeException. And if you forget about it, you forget it's like that here - the program will f ** k you off. And that f ** k on things that are generally of little importance, because some deeper system logic you are implementing is more important, and in C # you generally sink over FUCKERS and waste your time.
I think that now I have explained well why I like PHP so much, and why other languages have always pissed me off more or less. I think I have explained it well now.