GithubHelp home page GithubHelp logo

learn-cpp-python-js-on-android's Introduction

learn-cpp-python-js-on-android

You're a student on a really tight budget. You don't have a PC or Mac but you have a fairly decent Android phone or tablet. You want to learn programming offline. Look no further, this post is for you!

This will help you setup an environment where you can try programming in C, C++, Python or Node.js on Android. First, you would need to install an app called Termux. For this, you will need to connect to the internet via your WiFi in school, with a friend or mobile data.

Go to Google Play Store, find and install Termux by Fredrik Fornwall.

https://play.google.com/store/apps/details?id=com.termux&hl=en_SG&gl=US

After installing, press Open to run. The app will show a terminal and ready to accept commands on the $ prompt.

Do an update

$ apt update
$ apt upgrade

Install Node.js

$ apt install nodejs-lts

Install Python (includes Clang, a drop-in replacement for GCC C/C++ compiler)

$ apt install python

You will need an editor to do your coding. You can use either nano or vim. Nano is installed by default. To install vim, do:

$ apt install vim

Note: edit your sample hello program(s) using your preferred editor.

C

You can compile your C program using GCC:

$ gcc -o hello hello.c
$ ./hello

C++

Compile and run your C++ program:

$ g++ -o hello_cpp hello.cpp
$ ./hello_cpp

Python

Run your Python script.

$ python hello.py

Node.js

Run your Node.js program.

$ node hello.js

You now have C, C++, Python and Node.js to play with even if you're offline. Good luck and wish you all the best in your programming journey!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.