Showing posts with label Course. Show all posts
Showing posts with label Course. Show all posts

C language tutorial

language tutorial


C language is a generic, procedural computer programming language. In 1972, in order to transplant and develop the UNIX operating system, Dennis Ritchie in Bell telephone lab design and development of the C language.
C language is a widely used computer language, which is as popular as the Java programming language, both of which are widely used among modern software programmers.
The current latest C language standard for C11, before its C language standard for C99.

Who is suitable for reading this tutorial?
This tutorial is designed for software programmers who need to learn C from scratch. This tutorial will give you an idea of ​​the C language to enhance your own level of expertise.
Before you read this tutorial, you need to know the knowledge:
Before you start this tutorial, you need a basic understanding of computer programming terminology. A basic understanding of any programming language will help you understand the C language programming concepts and help speed your learning progress.
Compile / execute C program

Examples:

#include < stdio.h >
Int main ( ) 
{ / * my first C program * / 
printf ( " Hello, World! \ N " ) ;
return 0 ;
}

Example Analysis:
·         All C language programs need to include the main () function. The code starts from the main () function.
·         / * ... * / for annotations.
·         Printf () is used to format the output to the screen. The printf () function is declared in the "stdio.h" header file.
·         Stdio.h is a header file (standard input and output header file), #include is a preprocessing command, used to introduce the header file. When the compiler encounters the printf () function , a compile error occurs if the stdio.h header file is not found .

·         Return 0; statement is used to indicate exit procedure.

React tutorial


React is a JAVASCRIPT library for building user interfaces.
React is mainly used to build UI, many people think that React is MVC in the V (view).
React originated from Facebook's internal project, used to set up Instagram's website, and in May 2013 open source.
React has a high performance, code logic is very simple, more and more people have begun to pay attention and use it.

React features

  • 1. Declarative design- React using the declaration paradigm, you can easily describe the application.
  • 2. Efficient-React through the simulation of the DOM, to minimize the interaction with the DOM.
  • 3. Flexible - React can work well with known libraries or frameworks.
  • 4.JSX - JSX is an extension of JavaScript syntax. React development does not necessarily use JSX, but we recommend using it.
  • 5. Components - React build components, making the code easier to reuse, can be a good application in the development of large projects.
  • 6. One-way response to the data stream - React to achieve a one-way response to the data stream, thereby reducing the duplication of code, which is why it is more simple than traditional data binding.

Before you read this tutorial, you need to know the knowledge:

Before you start learning React, you need the following basics:
  • HTML5
  • CSS
  • JavaScript

React the first instance

In each chapter, you can edit the instance online and click the button to view the results.
This tutorial uses React version 15.4.2, you can in the official website http://facebook.github.io/react/ download the latest version.

React instance

< Div ID = " Example " > </ div > < Script type = " text / Babel " > ReactDOM.render ( < h1 of > ! The Hello, World </ h1 of > , document.getElementById ( 'Example')); </ Script >

try it"

Angularjs tutorial for beginners step by step

AngularJS2 tutorial


AngularJS2 is an open source JavaScript library maintained by Google to help single page applications run.
AngularJS2 is an upgraded version of Angular 1.x, performance has been significantly improved, can be a good support for Web development components.
AngularJS2 was released in September 2016 and is based on ES6.

Learn the basics needed for this tutorial

Before you learn this tutorial, you need to have a basic front-end foundation: HTML, CSS, JavaScript. In addition you also need to understand NPM and TypeScript.

Angular2.x differs from Angular1.x

The difference between Angular2.x and Angular1.x is similar to Java and JavaScript, or the difference between Lei Feng and Lei Fengta, so we need to be ready to relearn a language when learning Angular2.x.

Operating conditions!

Because the current environment (browser or Node) does not support ES6 code, so some shim and polyfill (IE need) to ES6 write code can be converted to ES5 form and can run properly in the browser.
From the above figure we can see in the Es5 browser need the following module loader:
  • Systemjs - generic module loader, support for AMD, CommonJS, ES6 and other formats JS module load.
  • Es6-module-loader - ES6 module loader, systemjs will automatically load this module.
  • Traceur - ES6 transcoder, convert the ES6 code to the ES5 code supported by the current browser, and systemjs will automatically load the module.

Related reference documentation



AngularJS2 JavaScript environment configuration

AngularJS2 architecture

AngularJS2 user input

AngularJS2 data display

AngularJS2 template syntax



Lua Programming tutorial

Lua Tutorial



Lua is a lightweight, scripting language written in standard C and opened in source code, designed to be embedded in an application to provide flexible extension and customization capabilities for applications.
Lua is a research group in the Pontifical Catholic University of Rio de Janeiro, Brazil, composed of Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo and developed in 1993.

aim of design

It is designed to be embedded in the application, so as to provide flexible application extensions and customization capabilities.

Lua characteristics

  • Lightweight : it is written in standard C language and open source code, compiled only one hundred K, can be easily embedded in other programs.
  • Scalable : Lua provides a very easy-to-use interface and the expansion mechanism: provide these functions by the host language (usually C or C ++), Lua can use them, as it would have been like a built-in feature.
  • Other features :
    • Support for process-oriented programming and functional programming;
    • Automatic memory management; only provides a common type of table (table), it can be used to achieve the array, hash table, collection, object;
    • Language built-in pattern matching; closure; function can also be seen as a value; provide multi-threaded (collaborative process, not supported by the operating system thread) support;
    • Through the closure and table can be very convenient to support object-oriented programming needs of some of the key mechanisms, such as data abstraction, virtual function, inheritance and overload.

