- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
It's a great system. They should setup another bot to commit the current date and time, the website visitor's client IP address, and the web server uptime. All of these should be separate jobs (god forbid combining them into one execution), and a CI/CD run to deploy the new code to the server.
Admin
A good idea. While they're at it, why not create a separate branch for each user, and CI/CD that to the user's URL? That way, you can update the content all in one place. DRY, baby!
Admin
If I was in Justin's situation, my "bigger issue to tackle" would be "how soon can I get an updated CV out to recruiters?" ...
Admin
Or stop using Git and track history in databases
Admin
Wouldn't the best option (if you had to keep these bot commits) be to have a separate branch that was rebased (or merged) against master/main. Then the bot would update THAT branch, which would then go into their web server?
Admin
Wouldn't the best solution be to drop the download count?
I do not do web development, but my thoughts are:
Hmm, isn't a download counter a solved issue already? Why reinvent the wheel like this?
Admin
There's a meme about keeping your hands warm while riding a bicycle. I think this falls into that category.
Admin
Stinky is right!
Admin
I don't know that meme and I am afraid to look it up.
Admin
It isn't really that scary. It's just a bunch of people discussing different ways (all more or less, usually more, in the spirit of Heath Robinson or Rube Goldberg) to keep their hands warm while riding a bicycle, spiked in the end by some who just says, more or less, "why not just wear gloves?".
Admin
I had worked for a financial firm that kept one set of pricing data in VCS. There was a new commit daily. I don't know which is worse. :-)
The normal download counter doesn't keep a history of dates. With this system, you can see how many downloads were done on October 3, 1981, for example.
Admin
If I wanted to do a download counter on my site (which is static generated, BTW), this Git method would be how it would be handled.
Admin
When the only tool you have is a single coke bottle, it gets used as a hammer. And a container. And a ...
Admin
When you have a fully stocked toolkit, but the only thing you know how to use is the coke bottle you've just finished drinking...
Admin
How about a database table which has a row for each download with d/t, IP, session ID or user ID, etc. etc.? You get the count, the detailed history, and no source control commits to boot!
Admin
That's called fossil.
Admin
https://thedailywtf.com/articles/the_complicator_0x27_s_gloves