LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2017, 03:55 AM   #31
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918

Quote:
Originally Posted by a4z View Post
autsch, a horrible advice. you have no idea what you are talking about
If you don't mind me saying so, that's not a very helpful comment to be honest. If you disagree with the poster's comment, then rather than indulging in an ad hominem attack, can you please provide some constructive criticism as to why you think so, and what you would suggest as an alternative? Many thanks a4z.

Last edited by hydrurga; 07-18-2017 at 03:57 AM.
 
Old 07-18-2017, 03:58 AM   #32
YesItsMe
Member
 
Registered: Oct 2014
Posts: 711

Rep: Reputation: 274Reputation: 274Reputation: 274
Then what exactly is "correct thinking"?
 
Old 07-18-2017, 05:05 AM   #33
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by hydrurga View Post
If you don't mind me saying so, that's not a very helpful comment to be honest. If you disagree with the poster's comment, then rather than indulging in an ad hominem attack, can you please provide some constructive criticism as to why you think so, and what you would suggest as an alternative? Many thanks a4z.
what was written is just wrong, you did not know this, as the author, so I was indeed very helpful.
I have mentioned several times that C++ is not just an OOP language, but an multi paradigm language.
and you can do OOP with C also. look at GTK
or look at this howto: https://state-machine.com/doc/AN_OOP_in_C.pdf
it is 2017, and people still repeat what Java advertisement department made manager think back in the days, spreading such information is not helpful.
So actually you have to thank me for making this clear, not making total absurd accusation that I do ad hominem attacks. The truth is, you just did this by not reading all I have written, not getting the context and know nothing about details and making absurd accusation before asking the things you do not understand.
Fazit: I mind a lot that you say so because what you said is just annoying nonsens backed in wannabe sound clever smart and moderator like way. Thanks for not bugging me any longer and not attacking me again with your passive aggressive but o so correct supremacism , hydrurga
 
Old 07-18-2017, 05:21 AM   #34
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,636

Rep: Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614Reputation: 5614
Quote:
Originally Posted by a4z View Post
and you can do OOP with C also. look at GTK
or look at this howto: https://state-machine.com/doc/AN_OOP_in_C.pdf
at about 20 years ago there was a C++ -> C "cross compiler", and we compiled our C++ code by translating it into C and running a real C compiler. This OOP with C looks like the generated C++ code (at least for me). This is not real OOP, but something I would call "free likeness".

return back to the original question: if OP wanted to learn C++ (s)he will need to know what is OOP, but one can use C without that.
 
Old 07-18-2017, 05:23 AM   #35
YesItsMe
Member
 
Registered: Oct 2014
Posts: 711

Rep: Reputation: 274Reputation: 274Reputation: 274
Quote:
Originally Posted by a4z View Post
and you can do OOP with C also. look at GTK
or look at this howto: https://state-machine.com/doc/AN_OOP_in_C.pdf
And not one single object is involved. I call [removed].
 
Old 07-18-2017, 05:44 AM   #36
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by pan64 View Post
at about 20 years ago there was a C++ -> C "cross compiler", and we compiled our C++ code by translating it into C and running a real C compiler. This OOP with C looks like the generated C++ code (at least for me). This is not real OOP, but something I would call "free likeness".
oop is a concept, you can apply this in many languages.
smalltalk had message passing, C++ and Java do not have this, are they therefore no OOP languages?

Quote:
Originally Posted by pan64 View Post
return back to the original question: if OP wanted to learn C++ (s)he will need to know what is OOP, but one can use C without that.
I never said that you need nothing to know about OOP, just that learning C++ via OOP is nonsense, since you need no OOP for C++ either, if you do not want.
The STL is not object oriented. Stated by the author, Stepanov.
But I am totally aware that we have users here that know it -and everything- better, see for example the post below yours ;-)
 
Old 07-18-2017, 05:46 AM   #37
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by YesItsMe View Post
And not one single object is involved. I call bullshit.
aha,
https://developer.gnome.org/gtk3/stable/ch02.html
thanks for your valuable expert expertise
 
Old 07-18-2017, 06:00 AM   #38
YesItsMe
Member
 
Registered: Oct 2014
Posts: 711

Rep: Reputation: 274Reputation: 274Reputation: 274
Quote:
Originally Posted by a4z View Post
"That website says 'object', so C must be object-oriented".