Lua application scenario

  • game development
  • Independent application script
  • Web application script
  • Extensions and database plugins such as MySQL Proxy and MySQL WorkBench
  • Security systems, such as intrusion detection systems

The first Lua program

Then we use Lua to output "Hello World!"

Example (Lua 5.3)

Print ("Hello World!")

Running examples »
After running, will be displayed on the screen Hello, world !.

Django Tutorial


Introduction to Django and Installation


There are many different Web frameworks in Python. Django is the most representative of a heavyweight player. Many successful sites and APP are based on Django.

Django is an open source Web application framework written by Python.

Django complies with BSD copyright, which was first released in July 2005 and released its first official version 1.0 in September 2008.

Django uses MVC's software design pattern, model M, view V, and controller C.

Who is suitable for reading this tutorial?

This tutorial is for developers with Python-based developers.

Before you learn this tutorial you need to know

Before you study this tutorial you need to understand some basic Web knowledge and Python 2.x tutorial or Python 3.x tutorials.

Django version of the corresponding version of the Python:

Django version
Python version
1.8
2.7, 3.2 , 3.3, 3.4, 3.5
1.9, 1.10
2.7, 3.4, 3.5
1.11
2.7, 3.4, 3.5, 3.6
2.0
3.5+













How to Install Django:

Before installing Django, the system needed to have a Python development environment. Then we have to look at the specific system under the Django installation.

Window Install Django

If you have not installed the Python environment, you need to download the Python installation package first.

1, Python Download: https://wwwthonthon.org/downloads/

2, Django download address: https://www.djangoproject.com/download/

Note: Currently Django 1.6.x or later is fully compatible with Python 3.x.
Python install (installed skippable)

Install Python You only need to download python-x.x.x.msi file, and then click the "Next" button.


After the installation is complete you need to set the Python environment variable. Right click on the computer -> Properties -> Advanced -> environment variable -> modify the system variable path, add Python installation address, this example is using C: \ Python33, you need to install according to your actual situation.

Django installed

Download the Django archive, extract it and place it in the same root directory as the Python installation directory, go to the Django directory, execute python setup.py install, and start the installation. Django will be installed under Python's Libsite site-packages.



Then configure the environment variables to add these directories to the system environment variable: C: \ Python33 \ Lib \ site-packages \ django; C: \ Python33 \ Scripts. After the addition is complete, you can use Django's django-admin.py command to create a new project.

Check if the installation is successful

Enter the following command to check:

>>> import django
>>> print django.get_version ()



If the Django version number is output, the installation is correct.

Install Django on Linux

Yum installation method

The following installation is installed in the Centos Linux environment, if it is your Linux system is ubuntu Please use the apt-get command.

By default, the Linux environment already supports Python. You can enter the Python command at the terminal to see if it is already installed.

Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Install setup tools

command:

Yum install setuptools

When you are done, you can use the easy_install command to install django

Easy_install django

Then we enter the following code in the python interpreter:

[Root @ solar django] # python
Python 2.7.3 (default, May 15 2014, 14:49:08)
[GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 6, 5, 'final', 0)
>>> 

We can see the output Django version number, indicating that the installation is successful.



Java Programming language Tutorial


Definition of Java Programming Language:

Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

What do you mean by high- level Programming language?

High-level Programming language means a programming language that allows a programmer to write codes that are more or less independent of a any computer. These types of language are called high-level because they are closer to human languages and further from machine languages.

History of Java

James Gosling 
Java Programming language created by James Gosling June 1991 for use in one of his many set-top box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went by the name ‘Green’ and ended up later being renamed as Java.

Sun Microsystems First released Java 1.0 in 1995. It work on WORA Model (Write Once, Run Anywhere), providing no-cost run-times on popular platforms.

In 13 November, 2006, Sun Microsystems released Java as open source.

Why Java Programming Or Features of Java:


Features of Java


·    Object Oriented − In Java Programming, everything is an Object. Java Programming can be easily controlled and manipulated because it is based on the Object model.
·        Platform Independent − when Java Program is compiled, it is not compiled into platform specific machine; It is Compiled into platform independent byte code. This byte code is run over the web and interpreted by the Java Virtual Machine (JVM).
·        Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easily understand.
·        Secure − Java Programming is secure because it run inside Java Virtual Machine (JVM).
Java Secure
  • Architecture-neutral − In Java Programing no implementation dependent features such as size of primitive data types is fixed. In C programming, int data type occupies 2 bytes of memory for 32-bit architecture and 4 bytes of memory for 64-bit architecture. But in java, it occupies 4 bytes of memory for both 32 and 64 bit architectures.
  •  Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable.
  • Robust − Robust means strong. Java uses strong memory management system. There is lack of pointers that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points make java robust.
  • Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly.
  • Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process.
  • High Performance – JAVA use of Just-In-Time compilers that Java enables high performance.
  • Distributed − Java is designed for the distributed environment of the internet.
  •  Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.

Popular Posts