Ludovic 'Archivist'
Hey, I was typing something like, "I'm still on a slippery slope, on whether I should learn (not only C++, but generally) from lowest abstraction layer to the highest or vice versa." This got removed instantly.
Pavel
Sounds like that "Never Spam Bot"
Ludovic 'Archivist'
@uwubernetes learn programming instead of focusing too much on the language. Learn the abstractions themselves, learn how to use them when they are provided to you, and learn to solve problems
Ludovic 'Archivist'
C++ is nice in that you can learn dependent type based programing, monads and functors, imperative programing, functional programing, coroutines, reactive programing, and actor programing while only using a single language
Ludovic 'Archivist'
But I encourage you, learn the basics, then grab the 7 Languages in 7 Weeks book and learn some other languages, then make the abstractions from these things in C++
touhou
Thanks a lot for the advice.
Rose
That's 2/2 warnings; Lauren is banned! Reasons: 1: offtopic,ad 2: no...
Rose
Reported 𝐏꯭𝐈꯭𝐊͓𝐀꯭፝֟𝐂꯭꯭𝐇𝐔꯭ [8151271331] to admins.​​​​​​​​​
Vlad
f2 or del
Abbasi
Suppose the members are primitive types, Do they support move using std::move or the actual rvalue is copied instead?
If you define none or define the ctor(s) only, other special member functions will typically be auto generated. With private ctor(s) it's not possible to directly instantiate the class.
Ludovic 'Archivist'
If you define none or define the ctor(s) only, other special member functions will typically be auto generated. With private ctor(s) it's not possible to directly instantiate the class.
To note that private constructors are useful when an anti-pattern such as singleton is needed, or when using a builder function instead of a constructor
touhou
When would a singleton be needed?
For loggers and maybe a config parser which parses the config file and holds those values.
harmony5 🇺🇳 ⌤
Vlad
When would a singleton be needed?
When there's an obvious global state you don't want to pass around to gazillion classes as references
Vlad
So you make like a manager class or whatever that gives you the access
Pavel
When would a singleton be needed?
Logging or other debug tools, existence of which you can safely ignore in unit tests
harmony5 🇺🇳 ⌤
When there's an obvious global state you don't want to pass around to gazillion classes as references
Wouldn't you be still passing it as a reference, just hidden under a class?
Ludovic 'Archivist'
When would a singleton be needed?
Personally I prefer global variables, but singletons may be useful for any single state internals that may not ever be needed but may need to be built in line when they are needed In C++ the main difference between that and a global is that static initialization happens on first access (thread-safe) while global initialization happens on startup
Ludovic 'Archivist'
So a singleton is just a defered global
Vlad
Wouldn't you be still passing it as a reference, just hidden under a class?
Not having to pass the ref down the stack is handy tbh
Vlad
DI is basically the same as having a singleton and a manager just with +1 abstraction
Ludovic 'Archivist'
Not having to pass the ref down the stack is handy tbh
Yeah, I have never seen someone pass an ostream everywhere they expect side effects in C++ lol
Ludovic 'Archivist'
When would a singleton be needed?
Thread pools, connection pools, internal queues mainly
Anonymous
Which coaching institute is best in noida or delhi to teach full stack java development
Anonymous
Please tell me bro
Yusuf
How can I bring tls support with ixwebsocket in c++ I get the error “TLS support is not enabled on this platform.” I have sample cmakelist.txt
~
How can I bring tls support with ixwebsocket in c++ I get the error “TLS support is not enabled on this platform.” I have sample cmakelist.txt
I just found out about this library. Which one is better, this library or uWebSockets? I use uWebSockets in Node.js, and even its JS binding version with js worker threads equal to the number of cores is still very fast, faster than Go xd
Maxim
#ot
Rose
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
~
How can I bring tls support with ixwebsocket in c++ I get the error “TLS support is not enabled on this platform.” I have sample cmakelist.txt
Maybe you need to add this option(USE_TLS "Add TLS support" ON) I'm not quite sure, I just checked the cmakelist im the github repo and saw it :)
klimi
Nah. You trolling
Rose
Reported A.​ Sumant [7856727028] to admins.​​​​​​​​​
Abbasi
Tony Van Eerd is now Open To Work too! :|
Yusuf
Maybe you need to add this option(USE_TLS "Add TLS support" ON) I'm not quite sure, I just checked the cmakelist im the github repo and saw it :)
I added this and tried countless combinations like this but it didn't work, it always gave the same error or the program closed without working
~
I'm trying to make an exe that will run in windows so I need to use c++
The original uwebsocket is c++ library, where uwebsocketjs is the js binding. You may want to give it a try since it has more complete documentation included complete ssl setup
Vlad
You are the rando that asked "where are you from, dear" with 0 fucking context like you've caught up a creep virus
Vlad
So please stfu and keep it formal, "dear"
Vlad
And he;s a dude just so you know
Vlad
This is not 'her'
Vlad
Also re-read fucking group name
Vlad
No middle schooler drama in here pliz
Vlad
Cause you act like an ass and fucking offtop
Vlad
Instead of worshipping the glory of C++
Vlad
Despicable behavior
Vlad
Do you have a hardon on soft boys? Do we need to talk about this in C++ group? Maybe you should consult your therapist about this
Precious
Hello guys am new here
Vlad
I'm worse than admin. Admin would just ban you
Vlad
I shall humiliate you
Precious
Sup
Cool your side
Vlad
Cool your side
Do you have a question?
Vlad
select * from racial_slurs;
Vlad
Absurd answer to an absurd question with a hint of hostility
Vlad
It means next time I shall use it
Vlad
Shoe size icq smh
Precious
select * from racial_slurs;
Precious
Means
Vlad
I have omitted filtering cause it would be too offensive for yo ass
Vlad
Primary "not troller"
Vlad
I have helped more people in this chat than you have ever helped your mom
Vlad
So there's that
Ludovic 'Archivist'
Primary "not troller"
Listen, living under the bridge is not what makes the troll a problem. You are a troll. You are just a rather helpful specimen
Pavel
How many accounts Дарья Николаевна has? It's like 6th message? :)
Webster
good luck
aaswq1
Guys, please suggest a book on C++ that covers all of C++, but for those who have experience in programming, so that there is no need to explain what a variable is, what a cycle is.
Vlad
It's an overview for people with experience in programming
aaswq1
Bjarne has tour of C++
thank you maboy
Vlad
It does not cover EVERYTHING
Vlad
Though
aaswq1
It does not cover EVERYTHING
when i said all C++ i meant enough to say that i know C++
Vlad
It is what it is