1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can't Recall the HTML Code I Used for a Previous Project

Discussion in 'HTML & Website Design' started by Charlesleclerc, Jan 18, 2025 at 2:20 AM.

  1. #1
    Hey everyone

    I’m working on a new web design and I can’t remember the specific HTML code I used for a similar project I did before. It was a simple navigation menu, but I just can’t seem to find it in my files. Is there a trick to recovering old code snippets or ways to keep track of these things for future reference?

    Thanks for any help!
     
    Charlesleclerc, Jan 18, 2025 at 2:20 AM IP
  2. Efetobor Agbontaen

    Efetobor Agbontaen Active Member

    Messages:
    137
    Likes Received:
    41
    Best Answers:
    5
    Trophy Points:
    85
    #2
    Your question is a little strange.
    First, if you can remember some text that was certainly in the file you are looking for, you can try searching by file content.
    If you use a unix-like system

    grep "guaranteed text here" / -r
    Code (markup):
    Hmm... I would not call the suggestion below a trick, but you generally need a better File/Folder management system. ie... Categorize similar files into the same folder and give your files proper names.

    For Example:
    • All Web Projects go in a "Web" Folder
    • Music in a "Music" Folder
    • Photos in a "Photos" Folder
    ...and so on

    Some File/Folder Management Tips
    • Give your files relevant names
    • Avoid saving multiple copies of the same file
    • Avoid creating too many irrelevant sub-folders
    • Create a file naming convention and stick to it.
    • ALWAYS have a Backup. Preferably 1 in a different Drive and the other on a cloud service
    • Do not ever distribute your files across Multiple Cloud services
    and so on...

    Now as a Programmer
    ALWAYS! ALWAYS!! use a Version Control System (VCS) like GIT. Use it even if you are the only developer working on a project.
     
    Efetobor Agbontaen, Jan 19, 2025 at 8:04 AM IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,678
    Likes Received:
    4,493
    Best Answers:
    123
    Trophy Points:
    665
    #3
    Did you have it in a github (or similar) project?
    Was it indexed by the wayback machine
     
    sarahk, Jan 20, 2025 at 6:52 AM IP
  4. Charlesleclerc

    Charlesleclerc Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    I’ll definitely try searching by file content and start using a better file management system. I’ll also look into Git for version control. Seems like a great way to avoid this issue in the future. And no, I didn’t have it on GitHub or the Wayback Machine but I’ll keep that in mind for future projects. thanks for the help!
     
    Charlesleclerc, Jan 21, 2025 at 12:38 AM IP
  5. Charlesleclerc

    Charlesleclerc Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    do you have any specific tools or methods you’d recommend for setting up a file naming convention or folder structure that works well for web development projects?
     
    Charlesleclerc, Jan 21, 2025 at 12:43 AM IP
  6. GreenHost.Cloud

    GreenHost.Cloud Active Member

    Messages:
    391
    Likes Received:
    30
    Best Answers:
    3
    Trophy Points:
    73
    #6
    One trick I’ve found helpful is using a code snippet manager or even a simple text file to keep all my frequently used code handy. Also, don't forget to check your browser's developer tools, they sometimes save snippets from past projects.
     
    GreenHost.Cloud, Jan 22, 2025 at 2:34 AM IP