professor
Why you should mix both languages? More bugs , less memory management
Stephanos
c++ is A DIFFERENT programming language
Stephanos
there is literally no reason in starting with C
Anonymous
Well, you're likely right
professor
You could never touch c or c++ or coding in python , and program in c or c++ . Logic programming is fundamental
L0kzy
I don't see any reason to learn cpp am already happy with C even if that makes it code verbose.
Anonymous
I don't see any reason to learn cpp am already happy with C even if that makes it code verbose.
Do you know most common reasons why we sometimes can see a mix of C and C++?
Anonymous
I think one of the reasons is when one wants to use classes 😁
Stephanos
in my case its TMP and embedded target at the same time :D
professor
This is not the main core feature
professor
It’s more than classes
L0kzy
professor
I am lazy to write things twice
L0kzy
libc and GLib that's all
Pavel
Do you know most common reasons why we sometimes can see a mix of C and C++?
- Legacy code written on C - C programmers working on C++ projects
Pavel
If cpp would be that good they would have rewritten kernel.
Should they rewrite the kernel on every good language?
professor
This guy is language based instead of logic programming
Anonymous
...
Anonymous
In golang?
void
In golang?
JavaScript)
void
JavaScript)
* banned *
Anonymous
Should they rewrite the kernel on every good language?
python is a good programming language too but for its purposes. C++ seems to be applicable for everything, so why not? They've probably never thought about rewritting the kernel
professor
What is the best thing you could do in golang?
klimi
Guys...
I_Interface
Guys...
Martin, just purge it)
klimi
Martin, just purge it)
Too lazy to find where it starts tbh
I_Interface
Y
I_Interface
Clear from there
klimi
I don't think it needs purge
I_Interface
why so?
What is more friendly for newbie C or C++ for now ?
I_Interface
I think it's C++
void
why so?
To my mind, C++ have more useless features for the beginners, so they will don't know what to learn first
Mihail
Anonymous
why so?
Not sure I follow your question, but... that's what I did back in the days when I wanted to start learning C++. But now C seems to be enough for me
klimi
The most import thing is logical thinking
void
And C have nothing except basic control flow and functions :D * that's why I love C *
Mihail
Not sure I follow your question, but... that's what I did back in the days when I wanted to start learning C++. But now C seems to be enough for me
yes but if he learnt C and then did C++, well that the reason we still see such bad C++ code. He wouldn't know what a range-based for loop is. He would still be using indicies to iterate over containers and not using itertors like he should
Mihail
you'r just advising him to use C in C++ and that's very wrong
klimi
C++ is better language for modern days but you need to know c for low level
klimi
If you don't want c , asm is fine
Mihail
C++ is better language for modern days but you need to know c for low level
what is there that would require C and can't be done in C++?
Anonymous
I saw people learning C++ and writing literally C code
Pavel
For example?
Rust, Haskell, golang, haxe, Swift, C#
Mihail
it happens because of advice such as go learn C first
L0kzy
Learn c and spend rest of you time learning and implementing algorithm that's why c is such a small language it doesn't come with the bells and whistles
Anonymous
Hey folks!!
Anonymous
Where can I get the implementation of string class in cpp
Mihail
sounds like a great idea
Mihail
Where can I get the implementation of string class in cpp
look at libcxx or libstdc++ source code
Anonymous
it happens because of advice such as go learn C first
No. They choose C++ as their first programming language and code they write is just C code
Mihail
which it's not
Anonymous
They can read that themselves on the internet
Mihail
GLib?
ok now you're halfway there. just missing templates, generic code and many other compile time features, to reduce runtime
Anonymous
Can I get a direct link?
Mihail
or duckduckgo.com
Mihail
don't be lazy
klimi
Thats not that much direct
Anonymous
Don't mess here
Anonymous
there r a lot of files
Anonymous
where to find