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 »

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 »

Category: C#

SwiftUI – NavigationStack

By | 25/01/2023

In this post, we will see how to use the new NavigationStack that has substituted the old NavigationView. We start creating an iOS project and then, we add three Swift files called User, Core and UserType.The first one is our Model, the second one is the Business layer and finally UserType is the UI: [USER.SWIFT]… Read More »

Python – Date

By | 14/12/2022

In this post, we will see some code snippets that can help us to manage date in Python. HOW TO CONVERT A STRING IN A DATEIn this code, we will see how to convert a string in a date: If we run the code, this will be the result: HOW TO GET TODAY DATEIn this… Read More »