Message from @meratrix
Discord ID: 463068979662159884
I don't think relevancy should be desired for a country right now
Work on your country and improve as much as possible while keeping your heads down
True. It's kind of nice, no refugees want to stay here because no money and too cold.
Those that stay usually turn out to be the ones that care.
Russians still have Latvia and Belarus to annex before getting to us, so that's like 20 years of peace probably.
What a time to be alive <:covfefe:440543908846632980>
Sounds like a time to become economically powerful
And hit the scene like a boss
Such optimism... You must be American.
I am
What are you @Povilus ?
Lithuanian?
Yes. Is that bad?
Just don’t kill yourself
?
Lithuania has high suicide rates
I've thought about it, decided it'd be too much hassle ;D
Play basketball instead
Stereotypes are fun.
```cpp
#include <iostream>
int main()
{
std::ios::sync_with_stdio(false);
std::cout<<"a\n";
std::printf("b\n");
std::cout << "c\n";
return 0;
}
```
@meratrix what do you expect the output to be?
```cpp
std::ios::sync_with_stdio(false);
```
wut dis do?
compile and find out 😉
it's some cool shit
b
a
c
Okay, I'm assuming that first line does some fuckery.
Wait, why are you doing ios related programming
Blech
Also i hate when people dont use “Using namespace std;” and just type std: a bagillion times
You shouldn't use namepsace std; in actual software.
do you suggest `using std::cout;` or something?
`Using namespace std;` is bad for actual software, generaly fine for small side projects, because if you're using libraries and they happen to have them named the same, say they both have their own `String`, then it's going to cause issues when you `Using namespace String`.
polluting namespace is bad mmkay
clang-tidy/format are great
That method, `std::ios_base::sync_with_stdio()`, controls whether the standard stream objects `cin`, `cout`, `cerr`, `clog`, `wcin`, `wcout`, `wcerr`, `wclog` are synchronized with `stdin`, `stdout`, `stderr`.
If you turn synchronization off, you might get better performance in `cin`, `cout`, etc.
If you're just using the standard library, don't worry about `using namespace std;`.
But, if you're teaching someone C++, you don't want them to learn bad habits.
So yes, `using std::cout;` is a more controlled way to do it.
I agree, when I was taught c++, we were told to have ```Using namespace std;``` and it took me a while to get out of the habit of it later
I say, never overlook possible excuses for a programmer to copy-paste shit. If it gets too verbose, you can be a good fraction of programmers just copy-pastes shit to avoid typing.
```cpp
void dump_debug_stats(const Data& d)
{
using namespace std;
...
clog << "Data Type: " << setw(4) << hex << uppercase << setfill('0') << d.type << "\n";
clog << "\tpayload: " << setw(12) << setfill(' ') << right << d.payload
<< "\ttimestamp:" << setw(20) << dec << d.timestamp << "\n";
}```