Advertisement:

Author Topic: Keeping track of code changes - best method?  (Read 2793 times)

Offline Looking

  • SMF Hero
  • ******
  • Posts: 2,475
  • SMF Customization
    • jeanborde on Facebook
    • SMF Custom Themes & Custom Coding
Re: Keeping track of code changes - best method?
« Reply #20 on: March 27, 2019, 05:34:00 AM »
I do the same as GL700Wing and also keep dated backups before major changes.

Offline GL700Wing

  • Full Member
  • ***
  • Posts: 492
  • Gender: Female
Re: Keeping track of code changes - best method?
« Reply #21 on: March 27, 2019, 06:05:27 AM »
... also keep dated backups before major changes.
Ditto - plus I have a test forum with all the same Sources/Themes files where I stage and test *all* changes before making them on the production forum. 
Life doesn't have to be perfect to be wonderful ...

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,359
  • Gender: Female
Re: Keeping track of code changes - best method?
« Reply #22 on: March 27, 2019, 08:04:55 AM »
Um, why not? A local repository sits on your computer...
And unless you're messing with attachments or avatars, most files are under a hundred kb, when you upload them to the forum server... Not that it even makes any difference compared to downloading backups or uploading packages to the forum... Even a full zip with all files doesn't go over some 5mb.

(Ps: My Internet has roughly the same rates...)

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 918
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Keeping track of code changes - best method?
« Reply #23 on: March 28, 2019, 10:58:39 PM »
OK maybe I misunderstood local repository to mean FULL back up.

Does it just mean ' a copy of files I've changed ' ?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,856
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Keeping track of code changes - best method?
« Reply #24 on: March 29, 2019, 12:44:44 AM »
You would probably want a full mirror of your files, but that wouldn't be much to download once.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,666
    • StoryBB/StoryBB on GitHub
Re: Keeping track of code changes - best method?
« Reply #25 on: March 29, 2019, 03:40:10 AM »
OK maybe I misunderstood local repository to mean FULL back up.

Does it just mean ' a copy of files I've changed ' ?

No, it means a system designed to track every change made and let you leave yourself notes as to what changed and why.
Please don’t PM me for paid work, I’m not for hire, and even if I was, I doubt you could afford me.
USD$150 per hour. Typical waiting list 3 months.

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 918
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Keeping track of code changes - best method?
« Reply #26 on: March 29, 2019, 11:14:00 AM »
and that's what Im getting at - how best to structure such a system ?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,359
  • Gender: Female
Re: Keeping track of code changes - best method?
« Reply #27 on: March 29, 2019, 11:16:15 AM »
A local repository is the same as a github repository (or whichever other git repositories out there), except it is only in your computer, and not on the internet.

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,101
    • sbulen on GitHub
Re: Keeping track of code changes - best method?
« Reply #28 on: March 29, 2019, 11:20:30 AM »
A 'repository' is all of the above.  A source code control system.  Repositories have a copy of the code as well as methods to regulate & track all of the changes.  More traditional source code control systems  (old school...) would have a 'checkout' function, like a library, to make sure folks' changes didn't conflict with each other; only one person was allowed to udpate a file at a time.  More modern source code controls systems (like Git) work at the 'commit' level - specific lines of code changed, "diffs" - which enable different folks to work on the same file concurrently (but have an added layer of complexity as a result for resolving the conflicts that will happen). 

Git is one of the more popular repositories in use today.  Using SMF 2.1 as an example, you have:
 - a copy of all the current source code: 
         https://github.com/SimpleMachines/SMF2.1/tree/release-2.1/Sources
 - a log of changes made: 
         https://github.com/SimpleMachines/SMF2.1/commits/release-2.1
 - with each detailed "commit" having specific changes made with notes as to why: 
         https://github.com/SimpleMachines/SMF2.1/pull/5545/files

Note that with Git, you do not have to use Github.com at all if you don't want to - you can have a local copy on your PC.  OR, you can have a private copy up on Github. 

Git is kinda complex, but extremely powerful.  Worth learning & using, IMO. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline vondes

  • Newbie
  • *
  • Posts: 1
Re: Keeping track of code changes - best method?
« Reply #29 on: December 09, 2019, 01:59:38 AM »
Thanks all

GL700wing yep i agree with your method and that's great for individual code but I'd like to keep some master list so I easily know what files I've made manual edits to; as well.


Arantor & shawn Git repositories are well beyond me :)

skb yes but if the forum is down, so is that thread !

Offline m4z

  • 98.8% chimp
  • Localizer
  • Sophist Member
  • *
  • Posts: 1,102
  • /mɛs/
Re: Keeping track of code changes - best method?
« Reply #30 on: December 09, 2019, 03:21:35 AM »
Arantor & shawn Git repositories are well beyond me :)

If you're willing, you can change that.
"Faith is what you have in things that don't exist."
--Homer Simpson