We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

PrashantLearnIT
Tera Sage

Hello Everyone,

 

Your code is like your new puppy, named Fifi (French poodle). You yourself know and love Fifi, but nobody else quite understands what tricks Fifi can do and how Fifi behaves. So keep three things in mind:

  1. Give a block of code a comment. Whack it on top.
  2. You want a newbie to look at your code and go, "I totally get it."
  3. And you want to be able to look back at your own code in 10 years time and think, "impressive."

Please avoid:

  • Comments that sit beside a line of code. The names of your functions and variables should make it clear what each individual line does. We understand sometimes this is unavoidable, like when dealing with sys ids.
  • Commenting every single line of code. Someone will get slapped. Slap-ees beware.

 

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

 

Best Regards,

Prashant Kumar (LearnIT)

 

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635