Does the Choice of the First Programming Language

  • Slides: 26
Download presentation
Does the Choice of the First Programming Language Influence Students’ Grades? Miloš Savić, Mirjana

Does the Choice of the First Programming Language Influence Students’ Grades? Miloš Savić, Mirjana Ivanović, Zoran Budimac, Miloš Radovanović Department of Mathematics and Informatics Faculty of Sciences, University of Novi Sad, Serbia

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and Approaches in Education l Changes in Teaching the First Programming Course l Conclusion 2

Introduction l Is problem of choice of the first programming language a little bit

Introduction l Is problem of choice of the first programming language a little bit out of date? l It is not easy decision, burden with a lot of dilemmas. l Is the choice of the FPL serious for later development of a programmer? l Important to distinguish key features of a PL in the context of education. l Practical difficulties in separating the educational issues of programming from the training issues of coding. 3

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and Approaches in Education l Changes in teaching the first programming course l Conclusion 4

Characteristics of (first) Programming Languages l In Companies a lot of factors influence selection/usage

Characteristics of (first) Programming Languages l In Companies a lot of factors influence selection/usage of appropriate PLs and tools: Computer capabilities, ¢ Domains of applications, ¢ Programming and Implementation methods, ¢ Standardization. ¢ l ICT industry influences educational processes: Rapidly changing decisions which PLs and tools to use. ¢ Decision whether to use already available components and patterns? ¢ 5

Characteristics of (first) Programming Languages l Students have to be prepared for the real

Characteristics of (first) Programming Languages l Students have to be prepared for the real world of very complex software ((reusable) programs of hundreds of thousands of lines), stay around for a long time. l Additional influences on selection of PL: ¢ Is there/what kind of teaching programming exist on secondary school level; ¢ Students’ pre-knowledge and vision of their future jobs; ¢ Requests of local industry; ¢ Global-world trends in programming and influences of newest technologies. 6

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and Approaches in Education l Changes in teaching the first programming course l Conclusion 7

Different Language Paradigms and Approaches in Education l Numerous PL, several programming paradigms emerged:

Different Language Paradigms and Approaches in Education l Numerous PL, several programming paradigms emerged: imperative, object-oriented, functional, and logic. l At majority of universities first two are predominant. l A new trend of teaching first programming course: Component- oriented approach. l Some teachers like to teach the most popular PLs, criteria? : Most widely used? Most lines of codes? Most jobs? Most courses/projects? l Is popularity of a language a guarantee of its quality and suitability? l Expectedly there is no best language for all situations. 8

Different Language Paradigms and Approaches in Education l Our Model/Proposition for Teaching First Programming

Different Language Paradigms and Approaches in Education l Our Model/Proposition for Teaching First Programming Language l Proposition and successful model? We gave up!!! l To teach students to think in algorithmic way and to make good programs. l To use a good educational (like Pascal, Delphi, Modula) language. l After that students have course on data structures and algorithms, ready to learn object-oriented style in Java. l By our experience there are several advantages of this approach: In first 3 semesters students are learnt to think in logical, algorithmic way and to reach efficient solutions. ¢ After that, by learning Java they further develop their programming skills and new techniques. ¢ 9

Different Language Paradigms and Approaches in Education l Last 20 years the study of

Different Language Paradigms and Approaches in Education l Last 20 years the study of CS at DMI Lasts four years. ¢ Several interconnected core courses in programming: ¢ l KEY/ESSENTIAL programming courses, use the same PL ¢ Introduction to programming (first semester) - basic concepts of imperative programming, recurrence and recursion, and simple abstract data types (ADT). ¢ Data structures and algorithms 1 and 2 (second and third semester) - concepts of ADT, different data structures (lists, stacks, queues, trees, graphs), and various algorithms (sorting and searching, combinatorial and graph algorithms). ¢ Operating systems 1 (fifth semester) - basic principles of operating systems: processes, low-level programming, and interaction of programs with operating system. ¢ Compiler construction (seventh semester) - principles and techniques of compiler construction (formal grammars, recursive descent, top-down, bottom-up analysis), structuring of big programs, type analysis and code generation are presented. 10

Different Language Paradigms and Approaches in Education l Need for changes ¢ Modula-2 is

Different Language Paradigms and Approaches in Education l Need for changes ¢ Modula-2 is out of date? Replacement? ¢ Not used in industry and companies. ¢ Need for modern programming tools and environments that support other PL. Suitable for teaching programming? ¢ Everyone is expert: students, parents, friends, non-CSprofessors, … ¢ Opportunity to attract more high-quality students. ¢ Marketing or real need? 11

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and Approaches in Education l Changes in teaching the first programming course l Conclusion 12

Changes in Teaching the First Programming Course l We changed Modula-2 with Java in

Changes in Teaching the First Programming Course l We changed Modula-2 with Java in the introductory programming course. l We compared students’ performance G 2014 (Java generation), G 2013 and G 2012 (Modula-2 generations). ¢ Only students that enrolled the course for the first time are taken into account. ¢ l The same teaching design/grading and assessment was applied: 2+2+1 hours per week of lectures, theoretical and practical (lab) exercises. ¢ In the lectures, the teacher explains essential programming concepts. ¢ Within theoretical exercises students are confronted with solved problems that illustrate concepts taught at the lectures. ¢ During practical exercises students individually solve practical assignments. ¢ 13

