D
D
Dmitry2020-12-28 20:01:25
Programming
Dmitry, 2020-12-28 20:01:25

How to name a variable, template or pattern?

Let's say we have a variable that stores a string of the following form:

"https:://example.com/index.php?<QUERY_PARAMETERS>"
. QUERY_PARAMETERS will later be replaced by the desired value. In this case, what is the best way to name the variable? templateor patternand why? My intuition tells me pattern...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2020-12-28
@MaKvc

this is called uri template , the pattern is also applicable, but why if there is an established name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question