Booléens en programmation : une analyse à destination des enseignants
DOI:
https://doi.org/10.52497/radix.v1i1.403Keywords:
boolean, logic, programming, control structure, variableAbstract
The notion of boolean is fundamental in computer science. Even if it seems simple at first sight, its introduction in the first stages of programming education reveals a number of difficulties related to the fact that it is linked to several general concepts of computer science: data types, truth values, invariants, control structures. . . Starting from this observation, the point of this article is to propose a reflection on the role of booleans in programming. We elaborate on some points concerning possible “good practices”, especially in the context of computer science teaching. In particular, we focus on boolean as a data type and on the main control structures using booleans. We also discuss the general notion of boolean expression used in programming. Finally through a few examples, we illustrate some typical uses of boolean variables.
References
Barnes, D. J., & Shinners-Kennedy, D. (2011). A study of loop style and abstraction in pedagogic practice. Proceedings of the Thirteenth Australasian Computing Education Conference - Volume 114, 29-36.
Beffara, E., More, M., & Prouteau, C. (2017). Algorithmique et programmation au cycle 4 : Commentaires et recommandations du groupe Informatique de la CII Lycée. Institut de recherche pour l’enseignement des mathématiques.
Ben-Ari, M. (1996). Structure exits, not loops. ACM SIGCSE Bulletin, 28(3), 51. https://doi.org/10.1145/234867.234878
Commission Inter-Irem Informatique (C3I). (2020). Petit glossaire de termes informatiques. Framagit. https://framagit.org/c3i/glossaire/-/wikis/home
Dijkstra, E. W. (1968). Letters to the editor: go to statement considered harmful. Communications of the ACM, 11(3), 147-148. https://doi.org/10.1145/362929.362947
Lagrange, J.-B., & Rogalski, J. (2017). Savoirs, concepts et situations dans les premiers apprentissages en programmation et en algorithmique. Annales de Didactiques et de Sciences Cognitives, 41. https://hal.archives-ouvertes.fr/hal-01740442
Roberts, E. S. (1995). Loop exits and structured programming: reopening the debate. ACM SIGCSE Bulletin, 27(1), 268-272. https://doi.org/10.1145/199691.199815
Sajaniemi, J. (2002). An empirical analysis of roles of variables in novice-level procedural programs. Proceedings IEEE 2002 Symposia on Human Centric Computing Languages and Environments, 37-39. https://doi.org/10.1109/HCC.2002.1046340
Samurçay, R. (1985). Signification et fonctionnement du concept de variable informatique chez des élèves débutants. Educational Studies in Mathematics, 16(2), 143-161. https://doi.org/10.1007/PL00020737
Sorva, J., Karavirta, V., & Korhonen, A. (2007). Roles of Variables in Teaching. Journal of Information Technology Education: Research, 6, 407-423. https://doi.org/10.28945/224
van Rossum, G., Warsaw, B., & Coghlan, A. (2013). PEP 8 – Style Guide for Python Code. Python Enhancement Proposals (PEPs). https://peps.python.org/pep-0008
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.