Category Archives: Programming Languages

How to completely uninstall Python on Mac OS?

Problem:

You have an issue with a Python version (e.g. the 3.7 version) and want to install another version (e.g. the 3.6 version). In order to install a fresh version you need to uninstall the current version first.

Solution:

Assume that the current version is 3.7. Replace 3.7 with another version that you installed.

Follow these 3 steps below.

1. Remove the third-party Python 3.7 framework

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7

2. Remove the Python 3.7 applications directory

sudo rm -rf "/Applications/Python 3.7"

3. Remove the symbolic links, in /usr/local/bin, that point to this Python version. Ensure that the links exit using below command.

ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/3.7'

and then run the following command to remove all the links:

cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/3.7' | awk '{print $9}' | tr -d @ | xargs rm

Source: http://stackoverflow.com

Installing a new version:

  1. Download a version from https://www.python.org/downloads/mac-osx/, double click the file and follow the instructions.
  2. Verify installation: python3 –version
  3. Install Homebrew from https://brew.sh
  4. Install virtualenv
  5. pip3 install virtualenv
    pip3 install virtualenvwrapper

5.  Create and activate a virtual environment

cd /Users/admin/Downloads/training_model/model 
python3 -m virtualenv /Users/admin/Downloads/training_model/model
source bin/activate

Topic 19 – Introduction to Computation and Programming using Python

Why do I need to learn about computation and programming using Python?

Computational thinking and Python are fundamental tools for understanding many modern theories and techniques such as artificial intelligence, machine learning, deep learning, data mining, security, digital imagine processing and natural language processing.

What can I do after finishing learning about computation and programming using Python ?

You will be prepared to learn modern theories and techniques to create  modern  security, machine learning, data mining, image processing or natural language processing software.

That sounds useful! What should I do now?

Please read this "John V. Guttag (2013). Introduction to Computation and Programming using Python. 2nd Edition. The MIT Press" book.

Alternatively, please watch
- this "6.0001 Introduction to Computer Science and Programming in Python. Fall 2016" course (Lecture Notes) and

- this "MIT 6.0002 Introduction to Computational Thinking and Data Science, Fall 2016" course (Lecture Notes)
After finishing reading the book please click Topic 20 - Introduction to Applied Machine Learning to continue.

Topic 8 – Introduction to Mobile Application Development

Why do I need to learn about mobile application development?

Desktop applications are very useful but their deployment and updating are daunting. Web applications overcome many limitations but you still need a workstation to work with it. This is often a PC or MAC that is too large and heavy to bring on-the-go.
Nowadays most of us always bring a mobile device with us everywhere. It's very convenient if we could use our daily software inside our mobile devices. In order to  leverage our mobile devices we need to develop software for them.
Therefore you need to learn mobile programming.

What can I do after finishing learning mobile programming?

You can create applications like WhatsApp, Instagram, Temple Run, Angry Birds, Fruit Ninjia, etc.

How interesting! What should I do now?

Mobile programming requires a lot of reading. You have to master at least a programming language and a mobile platform. Currently, there are 2 major platforms for mobile development: Android and iOS. There are 3 options for learning mobile development.
The first option for learning mobile programming is Android programming.
If you are not familiar with Java language, please read this "Cay S. Horstmann (2018). Core Java Volume I--Fundamentals" book first.
After that please read this "Bill Phillips et al. (2017). Android Programming: The Big Nerd Ranch Guide. 3rd Edition. Big Nerd Ranch" book.
The second option for learning mobile application development is iOS programming.
Please read
- this "Matthew Mathias and John Gallagher (2016). Swift Programming: The Big Nerd Ranch Guide. 2nd Edition. Big Nerd Ranch" book or
- this "Matt Neuburg (2018). iOS 12 Programming Fundamentals with Swift. O'Reilly Media" book first.

After that please read 
- this "Christian Keur and Aaron Hillegass (2016). iOS Programming: The Big Nerd Ranch Guide. 6th Edition. Big Nerd Ranch" book or
- this "Jonathon Manning et al. (2018). Learning Swift - Building Apps for macOS, iOS, and Beyond. O'Reilly Media" book.

A complementary part of this option is Objective-C. Please read 
- this "Stephen G. Kochan (2013). Programming in Objective-C" book or 
- this "Neil Smyth (2012). Objective-C 2.0 Essentials" book.
The third option for developing mobile applications is either

(i) to leverage C# language and Xamarin framework; please read this "Charles Petzold (2016). Creating Mobile Apps with Xamarin.Forms" book; or

(ii) to leverage HTML/CSS/Javascript language and Ionic framework; please read this "Jeremy Wilken (2015). Ionic in Action: Hybrid Mobile Apps with Ionic and AngularJS" book; or

(iii) to leverage HTML/CSS/Javascript language and React Native framework; please read this "Alex Banks and Eve Porcello (2017). Learning React Functional Web Development with React and Redux" book; then read this "Bonnie Eisenman (2016). Learning React Native: Building Native Mobile Apps with JavaScript" book.
Mobile is a great environment for games because of its mobility. If you are interested in developing games for Android please read this  "Jayme Schroeder and Brian Broyles (2013). AndEngine for Android Game Development Cookbook" book.
If you already have a background of C or C++ and want to develop games for both Android and iOS then please read 
- this "Roger Engelbert (2015). Cocos2d-x by Example: Beginner's Guide" book or 
- this "Raydelto Hernandez (2015). Building Android Games with Cocos2d-x" book.
After finishing these books please click Topic 9 - Software Requirements to continue.

 

Topic 7 – Introduction to Web Application Development

Why do I need to learn about web application development?

Desktop applications are very powerful and convenient but their development, deployment and maintenance are daunting. The reason is that the platform dependency makes it very expensive to create a desktop application working on different versions of different operating systems, such as Windows, Linux and Mac OSX. Deployment and updates of desktop application typically require high privileges access to a computer machine, causing a problem for companies requiring high security.

Fortunately, you can overcome these limitations by creating a web application running on a browser. To create a web application you need to learn about web application development.

What can I do after finishing learning web application development?

You will be able to create web applications like The BBC News, The WordPress Blog or The White House Website.

This is just what I want to learn! What should I do now?

Web application development requires a lot of reading. You have to master networking concepts, HTML, CSS, Javascript, a programming language and a database management system for web. Please get this "Semmy Purewal (2014). Learning Web App Development" book and read it first.
After that you will have 4 options. You can choose one of them. We STRONGLY recommend that you choose only ONE option. You should NOT learn all of them at the beginning. You could save your time by digging into only one option. After mastering the selected path, you will realize that all of them are very similar in the sense of use. One note is that although their concepts are similar to one another but they will still take us much time to learn how to apply implementation of an approach in real world solutions.
When developing a real world web application, you often use only one or two of these 4 approaches. If you cannot make your own selection then we recommend you a combination of the first and second option or a combination of the second and third option.
The first option is ASP.NET Core. Please read 
- this "Adam Freeman (2017). Pro ASP.NET Core MVC 2. Apress" book or 
- this "Dino Esposito (2018). Programming ASP.NET Core. Pearson Education" book.
A complementary part for this option is ASP.NET Web Forms. Please read this "Imar Spaanjaars (2014). Beginning ASP.NET 4.5.1: in C# and VB" book.
The second option is PHP world.  Please read this "Luke Welling and Laura Thomson (2016). PHP and MySQL Web Development" book.
The third option is Java world. You will need to read 2 books for this option. Please get this "Cay S. Horstmann (2012). Core Java Volume I--Fundamentals" book and read it if you are not familiar with Java language.

Then please read 
- this "Tim Downey (2012). Guide to Web Development with Java: Understanding Website Creation" book or 
- this "Nicholas S. Williams (2014). Professional Java for Web Applications" book.
The 4th option is Node world.  Please read this "Bruno Joseph D'mello et al. (2017). Web Development with MongoDB and Node" book. A note is that the accompanied source code of this book is not perfect and up-to-date. Please refer to the official tools and modules documentation for fixing the issues.
After finishing these books if you want to create sophisticated interactive web applications please read this "Kyle Simpson (2015). You Don't Know JS" book.

If you want to create a single-page application (SPA) please read this "Kirupa Chinnathambi (2018). Learning React. Addison-Wesley Professional" book.
If you want to convert a web application from one platform to another or create a web application framework please read this "Leon Shklar and Richard Rosen (2009). Web Application Architecture: Principles, Protocols and Practices" book.
After finishing the books please click Topic 8 - Introduction to Mobile Application Development to continue.

 

Topic 6 – Introduction to Relational Database Management Systems

Why do I need to learn about relational database management systems?

