Click here to Skip to main content
15,893,644 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Multi-Tenant Architecture Pin
John D. Sanders5-Mar-14 11:17
John D. Sanders5-Mar-14 11:17 
GeneralRe: Multi-Tenant Architecture Pin
Nitin Singh India12-Mar-14 20:56
Nitin Singh India12-Mar-14 20:56 
QuestionTribalwars, Travian, and similar browser games Pin
AhmedMSedeek7-Jan-14 4:57
AhmedMSedeek7-Jan-14 4:57 
AnswerRe: Tribalwars, Travian, and similar browser games Pin
Marco Bertschi12-Jan-14 5:39
protectorMarco Bertschi12-Jan-14 5:39 
AnswerRe: Tribalwars, Travian, and similar browser games Pin
jschell12-Jan-14 9:11
jschell12-Jan-14 9:11 
QuestionI need to rethink my app structure, anyone care to comment? Pin
Kim Johnsson6-Jan-14 3:15
Kim Johnsson6-Jan-14 3:15 
AnswerRe: I need to rethink my app structure, anyone care to comment? Pin
Keld Ølykke20-Jan-14 10:39
Keld Ølykke20-Jan-14 10:39 
QuestionC# teamwork coding style Pin
comiscience5-Jan-14 23:09
comiscience5-Jan-14 23:09 
I'm not a project manager, i'm just a developper. But i wanna know yours opinion for coding together in a team. Here will listes my coding habits which i think is good. This article is partially on the opposite of another article of mine "Several Easy WPF Teamwork Tricks"


Unify naming convention. We'll encounter some Here is a paragraphe of the reply of a friendly member of CodeProject :

While some people may not like switching coding styles, it does not take very long to get used to coding a different way. There is a huge benefit to having a standard coding style. On my development team, we adhere to a somewhat strict coding style. It doesn't matter what file you look at, it is written the same as every other one. It is very easy to read other peoples code since it looks like your own. I know immediately when I look at an identifier whether it is a member field, public property, or local variable without having to go search for where it is defined. If I did have to search for where it is, it would be in the same spot in the file as it is in every other file because there is a standard.

Unify comment humain language. I'm a Asian guy who lives in France. My main language is not french nor english. But i read only English technical books and i speak French everyday. It's sure that i don't write Chinese in my project because all my other collegues won't understand it. But should we comment with English ? Or French (Native humain language) ? One point i'm sure is that comment with both English and French could be a very terrible thing. (At least, it makes me very angry sometimes).

Version control of third party libaries. I use DevExpress, mysql and so on in my project. I'd like to update them once they published their new version. It cause sometimes a very big change in my project. But i'd prefer to update it all the time. Because we can track its changes without missing some important things. But if work with team? I think we should negociate it. I prefered to suggest them to update versions frequently. Because we can always keep the same version for the same project. I know it cause us lot of work in every update.

Length of Method. I don't like methods which contains more than 30 lines. It makes code urgly. It's my style. Because i found that it's more clear when we read method with less than 30 lines. We could find the function module quickly. We watch a function module with F12 instead of scroll our mouse. Method's name could also be used as a comment. It sometimes forced us to write more reusable methods.

C#
// Here is an exemple shows that the important of length of Method.
        public void RunSome()
        {
            try
            {
                if (!PrepareEngin()) throw new Exception("No usable engin");
                if (DoWeHaveAnCat())
                {
                    PlayWithCat();
                }
                else if (GoToBuyAnCat())
                {
                    RunSome();
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }
        }

        private bool PrepareEngin()
        {
            // Some code here
            return true;
        }

        private bool DoWeHaveAnCat()
        {
            // Some code here
            return true;
        }

        private void PlayWithCat()
        {
            // Some code here
        }

        private bool GoToBuyAnCat()
        {
            // Some code here
            return true;
        } 

Don't have too many empty line in a method. It wastes my time to read it and positionning!
A teamwork should be harder than a solo work. I'll work with a team in 2014. I'm not project manager, but i wish we'll have a good 2014
History
An opposite article of mine ("Several Easy WPF Teamwork Tricks") was criticized by members. I'accept that it wasn't a good article. But it's also an other way of thinking.

modified 7-Jan-14 2:21am.

AnswerRe: C# teamwork coding style Pin
Eddy Vluggen6-Jan-14 12:42
professionalEddy Vluggen6-Jan-14 12:42 
GeneralRe: C# teamwork coding style Pin
comiscience6-Jan-14 20:19
comiscience6-Jan-14 20:19 
GeneralRe: C# teamwork coding style Pin
Eddy Vluggen7-Jan-14 9:27
professionalEddy Vluggen7-Jan-14 9:27 
GeneralRe: C# teamwork coding style Pin
comiscience7-Jan-14 20:41
comiscience7-Jan-14 20:41 
AnswerRe: C# teamwork coding style Pin
Pete O'Hanlon7-Jan-14 22:46
mvePete O'Hanlon7-Jan-14 22:46 
GeneralRe: C# teamwork coding style Pin
comiscience7-Jan-14 23:02
comiscience7-Jan-14 23:02 
QuestionBase class method access VS. abstract class Method access Pin
netfed4-Jan-14 22:28
netfed4-Jan-14 22:28 
AnswerRe: Base class method access VS. abstract class Method access Pin
Kornfeld Eliyahu Peter5-Jan-14 2:14
professionalKornfeld Eliyahu Peter5-Jan-14 2:14 
GeneralRe: Base class method access VS. abstract class Method access Pin
netfed5-Jan-14 3:01
netfed5-Jan-14 3:01 
AnswerRe: Base class method access VS. abstract class Method access Pin
Kornfeld Eliyahu Peter5-Jan-14 3:17
professionalKornfeld Eliyahu Peter5-Jan-14 3:17 
AnswerRe: Base class method access VS. abstract class Method access Pin
Shameel6-Jan-14 3:53
professionalShameel6-Jan-14 3:53 
GeneralRe: Base class method access VS. abstract class Method access Pin
netfed9-Jan-14 2:49
netfed9-Jan-14 2:49 
GeneralRe: Base class method access VS. abstract class Method access Pin
Richard MacCutchan9-Jan-14 4:43
mveRichard MacCutchan9-Jan-14 4:43 
AnswerRe: Base class method access VS. abstract class Method access Pin
Shameel10-Jan-14 3:36
professionalShameel10-Jan-14 3:36 
GeneralRe: Base class method access VS. abstract class Method access Pin
netfed12-Jan-14 0:51
netfed12-Jan-14 0:51 
GeneralRe: Base class method access VS. abstract class Method access Pin
Ron Beyer12-Jan-14 4:33
professionalRon Beyer12-Jan-14 4:33 
GeneralRe: Base class method access VS. abstract class Method access Pin
netfed12-Jan-14 6:17
netfed12-Jan-14 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.