Anonymous
Just LMAO
BinaryByter
Lol what
😂😂😂😂😂😂😂
BinaryByter
why do you need raii if you dont have classes anyway?
BinaryByter
We are talking the one that Bjarne invented
@Drazzy did he really? 😂😂😂
Anonymous
I do think though that an image viewer can be written just as well in C/C++ as in Pascal for that matter
But the gained experience by writing in pascal is less relevant for job market
Anonymous
BinaryByter
Sorry, but you're being stupid
DO YOU KNOW WHAT RAII IS?
BinaryByter
^ 😂
😂😂
Anonymous
Managing resources is really a hard topic, and there's a lot of ways you can improve managing resources with RAII
Anonymous
DO YOU KNOW WHAT RAII IS?
I do, you don't
BinaryByter
I do, you don't
tell me what raii is
Anonymous
tell me what raii is
Open the Wikipedia and read lol
Dima
What the fuck
BinaryByter
Anonymous
Dima, please ban him again
Dima
I told you to stop this nonsense
Dima
I wonder if Rose can mute
Dima
/mute
Dima
BinaryByter
Im helping beginners and he start destroying everything i tell them
BinaryByter
without a justification
BinaryByter
🤷‍♂
BinaryByter
Sure, i can shut up
Dima
I want to try mute thing
Anonymous
Do you really think you don't need RAII when you don't have classes?
GPT
And planning to get it on Desktop as well in future. With syncing
Anonymous
Mobile app. Android
It is offtopic actually You need to learn how to write Android apps It's usually done with Java or Kotlin
Victor D.
And planning to get it on Desktop as well in future. With syncing
If you're planning to migrated to Desktop you could use Xamarin
Anonymous
And planning to get it on Desktop as well in future. With syncing
For syncing you need a server with proper backend
Victor D.
Mobile app. Android
But this is #ot
Anonymous
If you're planning to migrated to Desktop you could use Xamarin
I think writing apps with native tools is better
Anonymous
Mostly
Wim
If you guys are so pushing that this is #ot, continue in #ot then instead of here?
Wim
Although Java for example is C-related
Victor D.
I think writing apps with native tools is better
I'm agree with you, but being practical is better to write less code, i mean that with native you'll have to write kotlin code for android and C++ code for a Desktop app
Dima
Keep it here
Anonymous
Lol it is not It has different idioms, syntax, etc
Anonymous
It has different problems
Anonymous
Java really differs from C/C++
Anonymous
C++ has templates, Java has generics, for example At the first glance they seem similar, but they are not
Wim
They both toke two different roads very early on, which doesn't mean they aren't related
Anonymous
Ok, from C Java inherited the idea of syntax, that's all
Victor D.
Probably @Drazzy meant that they are Syntatically related
Anonymous
I wanted a holywar😔😔😔
Dima
Anonymous
And planning to get it on Desktop as well in future. With syncing
So for mobile client use Kotlin or Java. (Kotlin is a better choice) For backend you have variety of choices — Java, Kotlin, JS, PHP, Python, Go, even C++ (but it is harder) For desktop you can use C# (Windows-only), C++ with Qt (allows to write crossplatform code).
Dima
Anonymous
Anonymous
Even Yandex uses it somewhere
Dima
this is awful hahaha
Anonymous
this is awful hahaha
VS Code is ok, actually
Dima
I am talking about this hipster environment and languages
Victor D.
I am talking about this hipster environment and languages
😂 A friend of my call them like that
Victor D.
Hipster technologies
Dima
“technologies"
Victor D.
Technology to mean enviroments and languages
Anonymous
Is it ok to use forceinline for functions with single return statement?
Dima
Why not?
Anonymous
Depends, but probably not a good idea
Ok How to get away with ODR violation if I want to have header-only free functions?
Dima
Depends, but probably not a good idea
Why it’s not a good idea tho?
Mihail
Why it’s not a good idea tho?
If the function is long you'd just increase executable size with zero to no benefit
Mihail
Sorta like -funroll-loops
Anonymous
If the function is long you'd just increase executable size with zero to no benefit
The function is not recursive and has single return statement in it with not long expression
Mihail
The function is not recursive and has single return statement in it with not long expression
I mean it's still sort of premature optimization, but you can always just profile it and see if there is a benefit
Anonymous
wat?
Anonymous
Lol, you have problems with math
Anonymous
5e15 = 5e+15 = 5 * 10^15
Anonymous
Thank u
Hasan
Hi
Anonymous
Hi, there is nothing wrong here right? https://pastecode.xyz/view/4e6e9fc3
Anonymous
Is "The C programming language" by Dennis Ritchie and Brian W Kernighan a good book ? Im not an absolute beginner.