![]() International Conference on Software Engineering (ICSE 2016),ġ0 Coding style What? private static URI libs() ġ9 Blocks Indentation Do indentation for blocks (in method, loop, if-else conditions) Pay more intention to indentation in Python and Haskell, it is a right or wrong thing!! Try to avoid using tab, why? Tabs are translated to 2 or 4 spaces in different editors or settings, resulting in global coding style problems, and the case is even worse for Python 2 (Lua, scala, ruby, …) or 4 spaces (others), usually depending on the language you use and the team convention you decided onĢ0 Blocks Single statement blocks for loop and conditions if(a > 1)Īdd curly brackets around, why? Logic blocks Divide a basic block to several logic blocks, add an empty line between them if(a > 1) // do something Error!! another statement int validDiscountRate = … int finalAmount = validDiscountRate * amount print getReceiptHeader() print finalAmount ![]() ![]() Nomen est Omen: Exploring and Exploiting Similarities between Argument and Parameter Names. Ada Lovelace George Gordon Byron Charles BabbageĦ Programmer How to program How to program with others Java, C++, …ħ Programmer How to program How to program with others Java, C++, …ĩ Coding style Why? Bad names can indicate bugsĮasier to read: for others and yourself Less mistakes and misunderstandings Reduce the requirement for comments and documentation (self-documented) Consistent with team members/underlying framework Bad names can indicate bugs Hui Liu, Qiurong Liu, Cristian-Alexandru Staicu, Michael Pradel, Yue Luo. The term computer programmer can refer to a specialist in one area of computer programming or to a generalist who writes code for many kinds of software. Requirements engineering Design Implementation Integration The waterfall modelĤ Programmer A programmer, computer programmer, developer, coder, or software engineer is a person who creates computer software. ![]() Use case diagram Identification of use cases Object oriented approach for design Class diagram Legend Class Relationships Sequence diagram The Principles of Object-Oriented Design Programmer Hao Zhong Shanghai Jiao Tong University Presentation on theme: "Hao Zhong Shanghai Jiao Tong University"- Presentation transcript:ġ Hao Zhong Shanghai Jiao Tong University ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |