Documenting Your JavaScript | JSDoc Crash Course

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 150

  • @Lala-k4z
    @Lala-k4z 2 роки тому +6

    1:30 setup
    4:40 type: variables( in global scope)
    9:40 etc: custom template
    11:30 type: function( in global scope)
    14:30 type: custom type
    18:40 type: variables & methods ( in Class)
    24:30 type: Module
    27:50 etc: tutorials

  • @madebylewis
    @madebylewis 5 років тому +19

    Incredibly helpful! Especially for someone who can't convince their boss that a Typescript conversion is worth the dev time

  • @user-38e9f4e7cu
    @user-38e9f4e7cu 2 роки тому +10

    wow, i had no idea what JSDoc was, and in 30 minutes i got the whole idea so clearly! thank you so much! your tutorial is so concise and on point. loved it!

  • @Naochadporumtriz
    @Naochadporumtriz 4 роки тому

    I'm intern and I need to create a software documention by the first time and your video just saved my life, Grateful from Brazil

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 5 років тому +16

    One of the best documentation generation, even tho all look the same, this seems like the easier to get started with!

  • @ritwikmath7937
    @ritwikmath7937 5 років тому

    Your style of teaching is the best... no matter how hard the topic is, I always find it easy when you teach it... Love from India sir...

  • @k3rnel_err0r
    @k3rnel_err0r 5 років тому +4

    Brad, you're amazing. We need more people like you in this industry dominated by arrogants.

    • @aldocaamal7740
      @aldocaamal7740 5 років тому

      There are people out there trying to share real knowledge dude, but most of the times people don't even look around

  • @scodemy1976
    @scodemy1976 5 років тому +2

    Thanks a lot... Your channel has made me a better developer and has really improved my coding skills. Got motivated last month and I started my own web development UA-cam channel. Am grateful

  • @khalidelgazzar
    @khalidelgazzar Рік тому

    Superb video. Watched it like 2-3 years ago and back for a refresher.
    The nice thing about jsdoc (in addition to dynamic documentation) is adding some sort of lightweight type checking for JavaScript which is some sort in the middle between JavaScript & typescript.

  • @TheVertical92
    @TheVertical92 4 роки тому

    just stumbled over this in VS-Code by typing /** and auto complete, when i wanted to add a Description to a function.
    Thanks Brad 👍👍👍 Its a really cool Tool to use. Especially with the @ts-check! I wished i had seen this sooner.
    This video should have more clicks!

  • @dawidgaleziewski3335
    @dawidgaleziewski3335 5 років тому

    Whenever I need something ASAP you just got it explained perfectly. You are the real MVP.

  • @rutvikshah4589
    @rutvikshah4589 5 років тому +53

    Waiting for 1 million subscribers 🔥

    • @TraversyMedia
      @TraversyMedia  5 років тому +20

      Me too :) It is amazing to me I even hit 100k, 1M is insane. I started this channel just to get a couple extra clients for my business

    • @vaibhavnadgonde4397
      @vaibhavnadgonde4397 5 років тому +3

      @@TraversyMedia You will reach 10M in no time Brad, you are one of the most Honest creators here and I really like to see your videos and Udemy courses. Keep coding and keep helping us :)

    • @o.voytyn
      @o.voytyn 5 років тому

      @@TraversyMedia Keep Doing Brad. You're doing an amazing job and help a lot of people around the world, thank you very much. Wish you 10 million subscribers and only the high-budget projects)

    • @balsamirkovic7051
      @balsamirkovic7051 5 років тому

      Billion*

    • @cthulhulalala7182
      @cthulhulalala7182 3 роки тому

      @@TraversyMedia well well well.....

  • @Chandasouk
    @Chandasouk 5 років тому +19

    My coworker definitely needed this before I got hired...

    • @deola9862
      @deola9862 3 роки тому

      😂😂😂😂😂😂😂

  • @pawebanas9837
    @pawebanas9837 4 роки тому

    You are the best teacher ever.

  • @prateekgupta1417
    @prateekgupta1417 4 роки тому

    JSDoc not only enforces code commenting but also gives good looking docs in return ❤️

  • @AnatolyKosorukov
    @AnatolyKosorukov 2 роки тому

    Many thanks you for this short JSDoc tutorial.

  • @rishabh7g
    @rishabh7g 3 роки тому +1

    Thanks Brad, keep making these tutorials :)

  • @gracechoi257
    @gracechoi257 5 років тому +1

    Perfect!! This is just what I needed! Thank you Brad

  • @mukst1o
    @mukst1o 5 років тому +1

    I feel like I have a hundred videos from your channel saved to watch later and keep procrastinating xD...
    You do the best choices on what to record about, even when it's not directly about tech. Sometimes answering something that I'm thinking about, sometimes about things I did not know i had to study but as soon as I see the video title I know it's something important. Also you have the best codealongs.
    Thanks man.

  • @tahasoft1
    @tahasoft1 5 років тому +1

    One of the great benefits of using JSDoc is to be able to use the `closure compiler`.
    As well as type definition and support auto-complete at code editor

  • @xx-_someone_-yy
    @xx-_someone_-yy 3 роки тому

    This is just pure gold! Thanks man

  • @canerdemircigm
    @canerdemircigm Рік тому

    I watched Jest Crash Course and this JsDoc videos recently and they are very helpful

  • @cleancodez
    @cleancodez 5 років тому +134

    Brad Do a video on what to learn in 2020...Anyone with same idea like this comment

    • @TraversyMedia
      @TraversyMedia  5 років тому +41

      I will be doing my yearly guide soon

    • @cleancodez
      @cleancodez 5 років тому +1

      @@TraversyMedia that cool bro, also update us on the tec in cloud computing, serverless architecture....much on the line

    • @calebmbugua745
      @calebmbugua745 5 років тому +2

      @@TraversyMedia Heey Brad... Thank you very much for your endless contribution to the developer community...Lots of Love from Kenya...And eagerly awaiting for your VueJS series on the Node Master Class API....Thanks

    • @BilalBaloch-tl2bp
      @BilalBaloch-tl2bp 5 років тому

      Yes please. Will be waiting for it

    • @cleancodez
      @cleancodez 5 років тому

      @@calebmbugua745 Brathe Hadi Mimi niko Kenya.....'Hi from Kenya'

  • @rivosuoth
    @rivosuoth 3 роки тому

    One of starting points someone could take is this course, because it could allow any newbie to architect their codes from the beginning (of their career) especially since it cross-sections with typescript ideology

  • @ferdindev4019
    @ferdindev4019 5 років тому +2

    Thanks, Brad for this video and for your help, we really appreciate that.

  • @ridl27
    @ridl27 5 років тому

    Hey Brad. congrats with 1M! you surely truely deserve it! =)
    waiting for tutorial on swagger with node from you :D

  • @haciendadad
    @haciendadad 4 роки тому

    That readme option was dabomb! I hated that "Home" and wanted to change it, but I am using BetterDocs that is a template, so I couldn't use your approach since BetterDocs was already using the template, so at least I now have the Readme on that Home page. I'm glad I stayed to the last minute otherwise I would have missed it. :-)

  • @dusanaleksic4680
    @dusanaleksic4680 5 років тому

    I bought your udemy course JavaScript and React and it's awesome.Thank You Brad.

  • @YousefSh
    @YousefSh 5 років тому

    @7:55, you can also say *number[]* instead of *Array*.

  • @muhammedozalp
    @muhammedozalp 4 роки тому

    thank you very much bro ..
    I just used your codes with gulp-jsdoc3 and
    it is a very good feeling that it works at first try

  • @itahirk
    @itahirk 5 років тому

    I'm 100000% confident you'll hit 1 million before christmas.

  • @SethEden
    @SethEden 4 роки тому

    AWESOME!! Thank you for this, I found this video because I wanted to implement JSDoc into my application but I'd never done it. I structured my code with verbose comments and source links, but perhaps the formatting and tags need to be corrected to work correctly with the JSDoc formatting. Anyway, I guess it's time to get busy refactoring all the comments. Watched the video through once, now I guess I'll have to work through it a few more times and actually follow along. :-D

  • @NukhbaAhmadAli
    @NukhbaAhmadAli 5 місяців тому

    Thank you so much for this incredible tutorial.
    It really helped.

  • @tannercampbell
    @tannercampbell 5 років тому

    Wow, Awesome tool, great video Brad!!

  • @martinp7841
    @martinp7841 Рік тому

    I’m sold on using this in place of Typescript.

  • @bryankeysank
    @bryankeysank 5 років тому

    Berga, es que Traversy es el mejor codeando papá.

  • @justinphilpott
    @justinphilpott 3 роки тому

    Great video, for it's content and also the voice, totally fell asleep while listening to this on the train. May be it was the train ;) You should read bedtime stories :D

  • @sidneykantor
    @sidneykantor 3 роки тому

    Excellent video! So easy to follow. Thank you!!

  • @princechaudhary3382
    @princechaudhary3382 5 років тому

    Sir You are great i like your all videos it really helps me!!

  • @neerajdahal8215
    @neerajdahal8215 5 років тому +1

    Hello Brad. I wish there was a video about how to read documentation of any programming language. What stuff to search in the documentation and where to find it? I find documentation very hard to understand. Love from Nepal :D

  • @austinskylines
    @austinskylines 5 років тому +1

    Youre such a savage coder- than you for sharing!

  • @AnkurMishra1990
    @AnkurMishra1990 5 років тому +1

    23:00 `undefined` is the return type of greet method, if I am not wrong

    • @drozerahwebdev2845
      @drozerahwebdev2845 5 років тому

      The greet method should return a string type, not a function like console.log...
      /**
      * @property {Function} greet A greeting with the name and age
      * @returns {string} A string with the name and age of a given person
      */
      greet () {
      return `Hello, my name is ${this.name} and I am ${this.age}`
      }

    • @noideaofhowcallme
      @noideaofhowcallme 3 роки тому

      You should be right. I was actually searching, if someone else has posted it .

  • @Cognitoman
    @Cognitoman 5 років тому

    Dude!!!! I swear to god I was thinking of this idea 3 days ago holy shit...they actually have it. I was thinking about having metadata as well like In c#

  • @fagnersales532
    @fagnersales532 4 роки тому

    Wish did I see this video before... Awesome!

  •  4 роки тому

    Grate tutorial and good speaker!
    I knew quite a bit already, but i wonder one thing... at 20:25 you use @property, I thought it was fine to just use @type, what is the different? Also i came here looking for tutorials on namepaths with JSDoc 3 and also more about importing with typedef, do you have any more tutorials on jsdoc? would want to see a part 2,3,4 and wants to learn every trick about jsdoc cuz i hate compilers.
    I'm particullary looking if it's possible to use namepaths in @params
    kinda like @params {sdk.namespace.User} user

  • @jaiharshagottumukkala6538
    @jaiharshagottumukkala6538 5 років тому

    fantastic ....superb explanation bro .

  • @babyboie20
    @babyboie20 5 років тому +2

    would it be better to use JSDocs for type checking and enforcement or just use Typescript?

    • @arpanagarwal2524
      @arpanagarwal2524 10 місяців тому

      Typescript has the more expressive type system. Eg, try generics with JSDOC.
      Also, TS code reads more like actual statically typed languages. With JSDOC, you need to look north for every definition.
      TS has JSDOC support too, for older arcane projects that cannot practically fully be typescriped.

  • @kursionable
    @kursionable 4 роки тому

    Very cool introduction. I really like how VCode is checking the type when setting a wrong value (eg: reporting an error when assigning "a string" when the type is a number) @6:12. Do you know how I can enable such a feature for other IDE (do I need a plugin). I am using ESLint and VIM

  • @igorgoncalves5691
    @igorgoncalves5691 Рік тому

    Incredible, thx for this video!

  • @TheKennyWorld
    @TheKennyWorld Рік тому

    Types without build step, I'm in!

  • @rohitsancheti96
    @rohitsancheti96 5 років тому +1

    Brad love your tutorials.. can you make tutorial about swagger!

  • @nobodyeverybody8437
    @nobodyeverybody8437 Рік тому

    could you please let me know, how should I set the configs in a way that the generated HTML files will be able to read the necessary files from a certain link and not the default address? tanx

  • @pasteros
    @pasteros 5 років тому

    Another video post! Love this!

  • @abdifatahmoh
    @abdifatahmoh 5 років тому

    Thank you legend, Brad.

  • @ems_
    @ems_ 4 роки тому

    A great tool indeed!
    Great tutorial!
    Can it be used with Deno? If yes, how?
    Great channel brad👍🏻
    Always watching your videos.

  • @BlissAden
    @BlissAden 3 роки тому

    This is just very nice thanks!

  • @tjfaith1535
    @tjfaith1535 2 роки тому

    Please do you have a video on swagger with node typescript which was generator with express-generator

  • @timothygoh8237
    @timothygoh8237 4 роки тому

    Hi there, can I ask if it is possible to read more than one md file?

  • @JimKernix
    @JimKernix Рік тому

    It looks like the styles I'm changing in docs/styles/jsdoc-default.css are not sticking. Does anyone know how to make them stick?

  • @santhosh8495
    @santhosh8495 3 роки тому

    If I need to include whole directory in jsdoc.json file... What Should I give instead of "include":[" src"] ???.

  • @Krishnasaini
    @Krishnasaini Рік тому

    how his jsdoc comments are so colorful? which extension?

  • @fernbe
    @fernbe 3 роки тому

    Good work!

  • @juanvieira8249
    @juanvieira8249 5 років тому

    pretty clear, thanks!

  • @rvuyyuru
    @rvuyyuru 5 років тому

    Love to watch your content

  • @TAKcomps
    @TAKcomps 5 років тому

    So I should write in TypeScript instead, right?

  • @tannercampbell
    @tannercampbell 5 років тому

    Does this only work with Node.js? Could it work with something like Laravel if you pointed to those files in the jsdoc.json config file?

  • @bamokinamoandadestin7888
    @bamokinamoandadestin7888 Рік тому

    great job!!!

  • @snapblast1782
    @snapblast1782 5 років тому

    What IDE are you using? Can we configue IDE for jsdoc?

  • @BruX013
    @BruX013 2 роки тому

    Helpful. Cheers.

  • @jeniferfuentes4484
    @jeniferfuentes4484 5 років тому

    Brad i follow along your node express cc. i got problem installing bower even i tried in every computer

  • @ridl27
    @ridl27 5 років тому +2

    it reminds me of swagger. can you make tutorial about it too, please ? =)

  • @victorklimov5254
    @victorklimov5254 3 роки тому

    Now in settings.json you have to write this string: "js/ts.implicitProjectConfig.checkJs": true

  • @simonx3088
    @simonx3088 5 років тому

    so so so excellent!

  • @shashankmorekar2559
    @shashankmorekar2559 5 років тому

    can anybody tell me is UA-cam api v3 is free?does it have quota restriction?

  • @krstas03
    @krstas03 5 років тому

    Brad can you make tutorial "how to make appointment booking" if possible with google calendar? I found wordpress tutorials but is it possible to make without it? I'm trying to avoid wordpress if I can. Thank you legend :)

  • @flippantfishtaco3132
    @flippantfishtaco3132 5 років тому

    Struggling with getting methods to be documented relative to the instance type. Currently my methods show up listed on the same page as the module. I'd expect the instance type to have a page of its own, with methods listed there.

    • @flippantfishtaco3132
      @flippantfishtaco3132 5 років тому

      Solved: needed to use `@method module:ModuleName.MyClass#methodName`. Found here: github.com/jsdoc/jsdoc/issues/1185

  • @DA_Karas
    @DA_Karas 5 років тому

    I'm so grateful for your videos man. Would you like to make a video converting from Context API to Redux? I'm trying to learn both of them right now and it would help me greatly.

  • @notgamer2095
    @notgamer2095 5 років тому

    Hi @Traversy Media
    Is it better to use this jsdoc versus the traditional "make your code document itself" programming? Like some companies don't like to do documentations as per them, that just means your code is dirty.

    • @noideaofhowcallme
      @noideaofhowcallme 3 роки тому

      As someone in a position, where I need to maintain a programm (of just about 80MB) written by a predecessor at my place, I can say, that in my eyes you DEFINETLY NEED BOTH. If someone looks at your code without or with just little explainings, even the cleanest code will still raise many questions. Even having a jsDoc-documentation in many cases, it is still hard work to get behind the ideas of someone else.

  • @irsathkareem7513
    @irsathkareem7513 5 років тому

    please make a video on how to use gmail api for sending messages from nodejs backend

  • @konnorrogers7524
    @konnorrogers7524 5 років тому

    How would you document a curried function?
    IE:
    const curriedFunction = param1 => param2 => {
    return param1 + param2
    }

  • @olol6284
    @olol6284 5 років тому

    I appreciate what JsDoc tries to achieve here and I sincerely appreciate the content, Brad. I'm ever grateful. However, I think JsDoc makes a codebase looks dirty or kinda unnecessarily long, heck unreadable to some extent. I believe the simple traditional docstring does the job well without making the code look more complex than it is.

    • @YunisRajab
      @YunisRajab 3 роки тому +1

      Just minimize the comments if you don't like the look. The documentation + type checking is invaluable. JSDoc is pretty much TypeScript without the transpiling

  • @lekkyjayz6294
    @lekkyjayz6294 3 роки тому

    I got "There are no input files to process" error. Not even after copy pasting your config. Please help somebody!!!

  • @harshamv5113
    @harshamv5113 5 років тому

    What about using Swagger?

  • @HeyDan1983
    @HeyDan1983 5 років тому

    Brad I want to hear your thoughts on Svelte, I've been wating for your crash course also.

  • @tastaslim
    @tastaslim 4 роки тому

    how are you copying code i jsdoc.json file

  • @rajeshkab
    @rajeshkab 5 років тому

    Is there something like this for Python?

  • @abhaykumarjha5160
    @abhaykumarjha5160 5 років тому

    Hi Brad you are outstanding I watch each and every video of your channel and also in udemy one request to you can you make videos on UI/UX design because I am not finding a good one please make for udemy as well as for UA-cam I watch your udemy course modern html CSS it was excellent learn a lot please reply if you can make video on UI/UX design thanks for your contribution

  • @virginielemaire6502
    @virginielemaire6502 3 роки тому

    very interesting thank you

  • @genovo
    @genovo 5 місяців тому

    In VScode, The setting "javascript.implicitProjectConfig.checkJs": true is now deprecated in favor of the setting "js/ts.implicitProjectConfig.checkJs": true. Or simply at top of `index.js` add `// @ts-check` as Brad says

  • @chnsonic
    @chnsonic 5 років тому

    Wah! This software is cool!

  • @gudiputisairam346
    @gudiputisairam346 5 років тому

    Sir kindly please do work on back-end development please

  • @deepanshusingh2352
    @deepanshusingh2352 4 роки тому

    I would never knew what is the significance of
    /**
    *
    */
    until i watched your video.

  • @davidmaxwaterman
    @davidmaxwaterman 3 роки тому

    Two observations: 1) this seems to be more about vscode than jsdoc - how to use jsdoc without vscode? 2) fractions are not percentages...so 0.1 means 0.1% which is really low tax...you probably mean 10 and need to divide by 100 in the calculation; or call it a fraction/rate/something.

  • @anishgupta7463
    @anishgupta7463 3 роки тому +1

    It is the best way to show my middle finger to typescript developer.

  • @cubedev4838
    @cubedev4838 3 роки тому

    Please make tutorial on Swagger

  • @RahulYadav-nk6wp
    @RahulYadav-nk6wp 5 років тому

    Another option is to use jupyter notebooks with JS kernal.

  • @thaddydore
    @thaddydore 5 років тому +4

    Do video on how to read documentation for infant developers

  • @jaiharshagottumukkala6538
    @jaiharshagottumukkala6538 5 років тому

    Hii Bro ...Do an IONIC MOBILE APP ...USING ionic capacitor or cordova with angular frame work ...and deploy it in play store ...

  • @ezeamaka
    @ezeamaka 5 років тому +3

    I see 1million subscribers before the end 2019

  • @andig97
    @andig97 5 років тому +1

    awesome