Aha.

Go read the sources and show me the "object declaration" of those "objects", you expert.
 
Old 07-18-2017, 06:29 AM   #39
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by YesItsMe View Post
"That website says 'object', so C must be object-oriented".
I did not say this
Quote:
Originally Posted by YesItsMe View Post
Aha.
did your strong answer to something that exists just in your fantasy bring you some strong feelings?

Quote:
Originally Posted by YesItsMe View Post
Go read the sources and show me the "object declaration" of those "objects", you expert.
They are not required, what on the part 'oop is a concept' was to hard for you to understand?
But extra for you, because the page was to hard to navigate for you:
https://developer.gnome.org/gobject/...GObject-struct
And now, YesItsMe, you must be strong, really strong. Do you know the Linux kernel?
Object-oriented design patterns in the kernel, part 1
Object-oriented design patterns in the kernel, part 2
What about some my dear YesItsMe , before trying to lecture people in the internet, it would make you look much less likw an uneducated wiseacre that plays adult.

Last edited by a4z; 07-18-2017 at 06:32 AM.
 
Old 07-18-2017, 07:13 AM   #40
YesItsMe
Member
 
Registered: Oct 2014
Posts: 711

Rep: Reputation: 274Reputation: 274Reputation: 274
Quote:
Originally Posted by a4z View Post
But extra for you, because the page was to hard to navigate for you:
https://developer.gnome.org/gobject/...GObject-struct
A struct is a structured piece of data. It has no inheritance, no state, no member functions. It is not an object.

What about some ?
 
Old 07-18-2017, 07:31 AM   #41
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by YesItsMe View Post
A struct is a structured piece of data. It has no inheritance, no state, no member functions. It is not an object.

What about some ?
ha, haha, hahahaha, hahahahahahahaha , thank for making my day. you are so funny, you are a clown! yes , you are joking?
the rest of your post is also not true, just because you do not understand this type of inheritance and that functions on objects are function pointer per se since they all have a address does not mean they are not there, it is just, you do not understand them.
or are you just a bad replica of a troll, I do not think that someone can do such a selective reading and reposting without being a troll, but on the other hand, it is assumed that trolls have at least some knowledge about a subject, what is in your case obviously not the case.
well, anyway, you got enough material for that you should have something to do for a while, but, I fear you are one of the guys tose are absolute resistant, obviously. so I think it's better to ignore you form now on ;-)
 
Old 07-18-2017, 07:46 AM   #42
YesItsMe
Member
 
Registered: Oct 2014
Posts: 711

Rep: Reputation: 274Reputation: 274Reputation: 274
And this is why you don't try to discuss with children on the internet.

I love the friendly community here.
 
Old 07-18-2017, 12:23 PM   #43
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by pan64 View Post
at about 20 years ago there was a C++ -> C "cross compiler", and we compiled our C++ code by translating it into C and running a real C compiler. This OOP with C looks like the generated C++ code (at least for me). This is not real OOP, but something I would call "free likeness".

return back to the original question: if OP wanted to learn C++ (s)he will need to know what is OOP, but one can use C without that.
Yes, the earliest C++ implementations were just preprocessors for C compilers, it didn't really have its own compiler.
 
Old 07-18-2017, 01:30 PM   #44
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by Laserbeak View Post
Yes, the earliest C++ implementations were just preprocessors for C compilers, it didn't really have its own compiler.
which makes sense to use C or ASM over C++...
 
Old 07-18-2017, 01:35 PM   #45
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,049

Rep: Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623Reputation: 4623
Quote:
Originally Posted by lse123 View Post
What IDEs used for C/C++ development for Linux...?
Qt Creator. Even if your code doesn't use Qt.
 
  


Reply

Tags
c++


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to learn more about Linux carrollshaffer Linux - Newbie 20 02-01-2017 05:22 AM
Hi . Someone to learn Linux Lingat04 LinuxQuestions.org Member Intro 1 04-18-2013 09:20 PM
How did you learn Linux? jamescow Linux - General 32 03-19-2009 12:13 AM
how to learn linux senthilk Linux - General 9 05-07-2007 09:50 PM
What's the best way to learn linux? Tech1 Linux - General 19 04-15-2003 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration