dawo 0.0.3

  • README.md
  • Example
  • Installing
  • Versions
  • 4

dawo 0.0.3 #

Learning Dart; simple basic data for beginners, and howTo use it for building a package. Beginner Dart programmers kickoff to develop a glorious package.. Latest code in GitHub: https://github.com/heiklap/dawo

  • Read: hist_versions.txt to see full changes to this, and coming versions.

Usage #

// Some instances of Mission Class are created with simple Map data.
// Mission classes have instances of Chore classes inside them.

// Roll once, without loops usage;
var dawoApp = new DawoApp('Play-rumba:dawoApp', 'By: dawo_example: dawoApp rolls missioms');
var rumba = new Rumba();

// This returns in addition a StringBuffer. Not used here.
// Example app presents sample data on windows console.

Brainstorming #

Get people together, let they present ideas, collect best ideas to libraries and try to group them meaningfully. DO NOT build many classes in this phase, for to keep your mind open for intuitive solutions. Leave room and time to resolve, what will be the direction of this package. Practise to use Dawo by finding it's properties in editor, and think their importance in app.

Versions #

First dawo version seems to be a mess, and, yes, it is kind of intentional so. Dawo 0.0.1 shows starter programmers confusion, and records ways and steps out of this mess to clarity and understanding. Latest code in GitHub: https://github.com/heiklap/dawo

0.0.1 demonstrates how data is messy, when it is not inside classes. Check for pollution of public namespace!!

0.0.2 version is meant to weed out the material and create a couple of classes. Theme : baseStructure, base_lib, dawo_mill, connector, learn/code_snippets

0.0.3 Is for building first control-flow structure (Rumba.dance) to use Class-data inside app. Theme: Present different Mission ( = Client / customer) data and small, elementary work-flow, Chores ( 7 chores by default in every Mission). dawo_example.dart gives 14 screen-full data output.

0.0.4 Version Theme: Statistics, output, variation, versatility, documentation in doc-folder

0.0 x Basic idea and orientation of package to resolve. 0.0 x Incubator idea: -move first too big parts to independent packages. Maybe chore and team

Files; #

code_snippets, learn / copy-paste stuff: #

  • aldente_func : Simple functions, including some logical errors. Can you spot errors?!
  • bat_loop : Control flow structures.
  • learn_stream_sync : Examples of simple Streams. So. async stuff.

