Anonymous
print("hello world") is better
András
Yes but beginners will understand console.log(“Hello world");
But printing isn't the only beginners will be doing
Talula
But printing isn't the only beginners will be doing
if (a == 1) { console.log(“Hello”); }
Talula
If you going to say it’s complex because you’re typing something which is actually complex then it’s a problem.
Ilya
Yeah but using python you get a bad habbit.
You just can't avoid first language habits. You need just to minimize them.
Talula
JavaScript starts easy and goes into complication… python stops on the edge…
András
if (a == 1) { console.log(“Hello”); }
if (a==b) console.log('the same objects') else console.log('different objects') Ooops...
Talula
If a person wants to move into programming server (backend) or frontend (electron) or Mobile App (Natvie) or Front end of web (JavaScript for browser) everything can be done with single langauge..
András
hmmm, what do u know about go?
Hasan
Hello everyone
Talula
hmmm, what do u know about go?
Go can’t be used for frontend gui development, it’s nice and fast for server side.
Hasan
Do you know C #?
Hasan
Do you know C #?
Hasan
I have a few questions.
aselectronics
Talula
Do you know C #?
Yes but this is C/C++ room
Anonymous
Hello
Talula
I mean, for beginner.
Yes but when they decide what to do and what they are interested in, they can go into that field with one single language.
Anonymous
Write simple code using if else statement
Talula
Write simple code using if else statement
https://www.guru99.com/c-if-else-statement.html
András
If a person wants to move into programming server (backend) or frontend (electron) or Mobile App (Natvie) or Front end of web (JavaScript for browser) everything can be done with single langauge..
It's like use sticky tape to unite objects, create boat, waterpark and shield. Of course you can make everything, but is this the best way? I think no
Talula
It's like use sticky tape to unite objects, create boat, waterpark and shield. Of course you can make everything, but is this the best way? I think no
No it’s not C++ is best for CLI applications. Swift for iOS Kotlin for Android Python for Engineering/Research JavaScript for Web Go for Server Side…
Talula
So you learn all or one that does everything okay.
Talula
So you think smart programmer know only 1 language?
I don’t wanna consider myself smart… lol
Talula
And Rust?!
(Personal Opinion) Rust might be good but I don’t see it used as much.
Ilya
And Rust?!
For rusting hardware.
András
So you learn all or one that does everything okay.
Mobile development on js is pain Cli on js isn't the best idea Web is good if not perfecr Beckend with node is good(if not highload)
András
And Rust?!
It's like c++
MᏫᎻᎯᎷᎷᎬᎠ
(Personal Opinion) Rust might be good but I don’t see it used as much.
https://aws.amazon.com/blogs/opensource/aws-sponsorship-of-the-rust-project/
MᏫᎻᎯᎷᎷᎬᎠ
It's like c++
They have much in common, but "it's like" not the perfect way to describe the situation
Talula
https://aws.amazon.com/blogs/opensource/aws-sponsorship-of-the-rust-project/
True but I don’t really see it used much… I tried it but didn’t see any real advantage of it.
MᏫᎻᎯᎷᎷᎬᎠ
Talula
I’ll see it when it comes… and it can’t be used for everything.
MᏫᎻᎯᎷᎷᎬᎠ
Imagine you have an OS running knowing it has barely chance to leak memory
Talula
Imagine you have an OS running knowing it has barely chance to leak memory
Good but without the managed code? That’ll be cool
MᏫᎻᎯᎷᎷᎬᎠ
Talula
C# is managed code for .NET… thus doesn’t have many leaks.
Anonymous
Sup
Talula
With tradeoffs yeah
Heavy tradeoffs…
MᏫᎻᎯᎷᎷᎬᎠ
And Rust eliminated that
Deepak
How can I use friend function in C++
MᏫᎻᎯᎷᎷᎬᎠ
The only tradeoff here is fighting with the borrow checker
MᏫᎻᎯᎷᎷᎬᎠ
How can I use friend function in C++
you declare them inside the class class test{ friend void foo(); //Code }
MᏫᎻᎯᎷᎷᎬᎠ
then In the definition of foo You can use private/protected members inside class test
MᏫᎻᎯᎷᎷᎬᎠ
For non-static private members, you must at first make an instance of the class test t;
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
The differences are C++ is relatively reliable And Rust is 99% reliable, it will be 100% once you are not that idiot
Deepak
Thanks
MᏫᎻᎯᎷᎷᎬᎠ
Talula
Rounak
https://pastebin.com/z0P3twWG
Rounak
Rounak
Rounak
Can anyone say what's wrong here, why my test cases are not matching
Rounak
It's urgent
Rounak
Reply
Ilya
https://pastebin.com/z0P3twWG
This program cannot be even compiled. scanf("%d",&n); int a[n],b[n]; you can't declare an array with runtime-defined size.
Ilya
https://pastebin.com/z0P3twWG
And this program doesn't do anything close to what is needed.
Rounak
But i m facing issues in the test cases
Anonymous
Can anyone explain this a bit for me : cout<<34; cout is responsible for converting 34 into an appropriate format and then delegate the job of communicating data to its internal module which is a stream buffer and we can use cout.rdbbuf() to get a pointer to the internal module of stream buffer.
Anonymous
What kiska accident hua
Anonymous
Hiiiiii everyone any body can hear me
Loki
Hi guys, can anyone help me setting up c++ on neovim?
Anonymous
Anonymous
O ok
Loki
Tell me what prblm
I wanted to create a shortcut to compile my code on neovim. I compile my code on terminal with g++ -o; I want to create a shortcut on neovim to do that.