Your software must help users to do their work. The most important part of the users' work is the information. You need to learn about database management systems to store, manipulate, retrieve and secure this information.

What can I do after finishing learning database management systems?

You can create applications like airlines and railways, banking, education, telecommunications, digital libraries and digital publishing, finance, sales, health care information systems, etc.

It sounds interesting! What should I do now?

Database management systems is a huge topic. However at this time you just need to learn how to use a database management system under a user's point of view.

Please get this "Ignatius Fernandez (2015). Beginning Oracle Database 12c Administration: From Novice to Professional" book and read it.

Alternatively, please get this "Adam Jorgensen et al. (2012). Microsoft SQL Server 2012 Bible" book and read it.
After finishing the books please click Topic 7 - Introduction to Web Application Development to continue.

Topic 4 – Object-Oriented Programming

Why do I need to know an object-oriented programming language?

Because most of modern applications are written using an object-oriented programming language. Using an object-oriented programming language as a tool will save you a lot of time and cost when you create a modern application.

Alright! What should I do now?

Please read this "Jim Keogh and Mario Giannini (2004). OOP Demystified" book.

Is that all?

Unfortunately, the book is not sufficient although it already gives you the fundamental concepts of object-oriented programming. The book does not teach you how to create real world applications using an object-oriented programming language.

We recommend that you read it first because it introduces basic concepts of object-oriented programming very well. It helps you to distinguish object-oriented concepts from procedural programing concepts very clearly so that you could read other books to dig into object-oriented programming in a right way.

Please read this "RB Whitaker (2015). The C# Player's Guide" book to understand how to use object-oriented concepts to create real world software using a specific object-oriented programming language.

After that please get 
- this "Joseph Albahari and Ben Albahari (2015). C# 6.0 in a Nutshell: The Definitive Reference" book or 
- this "Herbert Schildt (2010). C# 4.0 The Complete Reference." book and 
take a quick look at them so that you can refer to specific topics when creating real world applications.

I hear that there are many object-oriented programming languages such as C++, C#, Java, PHP, Objective-C, Swift, Python, Ruby, etc. How many object-oriented programming languages should I know?

As many as possible. However, in this stage, you can learn only C# or Java or C++.
- If you are required or prefer to learn C++, please read this "Bjarne Stroustrup (2013). The C++ Programming Language" book.
- If you are required or prefer to learn Java, please read this "Herbert Schildt (2014). Java: The Complete Reference" book.

Then if you are interested in in-depth object-oriented concepts then please read 
- this "Matt Weisfeld (2013). The Object-Oriented Thought Process" book and 
- this "Bertrand Meyer (1997). Object-Oriented Software Construction" book and 
- this "Grady Booch et al. (2007). Object-Oriented Analysis and Design with Applications" book.
They will help you understand the object-oriented concepts more deeply.

After finishing the books please click Topic 5 - Introduction to Windows Programming to continue.

 

Topic 2 – Introduction to Programming

Why do I need to know a programming language?

Because you will develop your software using a programming language. A programming language is a language that both you and a computer will understand. It's a tool for you to express what you want a computer to do. It's a tool for you to write instructions of your computer programs. Without knowledge of a programming language, you cannot develop any software.

I hear about many programming languages such as C, C++, C#, Java, JavaScript, Kotlin, PHP, Objective-C, Swift, Ruby, Python etc. How many programming languages should I know?

As many as possible. However, at this stage, you should learn about structure of a computer program and a procedure language (e.g. C or C++) first.

What should I do now?

Please read this "Stephen Prata (2011). C Primer Plus" book.
Alternatively, you can read from Chapter 1 to Chapter 9 of this "Stephen Prata (2011). C++ Primer Plus" book.

Alternatively, you can read from Chapter 1 to Chapter 9 of this "John M. Zelle (2017). Python Programming - An Introduction to Computer Science. 3rd Edition" book.

Alternatively, you can read from Chapter 1 to Chapter 11 of this "Charles Severance (2013). Python for Informatics: Exploring Information" book.

Alternatively, you can read from Chapter 1 to Chapter 11 of this "Chris Pine (2013). Learn to Program (The Facets of Ruby Series)" book.
If you want to get more sophisticated concepts of programming then please read this "Harold Abelson et al. (1996). Structure and Interpretation of Computer Programs" book.
After finishing the books please click Topic 3 - Introduction to Algorithms and Data Structures to continue.