Posts

Showing posts from November, 2017

Firebase Database Example in Android

Image
What is Firebase :                  The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in realtime.The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data. NEW: Cloud Firestore (beta) enables to you store, sync and query app data at global scale. Setup Firebase Realtime Database for Android :  There are two ways you can connect your app to Firebase .     1. Install Firebase SDK     2.Using Firebase Console ,add your app to Firebase .   Install Firebase SDK : If you're using the latest version of Android Studio (version 2.2 or later), we recommend using the Firebase Assistant to connect your app to Firebase. The Firebase Assistan

Difference Between Interpreter and Compiler

We generally write a computer program using a high-level language. A high-level language is one which is understandable by us humans. It contains words and phrases from the English (or other) language. But a computer does not understand high-level language. It only understands program written in 0's and 1's in binary, called the machine code. A program written in high-level language is called a source code. We need to convert the source code into machine code and this is accomplished by compilers and interpreters. Hence, a compiler or an interpreter is a program that converts program written in high-level language into machine code understood by the computer.  Interpreter :      1. Translates program one statement at a time.      2. It takes less amount of time to analyze the source code but the overall execution time is slower.      3. No intermediate object code is generated, hence are memory efficient.      4. Continues translating the program until the first error is