What is a Linter and Why You Should Use One | Linters EXPLAINED

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 57

  • @CoderDave
    @CoderDave  3 месяца назад

    🆘 NEED HELP? 🆘
    Book a 1:1 Consultation with CoderDave: geni.us/cdconsult
    We can talk about GitHub, Azure DevOps, or any other DevOps tool or project you need help with!
    🙏🏻SUPPORT THE CHANNEL🙏🏻
    Buy me a coffee: www.buymeacoffee.com/CoderDave
    PayPal me donation: paypal.me/dabenveg

  • @Chatsworth1979
    @Chatsworth1979 3 года назад +8

    Yeah I would hope most teams use a linter of some sort already, if only to use while writing the code. The Visual Studio Code list of extensions included several dozen highly recommended linters. I don't code as much as I used to so I don't know which ones are the most popular / best at this time.

    • @CoderDave
      @CoderDave  3 года назад

      Couldn't agree more! Unfortunately not many teams do, at least in my experience

  • @danbacila5257
    @danbacila5257 3 года назад +6

    Amazing introduction video on linters, thank you for the information!

    • @CoderDave
      @CoderDave  3 года назад +1

      Glad it was helpful! :)

  • @varshasingh8769
    @varshasingh8769 Год назад +2

    Woww ! It was so informative & easily understanding. Thanks for helping us.

  • @alexandrostsagkaropoulos
    @alexandrostsagkaropoulos Год назад +2

    The explanation was perfect. Thank you so much for that!

  • @rajeevr075
    @rajeevr075 Год назад +2

    Is Linter required when a SCA tool like Coverity is already being used?

    • @CoderDave
      @CoderDave  Год назад

      It’s never required, but it’s definitely good to have 😀

  • @ChanceMinus
    @ChanceMinus 2 года назад +1

    Great stuff, Buddy! Thank you.

    • @CoderDave
      @CoderDave  2 года назад

      Great to know it's helpful :)

  • @ShukyPersky
    @ShukyPersky Год назад +1

    Hi. Thanks for your efforts. Just a comment - linters can't find bugs. They can't understand what logic is right. The don't analysis logic, they do code analysis. It may point to code which *may* cause a bug

  • @matiasbustamante6578
    @matiasbustamante6578 2 года назад +1

    Thank you. Very straightforward

    • @CoderDave
      @CoderDave  2 года назад

      Happy you liked it ☺️

  • @knownisdropunknownisocean.9282
    @knownisdropunknownisocean.9282 2 года назад +1

    Short & Sweet ...

  • @ShukyPersky
    @ShukyPersky Год назад

    wonderful video. Thanks!

  • @Syphonix3
    @Syphonix3 2 года назад

    Really good video my man.

    • @CoderDave
      @CoderDave  2 года назад

      Glad you enjoyed it!

  • @arifhossain8753
    @arifhossain8753 Год назад

    Most informative video

  • @shivamgupta2614
    @shivamgupta2614 Год назад

    Can u suggest the name of the best linters for VS code

    • @CoderDave
      @CoderDave  Год назад

      Well the list would be too long, because it depends on the language. However, with VSCode the best thing to do is seeing in the Extentions list which ones have the most stars ;)

  • @zicoalamsyah7984
    @zicoalamsyah7984 3 года назад

    Thx for the super clear explaination.. :)

    • @CoderDave
      @CoderDave  3 года назад

      Glad it was helpful!

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz Год назад

    Thanks, Great Video

    • @CoderDave
      @CoderDave  Год назад

      Happy you found it helpful

  • @muhammadjunaid1628
    @muhammadjunaid1628 9 месяцев назад

    thank you dave

    • @CoderDave
      @CoderDave  9 месяцев назад

      You’re welcome 😀

  • @denizural5390
    @denizural5390 3 года назад

    Great explanation 👏👏👏

    • @CoderDave
      @CoderDave  3 года назад +1

      Thanks! Happy to know you liked it ☺️

  • @jaideepsingh8109
    @jaideepsingh8109 2 года назад

    Thank you, sir

  • @W3HOW-ng6fi
    @W3HOW-ng6fi Год назад

    nice one

  • @AganzeFelicite
    @AganzeFelicite Год назад

    thsmks that was good

  • @joeb.1163
    @joeb.1163 3 года назад

    I enjoyed it

    • @CoderDave
      @CoderDave  3 года назад

      Thanks! What did you like of the video?

    • @joeb.1163
      @joeb.1163 3 года назад +1

      @@CoderDave the presentation and the content.. generally its put more context into the meaning of static code analysis and linters.

  • @antoineweb1
    @antoineweb1 2 года назад

    thanks

  • @gideonOluwajuwon
    @gideonOluwajuwon 2 года назад

    Which theme is this

    • @CoderDave
      @CoderDave  2 года назад

      Do you mean the VSCode theme? I think it’s just the default dark one… I’ve never installed any additional theme 😄

  • @szeredaiakos
    @szeredaiakos Год назад

    Yeah .. but linters do none of those things and/or are just plain redundant. In fact they make it worse in many cases. Team, and individual discipline produces high quality code, not linters.
    On the other hand, if we have nothing to do we pick it up and write a blog post on it so our competition can pick it up.

    • @CoderDave
      @CoderDave  Год назад +1

      I am not sure why you are saying that linters don't do what I mentioned in the video... nor why you think they make things worse. Ah right, perhaps millions of people using linters are wrong. That makes more sense

    • @szeredaiakos
      @szeredaiakos Год назад

      @@CoderDave I am saying that because I used them.
      There where millions of people burning women who had no kids and too many cats. So .. your argument is as invalid as invalid can get. But I am sure you are here for my arguments.
      First, there are some excellent tools which pick up, for example, unnecessary memory operations, duplicate code segments, etc.. which does remove some cognitive load and actually could make the codebase a bit better, provided there are no generalisation maniacs of your team.
      Any error detection that a linter may have is just simply incapable to detect anything more than glaringly obvious errors. Glaringly obvious errors get usually picked up by team members during the review meetings or pair programming sessions immediately. The visibility of deep nested errors, on the other hand, are an indicative of bad application architecture and few, if no linter will pick those up. Or .. legacy code, but rarely.
      Code readability and general conventions was never an issue. I have not yet met a developer who does not spend some minimum amount of time on making his code readable. And... I have yet to meet one which does unreadable code due to the style he uses. Tabs and spaces questions are retardedly simple and should not require a liner. Further, i like to keep a rhythm in my code. Broken 'if' statements, as another example, are not exactly readable.
      Security is a built in feature of every app (or it should be) ever created.
      That being said. The final nail in the coffin of linters comes from the general adoption workflow of it: Your team installs it, agrees on some general rules, spends 2-3 months battling and tweaking those rules, obviously increasing lead times, and after a while ... it becomes invisible. Everybody adapts and does perfectly conforming code. And therein lies the uselessness of linters in general. The linter does nothing anymore besides increasing deployment times and costs.
      Workflow for adaptive conformity involves a bit of back and forth at the integration stage. Which at the end produces much better results much faster which everyone enjoys to at least to some degree. Especially fast if you integrate changes 3-4 times a week.
      For newcomers to the team, I found it much easier to spend some time with them and explain how things are going around the team and ask for input. There has been multiple times I changed style, project patterns and even workflow because of the insights of a junior or a mid level new to the team. You can't do that easily with a linter in place and sure as hell fuck up if you rely on it exclusively (ask me how i know).

  • @akshaypatil8155
    @akshaypatil8155 Год назад

    in first 1 min one should be able to explain any concept in the most simplest manner...like teaching to a 5yr old....else it will be very tough to grow a channel which teaches complex things............

  • @muruga-h6g
    @muruga-h6g 9 месяцев назад

    boring content without graphics explanation

    • @CoderDave
      @CoderDave  8 месяцев назад

      Sorry you feel that way