Tuesday, December 30, 2014

Map of Dart learning subjects and their values, exercise for cloning Anagram example.

When cloning / theming dart-html example: anagram, I wanted to make it like Dart-learning course, I made this map of casual Dart keywords, that popped to my mind, and setted some time / effort values to them.  These values present 1-9 numbers of time / effort / importance, of ao. learning subject... just my opinion.

Here is original anagram HTML dart example in gitHub
     https://github.com/dart-lang/www.dartlang.org/blob/master/src/site/docs/tutorials/add-elements/examples/anagram/anagram.dart 
I'm now on phase 2 / 10 on this cloning, and next should put this map in use; instead of ..what..?  and how..?   Long way to go..

here are  all tutorial samples:   https://github.com/dart-lang/dart-tutorials-samples


// Dart learn subjects and their values
Map dartLearnSubjects = {
          'await' : 6,  'analyzer' : 1, 'as' : 2, 'assert' : 4, 'abstract' : 3,
          'build' : 02, 'bool' : 0, 'button' : 5,

          'continue' : 2,  'client' : 5, 'comment' : 1, 'css' : 3, 'class' : 7,
          'case' : 2, 'const' : 3, 'closure' : 5, 'cascade' : 3, 'constructor' : 4,

          'default' : 3,  'do' : 2, 'datetime' : 3, 'dynamic' : 3, 'double' : 2,
          'debugger' : 2,
          'equality' : 2,  'extend' : 3, 'export' : 3, 'error' : 5, 'element' : 5,
          'external' : 9, 'enum' : 4,
       
          'factory' : 8,  'final' : 2, 'for' : 2, 'future' : 9, 'function' : 7,
          'generics' : 6, 'get' : 4,

          'hint' : 1, 'html' : 8,
          'implement' : 3,  'io' : 8, 'int' : 3, 'import' : 3, 'iterate' : 4,
          'intl' : 2, 'isolates' : 5, 'immutable' : 3, 'interface' : 3,

          'json' : 3, 'joke :)' : 0, 'joker :)' : 0, 'join?' : 0,
          'key' : 2,
          'lazy loading' : 2, 'label' : 3, 'library' : 5, 'list' : 2,

          'metadata' : 3,  'mixin' : 9, 'math' : 3, 'main' : 1, 'map' : 2,
          'methods' : 2,
          'new' : 2, 'null' : 1, 'num' : 2,
          'objcet' : 3,  'output' : 1, 'or?' : 1, 'operators' : 05, 'on--?' : 3,

          'parameter' : 4,  'parse' : 5, 'pub' : 7, 'print' : 1, 'part' : 2,
          'problems' : 1,
          'query' : 4, 'queue' : 2,

          'rune' : 2, 'run?' : 2, 'random' : 2, 'return' : 2,
          'server' : 8,  'static' : 5, 'sdk' : 5, 'string' : 1, 'set' : 2,
          'system?':4, 'switch' : 1, 'super' : 4, 'symbol' : 2, 'scope' : 2,

          'this' : 3,  'throw' : 3, 'task' : 1, 'type' : 7, 'try' : 2,
          'typedefs' : 6, 'typecast' : 6, 'todo' : 2,

          'unordered' : 0,
          'void' : 1, 'value' : 1, 'var' : 3,
          'web sql' : 7,  'web audio' : 7, 'while' : 1, 'worker' : 4, 'with' : 3,

          'x1' : 0, 'y1' : 0, 'yield?' : 0, 'z1' : 0
               
};

//TODO  howTo :  Print a map :)
dartLearnSubjects.forEach((k, v) { print('$k, $v'); });
--------------------------------------------------------------------------------------------------
You can run above code putting it directly inside main function.
void main()  {
print('.. hello here we go!! ');
  //  code here
}
.