MSRA源代码编程规范

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

STANDARDDEVELOPMENTANDCODINGPRACTICESATMSRACompiledbyAdvancedTechnologyDepartmentMICROSOFTRESEARCHASIAVer.0.1January21,2002ContentCONTENT.............................................................................................................................................1ADAYINTHELIFEOFARESEARCHDEVELOPER.......................................................................1INTRODUCTION.....................................................................................................................................1WHATSHOULDIDOEACHDAY?..........................................................................................................1YOURMACHINEENVIRONMENT.............................................................................................................2KNOWYOURRESOURCES....................................................................................................................2REQUIREDREADINGLIST.....................................................................................................................2OTHERRECOMMENDEDREADING.........................................................................................................2MODIFICATIONHISTORY.......................................................................................................................2CODINGSTYLEGUIDELINES............................................................................................................3INTRODUCTION.....................................................................................................................................3NAMINGCONVENTIONS........................................................................................................................3CODEFORMATTING..............................................................................................................................4IMPLEMENTATIONISSUES......................................................................................................................9CODINGSTYLECHECKLIST............................................................................................................111CLASSES....................................................................................................................................112OTHERC/C++ISSUES................................................................................................................113SOURCEFILEORGANIZATION......................................................................................................114BASICDATATYPES.....................................................................................................................115NAMINGCONVENTIONS...............................................................................................................116FORMATTINGISSUES...................................................................................................................11SOURCEDEPOT,NTBUILDANDRAID...........................................................................................131SOURCEDEPOT...........................................................................................................................132NTBUILDSYSTEM.......................................................................................................................133RAIDSYSTEM..............................................................................................................................131ADayintheLifeofaResearchDeveloperIntroductionWelcometoMSRAdevelopment,alsoknownastheRSDE(researchsoftwaredesignengineer)andAT(advancedtechnology)team.ThispurposeofthisdocumentistogivethenewresearchdeveloperatMSRAaleg-upinunderstandingthetoolsandresourcesavailableinaccomplishinghisorherdailydutiesandresponsibilities,andismodeledaftertheDayintheLifeofanOfficeDeveloperdocument.WhatShouldIDoEachDay?AtMicrosoft,themostimportantapplicationtotrackisOutlook.Thisisbecausemuchcommunicationistrackedthroughe-mailandscheduling.(Tip:Ifyoufindyourselfdistractedbytoomanye-mails,useInboxAssistanttosiftandprioritize.Choosespecifictimesduringthedaytochecke-mail.)Peoplewillgenerallyexpectyoutoreadandreplytoe-mailwithinthesamedayitissent.Microsoft’sProductCycleModelisgearedtowardsproductteamswithtraditionalclientapplications,butitisstillimportanttofamiliarizeyourselfwiththis.Withinthecontextofthis,youshouldhavethefollowingspecifictaskstoworkon:Coding:Codingisthemostimportanttaskyoutakeonasdeveloper.Theyaremanywaystocode.However,thereisonlyonewaytocodeitright.That’swhyeachgrouphasacodingstyleguidelinetofollow.Thegoalofsuchdocumentistoensureeveryoneintheorganizationcodeinasimilarfashion,sothatallcodeswrittenbydifferentdeveloperscanbeeasilyunderstoodandmaintained.Thisisextremelyimportantforprojectdevelopment.Thisdocument,“CodingStyleGuidelines”,outlinesthemostcommonguidelinesweuseasdeveloperatMSRA.Wehighlyrecommendeveryone,ifyouwritecode,followtheseguidelines.SourcecodeCheck-in/BackupandBuild:Ascodingisthemostimport

1 / 16
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功