Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C# vs Objective-C

C# vs Objective-C

Scheduled Pinned Locked Moved The Lounge
csharpc++javaswiftmobile
10 Posts 8 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Robert Vandenberg Huang
    wrote on last edited by
    #1

    After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

    S T L L P 6 Replies Last reply
    0
    • R Robert Vandenberg Huang

      After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      I agree, C# is beautiful! I don't understand all those JavaScript fanboys (to talk about something else but similar) That said, long ago, when ObjectiveC was my 3rd language (after Pascal and C) while doing numerical simulation in my never finished physics PhD on NeXT computer, I have to say I liked it quite a lot! Had not Microsoft come up with .NET in 2001 and Apple released the disgusting MacOS9 after being buying NeXT, I might have kept at it! NeXT was so ahead of the time!!

      My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

      E 1 Reply Last reply
      0
      • R Robert Vandenberg Huang

        After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

        T Offline
        T Offline
        tumbledDown2earth
        wrote on last edited by
        #3

        Super liked and agreed ... I posted something similar somewhere else on similar lines and found similar echos

        1 Reply Last reply
        0
        • R Robert Vandenberg Huang

          After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I tend to find that familiarity is more important than beauty - you can write beautiful code in, say, VB, but you need to be an experienced VB programmer to know the ins and outs. With Objective-C I find it very verbose - but it has some great features; my problem is (as with many folk) my background is in more C-like languages - so Objetive-C does look a little scary. the more I use it, though, the better I like it. I especially like the way it is message based rather than method/property based - but find it difficult to think in those terms. IMHO C# is going downhill as MS add more and more 'features' which seems to lead some developers to try to use them! If the language was more stable, we would build a large team of experts - as it is we have a widening gap of those using feature X over those using feature Y

          MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

          1 Reply Last reply
          0
          • R Robert Vandenberg Huang

            After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Objective-C is a real ugly version of LISP/Scheme.

            IronScheme
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

            1 Reply Last reply
            0
            • R Robert Vandenberg Huang

              After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

              P Offline
              P Offline
              Phenix13
              wrote on last edited by
              #6

              First line :

              CIContext *context =
              [CIContext contextWithOptions:
              [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES]
              forKey:kCIContextUseSoftwareRenderer]];

              =>

              CIContext *context =
              [CIContext contextWithOptions:@{@kCIContextUseSoftwareRenderer:@YES}];

              I'm lazy to rewrite the complete sample but it could really look as the C# sample because Objective-C has evolved since 10 years ;P

              R 1 Reply Last reply
              0
              • P Phenix13

                First line :

                CIContext *context =
                [CIContext contextWithOptions:
                [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES]
                forKey:kCIContextUseSoftwareRenderer]];

                =>

                CIContext *context =
                [CIContext contextWithOptions:@{@kCIContextUseSoftwareRenderer:@YES}];

                I'm lazy to rewrite the complete sample but it could really look as the C# sample because Objective-C has evolved since 10 years ;P

                R Offline
                R Offline
                Robert Vandenberg Huang
                wrote on last edited by
                #7

                Phenix13 wrote:

                I'm lazy to rewrite the complete sample but it could really look as the C# sample because Objective-C has evolved since 10 years ;-P

                The problem is not only about how many lines written in Objective-C. The main reason which causes it ugly in my opinion is too many types of punctuation such as square brackets, braces, at symbols and colons appearing at the same time. But anyway, this is just my thought. :)

                P 1 Reply Last reply
                0
                • R Robert Vandenberg Huang

                  Phenix13 wrote:

                  I'm lazy to rewrite the complete sample but it could really look as the C# sample because Objective-C has evolved since 10 years ;-P

                  The problem is not only about how many lines written in Objective-C. The main reason which causes it ugly in my opinion is too many types of punctuation such as square brackets, braces, at symbols and colons appearing at the same time. But anyway, this is just my thought. :)

                  P Offline
                  P Offline
                  Phenix13
                  wrote on last edited by
                  #8

                  That's true, but Objective-C is a 30 year old langage, if Apple could rewrite it from scratch it would probably be more elegant.

                  1 Reply Last reply
                  0
                  • S Super Lloyd

                    I agree, C# is beautiful! I don't understand all those JavaScript fanboys (to talk about something else but similar) That said, long ago, when ObjectiveC was my 3rd language (after Pascal and C) while doing numerical simulation in my never finished physics PhD on NeXT computer, I have to say I liked it quite a lot! Had not Microsoft come up with .NET in 2001 and Apple released the disgusting MacOS9 after being buying NeXT, I might have kept at it! NeXT was so ahead of the time!!

                    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                    E Offline
                    E Offline
                    Espen Harlinn
                    wrote on last edited by
                    #9

                    Super Lloyd wrote:

                    NeXT was so ahead of the time!!

                    i860 :thumbsup:

                    Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS Projects promoting programming in "natural language" are intrinsically doomed to fail. Edsger W.Dijkstra

                    1 Reply Last reply
                    0
                    • R Robert Vandenberg Huang

                      After read this comparison, I have to say Objective-C is totally ugly with no offense. I'm not a big fan of Microsoft but I must admit that Anders Hejlsberg is a genius on language design. C# is even more beautiful than other mainstream programming languages such as Java and C++ in my opinion. Simply a work of art. Am I the only one who thinks so?

                      B Offline
                      B Offline
                      BillWoodruff
                      wrote on last edited by
                      #10

                      Agreed: C# is a thing of beauty. I once worked on the NeXt machine, and hated the Objective-C syntax, but it was cool to be able to directly execute PostScript (my specialty). I think Anders' genius exemplifies this kind of attitude: "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." R. Buckminster Fuller yours, Bill

                      “Humans are amphibians: half spirit, half animal; as spirits they belong to the eternal world; as animals they inhabit time. While their spirit can be directed to an eternal object, their bodies, passions, and imagination are in continual change, for to be in time, means to change. Their nearest approach to constancy is undulation: repeated return to a level from which they repeatedly fall back, a series of troughs and peaks.” C.S. Lewis


                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups