Hello and welcome to meraki, you beautiful people.

coming.jpg

Click on one of the language tabs to get started learning about a language, or

click on register at the top right to become a member, Mate.




Update: 08/23/17 : Functions completed and Objects are currently underway on Javascript.

Update: 08/18/17 : Comments, Variables, Operators, Arithmetic, Assignments, Data Types, and Functions added to Javascript.

Update: 08/15/17 : Additional Javascript tutorials on comments, variables, and arithmetic coming soon.

Update: 08/11/17 : Plan on adding more AngularJS, Javascript, and New Swift tutorials soon.

Update: 08/11/17 : Added 7 new Javascript tutorials and 5 new AngularJS tutorials.

Update: 08/01/17 : Added 1 new Javascript tutorials and 1 new AngularJS tutorials.

Update: 07/24/17 : Added a new HTML introduction to the tutorials.

Update: 06/19/17 : Currently working on indexing all of my Java code.

Welcome to the Java Introduction, mate!




What is Java?

  • Java is an object-oriented programming language originally developed by Sun Microsystems and released in 1995.
  • Java was originally developed by James Gosling at Sun Microsystems (which has since merge into Oracle Corporation).
  • Java programs are platform independent which means they can be run on any operating system with any type of processor as long as the Java interpreter is available on that system.
  • Java code that runs on one platform does not need to be recompiled to run on another platform, it’s called “write once, run anywhere” (WORA).
  • Java Virtual Machine (JVM) executes Java code, but is written in platform specific languages such as C/C++/ASM etc. JVM is not written in Java and hence cannot be platform independent and Java interpreter is actually a part of JVM.



Types of Java Applications

  1. Web Application Java is used to create server-side web applications. Currently, servlet, jsp, struts, jsf etc. technologies are used.
  2. Standalone Application It is also known as desktop application or window-based application. An application that we need to install on every machine or server such as media player, antivirus etc. AWT and Swing are used in java for creating standalone applications.
  3. Enterprise Application An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing and clustering. In java, EJB is used for creating enterprise applications.
  4. Mobile Application Java is used to create application softwares for mobile devices. Currently Java ME is used for creating applications for small devices, and also Java is programming language for Google Android application development.

Popular Java Editors

To write your java programs you will need a text editor. There are even more sophisticated IDE available in the market. But for now, you can consider one of the following:

  • Notepad – On Windows machine you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
  • Netbeans – is a Java IDE that is open source and free which can be downloaded from http://www.netbeans.org/index.html
  • Eclipse – is also a java IDE developed by the eclipse open source community and can be downloaded from http://www.eclipse.org/

Example of a basic Java program

public class Hello

{

    public static void main(String[] args)

    {

        System.out.println("Hello Java");
    }
}




To get started learning more about Java, Register and become a member!




Welcome to the Python Introduction Homepage, Guest!




Python is a great high level programming language. It was developed by Guido Van Rossum during the late 1980's. Python is a all purpose programming language that boasts many interactive capabilities. Python is a fully object oriented programming language that is fully interpreted. Python 3 was introduced in 2008, but the community has been slow to adopt 3 fully. Python dev's respond to this slow paste with, "There should be one -- and preferably only one -- obvious way to do it." Therefor, I've chosen Python 3 as my development tool because I wish to further progress on Python. If we hold onto the past, python 2.7, etc, then we will never grow as a community.




Details

This tutorial, of sorts, will detail Python 3.5, which is the latest Python version at the time of the Meraki site creation. Python 3 has a lot of similarities to versions lower than 3.5. This page will walk you through getting started using Python 3, and help you begin writing your first Hello World program!




Interactive

The user can enter python commands directly into a Python prompt, and the interpreter will interact directly with the user to write Python programs.






What do you mean by High Level???

Programming languages are categorized into levels; low, mid, and high level. Low level languages are the lowest level of programming code a computer will understand, Machine code. Machine code is a programming language that is built upon binary or hexadecimal numbers. All computers can understand and directly interact with machine code. Mid level code is the assembly language level. The high level holds languages such as C++, C#, Java, Python, and more. Python is a advanced high level language, and is extremely easy to begin to understand programming with. Python's high level attribute creates a very simplistic way to program for beginners.




Object Orientation

Object oriented programming, OOP, is a type of computer programming. The programmer must program the data types with accompanying data structures, and the programmer must import or define their own functions to be applied to the data structures written. The data structure becomes an object which contains data and functions to be used. The object orientation model creates a relationship between one object and another one through inheritance. The characteristics of a parent object can be inherited by the children of the object. Python fully supports the OOP technique that will encapsulate the code written within objects inside Python. Some object oriented terminology consists of:

 Class

     A user-defined prototype for an object that defines a set of attributes that characterize any object of the class. The attributes are data members (class variables and instance variables) and methods, accessed via dot notation.

 Class variable

     A variable that is shared by all instances of a class. Class variables are defined within a class but outside any of the class's methods. Class variables are not used as frequently as instance variables are.

 Data member

     A class variable or instance variable that holds data associated with a class and its objects.

 Function overloading

     The assignment of more than one behavior to a particular function. The operation performed varies by the types of objects or arguments involved.

 Instance variable

     A variable that is defined inside a method and belongs only to the current instance of a class.

 Inheritance

     The transfer of the characteristics of a class to other classes that are derived from it.

 Instance

     An individual object of a certain class. An object obj that belongs to a class Circle, for example, is an instance of the class Circle.

 Instantiation

     The creation of an instance of a class.

 Method

     A special kind of function that is defined in a class definition.

 Object

     A unique instance of a data structure that's defined by its class. An object comprises both data members (class variables and instance variables) and methods.

 Operator overloading

     The assignment of more than one function to a particular operator.




Compiled

Compiled languages looks at the entire code, and creates a machine code representation of the code being compiled. The machine code is made up of ones and zeros. The code is made into an executable file and ran. One advantage to compiling code opposed to interpreting the code is when you want to perform a task over and over again. The execution time will be much lower if the code is compiled opposed to being interpreted because it is already in machine code, and does not require being interpreted every single time the program is run.




Interpreted

The python file is run and read line by line individually and executes the commands that are found. Interpreted languages take each individual line and compile line by line until the end is reached. Python is primarily interpreted, especially if you follow this tutorial, but Python can be compiled and run too. Python is formally processed at run time by the installed interpreter.




How to obtain Python 3.5

The first thing you want to do is install python onto your system.

  • Visit the Python Website
  • Download Python 3.5 for your particular operating system
  • BE SURE TO install python somewhere you will be able to find it easy
  • The location will be needed later on in the installed, trust me.
  • For Windows Users: Definitely install for all users
  • Finish the installation and restart your system
  • Python 3.5 and other versions of Python can run, but that is advanced and looking way ahead




IDE?? Command Prompt??

This tutorial will use the IDE PyCharm, which is free to students and faculty. You can alternatively create .py files using a text editor, like notepad++, and run the files using a command prompt. You need to look up how to change directories and show the contents of the directories on your specific system. Change into the directory of the py file you created using the text editor and type -> python3 run filename.py

The user can go Here to obtain more information on installing Python onto other operating systems.

Pycharm is my choice for IDEs. Pycharm has everything a user needs to run python scripts and any server related ideas you might have!

Pycharm provides each student and faculty with a year subscription to their service free of charge upon verification of their institutional credentials. Pycharm also provides a 30 day evaluation trial if needed. Once you have PyCharm downloaded, install the Pycharm onto your system. Keep the default settings unless you are sure you know what you're doing, mate. Once, the installation is complete, go ahead and restart your system to ensure all changes are in order. Pycharm should've picked up on the fact that you have Python3.5 installed, but if not, when we create a New Project we will see how to accomplish that.




Pycharm Installation Cont...

Once PyCharm is up and running, click on File at the top left, then new project, and Pure python. Pycharm shows you two options at the top: Location and Interpreter. The Location is just the absolute path to the file being saved. The default usually names the file untitled.py unless specified otherwise. The Interpreter correspondes to where you installed Python 3.5 on your system. I told you that you would need to know the location of Python, didn't I? Click create at the bottom right of the widget window. Now...






Getting Started

Once you click on Python File, you will be prompted to enter a name, enter hello_world and click ok.

type this into the white space print("Hello World, I've made my first Python program!")

Now...Right click on hello_world.py and Run 'hello_world'




Congratulations, you have officially created your first python program, sort of. :D




Advanced Beginners material

From here on we will use a main function that will act like a main function in Java or C++. So, delete your print statement inside the python file, and type the following in:

def my_name():

    name = input("Enter your name: ")

    return name

    

    

def my_mood():

    mood = input("How are you feeling today: ")

    return mood

    

    

def main():

    your_name = my_name()

    print("Hello " + str(your_name) + "!")

    your_mood = my_mood()

    print("Well, today is just going to get better, I promise!")

    

    

if __name__ == "__main__":

    main()

    

    


Make sure that there is two spaces between each function and two at the end after main()

We are defining two functions, my_name and my_mood, which prompts the user for his/her name and his/her mood The responses are saved as string variables and returned back to be saved as variables themselves. The variable your_name is saved as whatever you entered as your name, and the same goes for your_mood. We will discuss exactly why you need two spaces in the syntax page for Python.






To get started learning more about Python, Register and become a member!




Welcome to the C++ Introduction Homepage, mate!




C++ Introduction Information

C++ is a general purpose object oriented programming language that was developed by Bjarne Stroustrup back in 1979 at Bell Labs.
C++ is capable of running on a variety of platforms including Windows, Mac OS, and the many versions of UNIX.
C++ has served as an influence for many programming languages such as C#, D and Java.

Unlike C# and Java, C++ is not a memory safe language.
C++ is not considered memory safe because it allows pointer arithmetic and doesn't have an implicit garbage collection unlike C# and Java.
C++ got its name since it is considered one step ahead of C. The ++ implies an increment of 1, and thus C++ is considered an incremenation of C.

