![]() |
The new MCServer coding style? - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: The new MCServer coding style? (/thread-509.html) Pages:
1
2
|
The new MCServer coding style? - Lapayo - 07-09-2012 Good Morning, yesterday I commited some changes to the svn, but unfortunately I have missed that there is a new style now? (Without c in the filenames?) Is it discussed/noted somewhere? ![]() And what are the other changes made done to the style? Thanks, Simon Edit: And which is the actively maintained project file? Because I just installed VS2008 and saw that their File is much cleaner than the VS2010 project file ![]() Also the first thing I had to do yesterday was to fix the VS2010 project file. RE: The new MCServer coding style? - NiLSPACE - 07-09-2012 I use vc2008 for compiling. Xoft said that i should use that one. Anyway i am happy there is another developer ![]() RE: The new MCServer coding style? - xoft - 07-09-2012 Hi, there is not a new style per se, it's just an incremental change in style ![]() The VS2010 project was maintained by FakeTruth, but he gave up and went VS2008, too, when he found out that VS2008 is a much faster IDE ![]() One more note, though, about your commits: if you rename a file, rename it through SVN, so that the file keeps its history. What you did to BlockArea caused it to lose all history, so now SVN Blame, Revision graph etc. don't work as expected. If you're using TortoiseSVN, you can "fix" files renamed by other programs: when committing, select the deleted filename and the new filename, rclk and choose "fix move / rename". That will inform SVN that the two files should be linked together history-wise. RE: The new MCServer coding style? - Lapayo - 07-09-2012 Well, which style should I use now? ![]() With c infront of the filename? c infront of the classname? ![]() And VS2010 vs VS2008: Yeah, VS2008 is really much faster, but I only have the Express Version. With VS2010 I have the Professional Version ![]() And sorry for the delete, recreate ![]() I didn´t knew TortoiseSVN / SVN must be commanded to rename it. (Git user .. pfff ![]() RE: The new MCServer coding style? - FakeTruth - 07-09-2012 I still use c in front of the filename and classname RE: The new MCServer coding style? - Lapayo - 07-09-2012 Mhh, but we should agree on one still, shouldn´t we? And I think the best would be to keep it, because it would take hours to change everything. RE: The new MCServer coding style? - xoft - 07-10-2012 I keep the old ones, but when I create new files, I don't use "c" prefix anymore. It's a hassle to sort the directory, then. I plan on renaming all old files, one day. The first step has been already done - the *nix makefile no longer lists all the filenames ![]() As for class names, since many of them are exported to Lua, it makes sense to keep them. Also, I've grown both on MFC which uses the "C" prefix, and Delphi, which uses the "T" prefix, so I'm pretty used to having a class prefix. To be honest, I now have no idea on how to fix that file's history. I considered myself SVN-educated, but this is above me. I tried reverse-merging, but that didn't work, because the file contents didn't change. Lapayo, I'd really appreciate if you could clean up the repository, deleting all the _OLD_ files that are not needed anymore. That's why the code is in a repository - if anyone needs those files, they can revive them from the history, no need to keep them around cluttering the current code. RE: The new MCServer coding style? - Lapayo - 07-10-2012 The _OLD_ files should be removed in the next revision ![]() RE: The new MCServer coding style? - ThuGie - 07-10-2012 Hey, About the vs2010 i use vs2010 pro. And it works perfectly for me btw.. always had. just 76 warnings :p. RE: The new MCServer coding style? - xoft - 07-10-2012 There's still source/_OLD_SquirrelBindings.*, can that go as well? |