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 hate JavaScript

I hate JavaScript

Scheduled Pinned Locked Moved The Lounge
learningjavascriptpythoncomfunctional
50 Posts 32 Posters 1 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.
  • M Marc Clifton

    Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

    P Offline
    P Offline
    Plamen Dragiyski
    wrote on last edited by
    #31

    If that didn't make your half program red, you use the wrong IDE. In fact a simple editor that highlight keywords would detect that (Why is the "funtion" not highlighted?). When people used notepad (not notepad++) for programming they had all these problems with typos and semicolons. Those were difficult ancient times...

    1 Reply Last reply
    0
    • M Marc Clifton

      Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

      J Offline
      J Offline
      Jan Hansen
      wrote on last edited by
      #32

      Be mindful of the dark side...

      1 Reply Last reply
      0
      • A Aless Alessio

        let's make an agreement, mate: you'll deal with my XAML and i ll take your javascript duties

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

        How about you do my CSS and I'll fix whatever problems you have (car, marriage, kids, anything is more fixable than CSS) X|

        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
        • M Marc Clifton

          Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

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

          I once spend 15 minutes trying to write a simple Hello World in JavaScript. I had pretty much the same problem. Boy, do you feel stupid when you have years of experience and fail at Hello World :laugh: Luckily I now know the problem is JavaScript, not me :D I find JavaScript doable nowadays, but only when I don't have to deal with other people's code.

          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
          • M Marc Clifton

            Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

            K Offline
            K Offline
            Kiriander
            wrote on last edited by
            #35

            Be glad that you hate it. A couple of my coworkers are full on Stockholm syndrome.

            K 1 Reply Last reply
            0
            • K Kiriander

              Be glad that you hate it. A couple of my coworkers are full on Stockholm syndrome.

              K Offline
              K Offline
              kalberts
              wrote on last edited by
              #36

              That is curable ... Geek and Poke[^]

              1 Reply Last reply
              0
              • M Marc Clifton

                Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

                Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                D Offline
                D Offline
                Dar Brett 0
                wrote on last edited by
                #37

                If you think that's bad - you should try missing a semicolon after a class definition in C++

                1 Reply Last reply
                0
                • A Aless Alessio

                  :-D come ooooooooooooon With the relatively new "ECMA6", writing in Javascript is pretty much like writing in C# ECMAScript 6: New Features: Overview and Comparison[^]

                  L Offline
                  L Offline
                  lindennerd1992
                  wrote on last edited by
                  #38

                  goddam right! :thumbsup:

                  1 Reply Last reply
                  0
                  • A Aless Alessio

                    :-D come ooooooooooooon With the relatively new "ECMA6", writing in Javascript is pretty much like writing in C# ECMAScript 6: New Features: Overview and Comparison[^]

                    Richard DeemingR Offline
                    Richard DeemingR Offline
                    Richard Deeming
                    wrote on last edited by
                    #39

                    That's fine if you control the environment. If you're writing a website, it's going to be 10+ years before you can safely use those features without a "transpiler" to convert them back to ES5. And even then, you'll still have users on IE6 complaining that your site is broken. :rolleyes:


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                    A 1 Reply Last reply
                    0
                    • M Marc Clifton

                      Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                      S Offline
                      S Offline
                      sir_download_alot
                      wrote on last edited by
                      #40

                      Yeah, Cobol was easier!

                      1 Reply Last reply
                      0
                      • A Aless Alessio

                        :^) oh man ... am i the only weirdo who likes coding in Javascript ?!?

                        C Offline
                        C Offline
                        ClockMeister
                        wrote on last edited by
                        #41

                        Nope. Takes a little getting used to when you usually code in C# or something but it's just another language you can do some interesting things with.

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

                          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                          X Offline
                          X Offline
                          xtofl
                          wrote on last edited by
                          #42

                          Really? No syntax hilighting? `function` is blue and `funtion` is grey. Or you're using the wrong editor. Otherwise, prepend this to all your javascript:

                          var funtion = function(){ throw new Error("you typed _funtion_ instead of _function_"); };
                          var x = funtion() {};

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Took me 10 minutes to find the error: onProceed: funtion() { And of course, the only error I get is Uncaught SyntaxError: Unexpected token { So of course I wonder, where did I have a mismatched curly brace??? Wrong wonderment. X| Marc

                            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                            L Offline
                            L Offline
                            loctrice
                            wrote on last edited by
                            #43

                            [joke] pro tip: don't program in notepad [/joke] Just use vscode[^]

                            Elephant elephant elephant, sunshine sunshine sunshine

                            1 Reply Last reply
                            0
                            • Richard DeemingR Richard Deeming

                              That's fine if you control the environment. If you're writing a website, it's going to be 10+ years before you can safely use those features without a "transpiler" to convert them back to ES5. And even then, you'll still have users on IE6 complaining that your site is broken. :rolleyes:


                              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

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

                              That's the thing! If you look at this link ECMAScript 6 compatibility table[^] you ll see that almost every browser is now ECMA6 compatible. The only and only exception is IE. So, let's move those old IE aficionados to Edge then

                              K 1 Reply Last reply
                              0
                              • OriginalGriffO OriginalGriff

                                Yes.

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

                                H Offline
                                H Offline
                                Herbie Mountjoy
                                wrote on last edited by
                                #45

                                There was a time when I frequently used Javascipt to knock of quick and dirty batches. Then along came powershell and I was reformed. Hallelujah!

                                We're philosophical about power outages here. A.C. come, A.C. go.

                                1 Reply Last reply
                                0
                                • A Aless Alessio

                                  That's the thing! If you look at this link ECMAScript 6 compatibility table[^] you ll see that almost every browser is now ECMA6 compatible. The only and only exception is IE. So, let's move those old IE aficionados to Edge then

                                  K Offline
                                  K Offline
                                  Kirk 10389821
                                  wrote on last edited by
                                  #46

                                  Edge has 2 use cases: 1) Downloading Chrome 2) Amazement that they made it so much faster while making it feel like it's just broke!

                                  1 Reply Last reply
                                  0
                                  • A Aless Alessio

                                    :^) oh man ... am i the only weirdo who likes coding in Javascript ?!?

                                    L Offline
                                    L Offline
                                    Leng Vang
                                    wrote on last edited by
                                    #47

                                    My first encountered with duct-typing, I though was bad idea. Now switching back to code in C#, I actually miss the duct-type and the ability of adding property on the go as in JavaScript. No you are not the only weirdo.

                                    1 Reply Last reply
                                    0
                                    • H H Brydon

                                      I'd call it something else...

                                      I'm retired. There's a nap for that... - Harvey

                                      C Offline
                                      C Offline
                                      Charles Programmer
                                      wrote on last edited by
                                      #48

                                      Love your byline. :-D

                                      1 Reply Last reply
                                      0
                                      • R raddevus

                                        10 minutes is fast to find that. I'm serious. I've had a single missing comma cost me over an hour. Painful.

                                        My book, Launch Your Android App, is available at Amazon.com.

                                        U Offline
                                        U Offline
                                        User 11524118
                                        wrote on last edited by
                                        #49

                                        My wife had a missing period that cost me 22 years. :laugh:

                                        1 Reply Last reply
                                        0
                                        • A Aless Alessio

                                          :^) oh man ... am i the only weirdo who likes coding in Javascript ?!?

                                          J Offline
                                          J Offline
                                          jlongo
                                          wrote on last edited by
                                          #50

                                          Yes

                                          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