Moderators: phlip, Moderators General, Prelates
elminster wrote:Amongst other things, we recently switched from using svn to git... my mind was blown a little after learning about it and trying it out. Like instant solutions for a whole ranges of problems with svn.
Vaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
Thesh wrote:If there was a centralized repository that allowed you to create checkpoints that other devs don't get (while still being saved on a centralized, backed up server) and was based on changesets, I think it would be more versatile.
Vaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
Aaeriele wrote:1. Local commits are faster.
2. Local clone means you can work from anywhere.
3. Local clone means you can keep work private until you want to publish it.
4. Local branching is faster.
5. Local history access is faster.
Those are the main reasons why distributed is inherently nice. Basically, it mostly comes down to speed - a centralized-server-based VCS is never going to beat a distributed VCS for pure speed, due to having local access to history.
EvanED wrote:I definitely disagree with the assessment that distributed is the only way forward.
EvanED wrote:Thesh wrote:If there was a centralized repository that allowed you to create checkpoints that other devs don't get (while still being saved on a centralized, backed up server) and was based on changesets, I think it would be more versatile.
Until you want to work on the bus or plane.
Though I do agree that, for a centralized-organization-type project where the version control doesn't present any new access issues, most of the benefits of Git over Subversion are "artifical" in the sense that a centralized VCS could provide the appropriate features (e.g. something like git add --patch/--interactive), but they just don't for whatever reason.
Aaeriele wrote:1. Local commits are faster.
Aaeriele wrote:2. Local clone means you can work from anywhere.
Thesh wrote:Aaeriele wrote:1. Local commits are faster.
You still need to push to a centralized repo often so that people can get your work. The only difference between SVN and Git in this regard are how often you commit (with SVN I find you either commit too often, or not often enough - with Git you either commit as often as you should... or not often enough). Adding a checkpointing system like I mentioned would solve this.
Thesh wrote:Aaeriele wrote:2. Local clone means you can work from anywhere.
Provided you have a laptop with your repo on it to bring with you.
Vaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
Aaeriele wrote:Thesh wrote:Aaeriele wrote:1. Local commits are faster.
You still need to push to a centralized repo often so that people can get your work. The only difference between SVN and Git in this regard are how often you commit (with SVN I find you either commit too often, or not often enough - with Git you either commit as often as you should... or not often enough). Adding a checkpointing system like I mentioned would solve this.
At which point you've effectively created a DVCS anyway.
EvanED wrote:I definitely wouldn't call it a DVCS if you don't have a local copy of the repository you can work from. Your disconnected operation is very impoverished in terms of the possible feature set, but still very useful because of how often (or really, how not often) most of the features are used.
Vaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
Rysto wrote:I have to use Clearcase at work(although I'm trying to change that). To me, a significant advantage of DVCS is never being brought to a standstill because the central server is down.
Edit: Oh, and if your business expands to the point where you have a second site half a world away, your remote workers will *not* appreciate having to do all of their work through a sever on the other side of a VPN.
Steax wrote:EvanED wrote:I definitely disagree with the assessment that distributed is the only way forward.
I'm thinking it's the way forward due to the nature of how collaboration is moving. We're constantly edging towards a work environment where people can work from anywhere, where on-a-whim brilliant ideas at 2 AM are encouraged, and data is increasingly moving to the "cloud" rather than a big server in an office. While I agree that a DVCS, at this point, still loses out at certain points against non-distributed ones, I do think it's the only way forward.
Aaeriele wrote:EvanED wrote:I definitely wouldn't call it a DVCS if you don't have a local copy of the repository you can work from. Your disconnected operation is very impoverished in terms of the possible feature set, but still very useful because of how often (or really, how not often) most of the features are used.
I was more just pointing out that saving local snapshots is just a hop skip and a jump away from implementing full disconnected operation, because it requires you to be able to do local history tracking - once you have that, adding the option to download more than just the latest version is pretty trivial.
Steax wrote:FT: I really need a proper MySQL versioning system. Also preferably a MySQL backup script (does that necessitate a full dump?). Any suggestions?
mysqldump -u user --password=password database > /path/to/dump.sql
cp /path/to/dump.sql /path/to/backup/dirVaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
headprogrammingczar wrote:Steax wrote:FT: I really need a proper MySQL versioning system. Also preferably a MySQL backup script (does that necessitate a full dump?). Any suggestions?
- Code: Select all
mysqldump -u user --password=password database > /path/to/dump.sql
cp /path/to/dump.sql /path/to/backup/dir
The dump size will usually be smaller than the memory footprint of the database itself. If regular dumps are performance-prohibitive, you can also try mysqlhotcopy, binary logs, or even go all the way and hot-swap RAID drives (which will back up everything else, but hey...).
See also, the mysql docs.
I'm not sure what you mean by versioning system, so I can't comment on that part of the question.
bittyx wrote:@Steax: I've never actually used it, but I have this in my bookmarks for if I ever need it: http://schemasync.org/
You could also use something like this: http://codeigniter.com/user_guide/libra ... ation.html <--- I've been meaning to start implementing something like this for a while now, but haven't gotten around to it. Seems pretty convenient in theory, but as I haven't tried it, I can't speak from experience.
Jplus wrote:Spaghetti code, you say? Then where are the unguarded jumps?
Shivahn wrote:Coding fleeting thought: What does it mean to know a language? Like, when do you feel comfortable saying "I know Ruby" or something? Or is it just something you go with when you feel confident in your ability to code an arbitrary thing?
Jplus wrote:I'm afraid it depends on the language. For example in C++, knowing the syntax and the standard library functions certainly isn't enough to say that you know the language. I passed that point, but there turns out to be more to learn every day. OOP, generic programming and template metaprogramming are all extremely rich topics with aspects that are very specific to C++. Not to mention several Boost libraries that require entirely new ways of thinking.
Steax wrote:I think that's typically why people will say they know a brand/framework/library/whatnot instead of just "I know C++". Anyone plain-out saying that is likely either grossly underestimating the language, or a really really good programmer.
Thesh wrote:For the level of abstraction that System.Security.Cryptography has, is a generic PBKDF2 class too much to ask for?
Vaniver wrote:Harvard is a hedge fund that runs the most prestigious dating agency in the world, and incidentally employs famous scientists to do research.
afuzzyduck wrote:ITS MEANT TO BE FLUTTERSHY BUT I JUST SEE AAERIELE! CURSE YOU FORA!
Shivahn wrote:Coding fleeting thought: What does it mean to know a language? Like, when do you feel comfortable saying "I know Ruby" or something? Or is it just something you go with when you feel confident in your ability to code an arbitrary thing?
Shivahn wrote:Coding fleeting thought: What does it mean to know a language? Like, when do you feel comfortable saying "I know Ruby" or something? Or is it just something you go with when you feel confident in your ability to code an arbitrary thing?
Thesh wrote:So apparently, .NET implements PBKDF1 which allows you to specify a hash algorithm, and PBKDF2 using HMAC-SHA1. I need PBKDF2 using HMAC-SHA384, which means I have to write my own implementation (or steal someone else's). For the level of abstraction that System.Security.Cryptography has, is a generic PBKDF2 class too much to ask for?
Users browsing this forum: No registered users and 6 guests