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. I just don't get it ..

I just don't get it ..

Scheduled Pinned Locked Moved The Lounge
javascriptquestion
25 Posts 11 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.
  • A Offline
    A Offline
    Aless Alessio
    wrote on last edited by
    #1

    Why using Typescript, if there's already ECMA6 [^] available in almost all browsers? :confused::confused::confused:

    L A Sander RosselS V 4 Replies Last reply
    0
    • A Aless Alessio

      Why using Typescript, if there's already ECMA6 [^] available in almost all browsers? :confused::confused::confused:

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

      Mysteries over mysteries. Why would anybody use an interpreter after getting rid of a C64? Why would someone use something that is compiled to interpreted code? Why would people merrily reinvent the wheel over and over again?

      The language is JavaScript. that of Mordor, which I will not utter here
      This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
      "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

      1 Reply Last reply
      0
      • A Aless Alessio

        Why using Typescript, if there's already ECMA6 [^] available in almost all browsers? :confused::confused::confused:

        A Offline
        A Offline
        Anurag Gandhi
        wrote on last edited by
        #3

        Because TypeScript provides much more than what ES6 provides. Also takes care of compilation and fallback to ES5 or lesser. Quick start · TypeScript[^] TypeScript is Superset of JavaScript (ES6 too). This simply means that you have everything available in TypeScript which you have in ES6 + more.

        Life is a computer program and everyone is the programmer of his own life.

        1 Reply Last reply
        0
        • A Aless Alessio

          Why using Typescript, if there's already ECMA6 [^] available in almost all browsers? :confused::confused::confused:

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

          Because TYPEscript is typed? And compiles to JavaScript that is available in ALL browsers (and not ALMOST all...)? Or because a project already used it from a time before ECMA6? Maybe the customer for that project uses IE that doesn't support anything? Or because JavaScript is a pile of garbage (even ECMA6) and TypeScript fixes some of that? Just some guesses, I've never actually worked with TypeScript :D

          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

          A 1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            Because TYPEscript is typed? And compiles to JavaScript that is available in ALL browsers (and not ALMOST all...)? Or because a project already used it from a time before ECMA6? Maybe the customer for that project uses IE that doesn't support anything? Or because JavaScript is a pile of garbage (even ECMA6) and TypeScript fixes some of that? Just some guesses, I've never actually worked with TypeScript :D

            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

            A Offline
            A Offline
            Aless Alessio
            wrote on last edited by
            #5

            Well, a "pile of garbage" for the most used language is a bit inappropriate. I mean, a few can be wrong, but so many? i really don't think so ..

            OriginalGriffO Sander RosselS 2 Replies Last reply
            0
            • A Aless Alessio

              Well, a "pile of garbage" for the most used language is a bit inappropriate. I mean, a few can be wrong, but so many? i really don't think so ..

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              A whole lot of people listen to Justin Bieber and think he is wonderful. Are they correct as well? Popular != good

              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              A W 2 Replies Last reply
              0
              • OriginalGriffO OriginalGriff

                A whole lot of people listen to Justin Bieber and think he is wonderful. Are they correct as well? Popular != good

                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                A Offline
                A Offline
                Aless Alessio
                wrote on last edited by
                #7

                Oh come on ... what the hell has Bieber to do with JavaScript now? .. come on, let's be constructive

                OriginalGriffO N 2 Replies Last reply
                0
                • A Aless Alessio

                  Oh come on ... what the hell has Bieber to do with JavaScript now? .. come on, let's be constructive

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  Both are garbage that is popular with a certain sector of the potential market. Just because something is popular with a subgroup, doesn't mean it is a good product.

                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  1 Reply Last reply
                  0
                  • A Aless Alessio

                    Well, a "pile of garbage" for the most used language is a bit inappropriate. I mean, a few can be wrong, but so many? i really don't think so ..

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

                    Aless Alessio wrote:

                    Well, a "pile of garbage" for the most used language is a bit inappropriate.

                    Nope[^]. It's only the most used because it's easy to learn and because it's your only choice for the web. The language has serious design flaws. Sure, it's easy to crank up a little script and run it in your browser. Unfortunately, it's even easier to introduce subtle and less subtle bugs and write code that's completely not maintainable. JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. But sure, if you think 1 + [1] equals 11 and 1 + ["h"] is NaN (or something like that), go ahead and give JavaScript some praise :)

                    Aless Alessio wrote:

                    I mean, a few can be wrong, but so many? i really don't think so ..

                    I can give dozens of examples where that was (and is), indeed, the case. Here's one: religions throughout the ages.

                    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

                    M S Kornfeld Eliyahu PeterK 3 Replies Last reply
                    0
                    • Sander RosselS Sander Rossel

                      Aless Alessio wrote:

                      Well, a "pile of garbage" for the most used language is a bit inappropriate.

                      Nope[^]. It's only the most used because it's easy to learn and because it's your only choice for the web. The language has serious design flaws. Sure, it's easy to crank up a little script and run it in your browser. Unfortunately, it's even easier to introduce subtle and less subtle bugs and write code that's completely not maintainable. JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. But sure, if you think 1 + [1] equals 11 and 1 + ["h"] is NaN (or something like that), go ahead and give JavaScript some praise :)

                      Aless Alessio wrote:

                      I mean, a few can be wrong, but so many? i really don't think so ..

                      I can give dozens of examples where that was (and is), indeed, the case. Here's one: religions throughout the ages.

                      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

                      M Offline
                      M Offline
                      Marco Bertschi
                      wrote on last edited by
                      #10

                      Sander Rossel wrote:

                      JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine.

                      I like that quote. Captured for sig.

                      JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. Sander Rossel

                      Sander RosselS 1 Reply Last reply
                      0
                      • Sander RosselS Sander Rossel

                        Aless Alessio wrote:

                        Well, a "pile of garbage" for the most used language is a bit inappropriate.

                        Nope[^]. It's only the most used because it's easy to learn and because it's your only choice for the web. The language has serious design flaws. Sure, it's easy to crank up a little script and run it in your browser. Unfortunately, it's even easier to introduce subtle and less subtle bugs and write code that's completely not maintainable. JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. But sure, if you think 1 + [1] equals 11 and 1 + ["h"] is NaN (or something like that), go ahead and give JavaScript some praise :)

                        Aless Alessio wrote:

                        I mean, a few can be wrong, but so many? i really don't think so ..

                        I can give dozens of examples where that was (and is), indeed, the case. Here's one: religions throughout the ages.

                        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

                        S Offline
                        S Offline
                        Shuqian Ying
                        wrote on last edited by
                        #11

                        Well, that's a bit unfair. The examples you listed should demonstrate that JavaScript is not able clean garbage produced by some programmers, not JavaScript in itself is garbage :) OK, yes, in somesense, it is, as any untyped language is ...

                        Find more in 1-NET: connects your resources anywhere[^]. Email searcher Email Aggregation Manager[^].

                        Sander RosselS 1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          Aless Alessio wrote:

                          Well, a "pile of garbage" for the most used language is a bit inappropriate.

                          Nope[^]. It's only the most used because it's easy to learn and because it's your only choice for the web. The language has serious design flaws. Sure, it's easy to crank up a little script and run it in your browser. Unfortunately, it's even easier to introduce subtle and less subtle bugs and write code that's completely not maintainable. JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. But sure, if you think 1 + [1] equals 11 and 1 + ["h"] is NaN (or something like that), go ahead and give JavaScript some praise :)

                          Aless Alessio wrote:

                          I mean, a few can be wrong, but so many? i really don't think so ..

                          I can give dozens of examples where that was (and is), indeed, the case. Here's one: religions throughout the ages.

                          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

                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu Peter
                          wrote on last edited by
                          #12

                          Sander Rossel wrote:

                          JavaScript gives you a false sense of safety.

                          Only on the surface... If you are seriously dive in you got shivers...

                          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                          Sander RosselS 1 Reply Last reply
                          0
                          • M Marco Bertschi

                            Sander Rossel wrote:

                            JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine.

                            I like that quote. Captured for sig.

                            JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. Sander Rossel

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

                            Whoohoo! I've never been in a sig before (I think) :D

                            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

                            M 1 Reply Last reply
                            0
                            • S Shuqian Ying

                              Well, that's a bit unfair. The examples you listed should demonstrate that JavaScript is not able clean garbage produced by some programmers, not JavaScript in itself is garbage :) OK, yes, in somesense, it is, as any untyped language is ...

                              Find more in 1-NET: connects your resources anywhere[^]. Email searcher Email Aggregation Manager[^].

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

                              You can output garbage in any language, JavaScript just makes it that much more easy than other languages :)

                              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

                              1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                Sander Rossel wrote:

                                JavaScript gives you a false sense of safety.

                                Only on the surface... If you are seriously dive in you got shivers...

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

                                One thing that gave me multiple wtf's is the arguments object. It's array-like, but not an array (actual bug) and it's shared on the page so passing it to a function does you no good (although I haven't checked if arguments[0] === arguments, but knowing JavaScript that's probaby NaN or some such :D).

                                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

                                1 Reply Last reply
                                0
                                • A Aless Alessio

                                  Oh come on ... what the hell has Bieber to do with JavaScript now? .. come on, let's be constructive

                                  N Offline
                                  N Offline
                                  Nagy Vilmos
                                  wrote on last edited by
                                  #16

                                  Actually Griffs analogy is bloody good. There's a whole raft of people who think a McDonalds is good food when it most clearly isn't. Just because something has a large user base, qv Smoking, it does not follow that it is any good. Popularity is not the same as Quality. JavaScript is to quality code what McD's is to fine dining. Argument. Closed.

                                  veni bibi saltavi

                                  1 Reply Last reply
                                  0
                                  • OriginalGriffO OriginalGriff

                                    A whole lot of people listen to Justin Bieber and think he is wonderful. Are they correct as well? Popular != good

                                    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                    W Offline
                                    W Offline
                                    W Balboos GHB
                                    wrote on last edited by
                                    #17

                                    Bieber? Take it to the Soapbox where it belongs.

                                    Ravings en masse^

                                    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                    "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                    OriginalGriffO 1 Reply Last reply
                                    0
                                    • W W Balboos GHB

                                      Bieber? Take it to the Soapbox where it belongs.

                                      Ravings en masse^

                                      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                      "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                      OriginalGriffO Offline
                                      OriginalGriffO Offline
                                      OriginalGriff
                                      wrote on last edited by
                                      #18

                                      W∴ Balboos wrote:

                                      Bieber? Take it him to the Soapbox wood chipper where it he belongs.

                                      FTFY!

                                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                      W 1 Reply Last reply
                                      0
                                      • Sander RosselS Sander Rossel

                                        Whoohoo! I've never been in a sig before (I think) :D

                                        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

                                        M Offline
                                        M Offline
                                        Marco Bertschi
                                        wrote on last edited by
                                        #19

                                        You've been in one before. Well it is your own, but it is something.

                                        JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. Sander Rossel

                                        1 Reply Last reply
                                        0
                                        • OriginalGriffO OriginalGriff

                                          W∴ Balboos wrote:

                                          Bieber? Take it him to the Soapbox wood chipper where it he belongs.

                                          FTFY!

                                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                          W Offline
                                          W Offline
                                          W Balboos GHB
                                          wrote on last edited by
                                          #20

                                          There's not mulch I can say. You compost what you like in the lounge - but sticking to puns befits you.

                                          Ravings en masse^

                                          "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                          "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                          OriginalGriffO 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