Python – Random values

By | 22/02/2023

In this post, we will see how to generate random values in Python. GENERATING INT NUMBERS GENERATING FLOAT NUMBERS USING SEED TO HAVE THE SAME RANDOM VALUES USING RANDOM TO GET ITEMS FROM A LIST SHUFFLING A LIST

SwiftUI – AnyLayout

By | 15/02/2023

In this post, we will see how to use the new component AnyLayout introduced in SwiftUI 4.But first of all, what is AnyLayout? From Apple developer web site:“Use an AnyLayout instance to enable dynamically changing the type of a layout container without destroying the state of the subviews”In a nutshell, with AnyLayout we can switch for example… Read More: SwiftUI – AnyLayout »

C# – Big O notation

By | 08/02/2023

In this post, we will see what Big O notation is and how to use it to optimize our algorithms.But first of all, what is Big O notation?From Wikipedia:“Big O notation is a mathematical notation that describes the limiting behaviour of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann,… Read More: C# – Big O notation »

Category: C#

Asynchronous Programming – Task.CompletedTask and Task.FromResult

By | 18/01/2023

In this post, we will see how and when using Task.CompletedTask and Task.FromResult. WHENWe can use both of them when we need to return a Task object from a method that don’t have any async operations. HOWTask.CompletedTaskWhen we need to return a Task: [CORE.CS] [PROGRAM.CS] If we run the application, this will be the result:… Read More: Asynchronous Programming – Task.CompletedTask and Task.FromResult »