Git Product home page Git Product logo

studydart's Introduction

学习 Dart 记录与心得

首先我想说的是,尽可能的去看官方文档,没想象中那么难。on 和 no 都会认错的我,报了100天的某学习平台的英语后,强迫自己去看原著,之后硬着头皮去看的 Dart 官方文档,逐字逐句的去翻译理解(笨方法),再跟着文档敲代码,这样持续了有1个多月基础知识差不多就看完了,随后我又根据文档的排版 + 自己的理解做了一个思维导图,最后根据思维导图开始了学习点滴与心得的记录。

在这学习的途中有很多次的想放弃,但庆幸的是我坚持过来了,虽然还没有整体完成,但大致的框架已经出来了,获得了一点小成就感,提升了不少动力让我继续记录,感谢自己。

目录

  • 重要概念
  • 关键字
  • 变量 ( Variables )
    • 默认值 ( Default value )
    • 最终和常量 ( Final and const )
  • 内置类型 ( Built-in types )
    • numbers ( 数值类型 )
    • strings ( 字符串类型 )
    • booleans ( 布尔类型 )
    • lists ( 列表类型 )
    • sets ( 唯一无序集合 )
    • maps ( 键值对集合 )
    • runes ( 表情、符号 )
    • symbols ( 符号 )
  • 函数 ( Functions )
    • 可选参数 ( Optional parameters )
    • main() 函数 ( The main() function )
    • 函数作为对象传递 ( Functions as first-class objects )
    • 匿名函数 ( Anonymous functions )
    • 作用域 ( Lexical scope )
    • 闭包 ( Lexical closures )
    • 测试函数是否相等 ( Testing functions for equality )
    • 返回值 ( Return values )
  • 操作符 ( Operators )
    • 算数运算符 ( Arithmetic operators )
    • 关系运算符 ( Equality and relational operators )
    • 类型判断符 ( Type test operators )
    • 赋值运算符 ( Assignment operators )
    • 逻辑运算符 ( Logical operators )
    • 位运算符 ( Bitwise and shift operators )
    • 条件表达式 ( Conditional expressions )
    • 级联符 ( Cascade notation )
    • 其它操作符 ( Other operators )
    • 分类
  • 控制流语句 ( Control flow statements )
    • 判断语句 ( If and else )
    • for 循环语句 ( For loops )
    • while 和 do-while 循环语句 (While and do-while)
    • 打断和继续语句 ( Break and continue )
    • 开关语句 ( Switch and case )
    • 断言语句 ( Assert )
  • 异常处理 ( Exceptions )
    • 抛出异常 ( Throw )
    • 捕获异常 ( Catch )
    • 必然执行 ( Finally )
    • 自定义异常
  • 类 ( Classes )
    • 成员 ( Using class members )
    • 构造器使用 ( Using constructors )
    • 获取对象运行时的类型 ( Getting an object’s type )
    • 实例变量 ( Instance variables )
    • 构造器声明 ( Constructors )
    • 方法 ( Methods )
    • 抽象类 ( Abstract classes )
    • 隐式接口 ( Implicit interfaces )
    • 类继承 ( Extending a class )
    • 枚举类型 ( Enumerated types )
    • 向类添加功能 ( Adding features to a class: mixins )
    • 类的变量和方法 ( Class variables and methods )
  • 泛型 ( Generics )
    • 为什么使用泛型 ( Why use generics? )
    • 集合使用泛型 ( Using collection literals )
    • 使用带有构造器的参数化类型 ( Using parameterized types with constructors )
    • 通用集合及其包含的类型 ( Generic collections and the types they contain )
    • 泛型类型限制 ( Restricting the parameterized type )
    • 泛型在方法上的使用 ( Using generic methods )
  • 库和可见性 ( Libraries and visibility )
    • 使用库 ( Using libraries )
    • 实现库 ( Implementing libraries )
  • 异步 ( Asynchrony support )
    • 操作 Future ( Handling Futures )
    • 声明异步函数 ( Declaring async functions )
    • 操作 Stream ( Handling Streams )
  • 生成器 ( Generators )
    • 同步生成器
    • 异步生成器
    • 生成器性能问题
  • 可调用的类 ( Callable classes )
  • 隔离 ( Isolates )
  • 类型定义 ( Typedefs )
  • 元数据 ( Metadata )
  • 注释 ( Comments )
    • 单行注释 ( Single-line comments )
    • 多行注释 ( Multi-line comments )
    • 文档注释 ( Documentation comments )

经过近三个月的学习,终于把 Dart 概览部分学习完成并记录形成自己的东西,为自己点赞。

参考

Dart 消息循环机制(官网)

Dart 消息循环机制(翻译)

Dart 语言的介绍 (可大致了解 Dart由来)

Future简单科普

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.