BinaryByter
lol
Mihail
Or if you don't have an understanding yourself
Mihail
Sure
BinaryByter
okay, sure, i'm sorry, oop is a small part of C++
BinaryByter
the std:: lib is not official to C++, right?
BinaryByter
because else, it wouldnt use a class on every second occasion
Mihail
because else, it wouldnt use a class on every second occasion
That's true for the interfaces of the library
Mihail
Which is like the tip of the iceberg
Mihail
Anyways not looking to argue over someone's ignorance
BinaryByter
have you implemented std:: before?
BinaryByter
how much of what you implemented actually was outside of a class?
BinaryByter
also - again: if there are three paradygms and OOP is 1/3, wtf do you call big then?
BinaryByter
or even wtf do you call not small?
Mihail
Over 2/3 is big
Mihail
Anyways ot
BinaryByter
you have weird definitions
Mihail
you have weird definitions
Seems to me like you're the one with the weird definitions
Ludovic 'Archivist'
functional is a crap
That is likely why the newer standards add more and more of it
Ludovic 'Archivist'
Likely that no-one likes type safety, monads and coroutines
Ludovic 'Archivist'
This is why we added lots of these and are still doing so
Ludovic 'Archivist'
Same goes for std algorithms, we made that because we hate to reuse code for different contexts
Etachi
guys i need Rust language group in telegram ,does anyone have ?
Ludovic 'Archivist'
guys i need Rust language group in telegram ,does anyone have ?
http://lmgtfy.com/?q=Rust+programming+telegram
Ludovic 'Archivist'
😁👌 Thanks mate
I feel that you don't understand the whole magnificence of my disappointment
Etachi
I feel that you don't understand the whole magnificence of my disappointment
i didn't know can found with search in search engine
Etachi
thanks anyway
Ludovic 'Archivist'
i didn't know can found with search in search engine
Saying that means that you also haven't read the pinned message about how to ask questions
Anonymous
Can someone help me with my code? I cant figure out how to do it.
Anonymous
Anonymous
How can I run the if(RoomsBooked >= 10)
Anonymous
When I type yes, the program will just exit.
Nikolas
well RoomsBooked is 4
Nikolas
why should it enter the if?
Anonymous
why should it enter the if?
If the ApplyDiscount is equal to yes, it should do the under if statement. But if the applydiscount is equ to no, then there will be discount be applied.
Nikolas
after the "Applydiscount == yes" you have only one if, and its branch executes only if roomsbooked is >= 10
Nikolas
but roomsbooked is equal to 4
Nikolas
there is no code that should execute
Anonymous
Oh yeah, didnt see that clearly. Thanks bro
Hi! What is the right boolean variable naming? isButtonEnabled or buttonIsEnabled? I think if (isButtonEnabled) looks more readability
BinaryByter
choose one
BinaryByter
but once you have chosen one, keep all the names the same
BinaryByter
the pattern doesnt matter too much
BinaryByter
unless you keep switching patterns
Anonymous
Snake case is_button_enabled
Nikolas
isButtonEnabled makes more sense to me
Anonymous
Or Camel case IsButtonEnabled
Nikolas
since it sounds like a question
Anonymous
Use anyone that suits but stick to one the whole time
BinaryByter
isButtonEnabled makes more sense to me
weirdly enough, buttonIsEnabled makes more sense to me. This shows, that talk about such matters is just "bikeshedding". Just choose one, and ¯\_(ツ)_/¯
Anonymous
I've seen some use is_Button_Enabled; weirdos
BinaryByter
snake case is weird already, IMHO
BinaryByter
but snake case with pascal case or camel case is horrible
BinaryByter
kill that guy please
olli
- functional - oop - procedural
depending on what you consider a paradigm C++ has way more, e.g. https://en.m.wikipedia.org/wiki/Comparison_of_multi-paradigm_programming_languages So the OO part becomes even smaller :)
Anonymous
Wow it's a long going debate
Anonymous
Guys, which is correct?
Anonymous
Adding the discounts and multiplying it to the totalcost?
Anonymous
Or total cost *discount1 * discount 2?
BinaryByter
we don't know what you want to do
Rekha
Why switch statement doesn't use float?
Dima
Why switch statement doesn't use float?
because think of it, what’s the profit. and it’s bad to compare floats that way
BinaryByter
Why switch statement doesn't use float?
switch doesnt work like you think it does
Farhan
Mostly because the floating point numbers are slightly imprecise and take more time on operations than int type variables/numbers. ... This is why float comparison is not recommended even with if-else conditions. As switch is also another form of if-else, it's not allowed to avoid further bugs.
Anonymous
Why switch statement doesn't use float?
How can you assign case values in float?
Dima
Anonymous
Switch isn't as same as if else, it just compares the condition given with every case
Rekha
Thank you guys