Tips for naming variables and functions in programming | Javascript

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • I've always found it difficult naming variables and functions in Javascript, Typescript, Haxe. In fact, in most programming languages. This cheatsheet I found on Github helped me get more clarification on how to do this, particularly when it comes to naming functions.
    ---
    RESOURCES
    github.com/ket...
    ---
    TIMESTAMPTS
    00:30 Introduction
    00:44 English language
    01:07 Naming convention
    01:18 S-I-D
    01:44 Avoid contradictions
    02:00 The A/HC/LC pattern
    03:05 Variable prefixes
    03:21 Singular and plurals
    ---
    MY LINKS
    ☕️ Buy me a Coffee ► ko-fi.com/rich...
    🐦 Follow me on Twitter ► / ceiga
    👾 Join my discord server ► / discord
    #code, #webdevelopment, #javascript, #typescript, #webdev, #haxe, #setters #programming #tipsandtricks #help #resources #tip #awesometip

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

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

    Thanks for this

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

    I'm French and i write my variable in English , most programmer know English , in my opinion .
    These days , even France itself use lot of English word in the day to day interaction .
    English is the universal language nowadays very easy to learn and understand.
    And a programmer not knowing English is missing a huge lot of information useful in his learning . it's like over 80% of information is in English .

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

      This is interesting, thanks for sharing.

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

    Teach me form validation JavaScript please not a basic one but a smart one ❤

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

      Smart validation. There is the required HTML5 attribute but otherwise you'd have to use a library. What sort of things do you want to validate?