Best practices for coding in .NET

Поділитися
Вставка
  • Опубліковано 27 сер 2024

КОМЕНТАРІ • 43

  • @Mahnoor055
    @Mahnoor055 11 місяців тому +7

    --- 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

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

  • @anandhakumarjayarajan5498
    @anandhakumarjayarajan5498 Рік тому +1

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

  • @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.

  • @user-zd9wz2hy4u
    @user-zd9wz2hy4u Рік тому +1

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

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

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

  • @MrSantosh011
    @MrSantosh011 Рік тому +1

    Excellent, Looking more videos for code clenup tips

  • @mahadevck1773
    @mahadevck1773 Рік тому +1

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

  • @user-hb6xu1th5h
    @user-hb6xu1th5h Місяць тому

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

  • @srilathadharmavaram7288
    @srilathadharmavaram7288 4 місяці тому

    Good explanation and easily uderstand sir

  • @OmprakashReddyLekiReddy
    @OmprakashReddyLekiReddy 3 місяці тому

    Awesome explanation

  • @riddhithaker3028
    @riddhithaker3028 Рік тому +3

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

  • @rmcgraw7943
    @rmcgraw7943 18 днів тому

    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.

  • @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 10 місяців тому

      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.

  • @DineshSaravanan-mw1nq
    @DineshSaravanan-mw1nq 4 місяці тому

    your thought is verry use full for me Thank you

  • @madhukrishna3710
    @madhukrishna3710 Рік тому +1

    Good video 🎉

  • @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.

  • @kayalvizhi3624
    @kayalvizhi3624 10 днів тому

    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

  • @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.

  • @engineersINnight
    @engineersINnight 8 місяців тому

    Nice

  • @sajidshaikh2431
    @sajidshaikh2431 9 місяців тому

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

  • @பிரையின்_ஏஜ

    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.

  • @nagavarapuprasad1415
    @nagavarapuprasad1415 Рік тому +2

    Can you coding interviwe question

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

    Sir please share me how to make logic and inderstad

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

    Sir hindi me video bnvalijye

  • @sajidshaikh2431
    @sajidshaikh2431 9 місяців тому

    JWT TOKEN

  • @AbhishekMishra-qe7fb
    @AbhishekMishra-qe7fb Рік тому +1

    non coder 😂😂😂😂