Best practices for coding in .NET

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

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

  • @Mahnoor055
    @Mahnoor055 Год назад +8

    --- Summarized points ----
    1- Readable
    2- Performance (dev vs prod)
    3- Reusable code
    4- Naming convention - variables, classes, properties, functions
    Eg, GetEmployee >> GetEmployeeList ----- both conveying same meaning but first is small
    5- DRY principle - Don't repeat yourself -- create helper classes/ function and reuse
    6- Class names, Method names: PascalCase
    7- Variables: camelCase
    8- Keep methods small and simple. Don't make it too large. Keep it short and simple. If it's too short, split its functionality and call the function in actual function..
    9- Create self explanatory method names so that you don't need to write comments

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

    Finally, your background is ready and looks good. :)

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

    Seriously very nice explanations. And I became your fan. day by day with your videos. Thanks a lot. :)

  • @venkatsubramaniyam7929
    @venkatsubramaniyam7929 Год назад +8

    Add comment is also a best practice in my opinion. As It can give a short brief of wat exactly we are doing in there.

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

    From side we should give comments because we should mention who has written code, date, modified by user etc.

  • @asadtufail-r4b
    @asadtufail-r4b Год назад +1

    Thanks and love from Pakistan... Your videos are very valuable

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

      Thanks and love from India. All the best for your career.

  • @DattaVadla
    @DattaVadla 4 месяца назад

    Another best Practice is to like this Video and follow this guy!

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

    Excellent, Looking more videos for code clenup tips

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

      Thanks Santosh. All the best for your career.

  • @riddhithaker3028
    @riddhithaker3028 Год назад +3

    SIr Please explain about Design Patterns also. Its very confusing theory wise

  • @OmprakashReddyLekiReddy
    @OmprakashReddyLekiReddy 6 месяцев назад

    Awesome explanation

  • @srilathadharmavaram7288
    @srilathadharmavaram7288 7 месяцев назад

    Good explanation and easily uderstand sir

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

    Good video 🎉

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

      Thanks Madhu. All the best for your career.

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

    Good understanding 👏

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

    nice video thank's alot

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

    Comment in xml style is for intel sense to generate descriptions when cursor hover over it.
    Also sometimes things seems to be simple but could have ambiguous meanings.
    What calculate salary means? Before tax/ after tax, any government deductions in effect?

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

      It is debatable Edwin. CalculateSalary is just any business logic method.

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

    Hi sir, please explain about how to make logic strong in programming, what are the steps should we follow , which topic should focus more in c# to become sharp in logical thinking and in programming, please make videos on this. What are the topics should we cover in data structure also

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

      Hi , in order to cover the basic C# concept , you should see the oops clearly then constructor , interface ,Array , List & other basic things from W3 school. once u feel u have good knowledge then search basic questions on google & you will get list of that. there u go, try to solve all of them it will probably cover your basic along with Array , list everything.

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

    Hi Happy,
    Please make video on JET token in Dotnet core.

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

    What about the comments inside function to denote some logics/description?

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

      Comments are up to you, if you think they are needed. Then put them.

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

    IF the GetEmployees method returned a collection of something, like an Employee object, then I would have a repository that implemented an IDataRetrieval (IReadDataRetrieval, IReadWriteDataRetrival, etc.) on a repository class and an overloaded Get method that returned various collections or instances of that domain object model class. I would NEVER name something Get that returned void UNLESS (and I would never do this without an architectural reason for it) an out/ref parameter returned data to the caller.
    GetVoid…😂😂 good one.
    Dont have List or Collection or other implementation details in your method names.

  • @engineersINnight
    @engineersINnight 11 месяцев назад

    Nice

  • @பிரையின்_ஏஜ
    @பிரையின்_ஏஜ Год назад +1

    Hi Happy Brother, am watching you a face interaction first time better but, am notice one thing why are you use always kubera mudra on hand gesture brother.... something something... But, Thank you Universe to delivery the Message.!🤗

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

      hehe... great observation. I just googled this kubera mudra. No idea bro, may be it comes naturally.

  • @DineshSaravanan-mw1nq
    @DineshSaravanan-mw1nq 7 месяцев назад

    your thought is verry use full for me Thank you

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

    Hii... My heartly thanks in advance.
    I'm so much confused about to learn dsa &algo.
    As a dotnet dev can i go with learn dsa in c#.
    Bcoz there is so many suggestion that if we learn dsa go for c++, java, python lik that.
    Can anyone clear my doubt. Pls

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

    Sir please share me how to make logic and inderstad

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

    Can you coding interviwe question

  • @NikhilMukkawar
    @NikhilMukkawar Месяц назад

    Sir, Future Of Dot Net Developer In 2025 Asking For Freshers

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

    Sir hindi me video bnvalijye

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

    JWT TOKEN

  • @AbhishekMishra-qe7fb
    @AbhishekMishra-qe7fb Год назад +1

    non coder 😂😂😂😂