Skip to main content

View Diary: Science and math teaching: have you tried R? (38 comments)

Comment Preferences

  •  As far as I know, JavaScript (2+ / 0-)

    is only used for websites. To me it is quite similar to PHP. The one big difference of course is that PHP runs on the server while JavaScript runs on the user's computer. So their capabilities when it comes to accessing data on those two platforms are entirely different.

    The state of web programming is a bit disjointed. This was brought home to me by one of my sons, who has a formal programming education and who spent the first 5 years of his career writing customized database applications.

    His attitude about web programming is that it is ludicrous that you have to use about 5 different kinds of codelike entities to build a website these days: JavaScript, PHP, HTML, CSS, and a database, usually some variant of SQL.

    When it came time for him to create a website front end for something or other, he just went straight to the DOM (Document Object Model) which allows one to skip a lot of that other stuff and just create web page entities using the underlying system that browsers use, if I understand it correctly.

    Moderation in most things.

    by billmosby on Sat Dec 01, 2012 at 11:34:40 AM PST

    [ Parent ]

    •  can use javascript elsewhere (2+ / 0-)

      Adobe Photoshop, Illustrator, and InDesign, for example. It can also run server-side, although i've never quite understood why that would be useful given all the other options.

      ... about 5 different kinds of codelike entities ...

      They have discrete functions. SQL to fetch the data; PHP (among others) to ~do something with it~ and slot the results into an HTML template that the browser can render using CSS instructions and local scripting—including DOM manipulation—handled by the browser's JS engine.

      All things in the sky are pure to those who have no telescopes. – Charles Fort

      by subtropolis on Sat Dec 01, 2012 at 01:23:41 PM PST

      [ Parent ]

      •  Thanks for fleshing out the codelike entities... (1+ / 0-)
        Recommended by:
        FourthOfJulyAsburyPark

        I've had that discussion with my son, but he sticks to his opinion about it. I suppose if the web had been formally designed over the years all in one piece, it could have been better in a lot of ways. I wonder if our brains, having also undergone an organic "design" and implementation process, would also look suboptimal to a programmer, lol.

        Moderation in most things.

        by billmosby on Sat Dec 01, 2012 at 02:26:03 PM PST

        [ Parent ]

      •  Thanks for the elaboration. (0+ / 0-)

        It's funny, I never thought about it, but I was a really heavy user of Illustrator before I learned to program. I'll really have to look into it. Thanks for that info.

        My previous background had been primarily as a visual artist.

Subscribe or Donate to support Daily Kos.

Click here for the mobile view of the site