Tag: A-Level

4 Common Mistakes Python Beginners should Avoid – Towards Data Science

0 commentsA-LevelA-LevelProgramming

https://towardsdatascience.com/4-common-mistakes-python-beginners-should-avoid-89bcebd2c628 The article says beginner mistakes. That’s a bit harsh. I’ve been programming for nearly 20 years (admittedly only in Python properly for 5) and I got caught out by the default arguments being mutable. I was traversing a map, using a default argument and ended up traversing a map of 5 items about 16 ….  Read More

Declarative Vs imperative code

0 commentsA-LevelA-LevelProgramming

https://medium.com/javascript-in-plain-english/nobody-cares-whether-you-used-imperative-or-declarative-programming-66c396ecce06 I was talking to the year 13 class about declarative and imperative code. Academically it’s a clear distinction. In A-level it’s Python Vs Haskell. In conversation it’s SQL and RegEx Vs traditional coding. In reality it’s all just code. There are some nice functions that do Python in a declarative manner, but as long ….  Read More

Sorting

0 commentsA-LevelGCSEA-LevelAlgorithmsGCSE

https://youtu.be/WaNLJf8xzC4 This is a good graphical and easy to understand look at the sort algorithms. Unfortunately it doesn’t include merge sort which is on most exam specs. One nice thing about it is the real scenario, and also that it gives real world time calculations. It covers: Bubble sort Insertion sort Quick sort

Big Data vs Lots of data

0 commentsA-LevelA-LevelLinks

https://www.bbc.co.uk/news/business-50578234 In year 13 we cover big data. This article highlights the difference between big data and lots of data. Lots of data is gathered from the census but that doesn’t count as big data as the data isn’t varied, there’s just a lot of it. Consider the difference between a census and the data ….  Read More