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. Just published : BASIC on Commodore book

Just published : BASIC on Commodore book

Scheduled Pinned Locked Moved The Lounge
learningjavascriptcomtoolshelp
45 Posts 18 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.
  • R raddevus

    Yeah, those are good points. Every web browser is almost like it's own OS. But you could even set out the rule that the reader could use FireFox, Chrome or Edge and then say, "ok, hit F12" (dev tools) type: 2+2 Works in all 3 of those browsers. After that, there's a lot you could teach directly from the console. I think a lot of books that try to teach JavaScript do overwhelm with all the node.js, extra libraries (even jQuery) stuff. If you're learning JavaScript you should learn the good old fashioned way. document.getElementByID(), etc. :)

    D Offline
    D Offline
    dandy72
    wrote on last edited by
    #35

    The problem with that approach is, can you really make a "complete program" you can package and share with someone and use elsewhere ? You could with the author's original approach. How would that work with a browser? That would be clumsy at best.

    R 1 Reply Last reply
    0
    • D dandy72

      The problem with that approach is, can you really make a "complete program" you can package and share with someone and use elsewhere ? You could with the author's original approach. How would that work with a browser? That would be clumsy at best.

      R Offline
      R Offline
      raddevus
      wrote on last edited by
      #36

      dandy72 wrote:

      he problem with that approach is, can you really make a "complete program" you can package and share with someone and use elsewhere ?

      I think so. I think it is even easier actually if you think about SPA (single page apps). Here's some very basic and (possibly) interesting JavaScript I created to create a very small "game". You can see it in your browser right now (without all the deployment challenges you'd have with Commodore BASIC) at : Robot Dots - HTML5 / JavaScript sample[^] The code to do that is only 271 lines long. You can read the article that explains the code (and see an animated gif of it in action)at: HTML5 Canvas : Clean JavaScript & Code Organization Allows Faster Dev, Easier Extensibility[^] I'm not saying that is a completely introductory article -- because there are some slightly advanced topics -- but I think you could get the interested party there very quickly. And, yes, JavaScript is limited in many ways (cannot write to file system, etc) but again I'm saying it is a nice language for getting new devs interested -- not as the final long-term goal. And if they are going to learn it as the long-term goal there are lot of caveats.

      1 Reply Last reply
      0
      • R raddevus

        I can't believe that APress just published (Dec. 2018) this book. Amazon.com: Beginning Programming Using Retro Computing: Learn BASIC with a Commodore Emulator eBook: Gerald Friedland: Kindle Store[^]

        Author says:

        True story. I was looking for a system that would help 7-year olds teach themselves programming. Hey it's 2018, right? After looking through what's available, the two major issues that I have with the current tools are: 1) Many of them require the Internet (too dangerous for self learning) 2) most, if not all, of them are drag and drop. I wanted a non-distracting environment where the kids practice reading and writing while learning to program. The sensation of causing an action simply by typing a word is priceless.

        I don't know. Maybe just use JavaScript in a browser to teach. It's much more relevant and has far fewer barriers to entry. I mean I would've really liked this book back in 1990 or before, but not sure this one will have a market.

        B Offline
        B Offline
        Bitbeisser
        wrote on last edited by
        #37

        Javascript to teach an 8 year old programming? You just got to be kidding!

        R 1 Reply Last reply
        0
        • B Bitbeisser

          Javascript to teach an 8 year old programming? You just got to be kidding!

          R Offline
          R Offline
          raddevus
          wrote on last edited by
          #38

          Bitbeisser wrote:

          Javascript to teach an 8 year old programming? You just got to be kidding!

          I think you're coming with a lot of preconceived ideas. JavaScript can be simple. It can be. The fact that it isn't is due to the way some devs implement JavaScript. Is there anything tough about showing an 8 year old how to create a variable in JavaScript?

          var counter = 0;

          Also, most likely if the kid has any kind of computer (iOS, Windows, Linux) then she'll have everything she needs to begin (text editor, web browser). Here's the first program from old K&R C :

          #include

          main()
          {
          printf("hello, world\n");
          }

          Here it is in JavaScript:

          console.log("hello, world\n");

          :) Now, advanced JavaScript, that's another thing altogether isn't it? Devs do some terrible things (bad code organization and using globals, etc) with JavaScript but it doesn't have to be that way if the teacher guides the student properly through the material.

          1 Reply Last reply
          0
          • R raddevus

            I can't believe that APress just published (Dec. 2018) this book. Amazon.com: Beginning Programming Using Retro Computing: Learn BASIC with a Commodore Emulator eBook: Gerald Friedland: Kindle Store[^]

            Author says:

            True story. I was looking for a system that would help 7-year olds teach themselves programming. Hey it's 2018, right? After looking through what's available, the two major issues that I have with the current tools are: 1) Many of them require the Internet (too dangerous for self learning) 2) most, if not all, of them are drag and drop. I wanted a non-distracting environment where the kids practice reading and writing while learning to program. The sensation of causing an action simply by typing a word is priceless.

            I don't know. Maybe just use JavaScript in a browser to teach. It's much more relevant and has far fewer barriers to entry. I mean I would've really liked this book back in 1990 or before, but not sure this one will have a market.

            W Offline
            W Offline
            willichan
            wrote on last edited by
            #39

            I am setting up an old laptop with Linux and a Python environment for my son to start learning to code. A bit older than a 7 year old, but still ... Money makes the world go round ... but documentation moves the money.

            1 Reply Last reply
            0
            • R raddevus

              I can't believe that APress just published (Dec. 2018) this book. Amazon.com: Beginning Programming Using Retro Computing: Learn BASIC with a Commodore Emulator eBook: Gerald Friedland: Kindle Store[^]

              Author says:

              True story. I was looking for a system that would help 7-year olds teach themselves programming. Hey it's 2018, right? After looking through what's available, the two major issues that I have with the current tools are: 1) Many of them require the Internet (too dangerous for self learning) 2) most, if not all, of them are drag and drop. I wanted a non-distracting environment where the kids practice reading and writing while learning to program. The sensation of causing an action simply by typing a word is priceless.

              I don't know. Maybe just use JavaScript in a browser to teach. It's much more relevant and has far fewer barriers to entry. I mean I would've really liked this book back in 1990 or before, but not sure this one will have a market.

              U Offline
              U Offline
              User 2893688
              wrote on last edited by
              #40

              Try again, my friend. JavaScript, as its namesake stands for is just a Scripting language akin to BASH and PowerShell. Yep, you can make it do great things, but with way too many caveats beginner wise. On the other hand, early 80s systems were complete development environments which presented themselves with no introduction and no serious booting (you can even run a commodore 64 in a browser). You were alone with the intro screen ``` *** COMMODORE 64 BASIC V2 *** 64K RAM SYSTEM 38911 BASIC BYTES FREE READY PLAYER ONE. ``` What else could you want in life :-D

              R 1 Reply Last reply
              0
              • R raddevus

                I can't believe that APress just published (Dec. 2018) this book. Amazon.com: Beginning Programming Using Retro Computing: Learn BASIC with a Commodore Emulator eBook: Gerald Friedland: Kindle Store[^]

                Author says:

                True story. I was looking for a system that would help 7-year olds teach themselves programming. Hey it's 2018, right? After looking through what's available, the two major issues that I have with the current tools are: 1) Many of them require the Internet (too dangerous for self learning) 2) most, if not all, of them are drag and drop. I wanted a non-distracting environment where the kids practice reading and writing while learning to program. The sensation of causing an action simply by typing a word is priceless.

                I don't know. Maybe just use JavaScript in a browser to teach. It's much more relevant and has far fewer barriers to entry. I mean I would've really liked this book back in 1990 or before, but not sure this one will have a market.

                D Offline
                D Offline
                daflashrex
                wrote on last edited by
                #41

                I had to learn x86 assembly to detox from that old form of basic. It made learning modern languages difficult.

                R 1 Reply Last reply
                0
                • U User 2893688

                  Try again, my friend. JavaScript, as its namesake stands for is just a Scripting language akin to BASH and PowerShell. Yep, you can make it do great things, but with way too many caveats beginner wise. On the other hand, early 80s systems were complete development environments which presented themselves with no introduction and no serious booting (you can even run a commodore 64 in a browser). You were alone with the intro screen ``` *** COMMODORE 64 BASIC V2 *** 64K RAM SYSTEM 38911 BASIC BYTES FREE READY PLAYER ONE. ``` What else could you want in life :-D

                  R Offline
                  R Offline
                  raddevus
                  wrote on last edited by
                  #42

                  Member 2896020 wrote:

                  \*\*\* COMMODORE 64 BASIC V2 \*\*\*
                  

                  64K RAM SYSTEM 38911 BASIC BYTES FREE
                  READY PLAYER ONE.

                  What else could you want in life

                  Absolutely, I remember. It was quite beautiful in its solace. :laugh:

                  1 Reply Last reply
                  0
                  • D daflashrex

                    I had to learn x86 assembly to detox from that old form of basic. It made learning modern languages difficult.

                    R Offline
                    R Offline
                    raddevus
                    wrote on last edited by
                    #43

                    daflashrex wrote:

                    I had to learn x86 assembly to detox from that old form of basic. It made learning modern languages difficult.

                    That is very interesting. So assembly on commodore was really ugly then? How so?

                    D 2 Replies Last reply
                    0
                    • R raddevus

                      daflashrex wrote:

                      I had to learn x86 assembly to detox from that old form of basic. It made learning modern languages difficult.

                      That is very interesting. So assembly on commodore was really ugly then? How so?

                      D Offline
                      D Offline
                      daflashrex
                      wrote on last edited by
                      #44

                      It had already been a couple of decades by then so I didn't look at Commodores assembly.

                      1 Reply Last reply
                      0
                      • R raddevus

                        daflashrex wrote:

                        I had to learn x86 assembly to detox from that old form of basic. It made learning modern languages difficult.

                        That is very interesting. So assembly on commodore was really ugly then? How so?

                        D Offline
                        D Offline
                        daflashrex
                        wrote on last edited by
                        #45

                        I learned i386.

                        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