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. Other Discussions
  3. The Weird and The Wonderful
  4. From the mouth of the Javascript developer

From the mouth of the Javascript developer

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpswiftjavascriptpythonruby
7 Posts 6 Posters 0 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.
  • S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #1

    When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!

    Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.

    Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )

    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

    K Sander RosselS C 3 Replies Last reply
    0
    • S Super Lloyd

      When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!

      Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.

      Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      I am not a Swift fan, but it has some advantages as I learned in the recent WWDC Videos as great type safety, optimization while compiling and linking and purity by coding. So Swift isnt really a scripting language but the successor of Objective-C. I have written some C# for years and it is fine, but never Xamarin. But I think cant do all iOS stuff on Xamarin and the performance isnt too great. Code in Swift has often only few lines of code: that scaries me.:~

      Press F1 for help or google it. Greetings from Germany

      1 Reply Last reply
      0
      • S Super Lloyd

        When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!

        Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.

        Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )

        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #3

        I like how "the bad" isn't actually bad, but how a proper language should work. Like type-safety and none of that weird (and unpredictable) truthy falsey stuff :D Edsger Dijkstra once said "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." I guess the same is true for JavaScript :sigh:

        Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

        Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

        Regards, Sander

        R 1 Reply Last reply
        0
        • S Super Lloyd

          When I read that Swift to JavaScript comparison[^]... I had quite a big laugh!

          Apple wanted a language that would be modern, fast and safe. To anyone who has done a bit of Objective-C in the past, hearing the term “modern” should be music to his or her ears. Apple has delivered in that regard, with adding plenty of syntactic sugar onto the language. It is evident that they were inspired by modern scripting languages such as Ruby, Python, Groovy and of course JavaScript.

          Well, if that if where they get their inspiration for a "modern" language, I can be forgiven for ignoring Swift then, I guess! :laugh: ;P (PS: I do Xamarin, long live C# :-D )

          A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

          C Offline
          C Offline
          Clifford Nelson
          wrote on last edited by
          #4

          Not hard to beat JavaScript. One of the worse languages developed. Too many weird things that have to be understood. Looks like C but not anything like any other C style syntax language. Then it is used for Web stuff, and it became more ridiculous. Does not play nice with XML and yet different. If it had played nice with HTML I would have said fine. By that I mean being able to just put code in the middle and not having to do any special formatting fixing to make it work. We have been stuck with this abomination way to long.

          1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            I like how "the bad" isn't actually bad, but how a proper language should work. Like type-safety and none of that weird (and unpredictable) truthy falsey stuff :D Edsger Dijkstra once said "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." I guess the same is true for JavaScript :sigh:

            Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

            Regards, Sander

            R Offline
            R Offline
            Rob Grainger
            wrote on last edited by
            #5

            I particularly liked his example of something "bad":

            var myValue = "FOO";

            myValue = 5; // Compile-time error

            WTF - why would you do that?

            "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

            Sander RosselS 1 Reply Last reply
            0
            • R Rob Grainger

              I particularly liked his example of something "bad":

              var myValue = "FOO";

              myValue = 5; // Compile-time error

              WTF - why would you do that?

              "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #6

              I had a JavaScript function (concocted by some coworkers) that I had to use. It was quite a big function and I wasn't very familiar with the domain, so I looked up a usage example, applied that to my own code, inspected the return value, processed it and tested some more. So after weeks of development my code suddenly broke. I had hit an edge case where the function suddenly returned something completely different (most of the time it would return an object with some values, but this time an array with completely other objects was returned) :wtf: WHYYYYY!?!?!?!? :((

              Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

              Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

              Regards, Sander

              B 1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                I had a JavaScript function (concocted by some coworkers) that I had to use. It was quite a big function and I wasn't very familiar with the domain, so I looked up a usage example, applied that to my own code, inspected the return value, processed it and tested some more. So after weeks of development my code suddenly broke. I had hit an edge case where the function suddenly returned something completely different (most of the time it would return an object with some values, but this time an array with completely other objects was returned) :wtf: WHYYYYY!?!?!?!? :((

                Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                Regards, Sander

                B Offline
                B Offline
                Brisingr Aerowing
                wrote on last edited by
                #7

                Those cow-orkers were complete idiots. And JavaScript is a back-asswards language that needs to be replaced with something that actually makes sense.

                What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                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