Thread: Is C# the same like "Objective C"? That is the book I have.

  1. #1
    Banned
    Join Date
    Oct 2014
    Location
    Home
    Posts
    135

    Is C# the same like "Objective C"? That is the book I have.

    Have Objective C for absolute beginners

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Nope. Not even close, really, except insofar as each was in part inspired by C or a C-styled language. Trying to learn C# by reading a book about Objective C would be like trying to learn Norwegian by reading a book about German. There will be some similarities, but a whole lot of differences too.
    Last edited by Cat; 07-01-2016 at 03:33 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  3. #3
    Registered User
    Join Date
    Jun 2016
    Location
    London
    Posts
    5
    Objective-C was built as a strict superset of C (every C program is also an Objective-C program), adding OO elements of Smalltalk (programming language) on top. C# is more like an improved Java. Java of course borrowed a lot from C and C++ syntax, but less so (at least syntactically) from Smalltalk.

  4. #4
    Registered User MacNilly's Avatar
    Join Date
    Oct 2005
    Location
    CA, USA
    Posts
    466
    The statement that C# is an "improved Java" is entirely subjective. Java is both simpler in concept and design that C# and have substantially different goals as a language -- unless that goal is "to take over the world", in which case, Java is most certainly winning.

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by MacNilly View Post
    The statement that C# is an "improved Java" is entirely subjective. Java is both simpler in concept and design that C# and have substantially different goals as a language -- unless that goal is "to take over the world", in which case, Java is most certainly winning.
    Winning? You mean "steadily declining over time". Sure, Java was hugely popular in the 90s, but it has been falling in popularity over the last 10 years. The idea that it's taking over anything is ridiculous.

    cite: Measuring programming language popularity - Wikipedia, the free encyclopedia
    If you understand what you're doing, you're not learning anything.

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    3,883
    Quote Originally Posted by itsme86 View Post
    Winning? You mean "steadily declining over time". Sure, Java was hugely popular in the 90s, but it has been falling in popularity over the last 10 years. The idea that it's taking over anything is ridiculous.

    cite: Measuring programming language popularity - Wikipedia, the free encyclopedia
    I agree. If, I had to bet whether Skynet would be written C# or Java ; I would bet on C# .

    * Skynet is the computer system that takes over the world in the Terminator movie series.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #7
    Registered User MacNilly's Avatar
    Join Date
    Oct 2005
    Location
    CA, USA
    Posts
    466
    Quote Originally Posted by stahta01 View Post
    I agree. If, I had to bet whether Skynet would be written C# or Java ; I would bet on C# .

    * Skynet is the computer system that takes over the world in the Terminator movie series.

    Tim S.
    I guess the quantitative measurement I was thinking of was in terms of "number of lines of existing code written in Java vs. C#" and "number of CPU cycles spent running Java vs. C#". If I'm not mistaken, then according to that Wiki page Java is "winning" overall. I would think this is due mostly due to legacy systems, however. The choice of C# over Java for new development seems to be increasing and would seem to be overtaking Java at some point in the future, extrapolating from the graph.

  8. #8
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by MacNilly View Post
    number of CPU cycles spent running Java vs. C#
    Regardless of how unpopular Java becomes, it will still hold the top spot for number of CPU cycles spent running it. Java is slow. Painfully slow.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  9. #9
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,687
    Good points - however lets not forget that one of the prime reasons of C# existing is because
    Microsoft saw how innovative Sun was with Java so they made a "Java Clone" language. Both are
    fully object-orientated and both handle memory automatically.

    In the sense of Java still being on top - well that is never going to change unless colleges
    stop using Java as a first language for teaching. Not that this is a bad thing, but because Java
    is seen as a mainstream language it's not going to change anytime soon.

    C# is Microsoft's lovechild - and unlike Java it continues to evolve and update. I can see the .NET
    ecosystem one day overtaking the JRE world due largely in part to Microsoft finally making .NET
    open-source.
    Double Helix STL

  10. #10
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,616
    JAVA - Just Another Vulnerability Announcement

  11. #11
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,687
    Quote Originally Posted by whiteflags View Post
    JAVA - Just Another Vulnerability Announcement
    Best Reply Ever
    Double Helix STL

  12. #12
    Registered User MacNilly's Avatar
    Join Date
    Oct 2005
    Location
    CA, USA
    Posts
    466
    Quote Originally Posted by Elkvis View Post
    Regardless of how unpopular Java becomes, it will still hold the top spot for number of CPU cycles spent running it. Java is slow. Painfully slow.
    Oh snap!

    It's done by design -- to artificially inflate the statistics!
    Last edited by MacNilly; 07-09-2016 at 03:27 AM.

  13. #13
    Registered User
    Join Date
    Jul 2016
    Location
    Navi Mumbai
    Posts
    2
    The book of Stephen Kochan, "Programming in Objective-C" is aimed for those persons who has none-to-little background in programming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-16-2016, 11:39 AM
  2. Replies: 1
    Last Post: 11-16-2007, 08:31 PM
  3. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  4. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM
  5. Write and read the book called "registry""
    By CodeMonkey in forum Windows Programming
    Replies: 4
    Last Post: 03-10-2002, 10:45 AM

Tags for this Thread