Mobile App Development 2 Flashcards
open-source general-purpose programming language. It is originally developed by Google and later approved as a standard by ECMA.
Dart
a new programming language
meant for the server as well as the browser
Dart
a transpiler that generates
JavaScript equivalent of a Dart Script
-dart2js
introduced by google, the dart sdk ship with its dart compiler?
Dart VM
what is dart
object-oriented language with C-style syntax which can optionally trans compile into JavaScript.
dart supports a varied range of programming aids like
- interfaces
- classes
- collections
- generics
- optional typing
Dart can be extensively used to
single-page application
what is single-page application
- enable navigation between different screens of the website without loading a different webpage in the browser
- Gmail
main() function
- predefined method
entry point of application
print()
predefined method that prints specified string or value
Dart Command-Line Options
- -c
- -h
- -p < path>
- –packages < path>
- –version
enables both assertions and type checks
-c
-h
displays help
–version
shows file version VM information
–packages < path >
path package resolution configuration file
-p < path>
where to find imported libraries
names given to elements in a program like variables,
functions
Identifiers
The rules for identifiers are
- not inslude special symbols except underscre and dollar sign
- unique
- identifers cannot be keywords
- identifiers are case-sensitive
- cannot contain spaces
object orientation
- software development paradigm that follows real-world modelling
- considers a program as a collection of objects that communicate with each other via mechanism called methods.
a real-time representation of any entity
Object
Grady Brooch,
every object must have three features
- state
- behavior
- identity
State
− described by the attributes of an object
Behavior
− describes how the object will act