Raul
Read from the start the discussion and read your question again and my original point...
You're trying to prove that C++ is all OOP by stating that a function std::cout? What about printf? Someone wrote that for you.
Talula
You're trying to prove that C++ is all OOP by stating that a function std::cout? What about printf? Someone wrote that for you.
cout is a method of object std... so it doesn't matter if you intensiate the class or not, you are using OOP...
Talula
You're trying to prove that C++ is all OOP by stating that a function std::cout? What about printf? Someone wrote that for you.
I'm not trying to prove anything, you're trying to prove I'm wrong and talking about python? Why?
Raul
You can write object oriented C without C++. I wouldn't recommend it since I believe OOP is evil, but who am I to say how one should program?
Raul
I'm not trying to prove anything, you're trying to prove I'm wrong and talking about python? Why?
My point is every language has their own libraries and functions. That doesn't make their language Object Oriented Programming specific. I bring up Python and JS because they get the most praise for being functional languages. Especially Haskell. But each one of these has their own libraries that someone else wrote. It's how you use them that determines the difference between OOP and Functional programming.
Talula
My point is every language has their own libraries and functions. That doesn't make their language Object Oriented Programming specific. I bring up Python and JS because they get the most praise for being functional languages. Especially Haskell. But each one of these has their own libraries that someone else wrote. It's how you use them that determines the difference between OOP and Functional programming.
Do you know what is an object? It's not a function to start with... objects are something different... 1. Objects created could be pure variable with mix of methods 2. Objects can be like using in C# or even C++ (when programming in Windows or GUI) 3. C cannot create that kind of objects as you have to call functions and handle created Windows yourself.
Talula
So I would suggest you learn a bit of GUI programming and then see the difference between C and C++, right now with "Command Prompt" programs you're unable to understand the power of C++.
Raul
So I would suggest you learn a bit of GUI programming and then see the difference between C and C++, right now with "Command Prompt" programs you're unable to understand the power of C++.
Lol bud, my current job I am programming a Graphical Interface to render Microscopic Images for biologists. I know the power of C++. I am just telling you, that C++ is not Object Oriented C. C++ is C++, it is it's own language. If you want to suffer and write OOC you can, but C++ gets that misconception that it is just C but Objective. Which is not true.
BinaryByter
Gui is 'rendering of image that adapts to context'
BinaryByter
nothing more nothing less
Raul
^
BinaryByter
In the end, it boils down to framebuffers
Raul
Graphical User Interface.
BinaryByter
on machine level code, everything is just bits anyway
Dima
you know everything right..
Dima
so just answer yourself, "sir smart”
Prometheus
Who was that directed towards?
Raul
on machine level code, everything is just bits anyway
Just write bits on disk by hand, ez.
Talula
objects CAN be functions. Look at the es5 hack for OOP => constructor functions
No everything is nothing but charges... actually everything is just electrons... you could go deeper... but overall function != Methods... why? Because methods are part of an object, without object being created you can't call the method.'
Talula
how about static methods?
You can't just pick one item and say "see iron doesn't float"... functions are not objects... bending the rule doesn't make two things same.
LEGION 5
Hello guys
LEGION 5
What is the best IDE for C++ in linux OS.. ?
Raul
Vim
Raul
Just git gud and learn how to use a text editor
Ludovic 'Archivist'
Everything in C++ is OOP even if you think you're not using it, you are.
Err no, you can just go full functional or procedural in C++ and tbh it is often better
Ludovic 'Archivist'
Then use C or even better BASIC... why go with C++?
Because C is not functional and lacks real type safety mechanism as well as the ability to code monads and stuff for example
Ludovic 'Archivist'
But as a general case, I like to avoid any form of inheritance and class play when I code in C++ because it is pretty much heresy
Talula
Talula
Lisp... Haskel...
Talula
Why bother with something that isn't designed for your requirement?
Ludovic 'Archivist'
C++ is not exclusively functional
Ludovic 'Archivist'
Why bother with something that isn't designed for your requirement?
Well, C++ is very suited to my requirements tbh, but the gritty parts of OOP that imply design patterns and inheritance are absolutely a no-go zone of the language for me
Talula
C++ is OOP... it's not designed to be functional or procedural.
Ludovic 'Archivist'
C++ is OOP... it's not designed to be functional or procedural.
Well it is designed to be procedural by being an approximate superset of C
Ludovic 'Archivist'
And templates are an entirely functional programming language within C++
Ludovic 'Archivist'
But the C++ standard library is an entirely different story
Talula
What I see is you want to bend things and not use them as they are supposed to be... that is weird when you have purely functional languages like Heskel.
Ludovic 'Archivist'
What I see is you want to bend things and not use them as they are supposed to be... that is weird when you have purely functional languages like Heskel.
In what way? C++ have lots of elements of functional programming languages, they even added a bunch of monads in C++14 and 17
Talula
In what way? C++ have lots of elements of functional programming languages, they even added a bunch of monads in C++14 and 17
Yeah but no one in the world would say C++ is a functional langauge, they would say it's Object Oriented Language...
Dima
Lol.
Talula
I don't get it, I mean if there are fucntional languages use them.
Ludovic 'Archivist'
Yeah but no one in the world would say C++ is a functional langauge, they would say it's Object Oriented Language...
I think that is mostly because most people live in ignorance of what C++ is and assume C++~=Java
BinaryByter
The misconception of CPP is OOP is stupid
BinaryByter
I think that is mostly because most people live in ignorance of what C++ is and assume C++~=Java
Ludovic, you are wasting your time debating with stupid strangers. Lets code the clinl website instead
Talula
The misconception of CPP is OOP is stupid
Whole reason why C++ was started was to make C an OOP.
Talula
There is no other reason for C++ to exist.
Ludovic 'Archivist'
I think that actually, using C++ as an OOP language is actually misusing C++
BinaryByter
Whole reason why C++ was started was to make C an OOP.
I doubt that. read the cpp design requirements
BinaryByter
Webcpp is a dead meme
Dima
Webcpp is a dead meme
s/a dead meme/dead
Dima
BinaryByter
i use webcpp everyday
BinaryByter
You read its history
Ludovic 'Archivist'
Whole reason why C++ was started was to make C an OOP.
The reason it started and the way it evolved during the last 30 years make the original "C With Classes" pretty much an entirely different approach
Talula
https://mathbits.com/MathBits/CompSci/Introduction/history.htm
Talula
When he designed C++, he added OOP (Object Oriented Programming) features to C without significantly changing the C component.
Talula
That is what C++ was in 1987
I said "History" didn't I?
Talula
That is why it was invented...
Ludovic 'Archivist'
That is why it was invented...
No, it was invented to make you write better code