These days I started a "little debate" here at IT on this subject. I noticed that several functions, where we returned the path of the image (for the browser), was named getImageLink
.
For example:
public function getImageLink() {
return $this->base_url . '/imagens/' . $this->id . '.jpg';
}
The return of this would be:
'http://meusite/imagens/1.jpg'
Then I started to think that maybe "link" referred to an "url" used with the tag <a>
. I do not know if my statement is correct, but in the end I decided to change the name of the methods, which are now called getImageUrl
.
I picked up the custom by hearing people say "link" and "url" when it comes to the address of a website we type in the browser's navigation bar, for example.
Questions
-
From the programming point of view, should I call this "image path" (for the browser), "url" or "link"?
-
What is "link" and what is "url"? What's the difference between one and another?
-
To be "link", does it have to be clickable?