MongoDB – How to install it on macOS

By | 27/01/2021

In this post, we will see how to install and configure MongoDB on macOS. First of all, we open the Terminal and run the command /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” , in order to install Homebrew brew. Then, we run the command brew tap mongodb/brew, in order to download the official Homebrew formulae for MongoDB and… Read More »

Python – Try/Except

By | 20/01/2021

In this post, we will see how to manage Try/Except in Python. Just to remember what try/except is: Try/Except is a statement marks a block of statements to try and specifies a response should an exception be thrown.In detail, in Try/Except we have three blocks:Try,  used to test a block of code for errors.Except, used… Read More »

SwiftUI – Tips for button

By | 13/01/2021

In this post, we will see three tips that might help us to create buttons in our applications. First of all, we open Xcode, we create an iOS project called TestButton and we add three buttons: Then, we create a new Swift file called ButtonStyleCustom where we will define the style that we will use… Read More »

C# – TDD

By | 06/01/2021

In this post, we will see how to create a simple Console application (a calculator), using TDD.But first of all, what is TDD?From Wikipedia:“Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the code is improved… Read More »

Category: C#

Swift – The word clock v. 2.0

By | 04/01/2021

I am very happy starting the 2021 with the new version of TheWordClock.In these release, I have fixed some bugs and I have introduced the alarm clock. If you want to download it, find “Thewordclock” in the App Store or go to:https://apps.apple.com/it/app/thewordclock/id1533151993?l=en

C# – Tips for String

By | 09/12/2020

In this post, we will see some interesting methods to use with String. HOW TO REVERSE A STRING HOW TO REVERSE THE ORDER OF WORDS IN A GIVEN STRING HOW TO COUNT THE OCCURRENCE OF EACH CHARACTER IN A STRING HOW TO FIND ALL POSSIBLE SUBSTRING OF A GIVEN STRING HOW TO REMOVE DUPLICATE CHARACTERS… Read More »

Category: C#

React – Form

By | 02/12/2020

In this post, we will see how to create a Form in React in order to manage a login formed by Username, Password and UserType. First of all, we create a file called reactform where we will define the form: Then, we define two input HTML objects for handling Username and Password: Finally, we define… Read More »

React Native – First project using Expo Snack

By | 25/11/2020

In this post, we will see how to create our first React Native project, using Expo Snack. First of all, what is React Native?From Reactive Native web site:“Create native apps for Android and iOS using React.React Native combines the best parts of native development with React, a best-in-class JavaScript library for building user interfaces.You can… Read More »