Unconfigured Ad Widget

Collapse

My 12yr old son mentioned a possible interest in coding...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • the86d
    Calguns Addict
    • Jul 2011
    • 9591

    My 12yr old son mentioned a possible interest in coding...

    Should I start him out on something like QBasic for the text-based output to let him understand the basics, and simple code?

    Dedicated Linux box w/KVM switch (keeping the Linux box separate from his Windows box, as I can donate maybe a dual-core machine, but nobody has an i7 for nice VM-function in the house... yet, and he has had to install Windows 7 x64 2x [the second time because of malware]) for coding in C for text based output?

    My desire to start him out on something simple and w/text-based output then let him see if he wants to progress to something else graphical seems logical to me. If he starts on Java or something, then I fear he may miss the basics of the logical flow and never troubleshoot the most basic of coding errors.

    I personally have only really written code for DOS w/text output... myself, many years ago in Borland C[++], GWbasic, Basica, QB [QuickBasic], and the like, aside from batch files and BASH shell scripts, of course.

    I would much-prefer him coding than playing Minecraft for hours on end(, and maybe get him a Model "M" keyboard, to boot).

    Thoughts?
  • #2
    ocabj
    Calguns Addict
    • Oct 2005
    • 7924

    Interpreted languages like perl or php are going to be fast to learn and quick to debug and produce actual results/output.

    But perl and php can foster some poor habits (e.g. global variable misuse), so you need to make sure you try to instill basic concepts of variable localization, and functions/subroutines from the get go.

    Fortunately, both Perl and PHP have some conceptual foundations for object oriented programming, so if you go with either of them, you can teach objects and classes to some degree.

    You can try to go with C++ or Java, since the GNU devkit (C/C++) and Solaris JDK (Java) are free. C/C++ will help translate over to other languages like perl and php, as well as Objective C which then leads to other development (e.g. iOS). Java is pretty much the same in terms of C/C++ as far as leading to conceptual understanding of other languages and directly leads to other development environments (e.g. Google Android).

    When I was in CompSci, the bulk of our courses used C++. We learned Java, Perl, lisp, and other languages in specific upper division courses. After I graduated, they started using Java instead of C++. From what I understand, they're using Java and Python now. I have a few undergraduate students working for me, and who are in the CS program, and they all know Perl and (Bash) shell scripting. Either that, or they learned it quickly because I had them do work that required it. Maybe it was a bit of a false assumption that they already knew it, but I certainly expected them to be able to learn it quickly if they didn't.
    Last edited by ocabj; 03-25-2014, 11:31 AM.

    Distinguished Rifleman #1924
    NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
    NRL22 Match Director at WEGC

    https://www.ocabj.net

    Comment

    • #3
      DeanC
      Member
      • Jan 2012
      • 100

      For a cheap, dedicated "learn to code" box, what about something like a Raspberry Pi? Cheap, runs Linux, takes almost no space and uses almost no power...

      Comment

      • #4
        glockman19
        Banned
        • Jun 2007
        • 10486

        Check out this site:
        W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

        Comment

        • #5
          Quiet
          retired Goon
          • Mar 2007
          • 30242

          Online learning site...
          Learn the technical skills to get the job you want. Join over 50 million people choosing Codecademy to start a new career (or advance in their current one).
          sigpic

          "If someone has a gun and is trying to kill you, it would be reasonable to shoot back with your own gun." - Dalai Lama (Seattle Times, 05-15-2001).

          Comment

          • #6
            Ninety
            Veteran Member
            • Nov 2012
            • 4062

            What about Visual Basics?
            NRA Member
            The Constitution does not bestow wisdom. It's up to the body politic to be wise. -Patriot
            All that is required for evil to prevail is for good men to do nothing.
            -Edmund Burke
            I'd much rather go to my grave never needing my gun, than go there wishing I had it.
            - Phil Dalmolin

            The Battle of Athens was illegal too.

            Comment

            • #7
              Barbarossa
              Veteran Member
              • Aug 2008
              • 4436

              How about HTML and then Java?
              Looking for a 3" Magnum 870 $200-$250ish

              Comment

              • #8
                ocabj
                Calguns Addict
                • Oct 2005
                • 7924

                HTML isn't a programming language.

                Distinguished Rifleman #1924
                NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                NRL22 Match Director at WEGC

                https://www.ocabj.net

                Comment

                • #9
                  ShadowX
                  Senior Member
                  • Jan 2013
                  • 622

                  IMO, Visual Basic is a better approach. Its easier to program and has more useful real world function since almost every computer has MS Office. There is also a lot of reference and training material available.

                  Comment

                  • #10
                    ldsnet
                    Senior Member
                    • Oct 2008
                    • 1430

                    Young kid interested in coding? Scratch!!!
                    You would be amazed at how advanced a program can be built with this little learning application

                    Scratch is a free programming language and online community where you can create your own interactive stories, games, and animations.


                    Once he gets the bug, then you can progress to a more advanced language and environment.

                    Comment

                    • #11
                      Barbarossa
                      Veteran Member
                      • Aug 2008
                      • 4436

                      Oh I thought he was asking about coding.

                      HTML is a nice skill to have though, and you do get some of that instant gratification, with seeing what you are doing appear on a web page.

                      Might be good for a kid. Plus give them an outlet for their interests.

                      WebMonkey provides digital marketing guides, in-depth software reviews, and nearby agency recommendations to help you achieve your business and career goals.
                      Looking for a 3" Magnum 870 $200-$250ish

                      Comment

                      • #12
                        Dr Rockso
                        Veteran Member
                        • Jan 2008
                        • 3701

                        If he wants to write code that interfaces with physical things (lights, motors, sensors, etc) Arduino might be something to consider and is pretty inexpensive to get started.

                        Comment

                        • #13
                          valdier
                          Member
                          • Sep 2012
                          • 371

                          So my strong suggestion for a kid wanting to learn to code would be the following language choices in order:

                          C# (Clean, concise, easy to understand and OO, awesome environment)
                          Python (Easy, quick to learn, capable and free)
                          VB.NET (Easy, quick to learn, awesome environment, OO-lite)
                          C (hardcore mode, closest to metal without assembler, teaches basic fundamentals)
                          Java (cross platform, very usable language, downside: oracle is slow to update, its spiraling into a monstrosity)

                          Do NOT teach to start:
                          Perl, Ruby, Javascript, HTML, Visual Basic, PHP, etc.

                          All for various reasons such as obfuscated hard to debug code, unmanaged and unsupported languages, different execution types across environments, not strongly typed, etc, etc). Perl is the worst offender of them all because it will teach him to code wrong, and will leave him with unreadable code.

                          Start him here perhaps:

                          Last edited by valdier; 03-25-2014, 4:12 PM.
                          sigpic

                          Comment

                          • #14
                            ocabj
                            Calguns Addict
                            • Oct 2005
                            • 7924

                            Originally posted by ShadowX
                            IMO, Visual Basic is a better approach. Its easier to program and has more useful real world function since almost every computer has MS Office. There is also a lot of reference and training material available.
                            Ugh. VB and Office are exactly why VB is looked down upon in the industry as not 'real' programming. If you're going to learn VB, learn VB.net so you can learn how to deploy server side applications, not client side fat clients.

                            Distinguished Rifleman #1924
                            NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                            NRL22 Match Director at WEGC

                            https://www.ocabj.net

                            Comment

                            • #15
                              valdier
                              Member
                              • Sep 2012
                              • 371

                              Originally posted by ocabj
                              Ugh. VB and Office are exactly why VB is looked down upon in the industry as not 'real' programming. If you're going to learn VB, learn VB.net so you can learn how to deploy server side applications, not client side fat clients.
                              ^^^^^ This.

                              Not only that but Visual Basic is a dead and obsolete language. Do *NOT* teach someone Visual Basic if you ever care or cared about them.

                              VB.net is actually a useful language behind the "easy" language interface.
                              sigpic

                              Comment

                              Working...
                              UA-8071174-1