Before this week’s technical workshop, which included JavaScript mathematics, I researched using the Math.random() method for my weather app. However, it took me a long time to realise something: Math.random() generates numbers between 0 and 1. In my weather app, I used Math.random() to move the position of some images. Initially, I thought something was wrong, and my images were not moving, so I spent a lot of time altering my code and trying different things when it turned out they were moving, but only by values like 0.239 pixels. This ended up being taught in this week’s workshop, so I am slowly learning that I should wait for technical workshops instead of spending too much time researching and getting frustrated by myself.
In my Live data task, I decided to separate my CSS and JavaScript into different files. I had done this before in my CSS Core web development task 1, using the SMACSS framework. I didn’t follow the exact SMACSS rules, but I did follow its basic principles. Doing this made my code much easier to read as well as easier to spot and debug errors.
For the data task exercise one, I chose chapter two of the book Data: Emerging Trends and Technologies. It was fascinating to think about what the future might look like when technology becomes even more intertwined in our lives.
I already rely heavily on technology. Most of the time, I think technology gives me opportunities to do things I otherwise couldn’t, but I also know that sometimes it’s too easy to access, and I would be better without it. For example, while doing A-level maths, I could carry out complicated equations but struggled to do simple mental maths and always needed my calculator. Maybe if I hadn’t always been allowed to use my calculator, I would have developed better cognitive skills and confidence.