Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^8: Uniquely identifying each & every html template

by Nik
on Jan 22, 2013 at 06:32 UTC ( #1014579=note: print w/replies, xml ) Need Help??


in reply to Re^7: Uniquely identifying each & every html template
in thread Uniquely identifying each & every html template

You are right. What i ask cannot be done.

so, i guess i have to decide if the identifier will be the "filepath" or the "hash" (based on file's contents)

Which method do you advise me to use?
  • Comment on Re^8: Uniquely identifying each & every html template

Replies are listed 'Best First'.
Re^9: Uniquely identifying each & every html template
by BrowserUk (Pope) on Jan 22, 2013 at 07:03 UTC
    Which method do you advise me to use?

    Seems to me that file contents is likely to change far more often than filepath. And applications that edit contents tend to retain the same name for the edited file.

    Plus, even if you copied a file verbatim to a different path, they are no longer the same file as they are likely to be parts of different applications and/or websites. As such, the contents are likely to diverge over time as the separate apps/sites change.

    In short, I'd use the filepath.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thank you for all your help you provided me! Let's just hope i can code this.
Re^9: Uniquely identifying each & every html template
by choroba (Chancellor) on Jan 22, 2013 at 09:43 UTC
    Well, what about a version control system? SVN or git can track files as they are moved around, because you do not use the system's mv, but rather the VCS's variant of the same.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014579]
help
Chatterbox?
[hippo]: Cut should beless than 20% after tax, though. :-)
[Corion]: hippo: Yeah, but at least two years ago, it still was close enough to 20% cut
[Corion]: But I have a very positive experience with a four day workweek and a three day weekend. I can't easily go back though to full money.
[Corion]: That is easy without having to pay for a house, a wife or children though. If I had any of these, or any two of these, the decision wouldn't be that easy.
[ambrus]: wait. I understand no wife and children, but how do you not have to pay for a house?
[hippo]: I had a low-paid job about 20 years ago and seriously considered going down to a 3-day week. Would have worked 60% of the time for about 80% of the cash.
[Corion]: ambrus: Well, I pay rent, but don't own a house with variable/ unforeseeable costs

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-09-21 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (249 votes). Check out past polls.

    Notices?