Changes in Teaching the First Programming Course l Prerequisites to approach the final oral

Changes in Teaching the First Programming Course l Prerequisites to approach the final oral examination A student has to achieve at least 30 (out of maximal 60) points at 4 practical (lab) tests ¢ Students can also attend two theoretical tests that are held during the semester to achieve maximally 20 points. ¢ l The same teaching staff (one teacher, one assistant for theoretical exercises and two assistants for practical exercises) delivered the course to all three generations. l Only significant difference: G 2014 had the course based on Java, while the other two had Modula-2. 14

Changes in Teaching the First Programming Course l Table 1. Basic facts about generations.

Changes in Teaching the First Programming Course l Table 1. Basic facts about generations. G 2014 G 2013 G 2012 Total number of students 82 97 78 Active students 76 90 71 Students that passed practical tests 59 53 58 Students that approached the oral exam in 37 January Students that passed the oral exam in January 26 35 41 22 28 15

Changes in Teaching the First Programming Course l Table 2. Average scores at practical

Changes in Teaching the First Programming Course l Table 2. Average scores at practical tests and theoretical tests, and average grade in the first exam period. MAX denotes the maximal score/grade. G 2014 G 2013 G 2012 MAX Practical tests 37. 25 33. 61 38. 4 60 Theoretical tests 8. 96 8. 64 9. 96 20 Grade (January) 7. 3 7. 24 10 16

Changes in Teaching the First Programming Course l Figure 1. The distribution of scores

Changes in Teaching the First Programming Course l Figure 1. The distribution of scores at practical and theoretical tests. 17

Changes in Teaching the First Programming Course l Figure 2. The distribution of grades

Changes in Teaching the First Programming Course l Figure 2. The distribution of grades in the first exam period. 18

Changes in Teaching the First Programming Course l To investigate whether the differences in

Changes in Teaching the First Programming Course l To investigate whether the differences in the average scores and the distributions of scores between G 2014 and other two generations are statistically significant we employ two non-parametric statistical tests: ¢ Mann-Whitney U test and the two sample Kolmogorov. Smirnov test. ¢ Both tests do not assume any particular distribution of scores (distribution-free methods). 19

Changes in Teaching the First Programming Course l The Mann-Whitney U (MWU) test checks

Changes in Teaching the First Programming Course l The Mann-Whitney U (MWU) test checks the null hypothesis that the scores in one sample (G 1) do not tend to be systematically larger or smaller (stohastically superior/inferior) than the scores in another sample (G 2). l The two-sample Kolmogorov-Smirnov (KS) test checks the null hypothesis that two cumulative distributions (the probability that a randomly selected student achieved a score less than given) are not significantly different. The test relies on the maximal vertical distance between two distributions (D statistics). 20

Changes in Teaching the First Programming Course l Table 3. The results of statistical

Changes in Teaching the First Programming Course l Table 3. The results of statistical tests MWU test Practical tests Theoretical tests January grade KS test Null hypotheses G 1 G 2014 G 2013 3793 0. 23 0. 55 0. 44 0. 2 0. 06 ACCEPTED G 2014 G 2012 2865 0. 52 0. 46 0. 52 0. 14 0. 40 ACCEPTED G 2014 G 2013 3179 0. 65 0. 51 0. 47 0. 11 0. 73 ACCEPTED G 2014 G 2012 2684 0. 26 0. 44 0. 55 0. 14 0. 49 ACCEPTED G 2014 G 2013 671 0. 79 0. 41 0. 37 0. 07 0. 99 ACCEPTED G 2014 G 2012 778 0. 84 0. 41 0. 38 0. 04 0. 99 ACCEPTED U p-value PS 1 PS 2 D p-value 21

Changes in Teaching the First Programming Course l This means: there are no statistically

Changes in Teaching the First Programming Course l This means: there are no statistically significant differences between the Java generation and the Modula-2 generations with respect to their performance in practical tests, theoretical tests and grade in the first exam period. l The differences in obtained probabilities of superiorities are in the range [-0. 11, 0. 11] which means that the students from the Java generation do not tend to have neither systematically higher nor systematically lower scores compared to the students from Modula-2 generations. l We can conclude that the switch to the Java programming language has not caused any dramatic change in relation to students’ performance in the introductory programming course. 22

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and

AGENDA l Introduction l Characteristics of (first) Programming Languages l Different Language Paradigms and Approaches in Education l Changes in teaching the first programming course l Conclusion 23

Conclusion l Debates about choice of FPL are never-ending stories. l Pressures of our

Conclusion l Debates about choice of FPL are never-ending stories. l Pressures of our local CS policy makers were enormous. l Java has emerged as the language of the choice but there is no universal satisfaction with Java as a teaching language. l Results of our investigation suggest that the choice of the introductory programming language does not matter if we only take students’ performance as the criterion of suitability. 24

Conclusion l However, several important factors also need to be addressed in order to

Conclusion l However, several important factors also need to be addressed in order to obtain a more comprehensive picture. we assumed that different generations are of approximately same quality, which maybe not true ¢ It is necessary to compare performance in other first-semester courses for Java and Modula-2 generations ¢ previous mathematical background and programming experience is also an important factor, which means that students’ performance in high school also needs to be taken into account ¢ l Future work: compare the performance of the generations in other computer-related courses. 25

Thank You 26

Thank You 26