tailieunhanh - Lecture F# - ĐH Công nghiệp TP. HCM
Lecture F# include the contents: Functional programming; imperative irogramming; Object – Oriented Programming; organizing, annotating, and quoting; F# libraries; user interfaces; data access; threadings. Inviting you to refer. | 1 1 2 Exercise EX1: Re work all examples in this Slide EX2: Make Project Student Manager by FP EX3: Make Project Libraries Manager by FP About 50 examples code 1. Introduction 2. Functional Programming 3. Imperative Programming 4. Object – Oriented Programming 5. Organizing, Annotating, and Quoting 6. F# Libraries 7. User Interfaces 8. Data Access 9. Threadings 3 1. Introduction What is Functional Programming? What is Functional Programming Important? What is F#? How to Obtain, Install, and use F# 4 What is Functional Programming? 5 - FP views all programs as collections of functions that accept arguments and return values. - FP allows no side effects and uses recursion instead of loops for iteration. - FP like mathematical functions because they do not change the state of the program. once a value is assigned to an identifier, it never changes, functions do not alter parameter values, and the results that functions return are completely new values What is Functional Programming . | 1 1 2 Exercise EX1: Re work all examples in this Slide EX2: Make Project Student Manager by FP EX3: Make Project Libraries Manager by FP About 50 examples code 1. Introduction 2. Functional Programming 3. Imperative Programming 4. Object – Oriented Programming 5. Organizing, Annotating, and Quoting 6. F# Libraries 7. User Interfaces 8. Data Access 9. Threadings 3 1. Introduction What is Functional Programming? What is Functional Programming Important? What is F#? How to Obtain, Install, and use F# 4 What is Functional Programming? 5 - FP views all programs as collections of functions that accept arguments and return values. - FP allows no side effects and uses recursion instead of loops for iteration. - FP like mathematical functions because they do not change the state of the program. once a value is assigned to an identifier, it never changes, functions do not alter parameter values, and the results that functions return are completely new values What is Functional Programming Important? 6 - FP allows you to treat functions themselves as values and pass them to other functions - Eliminating the distinction between data and function - FP can be shorter and more modular than corresponding imperative and OO programs - A function might return multiple values - Providing more performance and correctness for less effort What is F#? 7 - F# is a general-purpose programming language for .NET that smoothly integrates all three major programming paradigms - F# is strongly typed but also uses inferred typing - The best approach to solving many thorny computing problems How to Obtain, Install, and use F# 8 F# is now included in Visual Studio 2010 How to install F# on both Windows and Linux? see pages 8-10 in the Beginning F# ebook How to use? Extension: .fs and use to compile 3 Different ways to write code: Use Visual Studio Use SharpDevelop Use F# Interact Command Line How to Obtain, .
đang nạp các trang xem trước