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 !.

Popular Posts