To get started coding, you will need to download an IDE(Integrated Development Environment) located here

https://codelite.org/

Now that you have a coding environment, let's check out a simple hello world program!

Hello World

#include <iostream>

                int main() {
                   std::cout << "Hello World";
                   return 0;
                }

Output

Hello World

Notice that std::cout? There's an easier way to write console output by adding using namespace std like so!

Hello World With Namespace

#include <iostream>
                using namespace std;
                int main() {
                   cout << "Hello World";
                   return 0;
                }

Output

Hello World

Notice how much how easier that it is to type? You're accomplishing the same thing with less work.

I'll break down what's going on here down for you

  • using: You are going to use it
  • namespace: To use what? A namespace
  • std: The std namespace (where features of the C++ Standard Library, such as string or vector, are declared).



To get started learning more about C++, Register and become a member!




Welcome to the C# Introduction Homepage, mate!




C# Programming Language Information
C# Introduction

C# Introduction

C# is a wonderful general purpose object oriented language that was developed by Microsoft. The name “C sharp” was inspired by musical notation in which a sharp indicates that a written note should be made higher in pitch. The sharp symbol also represents a ligature of four + symbols in a 2 by 2 grid. C++ name was designed to say a variable should be incremented by one. Since, C# has four plus symbols, it is thus considered to be an increment of C++.

Unlike C++, C# is a memory safe language.


To download an IDE(Integrated Development Environment) for C# go to

https://www.visualstudio.com/

Let's checkout a simple Hello World Program

using System;
class Program
{
static void Main(String[] args)
{
Console.WriteLine("Hello, world!");
}
}

Output

Hello, World!

Uses of C#

  • Mobile Apps
  • Web Applications
  • Enterprise Software
  • Backend and service-oriented applications
  • And many more uses!



  • To get started learning more about C#, Register and become a member!




    Welcome to the Sql Introduction Homepage, Guest!




    SQL is a standard language for accessing and manipulating databases.




    What is SQL?

    • SQL stands for Structured Query Language
    • SQL lets you access and manipulate databases
    • SQL is an ANSI (American National Standards Institute) standard



    What Can SQL do?

    • SQL can execute queries against a database
    • SQL can retrieve data from a database
    • SQL can insert records in a database
    • SQL can update records in a database
    • SQL can delete records from a database
    • SQL can create new databases
    • SQL can create new tables in a database
    • SQL can create stored procedures in a database
    • SQL can create views in a database
    • SQL can set permissions on tables, procedures, and views



    SQL is a Standard - BUT....

    Although SQL is an ANSI (American National Standards Institute) standard, there are different versions of the SQL language.

    However, to be compliant with the ANSI standard, they all support at least the major commands (such as SELECT, UPDATE, DELETE, INSERT, WHERE) in a similar manner.

    Note: Most of the SQL database programs also have their own proprietary extensions in addition to the SQL standard!




    Using SQL in Your Web Site

    To build a web site that shows data from a database, you will need:

    • An RDBMS database program (i.e. MS Access, SQL Server, MySQL)
    • To use a server-side scripting language, like PHP or ASP
    • To use SQL to get the data you want
    • To use HTML / CSS



    RDBMS

    RDBMS stands for Relational Database Management System.

    RDBMS is the basis for SQL, and for all modern database systems such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.

    The data in RDBMS is stored in database objects called tables.

    A table is a collection of related data entries and it consists of columns and rows.




    To get started learning more about SQL, Register and become a member!




    Welcome to the HTML Introduction Homepage, Guest!


    HTML | Hyper Text Markup Language


    HTML documents are designed and built using elements. Elements are represented by tags on the HTML document. Some of the most common tags are heading, body, paragraph, table, and more. The HTML tags are used by browsers to render the content to the user of the browser.


    • <!DOCTYPE html>
    • The doctype element is the way to let the browser know the document is HTML5

    • <html>
    • The html element is the back bone element of the HTML page being designed

    • <head>
    • The head element contains the meta data the document requires

    • <title>
    • The title element will allow the programmer to set the title of the page

    • <body>
    • The body element holds the page content that will be rendered by a browser

    • <h1-h6>
    • The h1 element is the largest text heading, and h6 would represent the smallest text heading.

    • <p>
    • The p element represents the paragraph, and the paragraph is a great way to display text.


    HTML elements are represented using tags, and the tags are surrounded by angle brackets; <> and </>. <tagname>the content you wish to display...</tagname>. Tagname are notoriously seen in pairs; one to open the tag and one to close the tag. The first tag is known as the start tag, and the closing tag is known as the end tag. The end tag is designated by a forward slash inserted before the tag name.




    Web Browsers

    A web browser is a way to render the elements written on an HTML document. The web browser does not specifically display HTML tags, but the browser does use them to render the display for the HTML document. The following image is a visualization of how HTML documents could be designed. The only content that will be displayed will be within the body tags.





    To get started learning more about HTML, Register and become a member!







    To get started learning more about AngularJS, Register and become a member!







    To get started learning more about Javascript, Register and become a member!