I’m not a kid, but was told this JS kids book could be a good even for adults new to coding.

  • Artwork@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    28 days ago

    May I ask, why do you want to start from dynamically-typed non-OOP but Object-based programming language?

    • thomasefleming@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      28 days ago

      I work with an engineering team that uses JSON a lot for backend API calls. I’m an analyst, so I want to get a better understanding of the API side of things and also be able to use the API for some of my work. So I want to get a base knowledge of the format/syntax.

      Also JS is pervasive on the web built into all browsers and on the personal hobby side I’d like to build a blog hosted on GitHub without relying on Claude Code.

      • Knossos@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        27 days ago

        If you are already comfortable with Claude, you might find it useful to make a JavaScript application using Claude and then have it explain what it just wrote.

        For what it is worth, for little projects I will often use NodeJS to run JavaScript.

        • Artwork@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          27 days ago

          Fudge your Claude.
          You should rather suggest the person how to actually realize the code, flow, and programming.
          Yet you suggest the person to atrophy their mind and degrade the whole ineffably marvelous experience as programming…

  • verdigris@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    28 days ago

    I wouldn’t recommend javascript as anyone’s first language unless you have a specific reason to choose it, like a project written in JS that you want to play around with.

    I would recommend either Python, Go, or Rust. Python is simple and ubiquitous like JS but with much friendlier syntax. Go is not much more complicated with the bonus of static typing (basically more organized), and Rust is the complex, low-level language with built in guardrails in the compiler which will force you to write good, safe code – probably only move to this one after you’ve spent a good bit of time fooling with one of the others.

    • thomasefleming@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      28 days ago

      Would Python be ok even if I want to learn how JSON API calls work?

      I’m sure my questions are showing my knowledge level. 🤣

      • Artwork@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        28 days ago

        Holy gracious sakes… I am sorry, but I have no idea why the person suggests you Python over JavaScript at this point…

        Python is not only uncommon in syntax if compared to almost anything else popular, but also slow for web-dev just if you;d comapred its Jit to PHP or JavaScript’s runtimes even.

        There’s so much out there already online discussed and compared with… Why… do people just don’t care about others’ time with baseless questions and require others to step up and invest their time into in hope to support them to not make a yet another mistake…

        Again… Python… for web? Yes, it’s a great programming language for scripts (though I do still prefer Bash, Perl, JavaScript, and PHP, if we consider interpretable scripts only), and there’s Django and such, but… please do consider and compare the unique syntax, lack of proper accessibility scopes (e.g. private, public variables, without additional support/workarounds as conventions), speed and, more importantly, maintainability for teamwork and in personal life even, with other programming language for frameworks…

        Of course, not. No, Python would not be okay at all as a first language for web-dev. Please do consider a language that is C-like and is comprehensible, with modules and adequate packaging with at least pinnable dependencies which is not supported by the common package managers for Python at all.

        Please do consider actually strictly typed languages, or least as strict as PHP at this point.
        There are ineffably magnificent guide books for it, and the programming language as PHP is dated enough to find any Community to support if ever required. Frameworks like Laravel and Symfony are used by marvelous vendors, and you’ll get the idea who enterprise projects work. Valve’s Steam even uses PHP.

        Not sure what you meant by “JSON API” in this thread, but just in case:
        - https://laravel.com/docs/13.x/eloquent-resources#jsonapi-resources
        - https://laravel.com/learn/php-fundamentals/why-php
        - https://laravel.com/docs/13.x/installation#why-laravel
        - https://symfony.com/why-use-a-framework

        In case of JavaScript, I cannot suggest you the most precise, since I don’t know you. Every course should be approached subjectively I believe, since you have a different worldview, perspective, life and development experience. Why do you ask anyone such a question? Do you know these people to trust the answer even?
        What does “best” mean even?

        Where to start? Do you need to cover the object-based vs object-oriented programming?
        Do you want to know differences between NodeJS and common browsers (e.g. at nodejs.org)?
        Do you need to cover up specific JavaScript ECMA 232 subject - ECMAScript?
        Do you have questions regarding JavaScript engines like V8?
        What is it exactly you have issue with to focus on?

        Objectively, there are few references that are popular in fairly adequate places, and I would definitely recommend to start from those, too:
        - Eloquent JavaScript, 3rd Edition (book);
        - You Don’t Know JS Yet (book);
        - JavaScript - Laracasts;
        - Learn JavaScript Online;
        - Lightning Fast Builds w/ Vite - Vue Mastery

        Just in case, if you find the first two books mentioned interesting, you may also find the following special/marvelous, too:
        - Programming JavaScript Applications by Eric Elliott;
        - High Performance JavaScript by Nicholas C. Zakas;
        - Functional JavaScript by Michael Fogus;
        - The Definitive Guide by David Flanagan;
        - Effective JavaScript by David Herman.

        Have you checked out already?:
        - 1. Server-side rendering (SSR) subjects;
        - 2. Static-site generator subjects;
        - 3. Scrapers like Webscrapbook

        If you want something more restrictive, please consider languages with a compiler which are used for web-dev as:
        - Go: https://go.dev/solutions/webdev
        - Rust: https://rust-lang.org/what/wasm/

        I’ve been around 20 years into the web-development… and I still have no idea why people ask questions, listen to 1-2 answers, and start their learning from a start that may not match their requirements nor subjective worldviews…

        Please do consider reading about the current trends, benchmarks, the most common issues, and the main use of the languages out there…

        Or, please do ask actually valuable questions, which will save yours precious, finite, treasured life time, too…