scieee AI-readable full text Open interactive document viewer

Integration of Virtual Programming Lab in a process of teaching programming EduScrum based

Oliveira Cardoso, José Marílio

Abstract

Programming teaching is a key factor for technological evolution. The efficient way to learn to program is by programming and hard training and thus feedback is a crucial factor in the success and flow of the process. This work aims to analyse the potential use of VPL in the teaching process of programming in higher education. It also intends to verify whether, with VPL, it is possible to make students learning more effective and autonomous, with a reduction in the volume of assessment work by teachers. Experiments were carried out with the VPL, in the practical-laboratory classes of a curricular unit of initiation to programming in a higher education institution. The results supported by the responses to surveys, point to the validity of the model.

Full text

i PHD THESIS INTEGRATION OF VIRTUAL PROGRAMMING LAB IN A PROCESS OF TEACHING PROGRAMMING EDUSCRUM BASED José Marílio Oliveira Cardoso ESCUELA DE DOCTORADO INTERNACIONAL PROGRAMA DE DOCTORADO EN INVESTIGACIÓN EN TECNOLOGÍAS DE LA INFORMACIÓN SANTIAGO DE COMPOSTELA 2020 DECLARACIÓN DO AUTOR/A DA TESE Integration of Virtual Programming Lab in a process of teaching programming EduScrum based D./Dna. .José Marílio Oliveira Cardoso Presento a miña tese, seguindo o procedemento axeitado ao Regulamento, e declaro que: 1) A tese abarca os resultados da elaboración do meu traballo. 2) De selo caso, na tese faise referencia ás colaboracións que tivo este traballo. 3) A tese é a versión definitiva presentada para a súa defensa e coincide coa versión enviada en formato electrónico. 4) Confirmo que a tese non incorre en ningún tipo de plaxio doutros autores nin de traballos presentados por min para a obtención doutros títulos. En Valongo, 14 de Novembro de 2020 Asdo. ........... AUTORIZACIÓN DEL DIRECTOR/TUTOR DE LA TESIS D./Dña. António Abel Vieira de Castro En condición de: Director/a Título de la tesis: Integration of Virtual Programming Lab in a process of teaching programming EduScrum based INFORMA: Que la presente tesis, se corresponde con el trabajo realizado por D/Dña José Marílio Oliveira Cardoso, bajo mi dirección/tutorización, y a utorizo su presentación , considerando que reúne l os r equisitos exigidos en el R eglamento de Estudios de Doctorado de la USC, y que como director/tutor de esta no incurre en las causas de abstención establecidas e n la Ley 40/2015. En Porto, 31 de octubre de 2020 Firma electrónica AUTORIZACIÓN DEL DIRECTOR/TUTOR DE LA TESIS D./Dña. Álvaro Manuel Reis da Rocha En condición de: Director/a Título de la tesis: Integration of Virtual Programming Lab in a process of teaching programming EduScrum based INFORMA: Que la presente tesis, se corresponde con el trabajo realizado por D/Dña José Marílio Oliveira Cardoso, bajo mi dirección/tutorización, y a utorizo su presentación , considerando que reúne l os r equisitos exigidos en el R eglamento de Estudios de Doctorado de la USC, y que como director/tutor de esta no incurre en las causas de abstención establecidas e n la Ley 40/2015. En Porto, 31 de octubre de 2020 Firma electrónica AUTORIZACIÓN DEL DIRECTOR/TUTOR DE LA TESIS D./Dña. Antonio Jesús García Loureiro En condición de: Tutor/a Título de la tesis: Integration of Virtual Programming Lab in a process of teaching programming EduScrum based INFORMA: Que la presente tesis, se corresponde con el trabajo realizado por D/Dña José Marílio Oliveira Cardoso, bajo mi dirección/tutorización, y a utorizo su presentación , considerando que reúne l os r equisitos exigidos en el R eglamento de Estudios de Doctorado de la USC, y que como director/tutor de esta no incurre en las causas de abstención establecidas e n la Ley 40/2015. En Santiago de Compostela, 31 de octubre de 2020 Firma electrónica xvii RESUMO AMPLIADO MARCO A sociedade actual depende moito da tecnoloxía, como demostra o gran número de equipos e dispositivos presentes nos contextos máis diversos. A electricidade, as telecomunicacións e internet son unha realidade tan constante e adquirida que hoxe son bens esenciais na nosa vida diaria e indispensables para o funcionamento da sociedade. A tecnoloxía en xeral e as tecnoloxías da información en particular están presentes en calquera área de actividade, como a saúde, o transporte, a educación, a banca ou calquera outra actividade económica. Esta realidade ten un impacto directo na forma en que nos comunicamos, viaxamos, estudamos, traballamos e interactuamos, e a informática xoga un papel crucial no desenvolvemento da sociedade moderna (Fiolhais, 2005). Os sistemas informáticos son cada vez máis complexos e requiren compoñentes físicos, normalmente denominados hardware, como ordenadores, servidores, sistemas de almacenamento ou infraestrutura de rede. Non obstante, para que os sistemas funcionen correctamente, necesitan programas que lles permitan controlar e comunicarse co hardware para realizar as operacións previstas, é dicir, o software. O software consiste nun conxunto de instrucións escritas nunha linguaxe de programación, é dicir, unha linguaxe formal cun conxunto de regras sintácticas e semánticas e as súas propias especificacións. Ao longo da historia, desenvolvéronse numerosas linguaxes de programación, para fins específicos ou xerais, compilados, interpretados ou híbridos, para sistemas propietarios ou abertos, hai linguaxes de programación para diversos propósitos e contextos (Parker & Davey, 2012) (Kumar & Dahiya, 2017). A programación encárgase de "traducir" a formulación da lóxica de resolución de problemas a unha linguaxe de programación. Antes de escribir as instrucións, é necesario producir o algoritmo, que pode definirse como unha secuencia de pasos que recibe valores de entrada e leva a un valor ou conxunto de valores como saída (Cormen, Leiserson, Rivest, & Stein, 2009). Aínda que a produción de software non se trata só de programar, esta é unha tarefa esencial para o éxito do proceso e é necesario formar novos programadores e enxeñeiros de software para garantir o funcionamento e o desenvolvemento de sistemas informáticos. Polo tanto, a programación docente é unha actividade moi importante para a evolución tecnolóxica e a sustentabilidade da sociedade actual. Ensinar a codificar é unha tarefa desafiante para calquera profesor, e é aínda máis complexo á hora de ensinar aos alumnos principiantes. Tamén para a maioría dos estudantes, a introdución á programación é unha tarefa difícil (Moström, 2011), con taxas de fracaso xeralmente altas nas disciplinas de programación introdutoria de todo o mundo, en todos os sistemas e a calquera nivel educativo (Gomes A. , 2010). PROBLEMA DE INVESTIGACIÓN E OBXECTIVOS No Grao en Enxeñaría en Informática (LEI) do Departamento de Enxeñaría en Informática (DEI) do Instituto Superior de Enxeñaría do Instituto Politécnico de Porto (ISEP), o curso de programación e algoritmo (APROG) realízase no primeiro semestre do primeiro ano. Este curso xviii ten como obxectivo proporcionar aos estudantes iniciantes a competencia esencial para un futuro enxeñeiro en informática: a programación. En APROG hai clases teóricas (T), teórico-prácticas (TP) e de laboratorio (PL). As clases T son para a presentación de conceptos, as clases TP para demostración e exemplificación da aplicación dos conceptos presentados e as clases PL para adestramento de resolución de exercicios. Hai dúas clases de PL de 110 minutos á semana, para un total de 220 minutos á semana. ISEP adoptou o Learning Management System (LMS) Moodle (Modular Object-Oriented Dynamic Learning Environment). Moodle serve para centralizar e poñer a disposición a información relacionada co curso, incluídos os contidos, o "Arquivo da unidade curricular (FUC)" e o horario das clases, e tamén se usa para a presentación de traballos e como canle de comunicación e interacción entre profesores e alumnos. En APROG, os conceptos esenciais asociados á lóxica de programación baséanse no paradigma de procedemento con foco no deseño de algoritmos. Os algoritmos implementanse usando a linguaxe Java para mellorar unha transición máis rápida do paradigma de procedemento ao paradigma de programación orientado a obxectos. APROG é o primeiro curso de desenvolvemento de software de LEI e é un marco para adquirir habilidades de programación de futuros enxeñeiros en informática. O desenvolvemento de software é unha actividade que cobra importancia con proxectos cada vez máis complexos e grandes. O desenvolvemento de proxectos adoita estar asegurado por varios equipos ao mesmo tempo, ás veces multidisciplinares e xeograficamente dispersos (Guzmán, Ramos, Seco, & Esteban, 2011). Esta realidade impón novos métodos de organización e traballo. As chamadas metodoloxías áxiles (Agile) (Moniruzzaman & Hossain, 2013) son moi empregadas, das cales Scrum é a máis empregada (Rubin, 2012) (Kuusinen, Gregory, Sharp, & Barroca, 2017). As empresas utilizan a metodoloxía Scrum para mellorar o traballo en equipo e promover un xeito de traballar produtivo, creativo e atractivo, baseado na autonomía e na responsabilidade. Nos últimos anos, nas clases de PL presenciais, empregouse unha variante eduScrum de Scrum, adaptada á educación (Cardoso, Barroso, Castro, & Rocha, 2017). Neste modelo, os estudantes son responsables do desenvolvemento do proceso de aprendizaxe por delegación de profesores (Delhij, van Solingen, & Wijnands, 2015) nun ambiente colaborativo que promove a autonomía e a confianza en si mesmos. Cada clase APROG ten un máximo de 20 alumnos e nos últimos anos houbo máis de 300 alumnos en 17 clases. Na clase, os estudantes resolven os exercicios dispoñibles semanalmente en Moodle e o profesor debe analizar as resolucións dos alumnos e opinar sobre o traballo realizado. Nas clases de PL, en eduScrum, os alumnos traballan en equipos de dous, polo que o profesor debe analizar o mesmo exercicio dez veces. Cada conxunto ten polo menos seis exercicios, o que significa a análise semanal de aproximadamente 60 exercicios nun período de 220 minutos, o que corresponde a un tempo inferior a catro minutos para cada exercicio. Con esta carga de traballo non é posible realizar unha análise completa e profunda dos exercicios. A solución é unha mostra de avaliación, seleccionando só algúns exercicios, con comentarios incompletos e demasiado lentos. Neste escenario, os estudantes non poden realizar o seu traballo nin desenvolver as súas habilidades de programación o máis rápido que queiran, especialmente porque non teñen forma de validar completamente o traballo realizado. Ademais, hai unha escasa asistencia de docentes, xa que o tempo dispoñible para unha posible aclaración é moi escaso. A falta de feedback e seguimento dos profesores sobre o traballo dos estudantes identificouse como unha das dificultades máis importantes asociadas á aprendizaxe do código (Koulouri, Lauria, & Macredie, 2015), o que aumenta o desánimo dos estudantes. xix Buscouse unha solución para reducir a carga de traballo de avaliación do profesorado, dándolle máis tempo para aclarar as dúbidas dos alumnos e, ao mesmo tempo, proporcionarlles aos estudantes mecanismos para axudar na avaliación do seu propio código. Con este fin, buscamos ferramentas que poidan apoiar o proceso para obter unha avaliación máis rápida, dando aos alumnos unha maior autonomía. Identificáronse e analizáronse algunhas ferramentas potencialmente interesantes para o propósito proposto. Unha vez definidos algúns criterios de selección, decidiuse utilizar o VPL como soporte para a realización dun estudo. O obxectivo do estudo foi analizar o uso potencial da VPL, en particular no que se refire á súa contribución a facer máis eficaz e autónoma a aprendizaxe dos alumnos, o seu impacto na redución da carga de traballo do profesor na avaliación. das obras e a compatibilidade do seu uso coa metodoloxía eduScrum. METODOLOXÍA DA INVESTIGACIÓN Ao comezo deste traballo, analizáronse os diversos pasos e condicións necesarios para a súa realización. O primeiro paso foi realizar unha revisión da literatura sobre programación docente, en particular o uso de métodos e ferramentas con potencial para racionalizar o proceso e responder ás lagoas identificadas na definición do problema. As buscas realizáronse nas bases de datos ACM, Elsevier (ScienceDirect), ERIC (EBSCO), IEEExplore, Springerlink e Web of Science e no buscador Google Scholar, así como en repositorios científicos, especialmente RCAAP e RECIPP. A investigación realizouse en inglés e portugués no segundo semestre de 2016 e considerouse publicación desde 2005. Nalgúns casos empregáronse publicacións máis antigas porque son relevantes para o tema e contribuíron ao establecemento dunha liña de evolución tecnolóxica. Na investigación empregáronse conxuntamente os seguintes termos: clasificación automática, avaliación automática, tarefas de programación, aprendizaxe da linguaxe de programación e ensino de programación. Durante o desenvolvemento do traballo identificáronse publicacións máis recentes, algunhas delas empregadas para este traballo. Identificáronse varias ferramentas, 35 das cales foron discutidas brevemente, principalmente en relación co seu propósito, modo de operación, linguaxes de programación compatibles e funcionalidade xeral. Para seleccionar a ferramenta a usar, definíronse algúns requisitos. A ferramenta debe ser gratuíta, segura, integrada con Moodle, fácil de usar, axeitada para a programación, permitir a carga de código (upload), traballar con Java e ter funcionalidade antiplaxio. Despois desta fase, algunhas destas ferramentas analizáronse con máis detalle e escolleuse VPL, un plugin de Moodle. Os principais motivos desta elección foron a súa sinxeleza de uso e versatilidade, e para soportar varias linguaxes de programación (con vistas ao uso futuro noutras unidades curriculares), así como a existencia de máis literatura e material de apoio sobre este sistema que noutros analizados. Para obter resultados que nos permitan avaliar se o uso da ferramenta elixida no contexto de APROG podería contribuír á resolución do problema identificado, deseñáronse e realizáronse experimentos durante as clases de PL. A VPL utilizouse nos cursos escolares 2017/2018 e 2018/2019 nalgunhas clases de PL seleccionadas debido á dispoñibilidade de profesores para colaborar na experiencia. Os datos do experimento obtivéronse a través da observación directa, o rexistro automático das actividades realizadas en Moodle e principalmente a través de enquisas en liña a alumnos e profesores. A enquisa a estudantes en 2018/2019 mellorou moito en comparación con 2017/2018, aclarando algúns problemas e engadindo outros que demostraron ser importantes. xx Tamén nesta segunda edición houbo varias melloras no proceso, o número de alumnos foi moito maior que no curso escolar anterior e as taxas de participación, en función do número de presentacións, foron extraordinariamente superiores. Por estes motivos, só se consideraron para a análise os datos do curso escolar 2018/2019. DESCRICIÓN DO EXPERIMENTO Para o uso da VPL no contexto de APROG, realizáronse algunhas reunións iniciais nas que se identificaron as necesidades materiais, técnicas e de recursos humanos. De xuño a xullo de 2017 leváronse a cabo algúns experimentos preliminares que incluían a instalación de Moodle e VPL nunha máquina virtual dedicada e a creación de tres usuarios con tres perfís diferentes: administrador, profesor e alumno. Creouse unha actividade VPL para resolver un problema sinxelo e probouse en Python e Java. Despois desta proba inicial exitosa, pasaron a unha fase máis administrativa para usar VPL no contexto real das clases APROG. O director de LEI e o xestor da unidade de curso de APROG foron informados e ambos aceptaron o experimento, pero houbo que cumprir algunhas condicións. As clases de APROG tiveron que proceder como de costume, como estaba previsto, para que a experiencia non tivese impacto na avaliación e deberían ser iguais para todos os estudantes, independentemente de que empregasen ou non VPL. Outra condición era que o uso de VPL non podía ser obrigatorio, xa que foi a decisión do alumno participar na experiencia. Estas condicións foron aceptadas e cumpridas polo autor do estudo e os profesores implicados no experimento. Para levar a cabo o experimento foi necesario instalar o plugin VPL en Moodle. Solicitouse a autorización á Presidencia do ISEP, que foi concedida. Despois, o plugin instalouse no Moodle institucional de ISEP, e foi realizado polo técnico de ISEP responsable da administración de Moodle e foi supervisado e supervisado polo autor do estudo. Tamén se instalaron compiladores para as linguaxes de programación destinadas a usarse coa VPL e comprobáronse as condicións de acceso remoto, os permisos de acceso e as configuracións de rede e firewall. Despois da instalación, realizáronse probas funcionais e corrixíronse as deficiencias atopadas para garantir o rendemento do sistema. Unha vez cumpridas as condicións técnicas, loxísticas, pedagóxicas e xurídicas, a fase de implementación do experimento comezou cunha reflexión sobre os exercicios APROG que se empregarán na VPL. Débese reducir o número de exercicios para non interferir no proceso de ensino-aprendizaxe en APROG. Polo tanto, escolléronse algúns exercicios en función da súa importancia e facilidade de adaptación á VPL sen distorsionar o contexto e o seu propósito. Elixíronse seis exercicios de programación, dous en cada unha das tres semanas nas que se levaría a cabo o experimento, que abordou o uso básico dos principais elementos de programación. Decidiuse usar VPL a partir da segunda semana dedicada á codificación Java para permitir aos estudantes, na primeira semana, o contacto inicial co IDE e a sintaxe do Java, sen introducir unha nova ferramenta. Isto faría máis doado para os estudantes iniciar o contacto cun novo contexto, coa vantaxe de que inicialmente codifican no IDE e só despois cargan o código no VPL, permitindo un axuste máis suave. Para implementar as actividades en Moodle, os seis exercicios seleccionados foron analizados e adaptados á VPL. O funcionamento do VPL baséase na análise e avaliación de casos de proba e o resultado determínase en función da similitude das cadeas entre o resultado obtido e o resultado esperado. Por iso, foi necesario deseñar e implementar casos de proba que cubrisen as distintas posibilidades de saída, para permitir a avaliación das obras. xxi Como se mencionou, o experimento realizouse no curso escolar 2017/2018 e repetiuse en 2018/2019, cun proceso mellorado e que implicou máis clases, o que significou máis alumnos e presentacións. Entre estes dous cursos académicos fixéronse diversos axustes e desenvolvéronse novas características que repercutiron nos plans técnicos e pedagóxicos. Cambiáronse os procesos de verificación da presentación, o que permitiu unha maior flexibilidade para o alumno e evitou algúns problemas verificados na edición 2017/2018, a saber, en relación ao ficheiro a enviar que xa non ten un nome obrigatorio. Tamén se implementaron funcións de análise de estilo de código, baseadas na observación feita polo autor do estudo e nas opinións doutros profesores que participaron no experimento. Esta característica desenvolveuse completamente desde cero, pero dun xeito compatible coa estrutura de ficheiros VPL preexistente. É unha opción flexible porque non é obrigatoria e permite ao profesor establecer parámetros segundo o que queira avaliar. Tamén se implementou un sistema de xestión de versións para esta función, que permite o almacenamento na nube e unha xestión centralizada e flexible, que lle permite evolucionar. Estas funcións utilizáronse no curso escolar 2018/2019, engadindo a análise do proceso de codificación á verificación dos resultados que normalmente realiza a VPL. O plan de investigación non estaba previsto para o curso 2019/2020, pero debido á experiencia de anos anteriores e á boa aceptación dos estudantes, o autor decidiu empregar o VPL nesta edición de APROG, contactando co novo xerente do Unidade curricular que dixo saber do estudo realizado en anos anteriores. Por este motivo, o novo xerente planeaba usar unha ferramenta de avaliación de código de xeito sistemático para todos os exercicios e para todos os estudantes. Non obstante, dado que descoñecía o funcionamento do VPL e xa utilizara Mooshak en varias competicións de programación, tiña a intención de optar por isto pero aceptou usar o VPL despois das presentacións de Mooshak e de forma complementaria. Polo tanto, tamén neste curso escolar empregouse o VPL en APROG. Realizouse unha enquisa na área de APROG UC Moodle, potencialmente interesante para o alcance deste traballo, pero os resultados non se presentan aquí xa que non se coñecen oportunamente. RESULTADOS E CONCLUSIÓNS Os principais resultados deste estudo obtivéronse principalmente a partir de datos de enquisas realizadas con alumnos. As enquisas realizáronse nos cursos 2017/2018 e 2018/2019, pero só se consideraron as respostas do curso 2018/2019 do estudo, xa que ese ano as enquisas ampliáronse e melloráronse e foron respondidas por un número moito maior de estudantes. A partir da análise xeral dos resultados, obsérvase que os estudantes amosan unha gran predisposición para o uso das tecnoloxías, así como a posibilidade de empregar ferramentas que permitan o estudo autónomo. Os alumnos non revelaron dificultades significativas para usar o VPL, mostrando gran interese e entusiasmo durante a experiencia, como se pode concluír nas respostas á enquisa e tamén no que observaron os profesores durante as clases de APROG PL. En canto ao proceso de ensino-aprendizaxe, a apreciación positiva xeral dos estudantes é evidente e os resultados son moi gratificantes polo esforzo e compromiso dedicado ao estudo e os motivadores para o futuro uso da VPL no ensino da programación. Tamén da análise das respostas ás enquisas pódese concluír que a preparación do experimento foi axeitada, proporcionando aos alumnos as condicións necesarias para o desenvolvemento das actividades. Como un dos obxectivos deste traballo é reducir o tempo empregado polos profesores na avaliación, tamén se realizaron investigacións cos profesores e a súa opinión foi moi favorable ao uso de VPL. xxii Como parte deste traballo, publicáronse artigos científicos en conferencias con revisión e presentáronse publicamente en eventos internacionais, demostrando a súa validez e aceptación pola comunidade científica. Da lista de artigos, debe destacarse o artigo publicado nunha revista Impact Factor (JCR® Impact Factor) medido por ISI Thomson, unha revista situada no segundo cuartil. Realizáronse outras actividades de divulgación para este estudo e sobre o uso da VPL, en particular en eventos con presenza de profesores de educación secundaria e superior. O autor é membro do equipo portugués do proxecto europeo Up2U (Up to University), que ten como obxectivo reducir a brecha entre a educación secundaria e a superior fomentando o uso de tecnoloxía e metodoloxía que presuntamente atoparán os estudantes na educación superior. Neste contexto, implementouse un ecosistema baseado en Moodle e púxose a disposición das escolas secundarias europeas de varios países. O autor foi invitado a instalar o plugin VPL neste ecosistema e actualmente está dispoñible a creación de actividades VPL. Tamén dentro do ámbito deste traballo creouse un curso de programación Java apoiado por ferramentas de avaliación automática, nomeadamente o VPL e Mooshak. O curso está dirixido a profesores e foi acreditado polo Consello Científico-Pedagóxico de Formación Continua, a entidade nacional portuguesa para esta área. En resumo, tendo en conta o traballo realizado de acordo co plan de investigación e os resultados e achegas acadados, pódese considerar que os obxectivos inicialmente propostos para este traballo foron alcanzados globalmente. 1 TABLE OF CONTENTS ACKNOWLEDGMENTS ..................................................................................................... xiii ABSTRACT ....................................................................................................................... xv RESUMO AMPLIADO ...................................................................................................... xvii TABLE OF CONTENTS ......................................................................................................... 1 INDEX OF FIGURES ............................................................................................................. 6 INDEX OF TABLES ............................................................................................................... 9 INDEX OF CHARTS ............................................................................................................ 11 INDEX OF ANNEXES ......................................................................................................... 12 ACRONYMS ..................................................................................................................... 13 1 INTRODUCTION ......................................................................................................... 17 1.1 BACKGROUND .................................................................................................................. 17 1.2 THE PROBLEM ................................................................................................................... 19 1.3 OBJECTIVES AND EXPECTED OUTCOMES ................................................................................... 20 1.4 RESEARCH METHODOLOGY .................................................................................................. 21 1.5 MOTIVATION ................................................................................................................... 22 Personal Motivation ............................................................................................. 23 Institutional Motivation ........................................................................................ 23 1.6 ORGANISATION OF THE DOCUMENT ....................................................................................... 23 2 THE IMPORTANCE OF SOFTWARE DEVELOPMENT ...................................................... 25 2.1 INFORMATION TECHNOLOGY AND SOCIETY ............................................................................... 25 The health sector .................................................................................................. 26 The education sector ............................................................................................ 27 The economic sector ............................................................................................ 29 2.2 PROGRAMMING LANGUAGES ............................................................................................... 30 Programming Languages Evaluation Criteria ....................................................... 33 Readability ............................................................................................................ 34 2.2.2.1 Writing ability................................................................................................. 34 2.2.2.2 Reliability ........................................................................................................ 34 2.2.2.3 Cost ................................................................................................................ 34 2.2.2.4 Efficiency ........................................................................................................ 34 2.2.2.5 Portability ....................................................................................................... 34 Programming Paradigms ...................................................................................... 35 2 2.2.3.1 The imperative paradigm (procedural) .......................................................... 35 2.2.3.2 The functional paradigm ................................................................................ 36 2.2.3.3 The logical paradigm ...................................................................................... 36 2.2.3.4 The Object-Oriented Paradigm ...................................................................... 36 The importance of choosing a Programming Language ....................................... 37 The most relevant Programming Languages ........................................................ 38 2.2.5.1 FORTRAN ........................................................................................................ 39 2.2.5.2 ALGOL ............................................................................................................. 39 2.2.5.3 LISP ................................................................................................................. 39 2.2.5.4 COBOL ............................................................................................................ 40 2.2.5.5 BASIC .............................................................................................................. 40 2.2.5.6 PASCAL ........................................................................................................... 41 2.2.5.7 C language ...................................................................................................... 41 2.2.5.8 PROLOG .......................................................................................................... 42 2.2.5.9 C++ ................................................................................................................. 42 2.2.5.10 VISUAL BASIC ................................................................................................. 43 2.2.5.11 PYTHON .......................................................................................................... 43 2.2.5.12 JAVA ............................................................................................................... 44 2.2.5.13 PHP ................................................................................................................. 45 2.2.5.14 Ruby ............................................................................................................... 45 2.2.5.15 C# ................................................................................................................... 46 The Programming Languages most used nowadays ............................................ 46 The IEEE Spectrum index ...................................................................................... 47 2.2.7.1 The GitHut 2.0 index ...................................................................................... 48 2.2.7.2 The PYPL index ............................................................................................... 48 2.2.7.3 The RedMonk index ....................................................................................... 49 2.2.7.4 The TIOBE index ............................................................................................. 50 Programming Languages in Education ................................................................. 53 2.3 INTEGRATED DEVELOPMENT ENVIRONMENTS (IDE) ................................................................... 54 Eclipse ................................................................................................................... 55 IntelliJ IDEA ........................................................................................................... 56 NetBeans .............................................................................................................. 56 2.4 SOFTWARE DEVELOPMENT MODELS ....................................................................................... 58 Waterfall model .................................................................................................... 58 Agile Methodologies and Scrum........................................................................... 59 2.4.2.1 Scrum Pillars and Values ................................................................................ 60 2.4.2.2 Scrum artifacts ............................................................................................... 61 2.4.2.3 Scrum roles .................................................................................................... 63 2.4.2.4 Sprints and ceremonies ................................................................................. 64 EduScrum .............................................................................................................. 65 2.4.3.1 EduScrum team .............................................................................................. 66 2.4.3.2 The roles in eduScrum ................................................................................... 67 3 TEACHING-LEARNING PROCESS OF PROGRAMMING .................................................. 69 3.1 PROBLEM SOLVING ............................................................................................................ 69 3 3.2 TEACHING AND LEARNING TO PROGRAM ................................................................................. 71 3.3 ALGORITHMS AND LOGICAL REASONING .................................................................................. 72 Pseudocode .......................................................................................................... 73 Flowchart .............................................................................................................. 75 Tracing .................................................................................................................. 77 Portugol and VisuAlg ............................................................................................ 80 3.4 FACE-TO-FACE TEACHING AND DISTRIBUTED TEACHING ............................................................... 85 Types of learning .................................................................................................. 85 3.4.1.1 Formal education ........................................................................................... 86 3.4.1.2 Non-formal learning ....................................................................................... 86 3.4.1.3 Informal learning ........................................................................................... 86 Face-to-face education ......................................................................................... 87 Distributed education ........................................................................................... 87 3.4.3.1 E-Learning ...................................................................................................... 89 3.4.3.2 B-Learning ...................................................................................................... 90 3.4.3.3 M-Learning ..................................................................................................... 91 3.4.3.4 U-Learning ...................................................................................................... 92 3.5 LMS .............................................................................................................................. 92 Introduction .......................................................................................................... 92 Examples of LMS ................................................................................................... 94 3.5.2.1 Blackboard ..................................................................................................... 95 3.5.2.2 Sakai ............................................................................................................... 95 3.5.2.3 Moodle ........................................................................................................... 95 4 SUPPORT MECHANISMS FOR PROGRAMMING TEACHING .......................................... 97 4.1 INTRODUCTION ................................................................................................................. 97 4.2 AUTOMATIC EVALUATION MECHANISMS ................................................................................. 98 BOCA ................................................................................................................... 102 EduJudge ............................................................................................................. 103 Mooshak ............................................................................................................. 107 BOSS .................................................................................................................... 111 PETCHA ............................................................................................................... 113 VPL ...................................................................................................................... 114 4.3 THE CHOICE FOR APROG .................................................................................................. 116 5 VPL IN APROG'S PEDAGOGICAL PROCESS ................................................................. 119 5.1 APROG AT ISEP-LEI ....................................................................................................... 119 Context ............................................................................................................... 119 Structuring and organization of APROG ............................................................. 120 Learning Objectives ............................................................................................ 121 EduScrum applied to APROG .............................................................................. 122 The basic support LMS for APROG operation .................................................... 123 5.2 CONDITIONS OF IMPLEMENTATION AND INSTALLATION OF THE VPL ............................................. 127 Preliminary Steps ................................................................................................ 127 10 Table 43 – Descriptive measures concerning question Q1 (Groups A and C) ...................... 178 Table 44 – Results of the Kruskal-Wallis test on question Q1 (Groups B and C) ................. 179 Table 45 – Descriptive measures relating to Question Q1 (Groups B and C)........................ 179 Table 46 – Strength of correlation as a function of Spearman's coefficient ........................... 180 Table 47 – Spearman's Matrix of Non-Parametric Correlations ............................................ 181 Table 48 – Significant peer-to-peer associations of issues ..................................................... 182 Table 49 – Significant associations of question Q13 with others........................................... 183 Table 50 – Internal consistency according to Cronbach's alpha value ................................... 184 Table 51 – Suitability of the sample according to the KMO .................................................. 184 Table 52 – Results of the application of the Exploratory Factorial Analysis to the survey responses ................................................................................................................................. 185 Table 53 – Questions for teachers .......................................................................................... 190 Table 54 – Statistical figures on teachers' replies ................................................................... 191 Table 55 – Spearman's Matrix of Non-Parametric Correlations ............................................ 192 11 INDEX OF CHARTS Chart 1 – TIOBE History of Programming Languages Popularity .......................................... 52 Chart 2 – Percentage of students by programming language ................................................... 53 Chart 3 – UVa Online Judge submissions by programming language over time .................. 105 Chart 4 – Distribution of respondents by gender .................................................................... 162 Chart 5 – Age ranges of students ............................................................................................ 163 Chart 6 – Q1 - Programming is a difficult task ...................................................................... 164 Chart 7 – Q2 - Added value of using distance learning platforms ......................................... 164 Chart 8 – Q3 - I would like to have tools to support the resolution of exercises outside the classroom ................................................................................................................................ 164 Chart 9 – Q4 - The demonstration exercise was useful to familiarize you with the VPL ...... 165 Chart 10 – Q5 - Use of VPL in the teaching-learning process of programming .................... 165 Chart 11 – Q6 - I started using the VPL but lost interest ....................................................... 166 Chart 12 – Q7 - The use of VPL is too complicated .............................................................. 166 Chart 13 – Q8 - I would have liked to have been able to use the VPL to solve more exercises ................................................................................................................................................ 166 Chart 14 – Q9 - I would like to be able to use the VPL for individual assessment instead of the paper-based version ................................................................................................................ 167 Chart 15 – Q10 - The possibility of resubmission and obtaining automatic classification is very useful .............................................................................................................................. 167 Chart 16 – Q11 - The pre-defined tests were important in identifying weaknesses in my resolutions ............................................................................................................................... 168 Chart 17 – Q12 - The fact that the number of assessments was limited had a negative impact on my work ............................................................................................................................. 168 Chart 18 – Q13 - The VPL is an added value to the teaching-learning process of programming ................................................................................................................................................ 169 Chart 19 – Q14 - The experiment was clearly explained ....................................................... 169 Chart 20 – Q15 - Sufficient support has been given for the effective use of VPL ................. 170 Chart 21 – Score of agreement on the questions raised .......................................................... 171 Chart 22 – Score on the implementation of the experiment ................................................... 186 Chart 23 – Score on the use of the VPL ................................................................................. 186 Chart 24 – Score on learning .................................................................................................. 187 Chart 25 – Teachers' age group .............................................................................................. 187 Chart 26 – Background training field ..................................................................................... 188 Chart 27 – Teachers' experience ............................................................................................. 188 Chart 28 – Teaching experience in the context of algorithmics and programming ............... 188 Chart 29 – Average time spent (in minutes) on validating each exercise .............................. 189 Chart 30 – Teachers' responses to the opinion survey ............................................................ 190 Chart 31 – Positive impact of the VPL on learning compared to other years ........................ 191 12 INDEX OF ANNEXES Annex A – Request for installation of the VPL in ISEP's Moodle ........................................ 220 Annex B – Request for authorisation from the Director of the LEI ....................................... 221 Annex C – Request for authorisation from the APROG Head ............................................... 222 Annex D – Curricular Unit sheet for APROG - 2017/2018 ................................................... 223 Annex E – Curricular Unit sheet for APROG - 2018/2019 .................................................... 226 Annex F – Opinion survey – students 2017/2018 .................................................................. 230 Annex G – Opinion survey – students 2018/2019 .................................................................. 232 Annex H – Opinion survey – teachers .................................................................................... 237 Annex I – CCPFC/ACC-101425/18 Accreditation Register .................................................. 239 Annex J – Exercises chosen to use with the VPL................................................................... 242 Annex K – Explanatory text of the use of VPL in 2019/2020 ............................................... 244 13 ACRONYMS This document uses acronyms and terms of common names, justified both by their frequent use throughout the document and by their use in this field of knowledge, each of which is presented in its first use. The list of acronyms is presented below, in alphabetical order. ACM Association for Computing Machinery AI Artificial Intelligence ANSI American National Standards Institute APB Associação Portuguesa de Bancos (Portuguese Bank Association) API Application Programming Interface APROG Algorithmics and programming AR Augmented Reality ASD Adaptive Software Development ASME American Society of Mechanical Engineers AT&T American Telephone and Telegraph AVA Ambientes Virtuais de Aprendizagem (Virtual Learning Environments) B2B Business to Business B2C Business to Consumer BASIC Beginner's All-purpose Symbolic Instruction Code BDDAD Bases de Dados (Databases) b-Learning blended learning BNF Backus Naur Form BOSS Bob’s Online Submission System CEDETEL Centro de Desenvolvimento de Telecomunicações em Castela e Leão (Telecommunications Development Centre in Castilla and León) COBOL COmmon Business Oriented Language COOL C-like Object Oriented Language CPS Cyber Physical Systems CU Curricular Unit DEI Departamento de Engenharia Informática (IT Engineering Department) DevOps Development and Operations D-Learning Distance Learning DNS Domain Name System DSDM Dynamic Systems Development Method ECMA European Computer Manufacturers Association e-Commerce electronic commerce 14 e-Learning electronic learning ENIAC Electronic Numerical Integrator and Calculator FAQ Frequently Asked Questions FARE Foco, Análise, Resolução, Execução (Focus, Analysis, Resolution, Execution) FDD Feature Driven Development FUC Ficha de Unidade Curricular (Curricular Unit Sheet) GNU GNU is Not Unix GPL General Public Licenses GUI Graphical User Interface HoGG Homework Generation and Grading HTML Hyper Text Markup Language IaaS Infrastructure as a Service IAL International Algebraic Language IBM International Business Machines ICPC International Collegiate Programming Contest ICT Information and Communication Technologies IDE Integrated Development Environment IDEAL Identification, Definition, Exploration, Action, Learn IEC International Electrotechnical Commission IEEE Institute of Electrical and Electronics Engineering IFB Instituto de Formação Bancária (Banking Training Institute) IOI International Olympiad in Informatics IoT Internet of Things ISEP Instituto Superior de Engenharia do Porto ISO International Organization for Standardization JDK Java Development Kit JIT just-in-time JSP Java Server Pages JVM Java Virtual Machine LAN local area network LCMS Learning Content Management System LEI Licenciatura em Engenharia Informática (Degree in Computer Engineering) LMS Learning Management System MIT Massachusetts Institute of Technology m-Learning mobile learning Moodle Modular Object-Oriented Dynamic Learning Environment MRI Matz Ruby Implementation OECD Organisation for Economic Cooperation and Development 15 OKI Open Knowledge Initiative OO Object Oriented OOPSLA Object-Oriented Programming, Systems, Languages and Applications OU The Open University PaaS Platform as a Service PC2 Programming Contest Control PETCHA Programming Exercises TeaCHing Assistant PHP Hypertext Preprocessor PHP-FIG PHP Framework Interoperability Group PISA Programme for International Student Assessment PPROG Paradigmas da Programação (Programming Paradigms) PROLOG PROgrammation en LOGique PSRs PHP Standards Recommendations PYPL PopularitY of Programming Language Index RAD Rapid Application Development RCAAP Repositórios Científicos de Acesso Aberto de Portugal (Open Access Scientific Repositories of Portugal) RECIPP Repositório Científico do Instituto Politécnico do Porto (Scientific Repository of the Polytechnic Institute of Porto) RPC Remote Procedure Call RUC Responsável de Unidade Curricular (Head of the Curricular Unit) SaaS Software as a Service SAC System for Automated Assistance in Correction of Programming Exercises SCP Smart Connected Products SDK Software Development Kit SSL Secure Sockets Layer SWERC South Western Europe Regional ACM Programming Contest u-Learning ubiquitous learning UNED Universidad Nacional de Educación a Distancia UNESCO United Nations Educational, Scientific and Cultural Organization VLSI Very large-scale integration VNC Virtual Network Computing VPL Virtual Programming Lab VPN Virtual Private Network VR Virtual Reality Xinetd Extended Internet Services Daemon XP Extreme Programming 16 17 1 INTRODUCTION "It is a lousy idea, one that you cannot change." Montaigne In this first chapter, the general contextualization of the environment in which the research is carried out is made and the problem identified is presented. The proposed objectives are also mentioned, as well as the contributions expected to result from this work. Next, the research methodology used and the author's personal and institutional motivations for this work are mentioned. The chapter ends with a presentation of the organisational structure of the thesis and a brief description of each of the chapters constituting it. 1.1 BACKGROUND In recent years, we have witnessed an exponential growth in computer technology. This accelerated evolution has caused profound changes in our lives, in social relations and in the most diverse economic activities. The way we relate, communicate, travel, buy and sell today is radically different from what it was just a few decades ago and, in the overwhelming majority of cases, depends on Information and Communication Technologies (ICT). According to Fiolhais (Fiolhais, 2005), information technology has played an overwhelming role in the development of modern society. The author points out that computers are everywhere today, and we could hardly imagine our life without them. This statement of almost a decade and a half ago, so far from today's reality is, however, as valid today as it was then. Even without realizing it, almost all of our actions are somehow associated with information technology. The mere fact that we turn on a switch, will cause a system somewhere to receive the information that we are consuming energy. Energy meters themselves are now, in many situations, digital and some with remote metering (smart meters) connected directly to a data centre. The power plants, the electricity transmission and distribution networks and all related infrastructures and systems are managed electronically (Paiva, 2015). But there are many more examples of the use of information technology, such as water distribution network management systems, air traffic control, the stock exchange, commercial and financial transactions, communications, medicine, military, surveillance, education, among many others. To this day, we have come a long way. The genesis of computers has millennial roots. It is believed that the oldest tool related to calculus is the abacus, an instrument invented about 5 000 years ago, which has been perfected over time and was the precursor of the calculating machine (Williams, 1985). More recently, in the 17th century, Pascal's machine marked an era in technological evolution. Nonetheless, the ancestral machine closest to the concept of modern computers was conceived, although not realized, by Charles Babbage, still in the first half of the 19th century. After Babbage, new developments took place with Hollerith's perforated cards in particular, who founded the company that would give rise to International Business Machines (IBM) (Kistermann, 2005). Another important milestone was the design of the Turing machine, developed by Alan Turing, an English mathematician, founder of Computer Science and JOSÉ MARÍLIO OLIVEIRA CARDOSO 18 percussionist of Artificial Intelligence (AI), and whose concepts were used in the construction of equipment to decipher German army codes during World War II (Rojas & Hashagen, 2000). With the development of electric valves, Electronic Numerical Integrator and Calculator (ENIAC ) emerged in the 40's of the 20th century and was considered the first general-purpose electronic computer, in what was a gigantic leap from the mechanical devices used up to then. With the appearance of the transistor a new revolution takes place with a radical decrease in the volume, cost and weight of equipment, and a huge increase in processing speed. This period became known as the second generation (Rojas & Hashagen, 2000). The next stage was characterised by a trend towards miniaturisation of devices having become a precursor to the development of integrated circuits. Processing speed increased by dozens of times over the previous stage as well as there being a large increase in storage capacity based on semiconductor-built memories. However, the most striking period in the history of computers would have been as of the mid 1970s of the 20th with the emergence of Very large-scale integration (VLSI) technology, which resulted in processors with good performances, which boosted the development of small computers at affordable costs and gave rise to a new concept: the personal computer. It is also in this period that Microsoft and Apple appear, two colossuses that are present all over the world today. Also, in programming languages, operating systems and software, there were major developments such as the launch of the Windows operating system or the emergence of Linux. Currently, designations such as Artificial Intelligence, neural networks, telemedicine, Virtual Reality (VR), Augmented Reality (AR), cloud computing or the internet of things, usually referred to as Internet of Things (IoT) are already widely used (Farshida, Paschena, Erikssonb, & Kietzmann, 2018) (Schmidhuber, 2015) (Atzori, Morabito, & Iera, 2010). This accelerated technological evolution, unprecedented in human history, was predicted in 1965 by Gordon Moore (Moore G. E., 1965). The later called Moore's law advocated that every two years, on average, there would be a doubling of the number of components per integrated circuit. This is a concept which remains valid to this day. Given that computer equipment (hardware) is essential for computing, there is, nevertheless, another indispensable part to the functioning of the systems: the software. Thus, the development of software is a crucial activity for the functioning of society as a whole. Knowing how to program is an emerging competence in the 21st century (Engelhardt & Balanskat, 2015). Producing software is not just about programming, but it is a key task for the success of the process. In this context, there is a need for new programmers and software engineers in order to ensure the operation and development of computer systems, so teaching how to program is essential for the development of new applications, technological evolution and the sustainability of society as we know it. Being that teaching programming is a complex and challenging task for any teacher, especially when teaching beginner programmers, it is not an easy task for most students either (Moström, 2011). According to Anabela Gomes (Gomes A. , 2010), this is demonstrated in the typically high failure rates in the introductory programming courses, all over the world and in all degrees and education systems. The search for new methods, strategies, means, tools and technologies that can improve the process is thus a constant. Proof of this is the number of publications and research work on the subject (Bennedsen, Caspersen, & Kölling, 2008) (Luxton-Reilly, et al., 2018), with research in the field of teaching, but also in the technological areas and even in psychology, particularly with regard to motivation (Lykke, Coto, Jantzen, Mora, & Vandel, 2015) (Tsukamoto, Nagumo, Takemura, & Nitta, 2012). There are no magic formulas to turn a person into a competent programmer, but there will surely be opportunities Chapter 1. Introduction 19 to improve the teaching-learning process of programming by enhancing and developing students' skills, making the process less painful and more effective. 1.2 THE PROBLEM In the course of Computer Engineering (LEI) of the Department of Computer Engineering (DEI) of the Polytechnic Institute of Porto (ISEP) students are taught, in the first semester of the first year, the curricular unit (CU) of Algorithmics and Programming (APROG). This CU aims to provide students with an essential skill for a future computer engineer: programming. Here, the fundamental concepts associated with the programming logic based on the procedural programming paradigm are introduced, with special focus on modelling and algorithmic problem solving. The implementation of the designed algorithms is carried out using the Java language in order to foster a faster transition from the procedural paradigm to the object-oriented programming paradigm (in later curricular units). Figure 1 – APROG lesson types In APROG, the weekly load is divided into three types of classes: theoretical (T), theoretical-practical (TP) and laboratory-practical (PL), as presented in Figure 1. Each of these class types has a different weekly schedule, as shown in Table1. Table1 – Weekly workload by type of class Type of class APROG Number of lessons per week Lesson length (min.) Total weekly lesson length (min.) Theoretical (T) 1 50 50 Theoretical-practical (TP) 1 50 50 Laboratorial practice (PL) 2 110 220 In recent years, the eduScrum (Delhij, van Solingen, & Wijnands, 2015) methodology has been applied in face-to-face lessons, where students organize themselves into teams. This methodology is a variant of Scrum applied to education, in which students are responsible for the learning process by the teacher's delegation. Scrum (Sutherland, 2014) is suitable for complex product development and is widely used in the production and maintenance of software, in an agile, iterative and incremental process. Companies use the Scrum methodology to enhance teamwork and promote a productive, creative and attractive way of working, based on autonomy and responsibility. JOSÉ MARÍLIO OLIVEIRA CARDOSO 26 The health sector The health sector is an excellent field of application for information technology and computers. Here we will be able to identify its use for various purposes such as the administrative and technical management of a hospital or to perform complementary diagnostic tests. Many medical devices have processors and other components typical of computers that give them a clearly computerized context, working with pre-defined or programmable software depending on their complexity and function. Medical imaging is an area where images of the human body are created for medical purposes, and many of the scanning and imaging techniques used there are based on computer technology. For example, in an axial-computer tomography, digital geometry processing techniques are used to obtain three-dimensional images. Moreover, in the study and recording of historical data on diseases or in the analysis of cellular structures and micro-organisms, computers have proved to be a precious ally, enabling tremendous developments in the medical and pharmaceutical fields. Another crucial area is decision making, which can be strongly supported by computer systems enhancing the quality and efficiency of health care delivery and reducing error (Jardim, 2013). Patients' clinical records in digital format, with access to their entire personal and family history, diagnosed diseases, prescribed medication and test results, accessible at anytime and anywhere, allow all medical processes to be streamlined with clear advantages for everyone. However, as in other areas, access to this sensitive information can be a vulnerability aspect that needs to be taken into account and prevented. The amount and diversity of data in medical records, management system, database of doctors and other personnel, as well as other systems, represent major challenges with respect to interoperability, quality, safety and reliability conditions, as well as data storage, processing and integrity (Plazzotta, Luna, & Quirós, 2015). Often the (several) existing applications (each for its own area and purpose) are not able to be interconnected and to communicate with each other, which represents a significant barrier to using existing data and resources for effective and integrated management. With the growing average life expectancy of the world's population, which is expected to rise from 71 years in 2010 to 83 years by the end of the 21st century (United Nations, 2017a) (United Nations, 2017b), and by 90 years in the more developed regions, it is expected that medical computing will become even more relevant and important in the coming decades. Vital function monitoring, alarm and, in some cases, diagnostic and first intervention devices, as well as applications developed specifically for this purpose for mobile devices are already a tested and widely used reality, but they remain a fertile field of research for new solutions. All this development is boosted by technological advances in communications, computer networks and the Internet giving rise to the concept of telemedicine (Lustig, 2012). Today it is possible to take medicine to distant places, allowing doctor-patient interaction at a distance, with the possibility of making diagnoses and sometimes surgical procedures. Today, with the Internet, it is extremely simple to observe, send or receive images or test results with those involved in different physical locations. There are also new fields of application in the area of health informatics such as AI and machine learning (Deo, 2015). The increase in the size and complexity of the problems to be solved computationally has been accompanied by a remarkable development of storage resources and information processing management. This progress has allowed to extend the scope of use of computers to new areas and applications, increasingly demanding and complex and with promising results. Computers are being used more and more with self-learning Chapter 2. The importance of software development 27 functionalities, with large volume and complex data analysis capabilities, with more elaborate and robust algorithms, opening new possibilities in several areas. The education sector Contrary to what one might think, the use of computers in teaching is not a recent phenomenon. Ralston (Ralston & Meek, 1976) states that as early as 1958 a computer was used as a teaching machine at the Coordinated Science Laboratory1 of the University of Illinois. This experiment was an attempt to apply the teaching machine of Skinner (Skinner, 1958), an American psychologist adept at radical behaviourism who advocated the importance of immediate feedback to the correct response. However, 60 years ago, the means available and the perspective would have been very different from today's, basically serving to store information and make it available to the student. Since those times, we have seen incredible technological advances, with the increase in the processing and storage capacity of computers and the decrease in their dimensions, with the appearance of laptops, tablets and mobile phones and with the generalization of Internet access. This is an extraordinarily different reality, with access to a panoply of equipment and resources in teaching that enhance richer and more challenging environments for students and teachers (McKnight, et al., 2016). All this translates into a new paradigm with major implications for the organization of the school and the role of the teacher (Cairns & Malloch, 2017). As Bates points out (Bates, 2015), changes in the economy and technology require teaching with a new approach, requiring teachers to adapt their role in the classroom. Technology must be used in favour of teaching, meeting the expectations of digital native students. It should be noted that, as argued by Bullen (Bullen, Morgan, & Qayyum, 2011), there are those who advocate talking about digital learners and not digital natives. This statement stems from the fact that it is not always the youngest students, who are supposed to be most familiar with the technology, who best master and use it. It is therefore crucial to involve all students in digital literacy in order to make the most of computer resources for learning. To this end, strategies based on playful resources are increasingly used, focusing on interactivity and on trying to make the activities more attractive and closer to the students' family contexts. From here comes the concept known as gamification (Piteira & Costa, 2017) (from the English term gamification), but, in reality, it should be called gameplay, which translates into the application of concepts, mechanics and elements of games in other contexts, namely in education and teaching. This principle aims to make technology more attractive, enhancing pleasure and increasing interest, involvement and motivation in order to induce behaviours that lead to better performance (Tu, Sujo-Montes, & Yen, 2015). Another advantage of the use of technology is that it enhances approximation, mitigating the notion of physical space by using simulators as well as remote and virtual laboratories (Heradio, de la Torre, & Dormido, 2016). These are means which, in addition to allowing for experiments and training at reduced costs (Viegas, et al., 2017), provide more attractive and enriching experiences while offering other relevant advantages (Gravier, Fayolle, Ates, & Lardon, 2008) of which the following stand out: •Accessibility - usable by people with disabilities; •Control - they are more easily monitored and controlled; •Availability - they can be used at any time and from anywhere; •Observation - the sessions can be viewed locally or remotely; 1 https://www.csl.illinois.edu/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 28 •Safety - for conducting or simulating potentially hazardous experiments if conducted physically. It may be thought that these resources will be unique to the areas of engineering or technology in what is commonly called Science, Technology, Engineering, and Mathematics (STEM ) (Carnevale, Smith, & Melton, 2011). There are, however, many other areas such as education, languages, sport or medicine (Diwakar, et al., 2014) where these resources are very useful. Also, with regard to individual or collective study and the possibilities of communication between students and between students and teachers, computers have brought radical changes. Today, it is commonplace to study in groups being physically distant, to exchange messages and notes instantly, and to share materials or perform collaborative assignments digitally. The use of social networks and digital media for group study and information exchange is also widespread, particularly among younger students (Martin, Wang, Petty, Wang, & Wilkins, 2018). The Internet is a huge source of information (although not always reliable) enabling doubts to be clarified or any information to be obtained simply and almost immediately. Despite the amount of false, biased or unscientifically validated information circulating on the Internet, there are plenty of scientific repositories and other reliable online resources, often associated with higher education institutions, official agencies or publishers, which allow reliable information to be obtained. Despite all these possibilities and advantages, information technology also brings risks and threats to the educational process, and several barriers to the use of technology at school have been identified (Collins & Halverson, 2009). Some of the risks most frequently mentioned are the possible increase of distractions, whether with online games, surveys or interactions on social networks, the loss of manual writing practice, as well as the possibility of decreased effort and critical sense due to the tendency to look for answers online. Also digital educational resources, being richer, more animated and colourful, limit the need to resort to the imagination, and the logical-symbolic thinking inherent to computers can result in difficulty in understanding and evaluating the world (Setzer, 2001), which is counterproductive in children and adolescents. There are also other potentially harmful effects related to health issues, such as decreased physical activity, sight and posture problems. These fears have already led to some decisions to restrict or prohibit the use, in particular of mobile devices, as recently happened in France2. There are other dangers associated with computer use, common to other contexts, for example, those related to safety (Schleicher, 2019), such as cyberbullying, phishing, loss of confidentiality of data, inappropriate content, or the possibility of establishing knowledge of and contact with anonymous and/or potentially dangerous people. It is clear that in order to use and leverage these resources, physical and logistical conditions and resources are required to support the operation of the devices. In particular, the existence of networks, wired or wireless and the possibility of Internet access with adequate bandwidth and speed for use. A booming field is that of mobile devices (Heflin, Shewmaker, & Nguyen, 2017) with numerous applications for the most varied themes and purposes, giving rise to a mode of teaching called mobile learning (m-Learning). The usage of devices that students use on a daily basis, the ease of access and utilization, are some of the factors referred to as advantages of m- Learning (Shih & Mills, 2007) and drivers of its uptake. There are empirical and exploratory studies (Sung, Chang, & Liu, 2016) that indicate that the use of mobile devices is more effective 2 http://www.leparisien.fr/societe/interdiction-des-portables-a-l-ecole-la-loi-definitivement-adoptee-30-07-2018-7838517.php Chapter 2. The importance of software development 29 compared with desktop or laptop computers. This effectiveness results from familiarity with the device and the ease of downloading and using apps free of charge, which allow learning foreign languages, mathematics, programming languages, attending courses online, and so on. This reality with technology-based teaching and the possibilities of distance learning (D-Learning), has given rise to new ways of teaching and learning and to new concepts among which: e-Learning, b-Learning, m-Learning or u-Learning (Figure 2). Figure 2 – Teaching Methods It should be noted, however, that D-Learning is a very old concept, with some experiences dating back to the first half of the 19th century. With the development of the postal services, later on with radio and television, it was possible to bring education to more remote populations. In Portugal, school by TV, instituted by Decree-Law 461363 of 31 December 1964, was a landmark initiative, necessary to make up for the shortage of teachers resulting from the extension of compulsory schooling from four to six years. It also aimed to reduce territorial asymmetries in access to education and was crucial for rural areas (Gomes A. , 1967). Its decline began at the end of the last century with the sharp decrease in the number of students enrolled in what was then called Mediatized Basic Education (EBM). On July 8, 2003, Dispatch no. 13313/20034 was published, which determined the disappearance of the basic education schools that were still in operation, the last ones being closed in the 2005/2006 school year. As far as teachers are concerned, while many of them are entrepreneurial, proactive and innovative, they train and strive to capitalise on the advantages of using computer resources, there are others who, because they cannot, dislike or even perceive technology as an obstacle rather than an ally, do not use or encourage the use of this type of resource (Muir-Herzig, 2004). There are still some cases where the facilities and resources made available do not allow them to be used. In addition to the issues listed, technology in teaching fosters the construction of plural educational communities without geographical or cultural boundaries, which allow for the sharing of information and collaboration in a richer and more supportive context. There are also other areas in expansion with great potential for exploration and use such as the use of podcasts, animation, video, VR, AR, mixed reality and AI. The economic sector Today, whatever the size of the business or the area of activity, it is unthinkable, even for legal reasons, not to have computer systems. For shopping, payments or doing business, you only need a device with an internet connection. The increasing use of information technology in business has given rise to terms such as ecommerce, online shopping, Business to Business (B2B) or Business to Consumer (B2C). E- commerce is the integration between data systems, management, communication and security 3 https://dre.pt/application/conteudo/554171 4 https://dre.pt/application/conteudo/1234160 JOSÉ MARÍLIO OLIVEIRA CARDOSO 30 that enables the exchange of information on the sale of goods and services, being the electronic variant, conducted via the Internet, of any traditional business. This makes business global, regardless of the location of those involved and without distance restrictions. This is a phenomenon that has been growing, due to its characteristics, with a reduction in costs and great scope, constituting, when well applied, an important competitive advantage (Gouveia, 2006). B2B e-commerce refers to transactions carried out between partner organizations or in a supplier-customer rationale, typically involving raw materials or equipment, although finished products may also be marketed for resale. It is characterized by a higher volume of transactions and higher amounts regarding the operations in B2C (Turban, King, Lee, Liang, & Turban, 2015), due to the existence of several transactions of the same product along the value chain. In the case of B2C, commercial ties are established between companies and the end customer (Nemat, 2011), usually comprising only one transaction of the same good or service. A model case of this kind of trade is Amazon. There are, however, many other examples of areas of activity such as tour operators, home banking or real estate. In this context, consumers and businesses gain access to a global market, with the possibility of accessing a wide range of products and services, available 24 hours a day with reduced processing and distribution costs. B2C also has social benefits for society, allowing access to populations far from large urban centres or countries with less supply of goods and services. Yet the impact of computers is not only reflected in commercial exchanges but is also an important ally for management with the provision of project management tools, work organisation, team management, document management, stock control, or data storage, among others. Also in the industry, IT, automation, robotics and even AR (Esengün & Ince, 2018) are increasingly present and have a major impact on production capacity and product quality. The ability to control processes with the possibility of installing sensors that receive and send information in real-time allows a much more rigorous management with fewer failures and lower costs, with current industrial technologies based on sophisticated computer resources supported on IoT, Cyber Physical Systems (CPS) (Qin, Liu, & Grosvenor, 2016) (Jazdi, 2014) or Smart Connected Products (SCP) (Porter & Heppelmann, 2015). There are high-tech industries where this reality is even more evident, producing goods and equipment that are also "loaded" with technology, such as the aeronautical industry or the automobile industry. 2.2 PROGRAMMING LANGUAGES For a computer to perform certain tasks, a program (software) is needed for the intended purpose. The software is the means by which it is possible to communicate with hardware (physical equipment) and consists of a set of instructions, which are written in a programming language. A programming language is a written and formal language with a set of syntactic and semantic rules and its own specifications. The syntax of the language concerns the writing rules of the source code such as instructions and reserved words, whereas semantics specifies the meaning of the instructions. The definition of language is completed by a grammar that describes the syntax and semantics of that language. The most basic way to communicate with a computer consists of a reduced set of instructions sent directly to the processor, allowing a limited and elementary number of actions to be performed. This set of instructions is called "machine code", specific to each processor and usually based on a binary code and is therefore not suitable for writing programs that Chapter 2. The importance of software development 31 translate complex algorithms. This is how an intermediate level language emerged, simpler and with greater abstraction, with binary codes being replaced by simple mnemonic instructions. These instructions are specific to each processor/architecture, and it is necessary to "translate" them into machine code using an assembler. Although it is simpler than "machine code", the assembly still has a low degree of abstraction which, on the one hand, allows access to resources at a lower level, but on the other hand it presents many limitations for the implementation of sophisticated programs. Throughout history, languages were developed that were simpler and more powerful for the programmer, with even greater abstraction and closer to natural language. These are the socalled high-level languages, which have more features that increase the readability of code writing and minimize the probability of error. In addition, they can be independent from the computer architecture and therefore can be written on one machine and executed in others. Figure 3 – Programming language levels For the instructions to be "understood" by the processor it is necessary to convert the source code written in a specific language into machine code, and a program (or set of programs) is used for this purpose. These programs responsible for translating instructions into machine code are interpreters or compilers, depending on the language concerned. Sebesta (Sebesta, 2016) indicates three methods of implementing programming languages (Figure 4): Figure 4 – Programming languages implementation methods If the language is compiled, the source code is fully translated into a program that can be run directly (Tucker & Noonan, 2006). JOSÉ MARÍLIO OLIVEIRA CARDOSO 32 Figure 5 – Compilation process This translation is performed to machine code, being a slow process, but because it is executed once only, the execution process is quite fast. Portability problems may arise since the machine code is different depending on the processor and computer architecture. In the case of the interpreter, each of the instructions is translated and executed, sequentially, until the program is finished. Figure 6 – Interpretation process In these types of languages execution is slower, as it is necessary to translate the source code each time you want to run the program, typically having higher demands in terms of resource use. However, it has the advantage that the generated code is specific to the platform where it will be executed. In hybrid systems, there is a compromise between pure compilers and interpreters, with a translation to an intermediate language that will then be interpreted in a simpler and faster way, so they are platform-independent, with average execution speed. In Table 2 some characteristics of the methods of implementing programming languages are presented. Table 2 – Comparison of methods of implementing programming languages Compilation Pure interpretation Hybrid Implementation Systems •Machine code translation •Slow translation •Fast execution •Without translation •Slow execution •Falling out of use •Low translation costs •Average execution speed An example of a language where a process of compilation and interpretation occurs is Java5. In the process of switching from source code to executable code, the source code is 5 https://www.java.com/en/ Chapter 2. The importance of software development 33 initially submitted to the Java compiler where a special representation called bytecode is generated as illustrated in Figure 7. Figure 7 – Java compilation process There is another software component called Java Virtual Machine (JVM) which consists of an application that is created on each computer when the software of the Java platform is installed there, and which is specific to the operating system of that computer. It is on JVM that the bytecode will be interpreted (or compiled) thus allowing the execution of the program written in Java (Figure 8). Figure 8 – Java interpretation process Since each computer has its own JVM, this results in the advantage of code portability to any machine, regardless of its characteristics and operating system, according to the slogan "Write once, run anywhere" by the company that launched the language, Sun Microsystems which was acquired by Oracle Corporation6 in January 2010 (Sharan, 2017). Programming Languages Evaluation Criteria In the early days of programming, applications were typically simple and very limited due to existing hardware and the development process comprising individual programmers. Currently there are teams with several programmers who develop small parts of large complex and sophisticated projects with marked quality and safety concerns. Thus, programming languages have had major developments and should today present a set of desirable properties that make them robust, safe and reliable. For the design and implementation of a computer system, the choice of programming language is a key factor for its success. There are languages best suited for certain types of applications and environments, for Web or offline use, for handling large volumes of data, or where a great deal of calculation effort is required, among other analysis parameters. These days it is common to have applications that combine more than one programming language depending on the specificities of each functionality. Thus, the choice of language (or languages) should focus on the application, but also ease the development process. After the so-called software crisis (Pressman, 2010), programmer time management became vitally important in the development of software, which led to programming languages allowing the optimization of this resource. However, several other characteristics were 6 https://www.oracle.com/index.html JOSÉ MARÍLIO OLIVEIRA CARDOSO 34 identified as being important, the most commonly mentioned being readability, writability (writing ability), reliability, cost, efficiency and portability (Sebesta, 2016). Readability Readability refers to the easiness of reading and understanding programs written in the language concerned, i.e. the ease of analysing the code and perceiving its logic, being a very important aspect in program maintenance. Readability comprises the following aspects: overall simplicity, orthogonality, control structures, data types and syntax. 2.2.2.1 Writing ability This property indicates the ease of using a language to write code in a natural way, keeping the programmer focused on the content and not on the details or "tricks" of the language. It has associated factors such as simplicity, orthogonality, expressiveness, support for abstraction, data structures, control structures and syntax. 2.2.2.2 Reliability This property is intended to assess whether, with the use of programming language, compliance with the specifications is met under all conditions (Sebesta, 2016), showing identical behaviour regardless of platform or data volume. The reliability of systems is much more dependent on algorithms than on the language with which they are written. However, the language can have some impact, being a reliable language that which promotes the implementation of applications with low error rates and maximizes the automatic detection of errors. The language must provide assurance that the programs work for the intended purpose, with data integrity and access control. 2.2.2.3 Cost The final cost of a language is a concept that results from the sum of a set of costs, dependent on many factors such as the ease or difficulty of training programmers. There are robust but complex languages with many features and multiple ways of executing the same instructions, which makes them more difficult to learn and use. Other factors contribute to determining cost, such as ease of writing, readability, reliability, ease of execution and testing, as well as the financial costs associated with purchasing or using resources (compilers, publishers, debuggers, servers, virtual machines or other). Also, the cost associated to the maintenance of software, being very much related to readability, can be quite significant and impacting, especially in corrections and modifications made by programmers who are not the authors. 2.2.2.4 Efficiency Efficiency in general terms concerns the relationship between the means employed and the results obtained, i.e. producing the most by 'spending' the least. In computing terms, efficiency is historically related to physical resources such as speed of execution, processor usage or memory occupied to run a program. However, the coding effort has increasingly been considered in the equation, both for the initial writing of programs and for their maintenance. 2.2.2.5 Portability This property consists of the ability of software to run on different platforms or operating systems with no need for change, i.e. to be compatible with different environments, Chapter 2. The importance of software development 35 always displaying the same behavior. A program written on one machine should be able to be used on any other equipment. Programming Paradigms The term paradigm means, in broad terms, standard or model, i.e., it designates a conceptual rather than a concrete representation and can be described by basic guiding principles. This concept was defined in the scientific context by Thomas Kuhn, physicist and historian of science, as a set of laws, theories and methods that "provide models from which emerge specific coherent traditions of scientific research" (Kuhn, 1962), that is, a specific form of organization of knowledge in a particular area. This concept applied in the context of computer science concerns the way in which a problem is designed and implemented, i.e. the programming style. A programming paradigm determines the programmer's view of the problem analysis, the structuring and the implementation of the solution. The programming paradigm can also be understood as the way of organizing programming languages according to their functionalities. However, a language can be multi-paradigmatic, and the programmer can use it according to what appears to be the most appropriate for the implementation in question. There are several programming paradigms, four of which are fundamental: •Imperative; •Functional; •Logical; •Object oriented. Each corresponds to a specific approach involving a different way of thinking and being supported by a diversity of programming languages. This diversity impacts directly on the development process, since the choice of a paradigm establishes a well-defined path that is difficult to reconcile with other approaches. Different paradigms may privilege different aspects, such as focusing on syntax, privileging the organization of the code, or highlighting the execution model. Sometimes the distinction between paradigms is made by the programming techniques that are allowed or forbidden in each one. 2.2.3.1 The imperative paradigm (procedural) This is the oldest paradigm (Tucker & Noonan, 2006), directly associated with the questions of hardware, having Von Neumann's machine as theoretical basis. In imperative languages the main elements are the variables and the assignment and iteration commands. This paradigm defines a program as a sequential set of instructions that change the current state of a system (by changing the values of its variables) until a final state is reached. A detailed description of the operations necessary to solve the problem and their order of execution is carried out, the final result being the consequence of the execution of these operations. The imperative paradigm shows high efficiency since the instructions are stored in adjacent memory cells. Also, as far as modelling is concerned, it is simple, since the structuring is similar to usual human action, with the execution of sequential tasks. Nevertheless, it has the disadvantage that relationships between inputs and outputs are not very evident, which impairs the legibility of the code, potentiating errors in its maintenance. Another aspect typically identified as negative is to focus too much on how to do it and not on what to do. The most relevant programming languages in this paradigm are: Fortran, Algol, Cobol, Basic, C, Ada and Perl. JOSÉ MARÍLIO OLIVEIRA CARDOSO 42 Created by Dennis Ritchie14, the C language was derived from the B language (Johnson & Kernighan, 1973), also by Ritchie and Ken Thompson, which in turn was a simplification of Basic Combined Programming Language (BCPL) by Martin Richards, University of Cambridge (Richards & Whitbey-Strevens, 1979). Unlike its predecessors, C language is a "typed" language, although not strongly "typed"; however, throughout its evolution the verification of types (Kernighan & Ritchie, 1988) has been reinforced, introducing new types of primitive data, such as whole numbers, characters, matrices, pointers and special Boolean operators. The C language was defined by ANSI X3.159-1989 (ANSI, 1989) and later received certification from the International Organization for Standardization, ISO/IEC 9899:199015, the most current version being that of 201816. This standardization decision was made to promote the C language, giving it reliability and capacity for maintenance and execution in different systems. The objective of its creation was to be "minimalist", simple and flexible, with a restricted set of instructions. It has a significant set of resources, giving the programmer great power, having as its basic philosophy the programmers' responsibility. C language is easy to learn and has been widely used for teaching programming and has proven to be a fast, reliable and effective language over time, usable for a wide range of purposes (Papaspyrou, 1998). 2.2.5.8 PROLOG Prolog, by Alain Colmerauer and his PhD student Philippe Roussel, resulted from a project whose first objective was not to develop a new programming language (Colmerauer & Roussel, 1996). Its purpose was to develop a software tool to implement a human-machine communication system in natural language, in this case in French, based on the idea of automated deductive reasoning. From this project, developed at the University of Marseille, the first version of what would be called Prolog (PROgrammation en LOGique) resulted, named after Roussel who worked with Jean Trudel from the University of Montreal on the deduction part of the project. Colmerauer, in collaboration with Robert Pasero, was responsible for the natural language part. Later Robert Kowalski, from the University of Edinburgh (Colmerauer & Roussel, 1996), joined the project, considered one of the founders of logical programming, author of resolution SL (Kowalski & Kuehner, 1971), and who was invited by the importance of his work of semantic formalization of programming with Horn clauses. Prolog solves problems by using techniques originally developed to prove theorems in logic. A historical landmark in the history of Prolog was the specification of the first standard, the so-called Edinburgh Prolog, by David Warren and the Portuguese Fernando Pereira and Luis Moniz Pereira (Warren, Pereira, & Pereira , 1977). Prolog has been widely used in the field of theorem proofing, natural language processing, knowledge-based agents and in the field of AI in general, also influencing the development of new programming languages, Erlang. 2.2.5.9 C++ C++ was conceived as an extension of the C language and, like its predecessor, was developed at AT&T's Bell Laboratories. The project, started in 1979 by Danish scientist Bjarne 14 https://www.computerhistory.org/fellowawards/hall/dennis-ritchie/ 15 https://www.iso.org/standard/17782.html 16 https://www.iso.org/standard/74528.html Chapter 2. The importance of software development 43 Stroustrup17, was first named "C with classes" (Stroustrup, 1993). Stroustrup's motivation for the creation of a new language originated in his PhD work at Cambridge University, where he analysed Simula language as well as C language and its predecessors (B and BCPL) (Richards & Whitbey-Strevens, 1979). C++ results from the attempt to use the best features of C and Simula, avoiding its inconveniences. In 1983 "C with classes" was renamed C++, as an allegory to the evolution of C, and the first commercial version was made available in 1985, when the first edition of the book The C++ Programming Language (Stroustrup, 2013) was also published. The author states that "The main goal of C++ is the writing of good programs, in an easier and more pleasant way for the individual programmer" (Stroustrup, 1993). C++ is a general-purpose language that presents characteristics of the imperative programming paradigm, but also of the OO paradigm, which has become quite popular, mainly for its compatibility with the C language and the existence and availability of good free compilers. 2.2.5.10 VISUAL BASIC Although Visual Basic appeared in 1991, its history began a few years earlier, in 1987, when Alan Cooper18 developed Ruby, a visual programming software (Waite, 1992). After a demonstration for Microsoft, Bill Gates considered it a significant innovation, buying it and incorporating it into the company. This would be an important step towards the emergence of Visual Basic as an evolution of BASIC, it being specially designed for Microsoft Windows. The creation of Visual Basic was a milestone in the history of computer science with the emergence of a language with innovative features because it is event-driven (event-driven) and with resources for graphical interfaces. It has an integrated development environment (Integrated Development Environment - IDE), providing the interface in which the programmer creates his application. Given the growing popularity of graphical interfaces at the time, it was also an important product for Microsoft. The language had several evolutions over time, with version 6 (VB 6.0) being released in 1998. From then on it was replaced by Visual Basic.NET (Shapiro, 2002), being currently part of this framework. 2.2.5.11 PYTHON The Python19 language by the Dutchman Guido van Rossum20 began to be developed in 1989 and was presented in 1991. To name the language the author was looking for a short and mysterious name, having been inspired by Monty Python's Flying Circus, a comedy programme that was then broadcast by the BBC. Python was designed with simplicity, readability and clarity in mind, and it should be "minimalist", allowing programs to be written with fewer lines of code than existing languages (Summerfield, 2007). In the development of Python, its author established the following objectives: •To be a simple and intuitive but powerful language that could stand shoulder to shoulder with its main competitors; •To be open source, enhancing its development through diverse contributions; •Be easily understood, with good readability; 17 https://www.computerhistory.org/fellowawards/hall/bjarne-stroustrup/ 18 https://www.computerhistory.org/fellowawards/hall/alan-cooper/ 19 https://www.python.org/psf/ 20 https://www.computerhistory.org/fellowawards/hall/guido-van-rossum/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 44 •To be of general use; •To allow writing code easily and quickly. Python's syntax derives from that of other languages having strong influences from ABC, C language, Modula-3 and Icon (van Rossum, 1995). Over the years Python has had several evolutions, today it is a flexible language, with simple syntax, easy to learn and which allows a fast development, as intended by van Rossum. Although in its genesis is the OO paradigm, it supports other programming paradigms as imperative and functional (Rashed, 2012). In 2008 Python 3.0 was released and it is considered the future of Python, the most current version being 3.7 (June 2018). Python is now considered more than a programming language, consisting of an ecosystem with numerous sophisticated libraries and specialized commands developed specifically for dozens of different areas. It supports applications from several companies and in a wide range of applications, and is also widely used by universities and other educational institutions for research and teaching programming (Lutz, 2013). 2.2.5.12 JAVA Although Java formally appeared in 1995, its origins date back to the early 1990s when James Gosling21 of Sun Microsystems22 began developing Oak to add functionality to C++. The idea was to develop a new technology for networking for embedded systems and electronic devices (Horstmann, 2013). Initially, the use of C++ was considered, but the idea was abandoned due to technical difficulties for the intended purpose. Thus, an object oriented language was born, with similarities to C++, but simpler, safer, more portable and reliable (Arnold, Gosling, & Holmes, 2015). Java source code is stored in files with .java extension, which are compiled in bytecode format (files with .class extension) and can be executed by an interpreter. Java has great portability, because each operating system has its own JVM where the bytecode will be executed, although it can also be converted directly into machine language by a just-in-time (JIT) compiler, increasing efficiency by decreasing execution time. In order to use Java, it is necessary to have a JDK (Java Development Kit) which, besides a compiler, provides an extensive library of classes which ensure simple tasks during the development of the application. The use of Java for application development presents as strengths (Deitel & Deitel, 2011): •Simplicity, though also robust; •Object-oriented; •High level of abstraction; •Use of references; •Absence of pointers, limiting the programmer's action and increasing safety; •Portability; •Concurrent processes (threads); •Garbage collection; •Syntax similar to some older languages, making it easier for programmers to migrate existing code and adapt; 21 https://www.computerhistory.org/fellowawards/hall/James-Gosling/ 22 https://www.oracle.com/sun/ Chapter 2. The importance of software development 45 •Existence of free tools for compilation and debugging. For these reasons Java presents itself as a flexible and very popular language, in particular due to the advent of the internet and the development of applications for mobile devices, being used in several types of applications and by programmers from all over the world. Currently Java is maintained by Oracle23, after the purchase of Sun Microsystems (Sharan, 2017). 2.2.5.13 PHP PHP was introduced in 1995, its author being the Canadian naturalized Danish, Rasmus Lerdorf. PHP originally meant Personal Home Page, and was renamed as a recursive acronym for Hypertext Preprocessor (Hudson, 2005). It was created to facilitate several programming tasks for Web, in order to make them less repetitive, reducing the size of the code to write (Sklar & Trachtenberg, 2014). It should be simple by providing various features for various purposes (Lovrenčić, Konecki, & Orehovački, 2009). It is an open source scripting language for the production of dynamic pages, working embedded in Hyper Text Markup Language documents (HTML) and hosted on the server side, which interprets the code and produces an output, on the client side, depending on the data currently used (Lerdorf, 2000). Throughout history, PHP has had several versions and has undergone major evolutions. Due to its great popularity, in 1997 it ceased to be a personal project of Lerdorf becoming a very relevant technology for the Internet incorporating contributions from various programmers (Castagnetto, Rawat, Schumann, Scollo, & Veliath, 1999). In 1998 the PHP3 version is released, rewritten by Andi Gutmans and Zeev Suraski (Lovrenčić, Konecki, & Orehovački, 2009), refining the syntax and incorporating several improvements, giving it a configuration very close to what still exists today. Another important milestone in the history of PHP was the creation of an organization that would be called PHP Framework Interoperability Group (PHP-FIG)24 in 2009. PHP-FIG would create PHP Standards Recommendations (PSRs), a standard element of concepts that aims to create a common technical basis for writing code in PHP. PHP is widely used in Internet sites, being present in almost 4/5 of all sites25. The most current version of PHP is PHP7, released in December 2015, although the most widely used version is still PHP5. 2.2.5.14 Ruby This language was thus named by its author, the Japanese Yukihiro "Matz" Matsumoto, as a result of a joke with some of his friends (Lovrenčić, Konecki, & Orehovački, 2009). Even before writing any code, Matsumoto thought about creating a new programming language whose name should be that of a precious stone, designating it Ruby in honour of a friend born in July, since the ruby is the stone of that month26. The development began in 1993 and the language was publicly presented on December 21, 199527. Matsumoto intended a scripting language, object oriented, having identified Python and Perl as potentially interesting, but none of them satisfied him completely. He felt that, in general, the existing languages were hard, ugly and too limited or too complex. For this reason, he conceived a language with the objective of being more object oriented than Python and more 23 https://www.oracle.com/index.html 24 https://www.php-fig.org/ 25 https://w3techs.com/technologies/details/pl-php/5/all 26 https://www.americangemsociety.org/page/birthstones 27 https://www.ruby-lang.org/en/about/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 46 powerful than Pearl. Another of his goals was that the programming should be easy and, moreover, fun, having as purpose in Ruby's design that the language "would make the programmers happy" (Flanagan & Matsumoto, 2008). This is an interpreted, object-oriented, multi-platform, open-source, general-purpose programming language with a wide range of applications. As in other script languages like Python or Perl, in Ruby, coding is done with a small number of instructions, yet allowing good readability of the code. ISO/IEC 30170:201228 specifies the syntax and semantics of Ruby, as well as the compliance requirements of processors and the compliance of programs written in Ruby. There are several implementations of Ruby, many of which are open source. However, the reference implementation is the so-called "Matz Ruby Implementation (MRI)" (ISO-International Organization for Standardization, 2012) and all others should check its compatibility against it. 2.2.5.15 C# The origin of C# dates back to 1999, when Microsoft created a team to create a new programming language. The team, led by Danish Anders Hejlsberg, author of Turbo Pascal and director of the Delphi project, developed a language based mainly on C, C++ and Java29 which they called C-like Object Oriented Language (COOL) (Buono, 2005). In July of the following year, at Microsoft's Professional Developers Conference, the language was to be presented, already with the designation of C#, and at the same conference, the framework .Net of Microsoft was also introduced, for which C# was developed. The need to change the name resulted from COOL issues already existing as a trademark. Thus, C# was adopted, supposedly in an allusion to music, where the sign # means sharp, which represents half a tone above the preceding note. Thus, C# being the successor to C++, would be above it. There are, however, those who claim that the explanation, being similar, is different, resulting in C++ as an increment (of one unit) and C# as an increment of C++, in that # can be broken down into four "+" signs. In 2001, Microsoft submitted a request to European Computer Manufacturers Association (ECMA) for a C# standardization that would be granted by the ECMA-33430 specification, which later became the ISO/IEC 23270:2006 (Jackson S. , 2016) standard. In the C# development project, objectives were set, among which, that the language should be general-purpose, simple, and object-oriented. It also favoured the portability of the code, as well as the ease of adaptation of users familiar with C and C++. C# is a strongly "typed", multiparadigmatic language, with verification of usage of uninitialized variables and with garbage collector and is suitable for the development of components for distributed environments. The Programming Languages most used nowadays Apart from the languages mentioned, there are many others, the overwhelming majority being more recent and with a use that is beginning to be relevant. These can include, for example, Ada, Delphi, Go, Groovy, Haskell, Julia, Kotlin, Lua, MATLAB, Objetive-C, PERL, R, Ruby, Scala, SQL or Swift (Lovrenčić, Konecki, & Orehovački, 2009). Some of them are of general use, but others are intended for specific purposes, some even for niches, so it is not easy to make a direct comparison as regards their use and popularity. The popularity of programming languages is a controversial subject that can be analysed from several points of view. There are several indexes and rankings of popularity of programming languages, with different periodicity and analysis criteria, so it is not surprising 28 https://www.iso.org/standard/59579.html 29 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/introduction 30 http://www.ecma-international.org/publications/standards/Ecma-334.htm Chapter 2. The importance of software development 47 that the results between them are not the same. Nevertheless, it is possible to observe trends and identify, in general terms, the most popular programming languages today. Among the most relevant sources of data on the use of programming languages for the development of software at the international level the following can be mentioned: IEEE Spectrum31, GitHut (from GitHub)32 33, PYPL34, RedMonk35 and TIOBE36 (Kumar & Dahiya, 2017) (Singh, 2017) (Rabai, Cohen, & Mili, 2015). The IEEE Spectrum index The IEEE Spectrum is a ranking established by the Institute of Electrical and Electronics Engineering (IEEE)37 which is, according to them, "the world's largest technical and professional organization dedicated to advancing technology for the benefit of humanity". This ranking analyses more than 300 programming languages from nine different sources using 11 criteria (Diakopoulos, Cass, & Romero, 2014). Among the sources consulted are GitHub, Google, Google Trends, Stack Overflow38 as well as social networks, in particular Twitter. Data from employment sites, in particular CarrerBuilder39, where analysis of job offers to programmers and the most requested languages are performed, are also considered. Also, with regard to the academic and scientific environment, trends are analysed based on the IEEE Xplore Digital Library40 accessing data from millions of publications from numerous conferences and scientific publications, particularly in the field of Engineering. This index presents several "views", the main one being the global aggregate, but allowing to visualize indexes by trends (growth rates), job offers or other parameterizable by the user. It also presents, associated to each language, the purpose(s) for which it is intended, namely: Internet, mobile devices, enterprises (general and scientific use) and embedded (device control). The information is updated on an annual basis. As an example, in Figure 10 the top ten languages of the ranking IEEE are presented. Figure 10 – Ranking IEEE Spectrum – 201841 31 https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018 32 https://githut.info/ 33 https://madnight.github.io/githut/#/pull_requests/2019/2 34 http://pypl.github.io/PYPL.html 35 https://redmonk.com/ 36 https://www.tiobe.com/tiobe-index// 37 https://www.ieee.org/ 38 https://pt.stackoverflow.com/ 39 https://www.careerbuilder.com/ 40 https://ieeexplore.ieee.org/Xplore/home.jsp 41 https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018 JOSÉ MARÍLIO OLIVEIRA CARDOSO 48 2.2.7.1 The GitHut 2.0 index GitHub42 is an online source code hosting platform, with millions of users worldwide, where it is possible to store copies of local repositories, enabling the collaborative development of software (Bell & Beer, 2015). It is based on Git, a distributed version control system, allowing monitoring the evolution of projects over time, as well as their entire history (Kelleher, 2014). Furthermore, it allows to receive contributions for open source projects, enabling code sharing and project dissemination. Based on the repositories hosted at GitHub and the various programming languages used in them, GitHut was created in an attempt to exploit this data and obtain information about the use of programming languages. The GitHut project has had no updates since 2014, so in an attempt to continue it, GitHut 2.0 was born. This project analyses which languages are used at GitHub to determine their popularity, and the statistics are updated on a quarterly basis. In Figure 11 the most recent ranking of GitHub can be seen. Figure 11 – Ranking GitHut – second quarter of 201943 2.2.7.2 The PYPL index The PopularitY of Programming Language Index (PYPL index) determines the ranking of popularity of languages based on the analysis made by the frequency of search in Google of the respective tutorials, being the data obtained through Google Trends. The search is carried out on the basis of some criteria, such as using not only name, since there are names of languages such as BASIC, Java, Julia, Python or Rust, which in other contexts may have other meanings. Currently, the index has monthly updates and includes 23 languages. According to this source, the language with the highest growth in use in the last five years is Python, with Java losing popularity, as can be seen in Figure 12. 42 https://github.com/ 43 https://madnight.github.io/githut/#/pull_requests/2019/2 Chapter 2. The importance of software development 49 Figure 12 – Variation of use of the most popular languages In Figure 13, the top ten positions of this ranking are presented, as well as the variation of the share of each in relation to the same month of the previous year. Figure 13 – Ranking PYPL – August 201944 2.2.7.3 The RedMonk index RedMonk is a Portland-based North American software market analysis company. Its analyses are essentially based on software development projects and the activity of programmers at GitHub and Stack Overflow. The choice of GitHub is justified by its size and the volume of transactions it carries out. As for Stack Overflow it is used because it is a very active discussion forum with a large number of participants. By correlating the use of languages with the forum discussion, statistics are obtained and trends in the use of programming languages are inferred. RedMonk's rankings consider 20 programming languages, are updated every six months, and are established based on information such as: the geographical origin of programmers, 44 http://pypl.github.io/PYPL.html JOSÉ MARÍLIO OLIVEIRA CARDOSO 50 computer technicians, system administrators, designers or database administrators, their interests or what they read and research. Figure 14 – Ranking RedMonk – first half of 201945 2.2.7.4 The TIOBE index One of the oldest and most considered indexes is TIOBE, by the Dutch company of the same name, specialized in software quality46, which analyses, daily and in real time, more than 300 million lines of code. The TIOBE index is updated monthly based on the number of online surveys conducted on a given programming language. This analysis is performed on 25 sites with search engines that use a fixed algorithm the most important being: Google.com, Baidu.com, Wikipedia.org, Yahoo.com, Csdn.net and Bing.com (Kumar & Dahiya, 2017). For the language to be considered in the ranking some requirements must be met, namely the existence of a Wikipedia entry, having at least 5 000 hits on Google and being Turing complete. Due to its already relatively long existence and accumulated track record, TIOBE is considered a reliable index, enjoying a good reputation. 45 https://redmonk.com/sogrady/2019/07/18/language-rankings-6- 19/?utm_source=rss&utm_medium=rss&utm_campaign=language-rankings-6-19 46 https://www.tiobe.com/company/about/ Chapter 2. The importance of software development 51 Figure 15 – Ranking TIOBE – August 201947 As already mentioned, and as can be seen from the analysis of the various indices, the popularity of a language is neither consensual nor easily comparable, due to the diversity of sources, analysis methodologies, periodicity of rankings and, in some cases, grouping of similar or derived languages. In addition, the languages most commonly used are not necessarily those most in demand for the recruitment of programmers, nor those used for teaching programming. It is therefore not possible to state which programming language is most used, but it is possible to identify a number of the most relevant and popular. For this analysis, the most recent data from the above indexes were used, considering only the 12 most commonly used programming languages, which appeared in all the indexes. To determine the position of each language, the average position was calculated from the information of its position in each ranking, thus obtaining the results in Table 3. Table 3 – Popularity of Programming Languages Language IEEE Spectrum GitHut 2.0 PYPL RedMonk TIOBE Average position Python 1 2 1 3 3 2,0 Java 3 3 2 2 1 2,2 JavaScript 8 1 3 1 7 4,0 C++ 2 5 6 5 4 4,4 C# 5 9 4 6 5 5,8 PHP 6 7 5 4 8 6,0 C 4 10 6 9 2 6,2 Ruby 13 6 12 8 11 10,0 Go 9 4 15 16 17 12,2 Swift 18 13 9 11 18 13,8 R 7 29 7 15 20 15,6 MATLAB 11 35 10 23 12 18,2 47 https://www.tiobe.com/tiobe-index/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 58 NetBeans supports Maven projects, allows for the management of multiple projects simultaneously, the connection to version control repositories, unit testing tools (JUnit), as well as several other features provided by numerous plugins. 2.4 SOFTWARE DEVELOPMENT MODELS In the development of any fairly complex product it is necessary to define a strategy and have an implementation plan in order to control resources (financial, material and human) and deadlines. The development of software is an increasingly important activity, booming with ever larger and more complex projects. A software application can have millions of lines of code, with thousands of methods and a large number of functionalities, interconnecting several modules and promoting the interaction between several systems. Thus, given the size and complexity of many software projects, their development may have to be ensured by several teams simultaneously, sometimes multidisciplinary and geographically dispersed (Guzmán, Ramos, Seco, & Esteban, 2011). This imposes new organisational and working methods, with an increase in collaborative work and with technically competent and, no less importantly, welldeveloped soft skills (Palacios, Lumbreras, Acosta, García-Peñalvo, & Tovar, 2014). Also, with regard to the maintenance of software, this is not consistent with a code and fix approach. In the seventies of the last century, the forms of management of the first software projects adopted models of traditional engineering such as civil, naval, mechanical or electrotechnical (Pressman, 2010). These models consisted of activities developed sequentially, with projects defined in great detail and rigor, but not very flexible. This is the commonly called classic life cycle, sequential linear model or cascade model (waterfall) (Royce, 1970). There are several project management models of software in addition to the aforementioned cascading model, such as rapid prototyping, Rapid Application Development (RAD), incremental development, spiral development (Mishra & Dubey, 2013), and more recently the so-called agile methodologies (Awad, 2005). Waterfall model This is a linear sequential model of software development, proposed by Royce in 1970. It originated in industrial processes and construction projects, in highly structured and very inflexible contexts, where it is very difficult to promote changes. The process consists of a set of phases and develops sequentially, advancing to the next phase only when the current one is finished. There are some variations as regards the various stages of the process, but the version presented in Figure 21, adapted from (Royce, 1970), is relatively consensual. Figure 21 – Process stages in the Waterfall model Chapter 2. The importance of software development 59 The process begins with the concept, with the general idea of what is to be developed, an overall assessment of its interest and feasibility, human resources and estimated costs. Then, a survey and analysis of functional requirements of the system is carried out on the assumption that they will remain unchanged throughout the project (Palmquist, Lapham, Miller, Chick, & Ozkaya, 2013). At this stage, it is necessary to understand as clearly as possible what the customer's needs and expectations are, and to draw up a software requirements specification document. In the next stage, the solution is designed according to the requirements and technical solutions, where the data structures, the architecture of software and the user interface models are defined. In the design, algorithms will be developed which will serve as the basis for the encoding, which consists of translating them into a computer language. After coding, all the components created, individually and in the whole solution, are tested, checking whether they correspond to the desired functionalities for the product. Thus, the tests comprise several levels, from unit tests to system integration and testing. There may be another stage of testing, which are the customer's acceptance tests. Once any errors found have been corrected, the final version of the product is released, then moving to production. This stage also includes the maintenance and support of the product developed to ensure its operation over time, correcting or adding functionality or complying with requirements arising from legal changes. All these stages must be fully and rigorously documented, which means that resources and time are required. This model was dominant until the early 90's of the last century, although there were already several opinions from programmers and researchers that it was not suitable for many of the software projects developed. One such dissenting voice was that of Brooks (Brooks, 1987) when he expressed the conviction that it is not possible to specify a computer application accurately and completely before starting its implementation, an idea supported by Larman when he stated that, unlike other mass production products, software is not something predictable and immune to change (Larman & Basili, 2003). Hence, this model should not be used for the development of large projects, being appropriate only for smaller projects with stable and predictable requirements (Gilb & Susannah, 1988). Agile Methodologies and Scrum In several areas of activity, the so-called agile methodologies (Agile) are used for process management and product development (Larman, 2003), and the area of software is a precursor in its use and probably where they are most used (Moniruzzaman & Hossain, 2013). According to Highsmith (Highsmith, 2002), agility refers to the ability of organizations to react to change at a faster pace than changes occur. In this context, there is a paradigm shift, with people playing a central role in the implementation of projects, with soft skills being essential, such as communication, collaboration and motivation. The agile methodologies are based on a set of 12 principles outlined in the Manifesto for Agile Software Develope58 of 2001, commonly known as the Agile Manifesto. In addition to these principles, the manifesto defines the guidelines that underpin this approach, with four values being the values of agile development: •Individuals and interactions more than processes and tools; •Functional software more than detailed documentation; •Collaboration with the client rather than contractual negotiation; 58 http://agilemanifesto.org/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 60 •Responding to change more than merely following a plan. Agile comprises several practices such as Extreme Programming (XP) (Beck & Andres, 2004), Scrum (Sutherland, 2014) (Cohn, 2013), Kanban (Ahmad, Markkula, & Oivo, 2013), Feature Driven Development (FDD) (Palmer & Felsing, 2002), Lean Development (Poppendieck & Cusumano, 2012), Adaptive Software Development (ASD) (Highsmith, 2000), Dynamic Systems Development Method (DSDM) (Moniruzzaman & Hossain, 2013) or Crystal Clear (Cockburn, 2004). Of all these, the most popular and most used is surely Scrum (Rubin, 2012) (Kuusinen, Gregory, Sharp, & Barroca, 2017). Scrum was developed by Ken Schwaber and Jeff Sutherland and was publicly presented at the Object-Oriented Programming, Systems, Languages and Applications (OOPSLA ) conference, an annual conference of the Association for Computing Machinery (ACM ), in 1995, in Austin, Texas, USA. Since then and up to the present, it has continued to evolve and be maintained by its creators, with various contributions over the years resulting from its immense application. Although Scrum is not a complete methodology, as it only defines a structure, it falls within the scope of agile methodologies. Its name comes from a rugby play, where the players of both teams are grouped in front formations, each playing as a single block, pushing each other to gain possession of the ball. Scrum is not a standard process in which a set of steps leading to the final product are accomplished, but a framework that allows planning, organizing and managing the development of tasks, based on a set of principles and values that serve as a basis for implementation in each organization. Thus, its use will be appropriate to the reality, interests, practices and specific needs of each organization. Scrum originates from the empirical theories of process control (empiricism) (Rubin, 2012), which advocate that knowledge results from experience and from making decisions based on what is known, that is, by doing and learning. Thus, it is perceived that there was no replicable model throughout the project as the development team is experimenting, testing solutions, verifying results and adapting methods and techniques in order to improve their performance. The empirical process is particularly suitable for situations of high uncertainty, with the likelihood of rapid and frequent changes. It is particularly suitable for the development of complex products (Sutherland, 2014) and is widely used in the production and maintenance of software, in an agile, iterative and incremental process. It aims to be a simple, people-centred structure used to enhance teamwork and promote a productive, creative and attractive way of working, based on honesty, autonomy, responsibility, respect, trust and collaboration. The basis of Scrum operation are consecutive development cycles, called sprints, during which a set of previously defined activities must be performed, but beyond following a plan, Scrum intends to respond to changes. 2.4.2.1 Scrum Pillars and Values In Scrum, an iterative and incremental approach is used in order to increase risk control and reduce unpredictability, based on three pillars: transparency, inspection and adaptation (Delhij, van Solingen, & Wijnands, 2015). Chapter 2. The importance of software development 61 Figure 22 – Scrum pillars One of Scrum's main advantages is that it provides an overview of any process, allowing continuous monitoring by the team and the possibility of scrutiny by stakeholders. In addition, if difficulties or ambiguities are encountered, they will be easily detectable and amenable to correction and/or overcoming. The use of Scrum allows for frequent reviews of the project development and the development team's behaviour, evaluating the progress made and the problem-solving capacity. Transparency allied to inspection leads to adaptation, as it makes the team reflect on its performance, promoting change if necessary and enhancing its capabilities. Associated to the pillars are Scrum values that are: focus, courage, openness, commitment and respect (Sutherland, 2014). If all team members bear these values in mind and encourage them, they will be more committed, develop their own skills more quickly and the team's objectives will be more easily achievable. Courage is about doing the right thing and jointly facing the adversities that arise during the development of the project. Each team member should be focused on their specific tasks and be protected by the Scrum Master from all disruptive factors. For the success of the team's work, individual commitment and commitment to everyone's work in a cordial and collaborative atmosphere is fundamental. The team must communicate openly and be willing to examine other perspectives or ideas that arise internally or are presented to them, in an attitude of openness, but consciously and critically. 2.4.2.2 Scrum artifacts The artifacts are the basic tools to support Scrum and aim to guide the team's action and promote transparency and clarity of information in order to avoid differences in perception of the various elements. Figure 23 – Scrum artifacts JOSÉ MARÍLIO OLIVEIRA CARDOSO 62 One of the main artifacts is the product backlog, which consists of specifying functional and desired product requirements through a sorted list (in order of priority) and is considered to be the only source of work from which all planning is defined (Cohn, 2006). Another artefact is the sprint backlog which, starting from the priority tasks of the product backlog, defines the scope and tasks of the next iteration, estimating the effort and development time. The increment contains all items in the product backlog that were completed during the sprint, along with all increments completed in previous sprints. It is a completed and verifiable work block, constituting a step towards the final goal. It has to be considered complete, respecting the definition of ready. Although for some authors it is not considered an artifact, the definition of ready-made is an important document since it specifies, in a clear and consensual way for team members and stakeholders directly related to the project, what requirements the increment should have in order to be considered finished. Figure 24 – Scrum practices (Rubin, 2012) Chapter 2. The importance of software development 63 2.4.2.3 Scrum roles The development of Scrum-based products consists of one or more small, typically multidisciplinary, highly flexible and adaptive teams, each of which includes actors with three different roles (Sutherland & Schwaber, 2007): •Product Owner (manages the product); •Scrum Master (manage processes); •Development team Figure 25 – Scrum roles (Rubin, 2012) The Product Owner is responsible for defining the product to be developed and the order in which the tasks will be performed, defining priorities, also being responsible for the overall success of the project. You must represent the customer (or users or other stakeholders), which may be the customer themselves or a representative. It is up to them to have a clear vision of the whole project, communicating it to all the other participants and being always available to provide all the clarifications requested, supported by transparency, in order to allow decisions to be well-founded, thus reducing the risk. It is up to Product Owner to manage the product backlog in order to maximise deliveries to the customer that represent the greatest possible increase in value, as well as to verify that the work carried out meets the specifications previously defined and to decide whether to accept or reject it. For the success of the project it is essential that the entire structure respects and complies with the decisions of Product Owner. The management and monitoring of processes and the guidance of the development team are the responsibility of Scrum Master. Its main function is to facilitate and mentor, assisting all those involved (including the Product Owner) to adopt Scrum's principles and values and to refine its use, adapting it to the specificities of the organization and processes. It is also responsible for removing any obstacles that may affect the achievement of results and should protect the team from potential external interference. The Scrum Master is prohibited from issuing technical opinions and their action is important in promoting collaboration and communication among team members and between these and the Product Owner. The Scrum Master is neither the project manager nor the team leader, but an element at the service of the team and its needs. JOSÉ MARÍLIO OLIVEIRA CARDOSO 64 Scrum contemplates development teams, composed by elements with complementary skills that work collaboratively to obtain a common result. Its function is the development of the product to be delivered to the customer, but also to collaborate with the Product Owner with suggestions that can improve the quality of the final product. Each team may have seven or more members (Sutherland & Schwaber, 2007), but it should not be too numerous (from 5 to 9) to make it easier to manage and reach consensus on the decisions to be made. It must have a high degree of organisation and autonomy, be involved in planning and have the power to make decisions. The definition of how to deliver the product and the organisation of the team is your own responsibility. Over time, stable teams are associated with higher productivity and it is easier to estimate effort, so it is advisable not to promote frequent changes in team formation. 2.4.2.4 Sprints and ceremonies The sprints consist of development iterations during which the activities of the sprint backlog should be carried out. It is recommended that all sprints are of equal duration and that they last between two and four weeks. This is due to the understanding that for longer time horizons changes may occur leading to a redefinition of tasks, increasing in complexity and risk, whereas for periods of less than two weeks the work to be done would be too little to enable the production of something significant (and "deliverable"). Figure 26 – Sprints (Rubin, 2012) In the course of the process, Scrum foresees some practices that it designates as ceremonies and that consist of moments dedicated to specific tasks. The first ceremony is the definition of the initial scope of the project activities that should result in the preparation of the product backlog. Each sprint begins after the previous one is completed, starting with its planning, and can be considered as a subproject within the project, with specific objectives and a defined execution time. At the beginning of each day of work, the team should hold a meeting (daily stand-up meeting) where the work done since the previous meeting will be reviewed, any obstacles or impediments to the normal development of the work will be identified (and removed) and the tasks to be carried out that day defined. In this meeting, each member of the team is to answer three questions: •What have I done since the last meeting? Chapter 2. The importance of software development 65 •What am I going to do today? •What obstacles have I encountered that may condition the achievement of the goals? These meetings should be brief and, for that reason, should be purposefully held with the members of the group standing, so as to cause discomfort and force objectivity. They should always take place at the beginning of the day (or at a fixed time to be agreed by the team members) in order to create regularity in the process. This moment serves to reflect on the work done and highlight the contributions of each of the team members. It is up to the Scrum Master to ensure that it is carried out and that the previously defined duration is scrupulously adhered to. At the end of each sprint a sprint review meeting (Rubin, 2012) will be held where the team will report on progress made during that period. To finish, a sprint retrospective will be performed followed by the planning definition of the following sprint. In Figure 27, the complete development cycle of Scrum can be observed, where the actors and the various ceremonies are listed. Figure 27 – Scrum development cycle (Silva, Santos, Angelo, Oliveira, & Moraes, 2016) EduScrum In recent years, in the PL-type classroom, eduScrum (Cardoso, Barroso, Castro, & Rocha, 2017) has been used, where students organize themselves into teams for the development of a project. This is a variant of Scrum adapted to education, in which students are responsible for the learning process by delegation from the teacher (Delhij, van Solingen, & Wijnands, 2015). EduScrum59, initially applied in secondary education in an experiment that took place in the Netherlands, it has been applied at various levels of education and in contexts where teamwork prevails. Since it is directly derived from Scrum, it presents, essentially, the same characteristics with the necessary adaptations to the specificities of the educational context (Ferreira & Martins, 2016). EduScrum aims to empower a more intelligent, responsible and enjoyable way of learning (Delhij, van Solingen, & Wijnands, 2015), in a collaborative environment that allows each element to get to know itself better. This way of working fosters autonomy, self-confidence and collaboration, leading to the personal growth of each student and their predisposition and ability to work in groups. 59http://eduscrum.nl/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 66 In eduScrum, "what to do" is preferred over "how to do it", challenging students to find their own way of performing tasks in order to make their work profitable. With a strong component of autonomy, it encourages self-organization and critical reflection on one's own actions, enhancing responsibility and maturation. As with Scrum, eduScrum comprises the same three pillars: transparency, inspection and adaptation. Transparency requires that the language used is clear and understood by all, that the process is transparent, and that progress is validated under the agreed definition of the finished product. This is also crucial for students to be able to make the most appropriate decisions thus improving the teaching process and maximising the production of value. Inspection and verification and benchmarking also play an important role in the project development process. The artefacts, tasks and progress achieved must be verifiable and checked frequently in order to identify and correct any deviations, but not with such a frequency that they result in constant interference and an obstacle to the normal course of the work. If deviations are detected that could jeopardise the achievement of the expected results, they should be corrected as early as possible, with a replanning contemplating corrective measures, thereby promoting the necessary adaptation. EduScrum recommends six formal events for inspection and adaptation, in an iterative process, from team formation to a personal reflection of each of the elements, which are represented in Figure 28. Figure 28 – EduScrum Events 2.4.3.1 EduScrum team The teams should be small enough to be flexible and easy to manage, but they should integrate sufficient elements to ensure that the tasks are carried out and with differentiated profiles from a multidisciplinary and complementary perspective. EduScrum recommends that a team consists of one teacher (Product Owner) and four students, one of whom plays the role of Scrum Master. However, regarding APROG, as it is an introductory CU, for logistical and operational reasons, the teams include two students only (exceptionally three), and the role of Scrum Master is also taken over by the teacher. Teams should be autonomous in their organization and in their setting of the Scrum Master. The work of each team is based on autonomy, transparency, self-organization, collaboration, Chapter 2. The importance of software development 67 multidisciplinarity and responsibility. Although each team has its own objectives and organisational model, cooperation between teams is encouraged, by sharing experiences and leveraging a benchmarking that can enrich and accelerate the process. The fact that results are delivered in an iterative and incremental manner benefits feedback and the possibility of timely adjustments 2.4.3.2 The roles in eduScrum The teacher, playing the role of Product Owner, is responsible for defining the purpose of learning, monitoring development and measuring results (Delhij, van Solingen, & Wijnands, 2015). The teacher is also responsible for facilitating the process, by promoting the growth of team members, as well as encouraging collaboration among teams. It is their job to define acceptance criteria and, on the basis of these criteria, to evaluate and assess the results. The eduScrum Master has a more limited action than the Scrum Master in Scrum. This is due to the fact that students are usually still inexperienced, with the teacher performing some roles that are typically the responsibility of the Scrum Master. The eduScrum Master is responsible for managing the board, a document in which the activities and status of each of them are recorded. This is an important and useful document for the development of the project, allowing the identifying of responsibilities and the study of tasks development. Figure 29 – Status of activities on the board Figure 29 shows the different states in which each of the activities can be recorded on the board. JOSÉ MARÍLIO OLIVEIRA CARDOSO 74 addition, most programming languages use instructions that derive directly from the English language. Pseudocode is an intermediate form between natural language and a programming language, using words, usually from the programmer's native language, that have equivalents in the programming languages, facilitating their coding. Although in pseudocode there is no rigid notation, some elements that serve as a basis for codification are commonly accepted, which are presented in Table 4. Table 4 – Pseudocode elements Structure Elements Data Variables and constants Data types Integer numbers, real numbers, characters, character chains, logical, indexed Operators Arithmetic, logical, relational Instructions Assignment, input, output Control structures Sequence, decision, repetition In most programming languages it is necessary to define the data structures that will allow the data to be stored during programme execution. Therefore, also in the writing of the algorithm in pseudocode the variables necessary for the operation of the program should be identified and characterized in order to facilitate encoding. As an example, a problem is presented for pseudocode resolution: "Given an integer number the programme should determine and present its absolute value" ALGORITM absolute value DS: value, result INTEGER START WRITE ("Insert an integer value") READ(value) IF (value >= 0) THEN result ← value ELSE result ← value * -1 ENDIF WRITE(“The absolute value of ", value, " is ", result) END Figure 32 – Example of solving a problem using pseudocode An algorithm written in pseudocode must follow a structure, as shown in the example, with its name after the word "ALGORITM", and the variables to be used after the data structure is specified ("DS:"). In addition to these elements, the body of the algorithm is started by "START" and ended by "END", on which all instructions will be written, each of which must be written on a separate line. In addition to the above-mentioned input and output instructions ("READ" and "WRITE") it is possible to call up several others relating to conditional structures, repeating structures, Chapter 3. Teaching-Learning Process of Programming 75 arithmetic expressions and logical expressions, making it possible to specify more complex algorithms. In the writing of the algorithm there are also other precautions that must be observed, in order to facilitate its reading and interpretation, helping in the "translation" into the chosen programming language, such as indentation and writing comments. Flowchart A flowchart, or flow diagram, consists of a description of the flow of a process or algorithm in graphical form. Since there is no consensus as to who is to be attributed the authorship of the flowcharts, it is believed that the concept was first used in 1921 by Frank Gilberth in the presentation of the work "Process Charts. First Steps in Finding the one best way to do work.” at an American Society of Mechanical Engineers conference (ASME ) (von Rosing, Scheer, & von Scheel, 2015). Later, in the 1930s, the industrial engineer Allan H. Mogensen used the Gilberth principle for the creation of process diagrams, in a more elaborate way, which allowed the concept to be disseminated. However, the generalization and intensification of the use of flowcharts occurred from 1947, when ASME defined an international standard of process symbols (ASME, 1947) and established how to use them in graphs and diagrams (Graham, 2004). Since then, flowcharts have often been used to define algorithms, but they are an effective tool in several other fields of application. A flowchart is a type of diagram that allows describing processes, consisting of a reduced set of graphic elements linked together by unidirectional arrows, thus allowing the process flow to be explicitly identified, with the steps leading to the resolution of the problem. In each flow chart, the flow is usually shown from top to bottom and from left to right. The elements represent steps in the process allowing a clear visual perception with succinct information, allowing the demonstration of the logical reasoning behind the solution elaboration. Graphic representation has the advantage of being visual, providing a more immediate and intuitive perception because, as Pressman states, "an image is worth a thousand words", adding, nevertheless, that it is very important to know which image and which thousand words (Pressman, 2010), also alerting to the potential errors arising from a misuse of graphic tools. The graphical elements used in algorithms are typified in standards, the most relevant being ISO 5807-1985 (Information processing - Documentation symbols and conventions for data, program and system flowcharts, program network charts and system resources charts). This standard defines the symbology and the rules for drawing up flowcharts for the development area of software and results from two previous standards: ISO 1028:1973 (Information processing – Flowchart symbols) and ISO 2636:1973 (Information processing – Conventions for incorporating flowchart symbols in flowcharts). However, the origin of standardisation in this context dates back to 1970, with the publication of ANSI X3.5. Table 5 shows the most commonly used symbols for flow charts, defined in ISO 5807- 1985. JOSÉ MARÍLIO OLIVEIRA CARDOSO 76 Table 5 – Flowchart symbols62 Symbol Name Meaning Terminal Definition of beginning and end of the logical flow of a program Input It r epresents data entry, by any type of medium or device, although usually associated with the keyboard Output It represents the execution of the data output operation in a printed document, although its use as data output to any device has become widespread The process Representation of the execution of an operation or set of operations that establish the result of a logical or mathematical operation Decision It represents the use of conditional deviations for other points in the program according to varying situations Module / subroutine It represents the definition of a group of operations established as a processing subroutine Flow line It shows the direction of the process Each flow line connects two elements Link It represents the input or output of another part of the diagram The use of flowcharts for the initial teaching of programming has proved to be useful, as it allows the logic to be made explicit, without revealing the specific implementation details of each language, allowing the student to focus only on the conceptual resolution of the problem. To illustrate the use of a flowchart, we will refer to the example previously presented and already implemented in pseudocode: “Given an integer the program should determine and present its absolute value” (Figure 33). 62 https://www.iso.org/standard/11955.html Chapter 3. Teaching-Learning Process of Programming 77 Figure 33 – Example of a problem resolution using a flowchart As with the pseudocode, also in the flowchart the algorithm should have only a beginning and an end, which should be clearly represented. Since the flowchart is the graphic representation of the algorithm and can be directly transposed to the writing of the code, it must contain the elements that make this translation possible in a simple and unequivocal way. Tracing After writing the algorithm (either in pseudocode or flowchart) its functionality must be verified using a test process. In Portuguese language this verification process is commonly referred to as “traçagem”, in a free and abusive translation of trace. It should probably be called tracking, but the term has become widespread and is now used and fully accepted in the context of algorithm writing. There is also another term related to error detection and correction, called debugging, which is associated with errors that may appear in the code written in a particular programming language. The errors can be of a syntactic and logical nature. In pseudocode encoding, the relevant verification is in the scope of logic, and syntactical errors are not considered, since the pseudocode does not have a syntax itself, but rather some conventions and guidelines. Thus, the tracing process consists of testing the algorithm, in a step-by-step execution simulation, for certain input values, previously defined, and for which the expected result is known. It is then necessary to define a set of input values, comprehensive enough to be able to check the internal behaviour of the algorithm along its steps, and for the potentially JOSÉ MARÍLIO OLIVEIRA CARDOSO 78 different situations it may be subjected to. This process of identifying the various possibilities and defining the values to be tested, prior to the execution of the tracing, corresponds to the preparation of a test plan. As an example, a test plan for the algorithm of the example already presented of the determination of the absolute value of a number is presented in Table 6. Table 6 – Test plan example Test Input Expected outcome Result achieved Check 1 value = 10 The absolute value of 10 is 10 2 value = -5 The absolute value of -5 is 5 For the implementation of the tracing it is convenient to construct a table where the entities that can vary throughout the implementation process, namely the variables and the conditions, are entered. Just as in the development of algorithms, there are no absolute rules when it comes to tracing, and there may be some variants in their development. For beginner students and with simple algorithms it is recommended that the table be constructed in the same plane as the pseudocode, as in the example presented in Figure 34 for the problem of the absolute value of a number. ALGORITHM absolute value Tracing DS: number, result INTEGER START WRITE(“Insert an integer value”) READ(value) value = 10 value = -5 IF (value >= 0) THEN true false result ← value result = 10 ELSE result ← value* -1 result = 5 ENDIF WRITE(“The absolute value of ", value, " is ", result) The absolute value of 10 is 10 The absolute value of -5 is 5 END Figure 34 – Algorithm example and its tracing After the tracing has been performed, it is then possible to check the functioning of the algorithm, for the defined input values, by completing the table relating to the test plan, as shown in Table 7. Table 7 – Verification algorithm example after tracing Test Input Expected outcome Result achieved Check 1 number = 10 The absolute value of 10 is 10 The absolute value of 10 is 10 OK 2 number = -5 The absolute value of -5 is 5 The absolute value of -5 is 5 OK Chapter 3. Teaching-Learning Process of Programming 79 It should be noted that tracing only allows checking whether the algorithm is wrong, detecting the presence of errors, for the values tested. However, even if it works for all arbitrary input values, it cannot guarantee the absence of errors, thus not ensuring that the algorithm works correctly for other input values (Vasconcelos & Carvalho, 2005). For reasons of simplicity the example given, by way of illustration, contains only decision structures. However, in the overwhelming majority of processes the use of other control structures, in particular repeating structures, will be necessary. In such cases, the strategy of tracing along the code may be impracticable, alternatively, a table where the state of the various variables and conditions is recorded vertically, as exemplified in Table 8, for the example of the absolute value can be used. Table 8 – Tracing example number IF (value>= 0) result Output 10 true 10 The absolute value of 10 is 10 -5 false 5 The absolute value of -5 is 5 To illustrate the use of tracing in a process with repeat structures let us consider the example of the factoring calculation of a user-defined positive integer. In this case an iterative solution will be used, so knowing the number of iterations to be performed, a counted repetition structure will be used ("FOR"). ALGORITM factor DS: value, i, result INTEGER START WRITE("Please enter a positive integer number") READ(number) IF (number< 0) THEN WRITE(“Error! The number must be a positive integer”) ELSE result ← 1 FOR i ← 1 TO number STEP 1 result ← result * i ENDFOR WRITE(“The factorial of ", number, " is ", result) ENDIF END Figure 35 – Algorithm for calculating the factorial number The number of iterations to be performed will be equal to the number for which the factorial is intended to be calculated. If, for example, the factorial of number 6 were to be calculated, six iterations would be performed, which, in a "row" tracing with the code, as exemplified in Figure 34, would correspond to six columns. In Table 9 an example of the algorithm plotting of Figure 35 is shown, with iterations per line. JOSÉ MARÍLIO OLIVEIRA CARDOSO 80 Table 9 – Tracing of the algorithm example for the calculation of the factoring number IF (number< 0) result i i <= number Output 6 false 1 1 true 1 2 true 2 3 true 6 4 true 24 5 true 120 6 true 720 7 false The factorial of 6 is 720 Portugol and VisuAlg As previously mentioned, when writing an algorithm in pseudocode, the primitives used usually originate from the programmer's native language. Thus, for Portuguese speakers there is a Portuguese version of pseudocode, widely used in the introduction to programming. This version is known as "Structured Portuguese", "Algorithmic Portuguese". The Portuguese Algorithmic allows the writing of algorithms, in Portuguese, in a simple and intuitive way, its main field of application being the teaching of logic and algorithms. At the origin of its conception was the idea of simplicity, so as not to require experience or indepth knowledge for its use. The objective is that the focus is on the process and not on the syntax, fostering abstraction and logical reasoning (Noschang, Pelz, Jesus, & Raabe, 2014). Portugol is a pseudo language, compilable and executable, so its use, whilst taking some freedom in writing from the algorithm to the extent that it requires a stricter notation, has the advantage of facilitating tests of its functionality by using tools for that purpose. There are several interpreters and compilers that, although presenting some differences in syntax and mode of operation, are based on Portugol. By way of example the following can be cited: CompAlg (Bilabila, 2017), Portugol IDE63 (Manso, Marques, & Dias, 2010), Portugol Studio64 (Noschang, Pelz, Jesus, & Raabe, 2014), Portugol Viana65 (Cruz, Cerqueira, & Gradíssimo, 2009) and VisuAlg66 (Leite, Senefonte, Barbosa, & Seabra, 2013). One of the tools to support the development of algorithms that was possible to explore throughout this study was VisuAlg. This is a free software that allows the creation, editing, interpretation and execution of algorithms in Portugol. VisuAlg was developed with the aim of helping students in a seemingly unattractive subject where they usually experience some difficulties, providing them with a way to test their work in a more stimulating way than traditional paper tracing (Almeida, 2013). VisuAlg has a set of features that range from writing the algorithm in an editor to the possibility of executing it step by step by debugging the pseudocode. According to Souza (Souza, 2009), in VisuAlg it is possible: •the execution of the code step by step; •the visualization of the contents of the variables; •the analysis of the status of the activation stack in the case of subprograms; •to have a run counter for each program line. 63 http://orion.ipt.pt/~manso/Portugol/download.html 64 http://lite.acad.univali.br/portugol/ 65 https://sourceforge.net/projects/portugolviana/ 66 http://visualg3.com.br/ Chapter 3. Teaching-Learning Process of Programming 81 Tools of this type are being increasingly adopted because they improve the effectiveness of the traditional method of algorithm development and verification and give the student the possibility to record the work and continue working on it later. A study on the use of VisuAlg was conducted at the State University of Londrina, Brazil, in which students from the first year of the Computer Science course in the subject of Programming Techniques (Leite, Senefonte, Barbosa, & Seabra, 2013) participated. The results of the study led to the conclusion that VisuAlg is a very useful tool for teaching algorithmic concepts, and that learning has become more practical, faster and enjoyable. The fact that the tool separates the codification of the state of the variables and the results, has a positive impact on the students' perception, allowing them to better learn the concepts and, by executing step by step, "see" the result of each instruction. To illustrate some aspects of the operation of VisuAlg, we will use the example of the calculation of the absolute value of a number, and you can see in Figure 36 the general appearance of the tool environment, with the option menu, command bar and the different zones. Figure 36 – Overview of VisuAlg When a new file is created, a template with the basic structure is automatically presented in the algorithm area, as can be seen in Figure 37, allowing you to make changes and write the pseudocode. JOSÉ MARÍLIO OLIVEIRA CARDOSO 82 Figure 37 – Pseudocode template In Figure 38 the example of the calculation of the absolute value of a number, in Portugol, is presented, and the one previously stated regarding the lesser flexibility in writing should be highlighted. It should be noted that previously the primitive "RSI" was used for data entry, just as another term with similar meaning could have been used. However, in VisuAlg, the reading instruction is exclusively "read", but can be written entirely in upper or lower case or even with some letters in upper or lower case, because, unlike the most commonly used programming languages, it is not case sensitive. Also with regard to the output instruction, the commonly used primitive is "WRITE". However, in Portugal, the instruction "escreva" ("write") or the instruction "escreval" can be used, the latter being used to change the line after writing. Figure 38 – Example of an algorithm in Portugol, VisuAlg As shown in the top right corner of Figure 36, VisulAlg provides information with the complete characterization of each variable, and it is possible to observe whether it is local or global, the name, the type and its content, as can be seen in more detail in Figure 39. Chapter 3. Teaching-Learning Process of Programming 83 Figure 39 – Variable areas in VisuAlg In Figure 40 a view of the area where the results of the algorithm execution are presented is also shown. Figure 40 – VisuAlg results display area In the "step-by-step" execution, the line that is being executed is marked at each instant, as can be seen in Figure 41. Note that, after entering the number, the instruction that is to be executed next is the one on line 11, which is highlighted. Figure 41 – Step-by-step execution in VisuAlg It is also observed in Figure 42 that the variable "NUMBER" has the value entered by the user (10) and that the variable "OUTPUT" contains the value 0, with which it was initialized in its definition, because no instruction has been executed yet that would change that value. JOSÉ MARÍLIO OLIVEIRA CARDOSO 90 This type of training presents clear advantages, responding to the needs felt by society in the search for knowledge and qualification (Peres, Mesquita, & Pimenta, 2015). However, it has some particularities that can be regarded as less positive and/or potentially problematic. In addition to the above-mentioned ones concerning immature audiences, communication difficulties may arise, as possible doubts raised by the student may not be answered by the teacher in due time. Also, with regard to technology, it can be seen as an obstacle by some students apart from depending on devices and technical solutions which, however reliable they may be, always present some probability of failure or unsatisfactory operation. For example, obsolete or low internet speeds (Peres, Mesquita, & Pimenta, 2015). 3.4.3.2 B-Learning As can be seen from the above, face-to-face teaching and D-Learning are not in competition, but complementary. By combining these two models it is possible to mitigate the drawbacks of each model, thus resulting in a mixture called blended Learning (b-Learning) or mixed teaching (Peres & Pimenta, 2011). In b-Learning teaching is based on digital content with online access, and usually supported by an LMS, with moments of autonomous learning coexisting in a virtual way, with face-to-face sessions fostering student-teacher and studentstudent interaction (Marques, 2011). It can be considered that this is the model adopted at ISEP, in which, in addition to the face-to-face classes, there are contents and digital tools, available remotely, which allow students access to information and the possibility of carrying out tasks to consolidate learning. These two aspects (face-to-face and online) are complementary, enabling personalised and more attractive learning. According to Marques (Marques, 2011) there are several reasons for using b-Learning which can, however, be summarised in three main groups: benefits for the pedagogical process, improvements in logistics and in access to content and also economic and financial advantages (Figure 46). Figure 46 – Benefits of b-Learning In the pedagogical field, the diversity of methodologies, approaches and resources make it possible to meet the differentiated profiles of students and the various learning styles (Alammary, Sheard, & Carbone, 2014). B-Learning has proven to be appropriate to the characteristics and needs of a very heterogeneous universe of students of different ages, motivations and educational and socio-cultural backgrounds (Monteiro, Moreira, & Lencastre, 2015). B-Learning involves a logistics that is suited to the aforementioned diversity of student profiles, as well as to the existence of many student workers and professionals in need of Chapter 3. Teaching-Learning Process of Programming 91 updating and/or retraining. Flexibility is one of its important features enabling access to education for those who have geographical, time or other restrictions to attend classes in person on a regular basis. In the economic side, b-Learning promotes a reduction in costs when compared to face-to- face education, particularly as regards travel and the use of infrastructure. It also represents an added value in terms of business opportunities for institutions by providing a diversified training offer and reaching new and/or geographically dispersed audiences. Sometimes b- Learning is adopted by institutions as a way of starting teaching online (Littlejohn & Pegler, 2007). 3.4.3.3 M-Learning The "democratization" of access to communications and mobile devices and the proliferation of wireless networks, associated with the development of numerous mobile applications in recent years, has boosted the massive use of these means for the most varied purposes. Education also proved to be an interesting application context giving rise, in 2005, to the concept of mobile learning or m-Learning (Crompton , 2013). The m-Learning can be understood as a set of educational processes supported by ICT and mobile devices, where students are in different places and geographically dispersed, which may be formal learning spaces or any other (Saccol, Schlemmer, & Barbosa, 2011). The constant technological evolution and the diversity of technical solutions in terms of equipment make it difficult to precisely define what is considered a mobile device. UNESCO uses a broad definition, considering as mobile devices digital equipment, portable, with Internet access, capable of performing a set of tasks, particularly with regard to communication and, typically, controlled by an individual and not by an organization (UNESCO, 2013). The use of devices with which students are already familiar and which they use daily as mobile phones, smartphones, smartwatches, computers and tablets, combined with the ease of access to the Internet anytime and anywhere, are all aspects that facilitate and motivate their use for educational purposes (Shih & Mills, 2007). The use of mobile technologies, in isolation or combined with other means, is an enabler of diverse learning, allowing not only autonomous learning but also collaborative learning (UNESCO, 2013). However, this context presents technological but also pedagogical requirements in that curricula and teaching methodologies must be adapted to this reality (Churchill, Jie, Chiu, & Fox, 2016). M-Learning establishes a link between formal and non-formal learning by providing the student with access to information that can clarify or complement concepts taught by the teacher. Today there are countless digital resources from videos to mobile applications with detailed, step-by-step explanations of the most varied subjects, allowing students to learn autonomously and at their own pace. Another interesting aspect of the use of electronic devices is the possibility of very fast or even immediate feedback, allowing problems to be identified without resorting to the teacher, not limiting the pace of student study and increasing motivation. For this purpose there are applications such as tests, challenges, quizzes, games among others, which allow for a more playful and attractive learning, as well as obtaining information on the progress of learning, thus being important allies of the student, but also of the teacher, allowing a faster, earlier and more accurate diagnosis of the evolution of the students (Al-Emran, ElSherif, & Shaalan, 2016). JOSÉ MARÍLIO OLIVEIRA CARDOSO 92 3.4.3.4 U-Learning The concept of ubiquitous learning (u-Learning) (Mesquita, Moreira, & Peres, 2016) is associated with learning processes supported by digital technologies, either mobile or otherwise, which establish a link between the educational context and the social and physical environment and the daily life of the student, making it possible to bring the face-to-face and virtual environments closer together. This mix between virtual and real, linking people, places, objects, activities and contents enriches the learning context and enhances continuous and meaningful learning (Saccol, Schlemmer, & Barbosa, 2011). For Huang et al. (Huang, Chiu, Liu, & Chen, 2011) u-Learning is a learning modality derived and extended from e-Learning and m-Learning in which students can learn in a profound and ubiquitous way. Other authors refer to u-Learning as everyday learning, supported by technology and combining physical spaces and virtual environments, with activities taking place naturally without restrictions of time or space (Tu, McIsaac, Sujo-Montes, & Armfield, 2016). 3.5 LMS The term Learning Management System (LMS) generally refers to an online system that allows the management of courses online, making content available and promoting communication (predominantly asynchronous) and cooperation between students and teachers. It consists of a Web platform for managing teaching-learning processes in the technical, administrative and pedagogical dimensions (Peres & Pimenta, 2011). Introduction The provision of resources by the teacher is an established practice since the beginning of teaching, with the books to be consulted and/or provided notes or other physical resources to support the study being indicated by the teacher. With the widespread use of computers and, in particular, with the emergence of the Internet, digital educational resources have grown exponentially, radically changing access to information and the way of studying and researching. The first approach to a mechanism for sharing digital resources was to use each teacher's personal pages, from which students could remotely access the content made available, when they so wished. As an example, the page of a DEI/ISEP teacher74 is shown in Figure 47. Figure 47 – Personal page of a teacher 74 http://dei.isep.ipp.pt/~amartins/ Chapter 3. Teaching-Learning Process of Programming 93 As can be seen, the teacher made his personal contact available to provide students with a digital means of communication and two subjects: Introduction to Computing, in the course of Civil Engineering and Programming, in the course of Electrical Engineering - Electrical Energy Systems. By selecting the first link the one shown in Figure 48 is obtained. Figure 48 – Page of a curricular unit in the 2006/2007 school year As can be seen, the teacher has chosen to organise his pedagogical contents in four sections: Theoretical, Exercises, Tests/Exams and Support Bibliography, corresponding to links to other pages. As an example, we can see in Figure 49 part of the contents of the theoretical lessons page. Figure 49 – Introduction to Computing lectures page - Civil Engineering JOSÉ MARÍLIO OLIVEIRA CARDOSO 94 On this page we can find links to documents that can be viewed online by the student or, in some cases, downloaded for subsequent viewing. As such, this is a means for the student to access content and obtain information, and the teacher can thus establish unidirectional and asynchronous communication with the students. Technological evolution in terms of access, bandwidth and internet speed, the appearance of LMS and its uptake as an institutional tool in several organizations, has made this practice of using personal pages fall into disuse. In addition to the increase in the speed of access to content via Web, the development of compression techniques (codecs) has boosted the production of multimedia teaching content and, in parallel, the increase in its use (Castro A. V., 2012). The LMS allowed for the integration of functionalities of several digital tools that operated separately. Having emerged as tools to support e-Learning (Carvalho A. A., 2008), they quickly began to be used in various contexts, particularly as an indispensable tool for b-Learning. The use of an LMS should make it possible to simplify training management, in particular off-site training, by assisting trainers and trainees. Some of its most common features are the management of courses, in the most varied aspects, from user registration (teachers and students), through the storage and management of content, to the performance of evaluations and management of scores. It also enables communication between the stakeholders, in a synchronous and/or asynchronous manner, as well as access, activity and time recording in the system (Lagarto & Andrade, 2009). An LMS must meet some specific requirements in order to fulfil its mission flexibly, effectively and efficiently. These include high availability, scalability, stability and security, as well as ensuring interoperability between systems and resources from different sources, based on open standards for deployments on the Web. An LMS typically consists of two main parts: •a server where course and user creation and management operations, authentication checks and user notifications are performed; •a graphical user interface (GUI - Graphical User Interface). The server is usually located in the institution and is accessible to its users via Internet from anywhere. LMS provide means of sharing educational resources, synchronous and asynchronous communication, such as chat rooms, video conferences and discussion forums, in addition to increasingly resources for educational purposes such as questionnaires, referenda and tests (Castro A. V., 2012). Examples of LMS There are several LMS, many of them developed and marketed by companies while others are free and open source. Free and open source software enhances its development and dissemination by allowing the development of new resources, the improvement of existing ones, the correction of deficiencies and the sharing of information about problems that have occurred and how to solve them. Some of the best known and used LMS in the context of education are: Blackboard, Moodle and Sakai. Chapter 3. Teaching-Learning Process of Programming 95 3.5.2.1 Blackboard Blackboard is a commercial product, created by the software company of the same name75 based in Washington and founded in 1997. As of 2005 the company merged with WebCT, a pioneering company in the development of learning platforms, at that time used by about 2200 institutions in over 60 countries (Zazpe, 2017). It is a widely used LMS in North America (Martin, 2008) and was developed with the aim of providing an online potentially enriching learning environment. In Portugal it is used in some higher education institutions, two of the most relevant being the University of Minho76 (Carvalho, Areal, & Silva, 2011) and ISCTE - Instituto Universitário de Lisboa77. It is a virtual environment dedicated to D-Learning with communication tools primarily asynchronous (Castro A. V., 2012), as well as several other functionalities such as content management and sharing, evaluation or interconnection with other systems. Today it represents more than just an LMS, corresponding to a family of tools, the most representative being Blackboard Learn. 3.5.2.2 Sakai Sakai78 originated from a collaborative project for the development of a free, open source software platform, developed in Java and distributed under the license of the educational community, which resulted in an online collaborative teaching-learning tool. The founding entities of the project were the Universities of Michigan and Indiana in the United States of America, which were later joined by the also American Stanford University and MIT, in addition to the uPortal79 and the Open Knowledge Initiative (OKI). The project also had financial support from the Andrew M. Mellon Foundation80 (Zazpe, 2017). To manage Sakai, a foundation was created that brought together more than a hundred universities and other organizations. Sakai's features are organized in four tool categories (Zazpe, 2017): collaborative, teaching and learning, administrative and portfolio. Perhaps the most innovative and differentiating feature from other LMS is the e-portfolio. The focus of Sakai is on collaborative work, and the e-portory management system it has serves that purpose, allowing stakeholders to publish and share their work and consult and view the portfolio of other users (Castro A. V., 2012). 3.5.2.3 Moodle Moodle81 is a result of the acronym Modular Object-Oriented Dynamic Learning Environment. However, the word moodle is also a verb associated with unpretentious navigation and concomitant with other activities in a pleasant, relaxed and creative environment (Castro A. V., 2012). At ISEP, the teaching model is rooted in Moodle and is widely used in all courses and for various purposes. Its regular use dates back to the 2006/2007 school year, when it was adopted as a form of systematization of procedures and pedagogical and technical support to students and teachers, aiming at making the teaching-learning process more flexible and improving it. This is an open source platform for managing the teaching-learning process, developed by Martin Dougiamas at the beginning of this century and created with the purpose of supporting 75 https://www.blackboard.com/ 76 https://elearning.uminho.pt/ 77 https://e-learning.iscte-iul.pt/webapps/login/?new_loc=%2F%40%40 78 https://www.sakailms.org/ 79 https://www.apereo.org/projects/uportal 80 https://mellon.org/ 81 https://moodle.org/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 96 a constructivist approach to teaching (Dougiamas & Taylor, 2003). Moodle is one of the most widely used LMS in the world (Lopes, 2011) (Rodrigues, Rocha, & Abreu, 2017), with about 20 million courses and 175 million users82. It consists of a modular platform that allows the incorporation of new modules and tools, and provides a diversity of features that enable the teacher to meet the needs of students (Cole & Foster, 2007). It allows, for example, the creation of courses or course units, assign users and define their profile/role. In Moodle it is possible to assign several basic user profiles83, as shown in Table 10. Table 10 – Moodle user profiles Profile Function Administrator Has permissions to perform any type of action on all resources Manager Has management functions, but with permission for a smaller number of actions and/or with some restrictions Course Creator Can create and manage courses Teacher Can manage courses and add content Non-Editor Teacher Can access courses, but with no editing permissions Student Can access and participate in courses Guest Can view courses, but cannot attend these Authenticated Users Role that all users have User authenticated in first page function User authenticated for first page function only New profiles with differentiated permissions can also be added, and it is advisable to create new profiles based on existing ones instead of changing them. Within Moodle it is possible to define course and course unit managers, control and monitor access, and create and manage discussion forums. It also allows for the inclusion of assessment systems based on the potential for automation of learning systems, such as multiplechoice tests or gap-filling tests, with questions generated randomly from a database. Being a free and open source platform, it is constantly evolving, and is supported by an active and numerous community of programmers. There are currently many plugins from Moodle (over 1500) (Moodle, 2019) for a multitude of features, making it robust and versatile as it is constantly being evaluated and improved and allows for specific configurations tailored to the needs and interests of each organization (Al-Ajlan & Zedan, 2008). As an LMS, Moodle also works as a Learning Content Management System (LCMS), since it allows content management enabling its creation and editing. Its basic functionalities and the tools it supports present a diverse set of solutions that cover the overwhelming majority of the pedagogical needs of the institutions that use it. Among the available features are: chat, discussion forums, glossary, tasks, calendar, quizzes and wiki. 82 https://stats.moodle.org/ 83 https://docs.moodle.org/37/en/Standard_roles 97 4 SUPPORT MECHANISMS FOR PROGRAMMING TEACHING “You cannot create experience. You must undergo it.” Albert Camus This chapter aims to present the concept of a programming teaching support mechanism, in particular with regard to automatic code evaluation, describing the functionalities of the tools used for this purpose. Several tools are also identified, and for some of them a summary description of their origins, functionalities and applications is made. At the end of the chapter the reasons for choosing the VPL as the tool to be used in APROG are presented, based on criteria defined for this purpose. 4.1 INTRODUCTION Learning to program involves an iterative process, but there are differing opinions on how to do it most effectively. Some people like Tavares (Tavares, Henriques, & Gomes, 2015) argue that you can only learn to program by programming. Gomes (Gomes A. , 2010), however, considers that "one learns to program not only by programming, but by studying and reflecting on the way one has programmed". In either case and regardless of the author, training is considered as one of the most important steps in the learning process of programming (Cheang, Kurnia, Lim, & Oon, 2003), and practice with regular repetition of the resolution of a large number of exercises to consolidate learning is crucial. There is, nonetheless, an essential aspect to training which is feedback, which should be fast in order to enable the student to locate errors, understand them and correct them, avoiding demotivation (Pelz, Jesus, & Raabe, 2012). Errors in programming can be divided into three groups: syntax, execution or logic. Syntax errors occur when the programmer does not obey some grammar rule of the programming language used, causing the interpreter or compiler to be unable to translate the source code. They are related to the structure of the program and the writing rules of the code. Currently any IDE provides code writing aids, minimizing syntax errors. Still, if the code contains errors, the compiler will detect them and the programmer will receive that information, allowing them to identify and correct the errors. There may also be runtime errors, resulting from poor code design, which are not detectable in the compilation, causing the program to be stopped abruptly or, in some cases, entering an infinite cycle and not finishing execution. Some common errors of this type are the attempt to access unavailable or non-existent external devices, the division by zero, the invocation of a non-existent memory reference, or the assignment of values to variables of incompatible types. Logic errors are usually less explicit and more difficult to detect, not being identified by the interpreter or compiler, so the program runs but produces erroneous results. This error type may result from misinterpretation of the specifications, logical-mathematical errors, or from the programmer's mistake in coding. Typical errors of logic are not initializing variables or initializing variables with incorrect values and checking the state of variables at inappropriate places in the code. These errors can be detected by using debuggers that allow the program to JOSÉ MARÍLIO OLIVEIRA CARDOSO 98 run instruction by instruction and, at any given moment, to know the status of each variable. There are also other solutions to avoid or minimize logic errors, among which is the use of unit tests which allow testing individually each block of code that performs a specific task. In programming training several errors of the above types are likely to occur. However, if in the case of syntax or execution errors, they are obvious to the programmer, logic errors may not be immediately detected. If exercises are carried out without supervision, for example from the teacher, and without any feedback, those who have implemented them may not know whether the results obtained were in fact those expected. In addition, even if the programme is effective, achieving the expected results, it may not be well structured or function efficiently, so supervision and advice is crucial. Rating and providing significant feedback is a popular and effective method for involving students in programming (Verdú, et al., 2012), with the lack of feedback and monitoring by the teacher of student work being one of the most important difficulties associated with the learning process of programming (Koulouri, Lauria, & Macredie, 2015). Code analysis and evaluation is usually a time-consuming, error-prone and tedious task, with each program being tested and its source code analysed. Moreover, due to tiredness, distraction, favouring or any other factor, the human analysis is subjective and different evaluators may assign different classifications to the same work (Fonte, da Cruz, Gançarski, & Henriques, 2013) or even the same evaluator may classify similar resolutions differently if analysed at different times. These factors condition the amount of exercises to be solved by the students and the obtaining of quick feedback (Ala-Mutka, 2005). The automatization of the code evaluation process, with electronic submissions and immediate feedback is a means to increase the volume and pace of training. Immediate feedback should act as a motivating element for the student as it provides them with satisfaction in obtaining results from their work, usually in an evolving process of increasing difficulty. However, in the case of frequent or repetitive failure, feedback can lead to anxiety, frustration and demotivation, so it is advisable that systems can mitigate this effect by, for example, inhibiting submissions for a period of time after several failures. The teacher should also be aware of this by regularly checking submissions and results so that they can intervene in good time. 4.2 AUTOMATIC EVALUATION MECHANISMS Contrary to what one might think, automatic program validation mechanisms are not a recent issue. As early as 1960 an article was published in the Association for Computing Machinery (ACM) magazine (Hollingsworth, 1960) on automatic evaluation in programming. With the development of computers, systems and applications, with the appearance of more programming languages and applications, there has also been a profusion of systems dedicated to automatic code evaluation. The operation of these systems normally includes the receiving of the code sent by the user, its compilation, function tests and classification. There are systems in place for various purposes, such as for programming competitions, for educational purposes in teaching programming or for selecting and recruiting programmers. Although some of these systems operate only locally, several have been designed for the Internet or to be integrated into existing systems or LMS. Some of these systems are quite versatile and can be used in more than one of the contexts mentioned and allow the use of several programming languages (Wasik, Antczak, Laskowski, & Sternal, 2018) (Gupta & Gupta, 2018). Chapter 4. Support Mechanisms for Programming Teaching 99 For this work, a bibliographic search was performed in the ACM, Elsevier (ScienceDirect), ERIC (EBSCO), IEEExplore, Springerlink and Web of Science databases and the Google Scholar search engine. Research was also conducted in scientific repositories, namely in RCAAP84 (Open Access Scientific Repositories of Portugal) and in Scientific Repository of the Polytechnic Institute of Porto85 (RECIPP). The survey was conducted in English and Portuguese in the second half of 2016, covering a period of 12 years (since 2005). However, in some cases older publications were selected because they are relevant to the subject and contribute to the establishment of a chronological line of technological evolution. In the research, the following terms were used together: automatic classification, automatic evaluation, programming tasks, learning programming languages and teaching programming. Later, throughout the development of the work, more recent publications were identified, some of which were consulted and used for this work. When this study began, despite our being aware of the existence of systems for code evaluation, we could not imagine the enormous number of existing and under development systems. Thus, there are many documented systems (Ihantola, Ahoniemi, Karavirta, & Seppälä, 2010) (Caiza & Álamo, 2013) (Christian & Trivedi, 2016) (Wasik, Antczak, Laskowski, & Sternal, 2018), some with many years already and widely tested while others, more recent, still somewhat unstable. There are several open source systems, free and available for use and other proprietary, often developed at universities and for their exclusive use. As examples of these systems we can mention: •Assyst (Jackson & Usher, 1997); •AutoLEP (Tiantian, Xiaohong, Peijun, Yuying, & Kuanquan, 2009); •Automata (Srikant & Aggarwal, 2014); •BOCA (Campos & Ferreira, 2004); •BOCA-LAB (arising from BOCA) (Nazário & Souza, 2010); •BOSS/BOSS2 (Joy, Griffiths, & Boyatt, 2005) •Bottlenose (Sherman, Bassil, Lipman, Tuck, & Martin, 2013); •Code Analyzer for Pascal (CAP) (Schorsch, 1995); •Codeboard86; •CodeRunner (Richard & Harlow, 2016); •CourseMarker (Higgins, Hegazy, Symeonidis, & Tsintsifas, 2003); •Code Submission Evaluation System87 (CSES); •EduJudge (Wasik, Antczak, Laskowski, & Sternal, 2018); •eGrader (Al Shamsi & Elnagar, 2012); •Environment for Learning to Program (ELP) (Truong, Bancroft, & Roe, 2003); •Generic Automated Marking Environment (GAME ) (Blumenstein, Green, Nguyen, & Muthukkumarasamy, 2004); •Homework Generation and Grading (HoGG) project (Morris, 2003); •IT VBE (Skūpas, et al., 2013); •JACK (Striewe, Balz, & Goedicke, 2009); •JPLAS Java Programming Learning Assistant System (Funabiki, Matsushima, Nakanishi, Watanabe, & Amano, 2013); •Marmoset (Spacco, et al., 2006); 84 https://www.rcaap.pt/ 85 https://recipp.ipp.pt/ 86 https://codeboard.io/ 87 https://cses.fi/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 106 The process of using the system starts with the teacher creating an activity of QUESTOURnament, adding challenges to the contest by making them available in the repository (Verdú, et al., 2012). Then students try to solve the challenges, submit the code for analysis and the management system connects to the evaluation engine making the evaluation result available in real time. The teacher can automatically change the rating generated by the system and can also add comments, thus enriching the feedback. Since EduJudge is widely used in ACM contests, the various possibilities of feedback presented in these contests and generated by the system (Skiena & Revilla, 2003) are presented in Table 13. Table 13 – Results messages in ACM-ICPC competitions Result Description Accepted (AC) Congratulations! Presentation Error (PE) Your program outputs are correct but are not presented in the specified format. Check for spaces, left/right justification, line feeds, etc. Accepted (PE) Your program has a minor presentation error, but the judge is letting you off with a warning. Stop here and declare victory! Wrong Answer (WA) Your program returned an incorrect answer to one or more secret test cases. Compile Error (CE) The compiler could not figure out how to compile your program. The resulting compiler messages will be returned to you. Warning messages that do not interfere with compilation are ignored by the judge. Runtime Error (RE) Your program failed during execution due to a segmentation fault, floating point exception, or similar problem. Its dying message will be sent back to you. Check for invalid pointer references or division by zero. Time Limit Exceeded (TL) Your program took too much time on at least one of the test cases, so you likely have a problem with efficiency. Just because you ran out of time on one input does not mean you were correct on all the others, however! Memory Limit Exceeded (ML) Your program tried to use more memory than the judge’s default settings. Output Limit Exceeded (OL) Your program tried to print too much output. This usually means it is trapped in an infinite loop. Restricted Function (RF) Your source program tried to use an illegal system function such as fork() or fopen(). Behave yourself. Submission Error (SE) You did not correctly specify one or more of the information fields, perhaps giving an incorrect user ID or problem number. The students can access their grade, and the teacher is responsible for supervising and managing the whole process. Sometimes, to stimulate creativity and participation, it is used as a strategy to suggest to the students the elaboration of challenges to be solved by the colleagues, after review and acceptance by the teacher. In Figure 52 the structure of the EduJudge system with its components and actors and their interactions are presented. Chapter 4. Support Mechanisms for Programming Teaching 107 Figure 52 – Structure and interactions of the EduJudge system (Verdú, et al., 2012) From the use of EduJugde and the experiences made it was reported that students consider the system useful, promoting competitiveness and creativity, facilitating the learning process. This is evidenced by the results, with better school results in students who used the system compared to others who did not (Verdú, et al., 2012). Also, the teachers point virtues to the system considering that the use of competition tools and automatic evaluation adds effectiveness to the process of teaching and learning programming. However, several possibilities for improvement are mentioned, namely regarding the level of detail of feedback (Wasik, Antczak, Laskowski, & Sternal, 2018). Mooshak Mooshak97 is a system developed by Professor José Paulo Leal, of the Computer Science Department of the Faculty of Sciences of the University of Porto. It is an open source system, in use since 2001, and originally designed to manage online (Leal & Silva, 2003) programming competitions. Nevertheless, boosted by its code evaluation capabilities, it has been increasingly used as a pedagogical tool to support the teaching of programming. The development of Mooshak (Leal & Silva, 2008) was based on the rules of ACM International Collegiate Programming Contest (ICPC), an annual programming contest, whose first edition took place in 197098. Currently the contest is sponsored by IBM and teams of students from higher education institutions around the world can compete. Meanwhile, with the updates introduced, it is now possible to manage contests from other areas and with different rules, namely those of the Portuguese section of the International Olympiad in Informatics (IOI). It has been used in several programming contests such as South Western Europe Regional ACM Programming Contest (SWERC), Inter-University Programming Marathon (MIUP), Inter-University Programming Tournament (TIUP) or Programming Tournament for High School Students (ToPAS) (Leal & Santos, 2008). 97 https://mooshak.dcc.fc.up.pt/ 98 https://icpc.baylor.edu/regionals/abouticpc JOSÉ MARÍLIO OLIVEIRA CARDOSO 108 Among its features are: the availability of problem statements, the possibility of program submission, automatic evaluation of the programs received by the system, querying of submissions made, querying rankings, ranking of users/competitors and global help from the system. The system allows four different types of users, which are shown in Table 14, as well as their responsibilities and possibilities of acting in the system. Table 14 – Mooshak users types User Actions / responsibilities Administrator •Create and manage contests, teams and users •Global coordination of the system Jury •Validate, classify and re-evaluate submissions •Provide feedback to competitors •Answer questions from competitors Competitor •View problem statements •Submit programs •See results and ratings •Communicate with jury members Audience •See contest results Mooshak also allows the definition of several problems to be solved, and for each problem, in addition to the statement, a set of test cases will be defined. For each of these test cases an input data set and corresponding expected output data will be defined. Potentially, it is possible to submit problem solving using any compilable programming language (properly installed and configured on the system). To submit the code for evaluation, in the case of Java, the competitor must perform the following procedure: •create a unique file (.java) with the same name as the main class •write code •submit code (not compiled) It should also be noted that all input data must always be read from standard input and the results presented for standard output, and it is not possible to use packages of graphical environments. The evaluation will be based on the compilation, without errors, of the source code and, after the execution by the system of the compiled code, by checking the similarity between the output generated by the program and the output defined as expected, based on a set of test data previously configured in the system, when defining the problem (Leal & Silva, 2008). Mooshak performs the evaluation in two aspects: static and dynamic. The static brokers receive the code and are executed after compilation and may allow unit testing, analysing the code structure or determining engineering metrics from software. Dynamic brokers intervene after each execution evaluating each test case (Leal & Silva, 2008). The goal is to allow standardizing the output in order to simplify its evaluation in cases where the output consists of a set of values. After the assessment the system generates a response with the result that can range from total success to the indication of errors as well as specification of the type of error. If, for example, no compilation or execution error occurs, but the result obtained is not the same as expected (in at least one of the tests) the system would present the message: Wrong Answer. The possible result messages are shown in Table 15. Chapter 4. Support Mechanisms for Programming Teaching 109 Table 15 – Mooshak results messages Result Meaning Accepted Error-free compilation and all tests successfully verified Presentation Error Incorrectly formatted output Wrong Answer Wrong result (in at least one of the tests performed) Output Limit Exceeded Generated output exceeded the space limit Memory Limit Exceeded Memory limit exceeded Time Limit Exceeded Maximum execution time has been exceeded Invalid Function Use of an invalid function Runtime Error Program interrupted and an exception is generated Compile Time Error Compilation errors Invalid Submission Submission error Program Size Exceeded Code too large Requires Reevaluation The program needs to be reevaluated A summary table of the results by type of result for each problem can be seen in "statistics" (Figure 53). Figure 53 – Choice of information to view in Mooshak In Figure 54 it is possible to observe an example of submission results. JOSÉ MARÍLIO OLIVEIRA CARDOSO 110 Figure 54 – Example of Mooshak submission results at ISEP There is also the possibility of alternating between the information to be visualized, being possible to visualize, apart from the statistics, the submissions, evolution and grades, as can be seen in Figure 55. Figure 55 – Example of ratings at Mooshak, ISEP As already mentioned, Mooshak is a system that has been around for a few years and has been the target of updates and improvements. In its latest version, a diagram editor was incorporated and the possibility of graph evaluation (Correia, 2017) was added. Besides these tools with a dual purpose (competition and teaching), three other tools were analyzed, developed specifically for teaching-learning activities of the program and presented in the next sections. Chapter 4. Support Mechanisms for Programming Teaching 111 BOSS Bob's Online Submission System (BOSS)99 (Joy & Luck, 1995) is a system that was designed to receive and analyse programming exercises. The development of the system began in the early 1990s at the Computer Science Department of the University of Warwick, Conventry, in England. In 1993, it consisted of a utility supported by the Sun Solaris operating system having evolved into a graphical environment with connection to a database. New functionalities written in different programming languages were added, which resulted in difficulties in maintenance, portability and evolution of the system. The evolution of languages, equipment and the increasing demand from users led to the system being abandoned in 1999, and a completely new one being developed. The new version of BOSS was presented in 2000, with new functionalities, namely network operation with increased security, and supporting new programming languages, in particular Java (Heng, Joy, Boyat, & Griffiths, 2005). In 2001, the new version is fully developed and consolidated, incorporating suggestions resulting from feedback from students and teachers who were using the system, being made available as an open source project in order to enhance development by receiving external input. In 2002 it new features are included as follows (Heng, Joy, Boyat, & Griffiths, 2005): •automation of tests (including unit tests); •detection of code plagiarism, with the incorporation of the Sherlock component; •code metrics. In 2003 a new version is launched, integrating developments resulting from several projects, providing new features: •new graphic interface; •access to Boss by a new Java Server Pages application (JSP); •detection of plagiarism in natural language; •code plagiarism detection improvements. In the 2004/2005 school year, the system was tested at the University of Warwick, involving a significant group of students. This test resulted in more than 5500 submissions, with no security breach, but only a few brief and/or minor interruptions. The BOSS consists of a secure system that allows the submission of student work, performing automatic tests to verify functionality and quality of code along with plagiarism detection. The system can assist the teacher in the evaluation process, as well as being an aid to the student's learning process. This help is provided by the feedback generated by the system, with an indication of the degree of correctness and comments with references to what needs to be amended in order for the program to be improved and to function correctly (Joy & Luck, 1999). The system was designed to be robust and to work with a large number of students in introductory programming courses, making it easier for students and teachers to interact, thus enabling faster and more effective communication. In its latest version, the system was fully written in Java and runs on the UNIX operating system, relying on a structure of three servers: students, teachers and tests (Joy, Griffiths, & Boyatt, 2005), according to Figure 56. 99 https://www.dcs.warwick.ac.uk/boss/ JOSÉ MARÍLIO OLIVEIRA CARDOSO 112 Figure 56 – BOSS System Architecture Overview (Joy, Griffiths, & Boyatt, 2005) The student server receives the student registrations and code submissions, which will be tested on the test server by automatically executing the previously defined tests. The teachers' server is used to manage the system and perform the evaluation. With this distribution of functionalities, advantages were obtained in technical terms, but also in terms of organization, with a clear separation between the roles of the actors in the process, improving security and the overall functioning of the system. The three-layer architecture of BOSS can be seen in Figure 57. Figure 57 – BOSS - Three-layer Architecture100 100 https://www.dcs.warwick.ac.uk/boss/boss1_architecture.php Chapter 4. Support Mechanisms for Programming Teaching 113 From the beginning of its development, it was established that the system should be effective from an educational and pedagogical point of view. Thus, criteria were defined that required the BOSS to have precision, i.e., that its data be reliable. It should also be easy to use and suitable for the purpose of managing and evaluating online code writing work, without negatively impacting the learning process (Joy & Luck, 1995). Finally, it was recommended that it be flexible and capable of evolution, allowing different uses according to the profile, experience, characteristics and interests of the teachers who used it. The use of BOSS over the years has demonstrated that it is an effective tool that meets the objective of satisfactorily assessing students' submissions, including some pedagogical aspects such as issues associated with plagiarism. The platform-independent client-server architecture gives it a flexible and evolutionary use in both pedagogical and technological terms (Heng, Joy, Boyat, & Griffiths, 2005). PETCHA PETCHA is an acronym for Programming Exercises TeaCHing Assistant, a tool whose purpose is to help teach programming (Queirós & Leal, 2012). Among its many features, the one that stands out the most is the automatic correction of exercises, which contributes to its main objective which is to increase the number of exercises to be solved by students (Queirós & Leal, 2012). It allows teachers to create exercises and helps students solve them. Apart from the evaluation system, PETCHA also has a repository of learning objects, an integrated programming environment and learning management, functioning fundamentally as a coordinating element of e-Learning systems (Queirós R. A., 2012). The system has been designed to be flexible and to complement existing tools. Thus, instead of having its own development environment it can be integrated with other IDEs having been tested with Visual Studio and Eclipse (Caiza & Álamo, 2013). For the teacher to make an exercise available to be solved by the students he or she will have to perform three tasks: •Create the exercise, which consists of defining the expository resources, such as the problem description, and evaluation resources, such as test data or feedback files. •Store the exercise in a repository. •Configuring the programming activity in the LMS. Student action takes place in two phases: •Select the problem to be solved in the LMS. •Perform the problem-solving activity using PETCHA together with an IDE. JOSÉ MARÍLIO OLIVEIRA CARDOSO 114 Figure 58 – Actors in PETCHA and their actions (Queirós R. A., 2012) The system interacts with teachers and students and there are several shared resources, although the functionalities provided and the graphic interface for each of the roles are obviously different (Queirós R. A., 2012). Both students and teachers need to generate the code and test it in an IDE, as well as verify its operation according to previously defined test cases. VPL VPL101 is a tool developed by the Department of Informatics and Systems of the University of Las Palmas de Gran Canaria, Spain, authored by Rodríguez-del-Pino (Rodríguez-del-Pino, Rubio-Royo, & Hernández-Figueroa, 2011). It is a plugin integrable into Moodle, open source and under the GNU is Not Unix/ General Public Licenses (GNU/GPL license). It was developed in PHP and specifically conceived with the objective of being open source and, in this way, to receive contributions that promote its development. It is a tool for teaching and learning programming management, supporting a large set of programming languages such as C, C++, C#, Fortran, Haskell, Java, Pascal, Perl, PHP, Prolog, Python and Ruby, and that automatically identifies the language being used. At its genesis was the intention to provide students with a simple, intuitive and userfriendly environment for code submission and obtaining automatic and immediate feedback. According to Caiza (Caiza & Álamo, 2013) the architecture of the VPL comprises three main components (Figure 59): •Moodle module which works as a configuration and administration interface, and also features submission management, evaluation and anti-plagiarism support; •code editor (Apllet Java) that allows editing, running and testing programs without the need of an installed compiler; 101 https://vpl.dis.ulpgc.es/ Chapter 4. Support Mechanisms for Programming Teaching 115 •a Linux server (jail server) to run and evaluate the code, which hosts the environment where the submitted code is evaluated, in a secure way. Figure 59 – VPL components and their interconnection As mentioned, the VPL was written in PHP, however, for the implementation of the jail server, C language was used, being the communication between it and Moodle made by Remote Procedure Call (XML-RPC protocol). The jail system implements a secure remote environment with Chroot Linux and provides services through Extended Internet Services Daemon (Xinetd). The existence of jail server, in a different virtual machine from the one hosting Moodle, comes from the need to guarantee security to the process, being this a key element of the system. In each execution a virtual user is created, randomly selected. Once the execution is finished, all the files associated with the user in question are deleted. Thus, from the configuration presented it is possible to see that distributed processing is not possible, since the server responsible for compiling and executing the code is specific and unique. However, given the typical small size of the code to be evaluated and the scarcity of the need for computer resources, especially in beginners, that fact does not seem to be truly limiting. The VPL has a plagiarism detection feature (Rodríguez-del-Pino, Rubio-Royo, & Hernández-Figueroa, 2012) across source code, looking for similarities between files, having as main objective to detect plagiarism between submissions for the same task by different students of a course. Nevertheless, other sources may also be included, such as submissions for the same task in previous years, or similar code from other sources. Other relevant features are automatic classification, immediate and automatic feedback and the recording of the history of compilation and implementation of tasks, thus tracking the student's submissions (Thiébaut, 2015). To classify and give feedback, the VPL uses previously defined test cases, specified in a proper syntax and in a specific area. The standard scripts provided by the VPL for program evaluation can be changed in order to improve the evaluation method. Hence, in the definition of a task to be performed by students, in addition to the problem description and other specifications, it is necessary to specify a set of settings for each activity, among which stand out: •submission period; •test cases; •how the program will be analyzed and evaluated; •evaluation depending on program size; •shipping restrictions, such as: number of files, number of submissions, IP address, user profile or resources (execution time, memory, file size and number of processes); •whether the grade will always be visible to students; JOSÉ MARÍLIO OLIVEIRA CARDOSO 122 In order for students to acquire the listed skills and to have the knowledge to do so, APROG's planning establishes the approach of the following topics: programming fundamentals, program coding, data types, modular decomposition, indexed data structures and manipulation of text files. EduScrum applied to APROG The purpose of PL classes is training through the resolution of exercises, applying the concepts taught in theoretical classes and demonstrated in theoretical-practical classes. During these lessons, students should encode the programs in the selected programming language (in this case Java) to solve a set of problems proposed by the teacher and available in Moodle. To code, students use an Integrated Development Environment (IDE) that has, in recent years, been NetBeans. Figure 64 – Example of a program in Java in NetBeans In recent years, in APROG's PL lessons, the eduScrum (Delhij, van Solingen, & Wijnands, 2015) methodology has been used, with students organized in teams of two (exceptionally three), where they follow a set of procedures focused on the needs and instructions of a Product Owner, as presented in section 2.4.3, here depicted by the teacher. The use of eduScrum aims to bring the academic and business environment closer together, since Scrum is a methodology widely used in the development of software (Moniruzzaman & Hossain, 2013). It also aims to promote collaborative work and the development of soft skills, fostering autonomy, responsibility and self-confidence in students. Each eduScrum team has a board (Figure 65) where the tasks to be performed, to whom they were assigned and the status of each task are recorded, allowing, at each moment, a clear view of what has already been done and what remains to be done. This board is an essential and mandatory tool and should always be updated and available to all team members and the teacher, with each change being recorded immediately after it is made, in order to provide an overview of the project status. Chapter 5. VPL in APROG's pedagogical process 123 Figure 65 – EduScrum board example The organization of the project is based on the peer review model, with each task being reviewed by a colleague before being analysed by the teacher. Work is structured in sprints, generally of equal duration, throughout the project, in recent years three sprints being considered, each having a duration of four weeks. It is necessary to plan the sprint by holding a meeting to define and clarify the goals of the sprint and all subsequent sessions should begin with a short stand-up meeting (daily stand-up meeting) as mentioned in section 2.4.2.4. In the first meeting of the week the work to be done should be planned, stating: •What is expected of the group: learning objectives and evaluation acceptance criteria; •Exercises to be solved in the week (each task with an indication of the effort units), in what order and by whom, balancing the effort units per student. Students should begin their work according to board planning and records. At the beginning of the second lesson of the week, at the daily stand-up meeting, each student must answer: •What was done? •What am I going to do today? •Is there any blockage? After completing a task and its verification by a colleague, the teacher can question the members of the group in order to assess whether the work was carried out correctly and whether the students understood the solution. If the task has errors or students cannot fully explain it, the task will not be accepted, and students will have to redo it. At the end of each sprint, there is a review of the sprint, where students will individually solve a set of exercises. Up to one week after the review of sprint, the teacher should disclose to students the results of the sprint assessment, with the final grade being obtained as follows: •30% assessment of sprint tasks (weighted average of tasks successfully performed); •70% of the individual evaluation. After that, students usually have a moment to look back on sprint and make a personal reflection. The basic support LMS for APROG operation At ISEP, Moodle has been used for more than a decade as an LMS to support teaching activity and the pedagogical needs of students. When each new student joins ISEP, they will be given access credentials to the Portal and to Moodle, which will serve for the entire period in which they remain as students of the JOSÉ MARÍLIO OLIVEIRA CARDOSO 124 institution. Access to the various areas and materials is managed by the person in charge of each course unit attended, and other areas may also be granted upon request. The regular use of this LMS in all courses has allowed to standardize procedures and ways of providing content. The relatively long experience of using Moodle at ISEP has boosted its growing use by teachers and students, exploring much of its basic potential. The familiarity with the process and the knowledge acquired led to the appearance of new needs and the design of new functionalities, which resulted in the installation of additional plugins, namely: •Switch to full screen - atto_fullscreen •Progress Bar - block_progress •BigBlueButtonBN - mod_bigbluebuttonbn; •Bulk meta course link - enrol_metabulk •Course file area - repository_coursefilearea •jQuery - local_jquery •Bulk Meta-disciplines - local_bulkmeta •Questionnaire - mod_questionnaire; •Quickmail - block_quickmail •RecordingsBN - mod_recordingsbn; •Reorder disciplines - local_resort_courses •Virtual programming lab - mod_vpl The following new modules were also developed by the technicians responsible for Moodle at ISEP: •ISEP Subjects - block_course_list_isep •Subject Information - block_info_disciplinas •Portal Integration - block_integracaoportal •Pedagogical Questionnaires - block_limesurvey •Document Printing - block_reprografia The internally developed modules aimed at filling some gaps and adapting the operation of Moodle to the specific needs and mode of operation at ISEP. Students enrolled in the APROG CU are automatically granted access to their Moodle area. The use of Moodle in APROG main purpose is to provide all the information related to the CU, to serve as a means of communication between teachers and students, sending messages or publishing announcements, as well as allowing the submission of works for assessment. In Figure 66 the homepage of APROG for the school year 2018/2019 is shown. Chapter 5. VPL in APROG's pedagogical process 125 Figure 66 – APROG on Moodle The contents are organized by weeks and, in each week, the topics to be dealt with are indicated and the contents are available for each type of lesson (Figure 67). Figure 67 – APROG materials in Moodle for a specific week For PL lessons, a .PDF file containing a set of exercises that the students must solve and whose resolutions must be analyzed by the teacher is available each week (until the eighth). The exercises proposed for resolution were previously solved by the teachers in order to verify their feasibility, size, level of difficulty and use of resources and concepts that are intended to be practiced. As an example, in Figure 68 the student's view for the download of PL7 exercises is shown. JOSÉ MARÍLIO OLIVEIRA CARDOSO 126 Figure 68 – Exercise sheet for download of PL7 class Due to the fact that there are some foreign students (in ERASMUS mobility) some translations in English of the different materials are also available in a specific folder (Figure 69). Figure 69 – Material in English for download The number of exercises in each form varies according to the size and complexity of each one and depending on the subjects involved. Since there are students with very different rhythms and backgrounds (previous knowledge), the exercises are divided into two sections, the second entitled "Complementary Exercises". This strategy has been adopted in recent years, being adjusted and appropriate to the motivation and stimulation of students regardless of their knowledge and pace of learning, allowing those who advance more quickly to continue training and evolve without others feeling discouraged or frustrated by not being able to solve the same amount of exercises as their colleagues. Table 17 shows the number of exercises of each type in each of the weeks of coding in Java based on worksheets, corresponding to the second block, as mentioned in section 5.1.2. Table 17 – Number of exercises per worksheet and type Worksheet PL5 PL6 PL7 PL8 Number of exercises base 10 9 6 5 complementary 4 9 6 2 total 14 18 12 7 In each exercise, the level of difficulty/complexity is marked and a notation with the symbol (*) has been adopted. The scale goes from (*) - simpler, to (***) - more complex, as can be seen, for example, in Figure 70 concerning exercises 6 and 7 of PL6. Chapter 5. VPL in APROG's pedagogical process 127 Figure 70 – Exercises 6 and 7 from PL6 - 2018/2019 5.2 CONDITIONS OF IMPLEMENTATION AND INSTALLATION OF THE VPL To use the VPL, and after some initial meetings, the needs related to: material, technical and human resources were identified, so it was necessary to centralize efforts to secure these before the implementation that would support this study. It was also necessary to verify compliance with the legal requirements for the operation of LEI in general and of APROG in particular, namely with regard to pedagogical issues and, more specifically, regarding the evaluation process. Preliminary Steps For the installation and use of the VPL it was necessary to verify whether it was feasible in the context of ISEP and to identify and guarantee conditions so that its use could take place without constraints. For this purpose some preliminary experiments were carried out between June and July 2017 that included the installation of Moodle and the VPL on a specific virtual machine, as well as an installation of another server necessary for the operation of the system on a virtual machine other than Moodle. Three users with three different profiles were also created: administrator, teacher and student. After this installation, a VPL activity was created, related to a simple exercise, and its functionality in Python and Java was verified. Bureaucratic issues Since it was intended to use ISEP's institutional Moodle, it would be necessary to obtain permission to install the VPL plugin. Thus, on 28th July 2017, a petition was addressed to the presidency of ISEP, which was assigned the number 33551, having received a favorable ruling on the 2nd August 2017 (Annex A). Also with regard to pedagogical, operational and legal issues, the director of the course of LEI and the head of the curricular unit (RUC) of APROG were approached on the 1st August 2017 in order to obtain authorization for the experiment, addressed by e-mails with the request JOSÉ MARÍLIO OLIVEIRA CARDOSO 128 for such authorizations, so as to document the procedure. Both requests were answered positively, as can be seen in the e-mails presented in the Annexes (Annex B and Annex C). In the school year 2018/2019 a new course direction was appointed and the request for authorization to repeat the process was reiterated. The request was made verbally and was accepted without restrictions by the new director of the LEI. In the school year 2019/2020 a new APROG RUC was appointed and was contacted in order to maintain the use of the VPL in the model previously used, responding positively to this request. Technical issues Once the formal authorizations were obtained, the plugin was installed in ISEP's institutional Moodle. The installation was executed by the ISEP technician responsible for the administration of Moodle with monitoring and supervision by the author of the study, and was completed on 6th October 2017 (Figure 71). Figure 71 – VPL installation in ISEP Moodle Nevertheless, some deficiencies were detected, namely the accesses due to the functioning of the firewall, which were only definitively solved on 20th October 2017. The VPL greatly values security and for this purpose it is advisable to install the VPL plugin and jail server separately so that the compilation can be done in isolation and on a different machine from the one hosting Moodle103. Thus, in each execution, a virtual user is selected at random and all the files associated with that user are destroyed at the end of the process. For a proper and efficient use of the VPL it is necessary to take into account the use of resources according to the expected needs, particularly with regard to the execution time of a program so as not to degrade the performance of the server. Limits must also be set for other parameters such as the memory to be used, the number of processes or file size (Figure 72). 103 https://vpl.dis.ulpgc.es/index.php/support Chapter 5. VPL in APROG's pedagogical process 129 Figure 72 – Configuration of parameters in the VPL It was also necessary to install compilers for the programming languages that were intended to be used with the VPL. In Figure 73 the screen of the installation of some compilers done at the VPL at ISEP is shown. JOSÉ MARÍLIO OLIVEIRA CARDOSO 130 Figure 73 – Installation of compilers at the VPL. In parallel, it was necessary to check the remote access conditions, access permissions and network settings as well as firewalls. In the case of the installation made, some initial difficulties of external access were identified. At this point it was found that access was only possible through the VPN (Virtual Private Network) of the DEI which was highly limiting for widespread use from the outside. Figure 74 shows the error that occurred during the access attempt. Figure 74 – Jail server external access error It was therefore necessary to review the settings of firewalls to allow access. The installation was carried out on a Linux server with no graphical component. Although the VPL allows the use of components of graphical environments, for this to be possible, the Chapter 5. VPL in APROG's pedagogical process 131 server must support this functionality, and for this purpose the X11104 protocol must have been installed, which in our case was not possible due to the characteristics of the server. A test was performed with a java program, with Swing105 components, and the error shown in Figure 75 was detected. Figure 75 – Error of absence of graphical environment Besides X11, it would be necessary to use the VNC protocol (Virtual Network Computing) to allow the visualization of graphical interfaces remotely, which would add complexity and, eventually, less security to the system. Thus, the possibility of using graphic components was inhibited. Also with regard to access, the first time the connection to the jail server is made, it would be necessary to accept the security certificate (Figure 76). Figure 76 – Jail server security certificate After this stage, some functional tests were performed, moving on to the next step related to the clarification of the pedagogical aspects that are presented and discussed in the next section. Pedagogical issues One of the main objectives of the process was to assess the possibility of contributing to making learning more autonomous, therefore the use of the system should not be too complex. 104 X-11 is the standard toolkit and protocol for GUI on Unix and similar systems, such as Linux 105 Java High Level Graphics API JOSÉ MARÍLIO OLIVEIRA CARDOSO 234 Annexes 235 JOSÉ MARÍLIO OLIVEIRA CARDOSO 236 Annexes 237 Annex H – Opinion survey – teachers JOSÉ MARÍLIO OLIVEIRA CARDOSO 238 Annexes 239 Annex I – CCPFC/ACC-101425/18 Accreditation Register JOSÉ MARÍLIO OLIVEIRA CARDOSO 240 Annexes 241 JOSÉ MARÍLIO OLIVEIRA CARDOSO 242 Annex J – Exercises chosen to use with the VPL PL6 – Exercício 3 (**) PL6 – Exercício 5 (**) PL7 – Exercício 2 (**) Annexes 243 PL7 – Exercício 4 (***) PL8 – Exercício 2 (***) PL8 – Exercício 3 (***)