Posts

Showing posts from June, 2023
Image
More about recursion in C#. Do the full C# course https://pcworkshopslondon.co.uk/c-sharp-programming-course.html In a recursive method with C#, we need two properties: 1) The base case (or cases) is a terminating scenario. the base case will instruct the recursion to stop , and the method return back to its orginal call. The base case does not use recursion to produce an answer, it is rather simple like an if statement. 2) The second property is "recursive steps". statements that should be executed repetitively, but with every iteration using a value that it either more or less than the previous iteration. Importantly, this value change should reduce the successive cases and work towards achieving the base case. The repetition is effected by the method calling itself, rather than a loop https://youtu.be/nUnxNR0JKRk Did you know? Ouroboros, is an ancient symbol depicting a serpent or dragon eating its own tail (stop condition? .... not sure if this ancient symbol qui...
Image
Free 1-hour Threads online seminar :  Coding on Threadsin Python Join us on the 24th June, for a free 1-hour lesson on threading:   Python Concurrency and Multi-Threading , Sat, Jun 24, 2023, 10:00 AM | Meetup Program: Step 1 : What is concurrency and threads Step 2: Create and implement therads Step 3: Synchronizing threads Step 4: Threads intercommunication Step 5: Tsting the applications  Concurrency means that multiple things are executed at the same time, i.e. concurretnly. In Python, concurrency can be achieved in a number of different ways: Firstle, there is  threading. This is simply  allowing multiple threads to take turns. Then there is  multiprocessing. This means that we are using  multiple processor cores, and is also parallelism. Using  asynchronous IO , means that a task is fired off while another is still continuing, instead of waiting for for all tasks to finish first. With distributed computing,  multiple computers are used ...