How would you expect a revisions system to work? [closed] - version-control

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I need to keep a revision system of changes. My question isn't the structure but the behavior.
For example, let's say you are working on a webpage in a code editor. How often would you make a revision for the developer as he's coding the page? Do you save when he saves? Do you save every hour? How many revisions should you keep?
What behavior would you expect in this scenario?
Update:
It seems that it makes a difference if the content is saved online versus saved locally. In my project it's saved online like, WordPress posts or Google docs. I can save locally to the cache or even to a directory on the users computer if they use the desktop software.

When you are versioning, you:
make sure that teammates will not override each-other's work
write a version diary for future use to be able to handle any scenario
Since it is possible that at some remote time in the future you will need to roll back, it is better to make sure that upon looking at the commit messages, you will be able to determine easier where to roll back. Also, commit messages are helping your teammates to determine what did you do. As a result, my advice is that you should make a commit whenever you have completed a small part of your work, so your commits should be atomic and their message should be speaking for themselves.

Related

If someone copy your github repository and created a similar repository and claimed that it is coded by them. Is thst considered as plagiarism? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Someone copy my github repository and created another github repository simillar to my own. That person changed my name with his codename. And didn't even put a credits.
Is that considered as Plagiarism?
If no, can you explain why?
And if yes, can you tell me what I should do?
It is plagiarism. Which is perfectly legal, unless it leads to fraud (like getting a job based on the brilliant code in a git repository that the person never wrote). In academia it will have massive consequences if found out.
More important, it is copyright infringement. Send a DMCA takedown notice to github, and the repository will disappear very quickly.
In some countries, Germany for example, it violates the right of authorship, which is your right to claim that you wrote the code. In these countries nobody has the right to say they wrote the code when you wrote it, not even your employer - as long as you wrote it. Note this is separate from copyright.

Get data of website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to get the data of a website. I'd like to display the table in an app. Do you have an idea how I could do it? Thanks for your answers!
Usually, you'd want the maintainer of the data you need to supply some API for machine-to-machine communication (a REST JSON web service, for example).
Since you are asking how to display the table in an app:
the easiest way would be to just point an UIWebView that way and go from there.
a more native look might be acomplished by parsing the data. As you included several 'parsing' tags, I guess this is what you'd prefer.
The problem with HTML scraping web pages (what you probably hope to do) is that the data you are looking for and foremost it's structure is prune to changes. If some unexpected changes can easily break your parser.
Thus, if you go for doing that (which might be prohibited by your school or other publisher, especially in germany), try to parse the data on your server and offer an web service for your app yourself. This way, you can react to changes of the structure faster and do not break the app for your users.
Seriously consider asking the school for an API.

It is possible to work with github entirely online? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Simply put, can I use github online rather than ever having to download the program for windows. It appears to be much easier than downloading git or the github application. Any thoughts on this?
Yes, you can if you like. Github supports online editing and commit. But I don't think it's convenient since you cannot compile, run and debug your codes, and easy to lost your work when you close your browser without save.
You lose a lot of power by giving up the command line, but you can certainly do most routine tasks in the cloud. You can do some limited editing and repository tasks directly on GitHub, or hook into your GitHub repository with a cloud-based IDE like Cloud9, CodeEnvy, or other similar services.

How to maintain a small repository of bash/python scripts [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
For the past several years, I've been making small (single file, 1-500 line) scripts (mostly bash & python) to automate random tasks (usually scientific data analysis). Most of these end up being one-offs, but sometimes I want to go back and revisit/change something, or end up with a rather unwieldy script that could benefit from some sort of version control. I should note that all of these scripts are done solely on my own, and don't necessarily need to be share-able.
Which type of versioning (SVN,CVS,git,Mercurial..) Has the simplest command structure/syntax for my use case? More importantly, the machines I connect to are behind rather finicky kerberos walls, so I'm not looking for any sophisticated server-based implementation.
I found this thread from 2010 asking a similar question, though it didn't really talk about specific options, just whether or not I should be using a single repository.
In short, which versioning system allows for simple same-directory approach with minimal bells & whistles (only checkouts and commits needed)?
Should I set up some sort of subversion/CVS/git repository and just throw everything in?
Yes.
For your use-case, I suppose, SVN can be best choice (with URL-based access to every object in repo you can easy and fast get access to any single file any revision of file and for your linear history "not the best" merge in SVN isn't problem). Local file:///-based repository will require minimum of maintenance. You can use single-repository, flat tree (all files in /trunk)

Compare Harvest to other source control systems? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
From the top, "source control" seems like a bad way to describe CA Harvest; it's a deployment control system, and it's actually pretty good at just deploying code. I've found it to be lacking when doing source control tasks, though.
If you've used Harvest;
what did it do right?
what couldn't it do?
what did it do with a workaround so hackish it took 3x longer than you'd expect?
(Someone correct me if I'm wrong.) Harvest seems awesome for deployment control, enforcing steps along a deployment lifecycle, and getting a chain of approval for deployments to production. That said, it's missing on the developer-friendly side.
It seems like I need to use the Workareas; they let me put all the code on my local machine, so I can do development.
With Workareas, I can only synchronize from the repository, but not get a report of what just sync'ed in; I don't know what changed, or who changed it, or why.
To add comments to checkins using Workareas, you have to manually enable the functionality in the preferences, which is a huge red flag to me.
I can't seem to figure out how to find out what changed since a specific time; what changed since Friday at 5 PM, for example?
There aren't any atomic commits; I can't commit files as a group, then roll the group back later if something goes wrong. I can do it as a package, but that's heavyweight; a package should be able to contain hundreds of atomic commits/groups.
And worst of all, it's entirely unsupported by Stack Overflow and/or any other question-and-answer site I can find. If I can't figure it out... I'm shooting blind.
We're currently migrating away from Harvest.
Configuration management and code deployment. We have a pretty good process flow going.
Branching and merging. Horrible SCM tool really.
?