app files #

  • base_lib : Develop common properties, that other libraries should depend on.
  • base_struct : Structuring base classes. These two libraries do not depend other dawo files.
  • dawlib_chore : Start of bigger "job" / "chore" for real-world-work. Imitating functionality of other, bigger, same kind of library.
  • dawlib_coll : Examples and hacking material of Dart collections.
  • dawo.dart : main file, exports : dawo_src.dart.
  • dawo_app : DawoApp class, handles Missions and creates out-put-buffers.
  • dawo_connector.dart Connecting ( as #client's) app - mission - chore together, mediating them.
  • dawo_dev : Classes, that help in developing this package. Helper functions for cl (command line)and screen output.
  • dawo_mill : Plan: processing commands orderly, all they in row, by given priorities.
  • dawo_mission : Chunk of command-processing between app and chore. Missions keep and process data (clay) in certain area.
  • dawo_src File created by stagehand plugin app.
    Here it imports all other libraries and gathers some information about them.
  • dawo_tools : Helper tools, sleep, stamps aso.
  • rumba.dart : Rumba classes .dance method keeps dawo's control-flow.

src.dart imports files:

import 'package:dawo/code_snippets/aldente_func.dart';
import 'package:dawo/code_snippets/bat_loop.dart';
import 'package:dawo/code_snippets/learn_stream_sync.dart';

import 'base_lib.dart';
import 'base_struct.dart';  //  unused
import 'dawlib_chore.dart';
import 'dawlib_coll.dart';

import 'dawo_app.dart';
import 'dawo_connector.dart';  //  unused
import 'dawo_dev.dart';
import 'dawo_mill.dart';
import 'dawo_mission.dart';
import 'dawo_tools.dart';
import 'rumba.dart';  //  unused

///  Data (clay) is in clay-folder.
import 'package:dawo/clay/clay_roll.dart';

Creating Dawo variables in new file:

//  create instances of classes::
var dap = new DawoApp('exampleApp', 'Testing in dawo_example');
// play with them in IDE:
dap.   //  dot notation fives you hint of classes properties.
var mission = new Mission('#name','#state');  //  #state  ? :)

var ch = new Chore('#name','info');
// play with them:
///  connector is in very early state
var connector = new Connector('name','info');

// Using Dawo in your web app: (Dawo do not include HTML-code)

Add to your pubspec.yaml:
  dawo: 0.0.3
  browser: ^0.10.0
  dart_to_js_script_rewriter: ^1.0.1
//  your main.dart
import 'dart:html';
import 'package:dawo/dawo.dart';
import 'package:dawo/rumba.dart';
import 'package:dawo/dawo_app.dart';    
main() {
  //  Create classes as above. Or copy code from: Usage:
  var dawoApp = new DawoApp('Pplay-rumba:dawoApp', 'By: dawo_example: dawoApp rolls missioms');
  var rumba = new Rumba();
  //  play with classes:
  //  Dot-notaion ( . ) gives you editor hints.
  //  dap.    //  choose property, that you want to use.

  //  mission.
  //  ch.
  //  connector.   
  //  code, play with other variables
// run code in browser and check console output: Ctrl-Shift-i 

About variable names and Classes in Dawo #

Play in IDE editor with alphabet: a..z to see, what variables are available. See how common namespace might become polluted with unnecessary stuff, and try to find a way, to organize them/ your variables to meaningful classes.


goals, teams, temps
morn, night, day 

make, init 

Test objects in code_snippets / learn... , -section. These files might be best, when copy-pasted and studied in computer.

Joker.., aldente...  bat...

sleep(), start..()  

ride....()   roll(....) 
// Watch: init.. build.. roll.. show.. done method-cycle.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.0.3 #

  • Rumba.dance() method rolls mission-chore data.

0.0.2 #

  • Classes are ready but no client data or roll-all.

0.0.1 #

  • Elementary messy data, waiting for pruning and classification.


// Copyright (c) 2017, Heikki K Lappalainen. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
///  dawo_example   dawo version 0.0.3  25.9.2017

import 'package:dawo/dawo.dart';

///  watch difference, when importing dawo/dawo_src.dart
///  dawo_src only #imports all dawo files except dawo.dart
///  dawo.dart exports: export 'package:dawo/dawo_src.dart';
//  import 'package:dawo/dawo_src.dart';

// wanna import all of them?
import 'package:dawo/code_snippets/aldente_func.dart';
import 'package:dawo/code_snippets/bat_loop.dart';
import 'package:dawo/code_snippets/learn_stream_sync.dart';

import 'package:dawo/base_lib.dart';
import 'package:dawo/base_struct.dart';
import 'package:dawo/dawlib_chore.dart';
import 'package:dawo/dawlib_coll.dart';
import 'package:dawo/dawo_app.dart';
import 'package:dawo/dawo_dev.dart';
import 'package:dawo/dawo_mill.dart';
import 'package:dawo/dawo_mission.dart';
import 'package:dawo/dawo_tools.dart';
import 'package:dawo/rumba.dart';


//  create classes::
var da = new DawoApp('exampleApp', 'Testing in dawo_example');
var df = new DawoMill();

var missionX = new Mission('Mission-class', 'example:dawo_example');

var ch = new CommonChore('ChoreInDawoExample', 'Test-Chore');

main() {
  //  By Google Stagehand example
  var awesome = new Awesome();
  print('awesome: ${awesome.isAwesome}');

  var dawoApp = new DawoApp(':play-rumba-test:dawoApp',
      'By: dawo_example.dart: dawoApp rolls missioms');
  var rumba = new Rumba();

  // This also returns a StringBuffer.

  //  Play with variables: watch something from every file
  //  base
  // baseLibMotto

  //  baseStructMotto;

  //  chore
  // choreBuf

  //  dawo
  // dawoBuf

  //  app
  // appMap;

  //  dev  17 variables
  //  devBlame;

  //  mill
  //  DawoMill

  //  mission
  //  Mission  class

  //  toolsActive;

  //  play with classes

  ///  testing dawo
  //  daw... ok

  //  render   //  there are 5 render-functions

void playDawoSrcDart() {}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dawo: ^0.0.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dawo/dawo.dart';
Version Uploaded Documentation Archive
0.0.78 Oct 8, 2018 Go to the documentation of dawo 0.0.78 Download dawo 0.0.78 archive
0.0.75 Jan 8, 2018 Go to the documentation of dawo 0.0.75 Download dawo 0.0.75 archive
0.0.8 Mar 27, 2019 Go to the documentation of dawo 0.0.8 Download dawo 0.0.8 archive
0.0.7 Dec 18, 2017 Go to the documentation of dawo 0.0.7 Download dawo 0.0.7 archive
0.0.6 Nov 27, 2017 Go to the documentation of dawo 0.0.6 Download dawo 0.0.6 archive
0.0.5 Nov 6, 2017 Go to the documentation of dawo 0.0.5 Download dawo 0.0.5 archive
0.0.4 Oct 16, 2017 Go to the documentation of dawo 0.0.4 Download dawo 0.0.4 archive
0.0.3 Sep 25, 2017 Go to the documentation of dawo 0.0.3 Download dawo 0.0.3 archive
0.0.2 Sep 11, 2017 Go to the documentation of dawo 0.0.2 Download dawo 0.0.2 archive
0.0.1 Sep 5, 2017 Go to the documentation of dawo 0.0.1 Download dawo 0.0.1 archive

All 11 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://dart.dev/dart-2#migration.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0