下面是几个极其简单,极其普通的表示否定意义的句子: I’m not a teacher. I will not go. He, and not I, is chosen. Be careful not to take cold. 句中的否定词与其否定对象之间结合得很紧密,否定目标很明确,绝无丝毫偏离。
Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional s...Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional statements are selected, and they are the factory method pattern and the strategy pattem. Two pattern-directed refactoring approaches based on the two design patterns are proposed. Each approach contains a refactoring opportunities identification algorithm and an automated refactoring algorithm. After parsing the abstract syntax tree generated from source code, the refactoring opportunities are identified effectively and automatically. Then, for candidate code, refactoring algorithms are executed automatically, which are used to simplify or remove complex conditional statements. By empirical analysis and quality assessment, the code after refactoring has better maintainability and extensibility, and the proposed approach for automated pattern-directed refactoring succeeds to reduce code size and complexity of classes.展开更多
This research investigates Chinese intermediate EFL learners' errors in their writing at lexical, syntactical and textual levels based on the theories and researches of vocabulary recognition, error analysis and c...This research investigates Chinese intermediate EFL learners' errors in their writing at lexical, syntactical and textual levels based on the theories and researches of vocabulary recognition, error analysis and cohesion in the domain of discourse analysis. Both statistic and linguistic analysis were made to shed light on the learners' most incompetent aspects of the target language. The results show that the learners' greatest difficulty in their writing is grammar, which is followed by use of words and textual cohesion. It is concluded that different linguistic levels display different features of errors and therefore require different treatments.展开更多
文摘下面是几个极其简单,极其普通的表示否定意义的句子: I’m not a teacher. I will not go. He, and not I, is chosen. Be careful not to take cold. 句中的否定词与其否定对象之间结合得很紧密,否定目标很明确,绝无丝毫偏离。
文摘Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional statements are selected, and they are the factory method pattern and the strategy pattem. Two pattern-directed refactoring approaches based on the two design patterns are proposed. Each approach contains a refactoring opportunities identification algorithm and an automated refactoring algorithm. After parsing the abstract syntax tree generated from source code, the refactoring opportunities are identified effectively and automatically. Then, for candidate code, refactoring algorithms are executed automatically, which are used to simplify or remove complex conditional statements. By empirical analysis and quality assessment, the code after refactoring has better maintainability and extensibility, and the proposed approach for automated pattern-directed refactoring succeeds to reduce code size and complexity of classes.
文摘This research investigates Chinese intermediate EFL learners' errors in their writing at lexical, syntactical and textual levels based on the theories and researches of vocabulary recognition, error analysis and cohesion in the domain of discourse analysis. Both statistic and linguistic analysis were made to shed light on the learners' most incompetent aspects of the target language. The results show that the learners' greatest difficulty in their writing is grammar, which is followed by use of words and textual cohesion. It is concluded that different linguistic levels display different features of errors and therefore require different treatments.