C is better !!!!
-
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
Well, you could use the C++ compiler as a better "C" (i.e. only use the "C" features). That fixes many of the holes of "C". I'm interested to understand your reasons for excluding "C++" from consideration though.
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
-
I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste?
harold aptroot wrote:
who needs inheritance when you have copy and paste?
That's sig material!!! :) In fact, I'm pretty sure that's the title for an article, if not a book :)
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste?
harold aptroot wrote:
copy and paste
LOL. Yeah sometimes that is the correct answer, but sometimes you're using a third-party library so you don't have possibility to copy and paste. Or were you being facetious and ironic?
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
Behzad Sedighzadeh wrote:
When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Any particular reason why? I fortunately get to call the shots on what language to develop customer applications in. They basically do not care as long as they get the deliverables delivered within the agreed time frame, and code that works. With that said, I typically choose C# to meet their requirements.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
harold aptroot wrote:
copy and paste
LOL. Yeah sometimes that is the correct answer, but sometimes you're using a third-party library so you don't have possibility to copy and paste. Or were you being facetious and ironic?
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
Behzad Sedighzadeh wrote:
When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Any particular reason why? I fortunately get to call the shots on what language to develop customer applications in. They basically do not care as long as they get the deliverables delivered within the agreed time frame, and code that works. With that said, I typically choose C# to meet their requirements.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
Jim Crafton wrote:
he mentions embedded systems
When I look back at his post, perhaps I misunderstood a little. I haven't done much in the embedded area outside of college hardware courses, and from what I could see with the little exposure I've had with embedded development, I have seen some horrors with some of the compilers out there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
harold aptroot wrote:
who needs inheritance when you have copy and paste?
That's sig material!!! :) In fact, I'm pretty sure that's the title for an article, if not a book :)
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
It's been my sig for a few weeks now... :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
It's been my sig for a few weeks now... :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
I stand corrected! I didn't realize fat_boy had a sense of humor!
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
no, not really. Sometimes when you need the functionality of existing classes but with slight tweaks, but that code isn't polymorphic, then you have no choice but to copy/paste.
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
no, not really. Sometimes when you need the functionality of existing classes but with slight tweaks, but that code isn't polymorphic, then you have no choice but to copy/paste.
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
i see from someone else's post that you were "quoting" fat_boy. understood. LOL...
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/ -
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
None of the abovementioned languages (C, C++, C#, VB) are very good, IMHO, but C++ is among other things a better C. Not much better C, granted, but still better.
-
Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
I've never done C++ on OpenVMS; only C -- Whitesmith's C, VAX C, DEC C, Compaq C (?), HP C. The hobbyist license and media seem to include it, but I haven't installed it.
-
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
I've only dabbled in C++; I've had no need for its "features". In my opinion, object-oriented languages are like big trucks, boats, and planes -- when you need them, you need them. But you don't need them if you're just going to the local pub. I don't like having to use objects and namespaces just to write "Hello world!" in C#. X| "Use the right tool for the right job." -- Scotty, et al
-
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
-
Well, you could use the C++ compiler as a better "C" (i.e. only use the "C" features). That fixes many of the holes of "C". I'm interested to understand your reasons for excluding "C++" from consideration though.
Fight Big Government:
http://obamacareclassaction.com/
http://obamacaretruth.org/Can you please tell me some of holes? I have done embedded coding in C and C++. In C you can use files in which source codes can act as classes and you can write application and do not use OOP features. Once upon a time, i heard from a guy " C++ is C with another syntax!".At the time,for the desktop i was using C# and for a embedded application C++. Now Iam using C in linux and altough IDEs are not as good as VS, i think that guy's opnoin was correct.I love coding in C which i think simplifies thinking; All in all There are some rules you must obey, no matter you use OOP or structured programming, etc.
Behzad
-
I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has
Behzad
B will fight you. He thinks he's better because he's one letter higher up in the alphabet.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
B will fight you. He thinks he's better because he's one letter higher up in the alphabet.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Speaking of alphabetic superiority. :rolleyes: