I'm in the middle of refactoring this function and thought it would be nice to show you some cursed code.
$Caracter is an array of char right? But why is it subtracting from $nume? Ahhhh, because it's an array of ints that represent indices of the different characters in $chars. Kind of obvious when you look at the assignment for $resultado, but the build-up was brutal!
Most of its software was aimed for tecnical students, not 6-7th grade children. Teachers were given little to no training on using the system, in my school they just expected the pupils to know how to use a Linux system, which was preposterous considering most didn't even know how to use Windows appart from opening the Tuenti (https://en.wikipedia.org/wiki/Tuenti) on their internet broswer.
I jout found at home a netbook the Andalusian govt gave to all students aged 9-10 in 2009. It came with Guadalinex (https://es.wikipedia.org/wiki/Guadalinex no English page), an Ubuntu-based linux distro focused created by regional civil servants that aimed to promote computer skills and free software on Andalusian schools. It came with Ubuntu 9, Mate Desktop and a really good free and non-free software selection. However, the initiative was discontinued a little more than a year later.
PHP
I've been working with PHP for the past two months and it still amazes me how engineers with an at least minimal idea of MVC considered this acceptable: https://www.w3schools.com/php/phptryit.asp?filename=tryphp_intro
In love with the terminal. I write free software mostly in C++, maintain AUR packages, contribute to OpenStreetMap and like to play videogames.