- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 03:03 AM
Hi All,
I want to know what is hard coding in scripting. Could you please give me different examples. And if our code is hard coded what is the problem.? And how to avoid using hard coding.
Thanks in advance 🙂
Solved! Go to Solution.
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 05:41 AM
under 'value' field.
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 03:12 AM
Hi Umar,
Please check these articles.
Hard-coded strings are bad, mmmkay
Hardcoded Sys ID's Could Be A Security Issue
Mark Correct or Helpful if it helps.
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 03:15 AM
Hello,
Consider the below example of adding two numbers.
var a = 2;
var b = 2
var c = a+b;
If you access a value from a variable or from other places then it's not hardcoded. but if use c = 2+2; then its hardcoded one
Hope you got this.