Seems to have very little errors & notices in code, Editor don´t do analyzing for five minutes or ten anymore. Code is all borrowed, little blue. My x_dont_work folder I have put to a "dont analyze" state. Dart Web Toolkit package was most erraneous... i think. Stopped using it, but in yaml it was stayed, deleted it now from there also.
2 full posts, 25 items of Polymer discussion, I reqd them again in Discussion group. Checkin my DailyDart_1 Web pages, 16 pages, G+ takes most time. Dont start editor now. it makes Windows to stuck. Something reallo wrong in my Win... I know. (I have a old version of Java in jre-folder, in dart-program folder) Screen flashes & it's slow when changing from editor to web-pages. Really don't want to touch that jre-folder... when it works at least some-way.. so let it be.
PATH-TO-JAWA... No.. I don't want to touch that neither.. not at least till I know that I can do it in one minute time. Now instructions for it... is a mess.
Quite messy... yes, that it has been for a two year.. getting better with little steps & learning more... And better now record this state of things wwhile this mess still exists. Soon it may disappear.. Having much work to do in outer world these days... 8 hours a day... at least.. still I work with Dart at least 4 - 6 hours a day. This is strong...
Coffee and sandwitches are ready... If I can take hour in silence.. I might do most of the readings.. so lets get started. Its dark outside, not anymore -2, now it's +10, WAU!! So.. go reading. Co's one of my goals is, to watch how this Dart is getting it's birth. (got only 10 minutes in silence :) Yeah, early morning Dart.
Checking from https://code.google.com/p/dart/issues/list 110 Dart issues priority high.
233 language area issues (some have been here a long time..). Open issues 3312, Critical 10. 37 Milestone M5 issues. M8 issues 337.. hmmm.
http://dartlangfr.net/dart-cheat-sheet/ http://ondart.me/web_programming.md?utm_source=dartweekly&utm_medium=email Dart education course.
https://github.com/dart-lang https://twitter.com/dart_lang
http://api.dartlang.org/docs/bleeding_edge/ Api reference, bleeding edge. Observe now..
Dart news & Updates, presentations, Coockbook, tutorials, quick check..
https://plus.google.com/communities/114566943291919232850 dartisans G+
https://plus.google.com/+dartlang/posts Dart G+
Got new samples! Gilad Bracha in Melbourne... aso.
** Image filters in Canvas
** A simple WebSockets example
** HTML5 Drag and Drop
** Files API
5 Dart discussion groups... Backup this post again to Springpad.. More coffee...
8 & 7 items waiting to read in Misc & web_ui discussion...
Too much disturbance... going to coffee, and my own twitter & G+...
To be continued... today.
Heavy day, full of other works.. only 21.30 I have time ro read some discussion.. no time for editor & packages study today.. and my dawo-package.. ou nou..
http://stackoverflow.com/questions/tagged/dart reading this and polymer about every day...
Readed two latest posts... Dart.exe is virus lol. & Cannot use point class...
Discussions ask me again load a new version of program.. why?
So it was this day.. quite bad... about 70 items not-readed in discussions...
And maybe next monday I can read them... :(
.
Mighty and shining Google Dart Knights conquering tiny JavaScript Castle. The mob keeps calling out the slander and enjoys the spectacle :)
DART on Googlen avoimen lähdekoodin ohjelmointikieli, joka toimii verkkosivuilla ja servereissä, ja jolla voi JavaScriptiä paremmin hoitaa suurten verkkosovellusten koodaamisen. DART kielen kehitys aloitettiin 9/2011 ja 1.0-versio kielestä julkistettiin loppuvuodesta -2013. Nyt jo on olemassa lähes valmiit työkalut Chrome selainta varten. Blogger-blogien pitäjiä varten saamme ehkä kiintoisia Gadgetteja sivupalkkeihin ja muuta toiminnallisuutta verkkosivuille.
TÄMÄ blogi sisältää pääosin omia pohdintojani ja muistiinpanoja, eikä se varmaankaan tuo kovinkaan paljon uutta DART-kielen opiskeluun. Materiaali on pääosin KOPIOITU :( Dartlang-sivustoilta, josta kannattaa KÄYDÄ TARKISTAMASSA kielen viimeiset syntaksit.
torstai 24. lokakuuta 2013
keskiviikko 25. syyskuuta 2013
Got Junk mail, comments now on only for Google-account owners.
Saapuneiden roskapostikommenttien johdosta jouduin muuttamaan kommenttien asetuksia, Vain Google-tilin haltijat voivat kommentoida, ja kommentit tarkistetaan aina. Sen aina-tarkistamisen voi kyllä varmaan pian muuttaa.
& Comments "always checking is on", but that I can soon change, maybe.
.
& Comments "always checking is on", but that I can soon change, maybe.
.
tiistai 24. syyskuuta 2013
Dart data-hakemiston nimen muuttaminen on hieman raskas operaatio
Paljon dataa.. DartEditori suoritti nimenmuutoksen noin 44 minuutissa. Symlinkkien tarkastus ja pakettien oikeellisuuden varmistus kesti. Sitten vielä analysointia.... n 10 min.
390 Mt Levyllä 471
34 515 tiedostoa, 8062 kansiota Paljon ilmaista Dartlang -kamaa rohmuttu siis.
Chancing The name of my Dart-data folder was quite a heavy job for DartEditor:
390 Mb, 8062 Folders, 34515 Files. 44 minutes. lol & then some analyzing, 10 min..
.
maanantai 23. syyskuuta 2013
Just beginning; dawo package in Pub; Quick start for new Dart Programmer, Version 0.0.0
5. dawo: pitkä matka unelmalla; versio 0.0.0 Vain tyhjät raamit. lol Mutta voi sen ladata verkosta ja seurata (mahdollista) kehitystä.
4. dawo: Päivitän jatkuvasti tiedostojani kolmeen tietsikkaan. Kun kierrätän ne Pub:in kautta, minun pitää tehdä muutokset vain yhteen paikkaan
3. Unelma: dawo: Valmis työ-ympäristö uudelle Dart-ohjelmoijalle, esimerkkejä, paketteja, ohjeita. Paljon valmista kamaa yhdellä komennolla.
2. http://pub.dartlang.org/ free stuff, but follow the rules, when making your own package: layout conventions, versioning philosophy... aso.
1. Ryhdyin tekemään dawo (Dart Work) pakettia Dart:in pub-pakettijakeluun, ideani esillä gitHub:issa. (Mulla kun on niin paljon vapaata aikaa:)
Heikki Lappalainen @etanatikku 23.9.2013
TRANSLATION TO ENGLISH.. coming... wait...
Let google translator do the job.. so here it is:
5 Dawo: The dream long way, version 0.0.0 only empty frames. lol But it can be downloaded from the Web and keep track of (possible) development.
4 Dawo: constantly upgrading my computer to my files in three. When you recycle them Pub in through, I need to make changes only in one place
3 Dream: Dawo: Ready for the new working environment Dart programmer, examples, packages and instructions. A lot of finished stuff with a single command.
2 http://pub.dartlang.org/ free stuff, but follow the rules, when making your own package: layout conventions, versioning philosophy ... aso.
1 I started to do Dawo (Dart Work) Dart package in the pub-parcel, present my ideas on GitHub:
(I've got when you have so much free time :)
Heikki Lappalainen @ etanatikku 23/09/2013
BUT Problems: I must learn: Layout Conventions, Entrypoint, Example folder.. aso.
Do'nt yet know, how to make this work, how I can get my folders to Pub..
I have put some of it in example folder, but don't want to make 0.0.1 version, before I have much more stuff. Long way to go...
.
4. dawo: Päivitän jatkuvasti tiedostojani kolmeen tietsikkaan. Kun kierrätän ne Pub:in kautta, minun pitää tehdä muutokset vain yhteen paikkaan
3. Unelma: dawo: Valmis työ-ympäristö uudelle Dart-ohjelmoijalle, esimerkkejä, paketteja, ohjeita. Paljon valmista kamaa yhdellä komennolla.
2. http://pub.dartlang.org/ free stuff, but follow the rules, when making your own package: layout conventions, versioning philosophy... aso.
1. Ryhdyin tekemään dawo (Dart Work) pakettia Dart:in pub-pakettijakeluun, ideani esillä gitHub:issa. (Mulla kun on niin paljon vapaata aikaa:)
Heikki Lappalainen @etanatikku 23.9.2013
TRANSLATION TO ENGLISH.. coming... wait...
Let google translator do the job.. so here it is:
5 Dawo: The dream long way, version 0.0.0 only empty frames. lol But it can be downloaded from the Web and keep track of (possible) development.
4 Dawo: constantly upgrading my computer to my files in three. When you recycle them Pub in through, I need to make changes only in one place
3 Dream: Dawo: Ready for the new working environment Dart programmer, examples, packages and instructions. A lot of finished stuff with a single command.
2 http://pub.dartlang.org/ free stuff, but follow the rules, when making your own package: layout conventions, versioning philosophy ... aso.
1 I started to do Dawo (Dart Work) Dart package in the pub-parcel, present my ideas on GitHub:
(I've got when you have so much free time :)
Heikki Lappalainen @ etanatikku 23/09/2013
BUT Problems: I must learn: Layout Conventions, Entrypoint, Example folder.. aso.
Do'nt yet know, how to make this work, how I can get my folders to Pub..
I have put some of it in example folder, but don't want to make 0.0.1 version, before I have much more stuff. Long way to go...
.
torstai 12. syyskuuta 2013
My Starred Items in Dartlang Issues
ID Type Status Priority Area Milestone Owner Summary AllLabels
88 Enhancement Accepted Medium Language Later gbra...google.com Enhancement: Enum Area-Language, Milestone-Later, Priority-Medium, Type-Enhancement
983 Enhancement Triaged Medium Language Add a Python-like slice operator for lists and strings Area-Language, Priority-Medium, Type-Enhancement
3755 Enhancement Accepted Medium Language Later gbra..google.com Feature request: support for nested classes. Area-Language, Milestone-Later, Priority-Medium, Type-Enhancement
3888 Enhancement Accepted Medium Language Later gbra..google.com Enhancement: Allow extending num, String etc. Area-Language, Milestone-Later, Priority-Medium, Type-Enhancement
4253 Enhancement Accepted Medium Language Later gbra.google.com Class private fields and methods Area-Language, Milestone-Later, Priority-Medium, Type-Enhancement
5381 Enhancement Accepted Medium Language Python-style function decorators Area-Language, Priority-Medium, Type-Enhancement
5675 Defect Triaged Medium Language gbra.google.com Loop variables cannot be const Area-Language, Priority-Medium, Type-Defect
5680 Enhancement Accepted Medium Language gbra..google.com Remove the 'new' keyword for invoking constructors Area-Language, Priority-Medium, Type-Enhancement
5741 Enhancement Accepted Medium Language gbra.google.com Expand do/while loops to allow bodies both before and after the test. Area-Language, Priority-Medium, Type-Enhancement
5750 Enhancement Accepted Medium Editor M7 pqui google.com Plugin Dartium Provisioning to add Dartium to Eclipse plug-in. Area-Editor, Editor-Plugin, Milestone-M7, Plugin, Priority-Medium, Type-Enhancement
6943 Defect Accepted Medium Language gbra..google.com Support environment-specific libraries Area-Language, Priority-Medium, Type-Defect
7002 Defect Triaged Medium Language syntax support for Stream programming Area-Language, Priority-Medium, Type-Defect
7023 Enhancement Triaged Medium Language Add "Spread operator" Area-Language, Priority-Medium, Type-Enhancement
7780 Defect Accepted Medium Language Extending or implementing Function should be legal Area-Language, C1, Priority-Medium, Type-Defect
9448 Defect Triaged Medium Editor Later pqui google.com No automatic update Area-Editor, Milestone-Later, Priority-Medium, Type-Defect
9991 Enhancement Accepted Medium Language gbra..google.com scoped object extensions Area-Language, C1, Priority-Medium, Type-Enhancement
10374 Defect Triaged Medium Language introduce struct (lightweight class) Area-Language, Priority-Medium, Type-Defect
10422 Defect Triaged Medium Language Add Option type to Dart Area-Language, Priority-Medium, Type-Defect
10667 Enhancement Triaged Medium Language Make classes first-class citizens Area-Language, Priority-Medium, Type-Enhancement
10715 Defect Accepted Medium Pub rny google.com pub install not working on win 7 64 bit Area-Pub, Priority-Medium, Type-Defect
10751 Enhancement Triaged Medium Language Language Feature Request: extend cascade operator to declarations Area-Language, Priority-Medium, Type-Enhancement
10953 Defect Triaged Medium Editor M7 pquits...google.com [eclipse plugin] pub non executable after update Area-Editor, Milestone-M7, Priority-Medium, Type-Defect
11130 Defect Accepted Unassigned Language gbr google.com Consider addig typecase Area-Language, Priority-Unassigned, Type-Defect
11715 Defect Triaged Unassigned Language Allow multidimensional arrays in Dart Area-Language, Priority-Unassigned, Type-Defect
11923 Defect Triaged Unassigned Language class literals should allow generics Area-Language, Priority-Unassigned, Type-Defect
11975 Enhancement Triaged Medium Language kaspe google.com Part directive confusion Area-Language, Priority-Medium, Type-Enhancement
12460 Enhancement Accepted Unassigned Language gbra...google.com support private _main in Dart? Area-Language, Priority-Unassigned, Type-Enhancement
12606 Enhancement Accepted Unassigned Language gbra...google.com Support understands() method/construct on objects Area-Language, C1, Priority-Unassigned, Type-Enhancement
12697 Defect Triaged Unassigned Language Provide better, shorter syntax for simple loops Area-Language, Priority-Unassigned, Type-Defect
13261 Defect New Unassigned Add extendable map class Priority-Unassigned, Type-Defect
OU! Looks a little messy.. maybe I must try to improve this....
sunnuntai 30. kesäkuuta 2013
Tämä blogi ja DART-opintojeni edistyminen. DART M5 vaihe. Linkkejä.
Tämän blogin tarkoitus siis on vain dokumentoida Dart-kielen syntyvaiheet ja oma oppimiseni. Tällä ei ehkä ole paljon annettavaa kielen opiskelijalle. Kun 1.0 versio tulee, ei taida olla enään mitään syytä ylläpitää tätä.. kai..
DART linkkejä:
https://github.com/jpedrosa/reluzir/blob/master/learn_dart_in_15_minutes/learn_dart_in_15_minutes.dart Hieno DART-ohjelma joka käy läpi ominaisuuksia ja rakenteita.
http://www.dartlang.org/docs/tutorials/indexeddb/ Upea esitys DART Indexed-DB aiheesta. Hienot kuvat, todella havainnollinen esitys.
STREAMS ja EVENTS ovat aika keskeinen aihe DART-kielessä. Opiskeluni keskittyy Web-UI:n lisksi aika paljon siihen. Missä vaiheessa olen? Ehkä voisi sanoa, että.. 80%, se on hyvin varovainen arvio... Käytännön ohjelmointitaitoni on varsin alkeellinen, teoriatietoa ja muistitietoa sensijaan on... niiden yhdistäminen käytäntöön on sitten eri asia.
http://www.dartlang.org/slides/2013/06/dart-streams-are-the-future.pdf diasarja,
Asynchronous programming in Dart, Streams are The future.
http://dartlangfr.net/dart-cheat-sheet/ DART-lunttilappu. Olisi syytä tehdä itselleen tällainen nelipalstainen, printattava, missä olisi tärkeimmät rakenteet. Aloin jo tekemään sitä kynällä...
DART EDITORI: Editorissa on syytä tarkkailla oikeaa alakulmaa: Tämä, "Building Workspace" vaihe voi joskus kestää aika kauan. Hakemistoissa voi määritellä: "Älä analysoi", jolloinka editorilla voi työskennellä paremmin jonkun muun koodin kimpussa. Äkkinäinen voi muuten tuskastua DART:in toimimattomuuteen. Edellinen uudistus teki DART-editorista huikean nopean, se oli tämä M5 vaihe. Todella upeata.
Asiat rullaavat vakaasti eteenpäin; Uuutta materiaalia tulee viikoittain huikeat määrät ja kysymykset StackOverflowssa lisääntyvät. Koskahan 1.0 versio tulee, ja millaiset uudet apuvälineet siinä on mukana? Jännän äärellä ollaan.
.
DART linkkejä:
https://github.com/jpedrosa/reluzir/blob/master/learn_dart_in_15_minutes/learn_dart_in_15_minutes.dart Hieno DART-ohjelma joka käy läpi ominaisuuksia ja rakenteita.
http://www.dartlang.org/docs/tutorials/indexeddb/ Upea esitys DART Indexed-DB aiheesta. Hienot kuvat, todella havainnollinen esitys.
STREAMS ja EVENTS ovat aika keskeinen aihe DART-kielessä. Opiskeluni keskittyy Web-UI:n lisksi aika paljon siihen. Missä vaiheessa olen? Ehkä voisi sanoa, että.. 80%, se on hyvin varovainen arvio... Käytännön ohjelmointitaitoni on varsin alkeellinen, teoriatietoa ja muistitietoa sensijaan on... niiden yhdistäminen käytäntöön on sitten eri asia.
http://www.dartlang.org/slides/2013/06/dart-streams-are-the-future.pdf diasarja,
Asynchronous programming in Dart, Streams are The future.
http://dartlangfr.net/dart-cheat-sheet/ DART-lunttilappu. Olisi syytä tehdä itselleen tällainen nelipalstainen, printattava, missä olisi tärkeimmät rakenteet. Aloin jo tekemään sitä kynällä...
DART EDITORI: Editorissa on syytä tarkkailla oikeaa alakulmaa: Tämä, "Building Workspace" vaihe voi joskus kestää aika kauan. Hakemistoissa voi määritellä: "Älä analysoi", jolloinka editorilla voi työskennellä paremmin jonkun muun koodin kimpussa. Äkkinäinen voi muuten tuskastua DART:in toimimattomuuteen. Edellinen uudistus teki DART-editorista huikean nopean, se oli tämä M5 vaihe. Todella upeata.
Asiat rullaavat vakaasti eteenpäin; Uuutta materiaalia tulee viikoittain huikeat määrät ja kysymykset StackOverflowssa lisääntyvät. Koskahan 1.0 versio tulee, ja millaiset uudet apuvälineet siinä on mukana? Jännän äärellä ollaan.
.
Tunnisteet:
BlogiETDART,
DartCode,
DartOpiskelu
keskiviikko 3. huhtikuuta 2013
Dart-data tiedostojen säilyttäminen muualla kuin omassa Windows-hakemistossa.
DartEditorin kansioiden käsittely on automaattista ja ongelmatonta. Ongelmia voi tietenkin luoda keinotekoisesti, jos haluaa: rupeaa pitämään tiedostoja muussa kuin oletus-sijainneissa.
Olen nyt kuitenkin 5.4.2013 päätymss siihen, että annan DartEditorin vapaasti rakentaa dart -kansion omaan Windows (@home) hakemistooni. Sinne editori sitten kopioi mm. esimerkki-ohjelmat (samples) kun klikkaan ne auki.
Samaan @home windows hakemistooni se tekee DartEditor kansion, jossa on .metadata.
Omat Julkinen-kansiossa olevat data-tiedostoni avaan sitten Editorin File/ Open Folder komennolla.
Sivustolla http://www.dartlang.org/docs/editor/troubleshoot.html on jo aika hyvät ohjeet editorin asentamisesta Windowsissa...
Tämä artikkeli on loppuosaltaan aika sekava... lukeminen ei hyödytä. tuohon ylös lisäämäni kertoo jo oikeastaan tärkeimmän...
Haluan pitää Dart-data tiedostoni Windowsin julkinen kansiossa, koska olen tottunut käyttämään tiedostoja sieltä. Windowsin kansio-systeemi on alkeellinen, tuhoutumisaltis ja hankala käyttää.
Julkisessa minulla on kaikki koko ajan nopeasti käsillä.
Darteditori oletusarvoisesti säilyttää .metadata-tiedostot @ user home hakemistoon.
Merkkaan siis dart\darteditor.ini tiedostoon -data kohdan alle sen tilalle rivin:
C:\Users\Public\dawo
Nyt kun päivitin 20602 editorin, ini-tiedosto tavan mukaan päivittyi mukana, ja minun pitää taas asettaa tuo tieto uudestaan. Vanha pää ei tahdo muistaa tätä proceduuria: Kuinkas se nyt menikään?
En voikaan DartEditorissa avata omaa dawo (dart-work) kansiota, koska se sisältää dart-editorin työtilan. Editorilla on siis kolme eri kansiota
dart ohjelmatiedostot, SDK ym,
dawo oma data-kansioni.. jonka avaan / (installoin) joka kertaa uudestaan editorin File / Open New folder-valikosta.
Mutta: dawo-kansioni sijaintia minun ei pidä tallettaa minnekään; minä vain avaan sen tuosta editorin file / open folder valikosta...
Nyt olen jo melkein valmis alistumaan :) editorin pompotukseen; se pitäköön mitkä tiedostot haluaa omassa Windows7% käyttäjähakemistossani. Minä en sinne koske...
Minä käytän vain C:\Users\Public\dawo kansiotani... :) hauskaa.
Linux / Ubuntu :ssa darteditor ini:ssä on: @user.home/.dartEditor
Windowsissa dart-editori.ini tiedostossa on rivi @User\home\DartEditor
Kokonaisuudessaan darteditor.ini -tiedosto on siis...
-data
@User\home
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx1000m
Kun avaa dart-kansiossa olevan samples/swipe tai jonkun muun ohjelman, dart editori tekee omaan Windows-kansiooni dart-kansion, jossa on tämän swipen tiedostoja...
Voin avata Samples kansion myös suoraan DartEditori File/OpenFolder -valikosta. Silloin näitä ylimääräisiä kansioita ei synny, mutta: näin en siis voi käyttää Wellcome-ruutua...
Kesken: minun pitää vielä selventää tätä ohjetta..
x
Olen nyt kuitenkin 5.4.2013 päätymss siihen, että annan DartEditorin vapaasti rakentaa dart -kansion omaan Windows (@home) hakemistooni. Sinne editori sitten kopioi mm. esimerkki-ohjelmat (samples) kun klikkaan ne auki.
Samaan @home windows hakemistooni se tekee DartEditor kansion, jossa on .metadata.
Omat Julkinen-kansiossa olevat data-tiedostoni avaan sitten Editorin File/ Open Folder komennolla.
Sivustolla http://www.dartlang.org/docs/editor/troubleshoot.html on jo aika hyvät ohjeet editorin asentamisesta Windowsissa...
Tämä artikkeli on loppuosaltaan aika sekava... lukeminen ei hyödytä. tuohon ylös lisäämäni kertoo jo oikeastaan tärkeimmän...
Haluan pitää Dart-data tiedostoni Windowsin julkinen kansiossa, koska olen tottunut käyttämään tiedostoja sieltä. Windowsin kansio-systeemi on alkeellinen, tuhoutumisaltis ja hankala käyttää.
Julkisessa minulla on kaikki koko ajan nopeasti käsillä.
Darteditori oletusarvoisesti säilyttää .metadata-tiedostot @ user home hakemistoon.
Merkkaan siis dart\darteditor.ini tiedostoon -data kohdan alle sen tilalle rivin:
C:\Users\Public\dawo
Nyt kun päivitin 20602 editorin, ini-tiedosto tavan mukaan päivittyi mukana, ja minun pitää taas asettaa tuo tieto uudestaan. Vanha pää ei tahdo muistaa tätä proceduuria: Kuinkas se nyt menikään?
En voikaan DartEditorissa avata omaa dawo (dart-work) kansiota, koska se sisältää dart-editorin työtilan. Editorilla on siis kolme eri kansiota
dart ohjelmatiedostot, SDK ym,
dawo oma data-kansioni.. jonka avaan / (installoin) joka kertaa uudestaan editorin File / Open New folder-valikosta.
Mutta: dawo-kansioni sijaintia minun ei pidä tallettaa minnekään; minä vain avaan sen tuosta editorin file / open folder valikosta...
Nyt olen jo melkein valmis alistumaan :) editorin pompotukseen; se pitäköön mitkä tiedostot haluaa omassa Windows7% käyttäjähakemistossani. Minä en sinne koske...
Minä käytän vain C:\Users\Public\dawo kansiotani... :) hauskaa.
Linux / Ubuntu :ssa darteditor ini:ssä on: @user.home/.dartEditor
Windowsissa dart-editori.ini tiedostossa on rivi @User\home\DartEditor
Kokonaisuudessaan darteditor.ini -tiedosto on siis...
-data
@User\home
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx1000m
Kun avaa dart-kansiossa olevan samples/swipe tai jonkun muun ohjelman, dart editori tekee omaan Windows-kansiooni dart-kansion, jossa on tämän swipen tiedostoja...
Voin avata Samples kansion myös suoraan DartEditori File/OpenFolder -valikosta. Silloin näitä ylimääräisiä kansioita ei synny, mutta: näin en siis voi käyttää Wellcome-ruutua...
Kesken: minun pitää vielä selventää tätä ohjetta..
x
tiistai 2. huhtikuuta 2013
What do I hope Dartlang to catch before 1.0 release?
Googles new Web-programming language, Dart, will soon be in it's 1.0 state.. maybe at the end of year 2013.
When i think especially new programmers, what are the language & tools, that's still missing?
What do I hope, that there will be, in 1.0 release?
Dart team is making great work, but still there is many things to wait for:
1. Small, simple example-programs for beginners & newcomers. Plenty of them. Examples are now much too complicated for beginners. Like: templates, in Eclipse.
2. Smart wizard for helping in simple & elementary syntax proglems, for people, who are first time using Dart. Or who are first time using any programmin language.
3. Editor; keep it simple :) .Maybe little task / note / planning system... & MyOwnCheatSheet.
Plugin to Eclipse works fine, when someone wants more complicated system!
4. DTM-Dart, Easy, simple & short Dart Tips for Mobile phone readers.
5. DartLang calendar for to mark events, broadcasts, hangouts..to collect people together.
This is just for fun & decoration... Helping newcomers in quick beginning.
6. Solving (installation) problems for Windows users, Java-plugin (?!) firewalls & so.
I wonder if other Windows user are experiencing difficulties to start DartEditor..
7. How-To-Use extensions for Pub-packages. so. cover round the libraries, desktop.
I have the package, but what do I do with it?
8. It's spring, & summer is coming, people are moving, want to listen DartLang!
Need podcasts to mobile phone... I'm working in garden & want to learn.
9. Android-App to track DartLang growing, numbers in Stack, g+, git.. how many people are involved in learning dartlang... Nice steady growing graphics.
10. Android-app to follow dartlang discussion in mobile phone. Or is it just my old mobile, where I can not follow it?
11. In Dart Api:s possiblility to mark, classify, keep unread classes / pages. Possibility to Read-Next, Read-Previous... Now reading exp. dart:collection is quite hard. What there is important for me?
12. DartLang for children. Whit new language should be also new ways to learn. There is no reason why children in 8 or 10 years old, should not be learning programming. Exept their envious olders.
13. Programming should be an other language for all of us.
And language itself... i hope better connections to databases...
not ready... quick writing... will continue editing..
.
When i think especially new programmers, what are the language & tools, that's still missing?
What do I hope, that there will be, in 1.0 release?
Dart team is making great work, but still there is many things to wait for:
1. Small, simple example-programs for beginners & newcomers. Plenty of them. Examples are now much too complicated for beginners. Like: templates, in Eclipse.
2. Smart wizard for helping in simple & elementary syntax proglems, for people, who are first time using Dart. Or who are first time using any programmin language.
3. Editor; keep it simple :) .Maybe little task / note / planning system... & MyOwnCheatSheet.
Plugin to Eclipse works fine, when someone wants more complicated system!
4. DTM-Dart, Easy, simple & short Dart Tips for Mobile phone readers.
5. DartLang calendar for to mark events, broadcasts, hangouts..to collect people together.
This is just for fun & decoration... Helping newcomers in quick beginning.
6. Solving (installation) problems for Windows users, Java-plugin (?!) firewalls & so.
I wonder if other Windows user are experiencing difficulties to start DartEditor..
7. How-To-Use extensions for Pub-packages. so. cover round the libraries, desktop.
I have the package, but what do I do with it?
8. It's spring, & summer is coming, people are moving, want to listen DartLang!
Need podcasts to mobile phone... I'm working in garden & want to learn.
9. Android-App to track DartLang growing, numbers in Stack, g+, git.. how many people are involved in learning dartlang... Nice steady growing graphics.
10. Android-app to follow dartlang discussion in mobile phone. Or is it just my old mobile, where I can not follow it?
11. In Dart Api:s possiblility to mark, classify, keep unread classes / pages. Possibility to Read-Next, Read-Previous... Now reading exp. dart:collection is quite hard. What there is important for me?
12. DartLang for children. Whit new language should be also new ways to learn. There is no reason why children in 8 or 10 years old, should not be learning programming. Exept their envious olders.
13. Programming should be an other language for all of us.
And language itself... i hope better connections to databases...
not ready... quick writing... will continue editing..
.
maanantai 1. huhtikuuta 2013
DartEditor Plugin asentaminen Eclipse editoriin ja Eclipsen.ini -tiedoston PATH muuttujan muokkaus.
Onko ongelmia Eclipse Java:n DartEditor Plugin kanssa? RATKAISTU.
HP-koneessani Eclipse C++ ja Eclipse-JAVA toimivat heti ongelmitta..
DartEditor plugin asentaminen jälkimmäiseen meni ongelmitta...
PB-koneessani Eclipse-JAVA ei alkanut toimimaan... Luultavasti se ei löydä
JDK:ta tai JRE:tä Windows 7:ssä siis nämä kaikki, molemmat koneet.
En halua muokata Windows7 PATH-ympäristömuuttujaa, joten pitää mennä ronkkimaan
Eclipsen eclipse.ini -tiedostoa.. StackOverFlow:sta löysin ohjeet.
PB Eclipse-JAVA:n eclipse.init tiedosto on tekemäni muokkauksen jälkeen tämmöinen:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Lisäsin siis tuon -vm ja sen jälkeisen path-rivin, täältä saamani ohjeen mukaan:
http://stackoverflow.com/questions/8824131/eclipse-will-not-launch-on-my-windows-7-system-jre-not-found-error Lainaus StackOverflow tekstistä:
" - The -vm option and its value (the path) must be on separate lines.
Minun ei tarvinnut asentaa noita lainausmerkkejä. TOIMII!! :)
SEURAAVAKSI: DartEditor plugin asentaminen...menee varmaan ongelmitta:
Etsi verkosta: Dart Editor Plugin for Eclipse.
http://news.dartlang.org/2012/08/dart-plugin-for-eclipse-is-ready-for.html
http://blog.dartwatch.com/2013/01/integrating-dart-into-eclipse-and-your.html
Ruudut ei ole ihan niin kuin ohjeessa.. en löydä nyt: available software pages...
Merkkasin http://www.dartlang.org/eclipse/update/ yhteen kohtaan.. katsotaan.
Dartiumin linkittäminen ohjelman ajamiseen on sitten eri juttu KESKEN
Pientä renkkausta: palomuuri ei ehkä heti päästänyt kyselyjä läpi, luvat annettiin..
Voi ehkä vaatia uudelleen käynnistyksen. Etsitty sivua ei löytynyt...
KESKEN.
Mainittakoon, että eclipse c++ Eclipse.ini tiedostoni on PB-koneessa tällainen:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
HP-koneessani Eclipse C++ ja Eclipse-JAVA toimivat heti ongelmitta..
DartEditor plugin asentaminen jälkimmäiseen meni ongelmitta...
PB-koneessani Eclipse-JAVA ei alkanut toimimaan... Luultavasti se ei löydä
JDK:ta tai JRE:tä Windows 7:ssä siis nämä kaikki, molemmat koneet.
En halua muokata Windows7 PATH-ympäristömuuttujaa, joten pitää mennä ronkkimaan
Eclipsen eclipse.ini -tiedostoa.. StackOverFlow:sta löysin ohjeet.
PB Eclipse-JAVA:n eclipse.init tiedosto on tekemäni muokkauksen jälkeen tämmöinen:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Lisäsin siis tuon -vm ja sen jälkeisen path-rivin, täältä saamani ohjeen mukaan:
http://stackoverflow.com/questions/8824131/eclipse-will-not-launch-on-my-windows-7-system-jre-not-found-error Lainaus StackOverflow tekstistä:
" - The -vm option and its value (the path) must be on separate lines.
- The value must be the full absolute path to the Java executable, not just to the Java home directory.
- The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM."
Oli vielä lisähuomaustus: try placing the path in between quotations like "c:\program files\java\jre7\bin\javaw Kysymys oli 14 kuukauden takaa...Minun ei tarvinnut asentaa noita lainausmerkkejä. TOIMII!! :)
SEURAAVAKSI: DartEditor plugin asentaminen...menee varmaan ongelmitta:
Etsi verkosta: Dart Editor Plugin for Eclipse.
http://news.dartlang.org/2012/08/dart-plugin-for-eclipse-is-ready-for.html
http://blog.dartwatch.com/2013/01/integrating-dart-into-eclipse-and-your.html
Ruudut ei ole ihan niin kuin ohjeessa.. en löydä nyt: available software pages...
Merkkasin http://www.dartlang.org/eclipse/update/ yhteen kohtaan.. katsotaan.
Dartiumin linkittäminen ohjelman ajamiseen on sitten eri juttu KESKEN
Pientä renkkausta: palomuuri ei ehkä heti päästänyt kyselyjä läpi, luvat annettiin..
Voi ehkä vaatia uudelleen käynnistyksen. Etsitty sivua ei löytynyt...
KESKEN.
Mainittakoon, että eclipse c++ Eclipse.ini tiedostoni on PB-koneessa tällainen:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Siinä ei ole mainintaa PATH - jre, jdk... ?
lauantai 23. maaliskuuta 2013
Path ympäristömuuttujan asettaminen Dart / Pub Pakettien asentamiseen Windows 7:ssä
Setting Path environment variables in Windows7 for Pub Packages in dart:
Now I have something wrong... can't get Pub packages....
Hahaa: problem was only: : Dont write: dice: BUT dice without :
Instruction in dartlang and Editors window were little confusing....
No need to read further..... SOLVED. No need to set path either...
Now I have something wrong... can't get Pub packages....
Hahaa: problem was only: : Dont write: dice: BUT dice without :
Instruction in dartlang and Editors window were little confusing....
No need to read further..... SOLVED. No need to set path either...
perjantai 22. maaliskuuta 2013
Täydellinen paketti Dart kielen opiskeluun.
Tämä on hieno paketti Dartin itsenäiseen opiskeluun; järjestelmällisesti alusta alkaen, kurssimuotoinen linkkeineen ja oppiaineineen. Esimerkit GitHubissa.
Kurssi perustuu kirjaan Dart Up_And Running.
http://ondart.me/web_programming.md
Dzenan Ridjanovic has updated his self-paced resources for learning web programming with Dart to milestone 3. This list of resources and learning guide is useful for anyone wanting to start out web programming.
Kurssi perustuu kirjaan Dart Up_And Running.
http://ondart.me/web_programming.md
Dzenan Ridjanovic has updated his self-paced resources for learning web programming with Dart to milestone 3. This list of resources and learning guide is useful for anyone wanting to start out web programming.
maanantai 18. maaliskuuta 2013
Tietokanta keskustelua ja linkkejä Dart ohjelmointikielessä.
Se on kaikki tietokantaa.. it's all about data.
Hyvä ja pitkä ihmettely tietokantojen puuttumisesta Dart:ista.
https://groups.google.com/a/dartlang.org/d/msg/misc/Uv05GvFTsLU/UsMABfztF4sJ
Hyvä kooste tietokanta-elementeistä ja ohjelmista Dartissa. Linkkejä...
https://groups.google.com/a/dartlang.org/d/msg/misc/Uv05GvFTsLU/wcz8hF4anhUJ
Tietokanta on juuri se alue, joka minua kiinnostaa eniten.
.
Hyvä ja pitkä ihmettely tietokantojen puuttumisesta Dart:ista.
https://groups.google.com/a/dartlang.org/d/msg/misc/Uv05GvFTsLU/UsMABfztF4sJ
Hyvä kooste tietokanta-elementeistä ja ohjelmista Dartissa. Linkkejä...
https://groups.google.com/a/dartlang.org/d/msg/misc/Uv05GvFTsLU/wcz8hF4anhUJ
Tietokanta on juuri se alue, joka minua kiinnostaa eniten.
.
perjantai 15. maaliskuuta 2013
About Dart functions and Closures, Dart funktiot ja sulkemiset
Understanding Closures.. hard.. and Functions. (spec: Functions abstract over executable actions)
This conversation is from:
https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/NOuoGrxW2nE
https://groups.google.com/a/dartlang.org/d/msg/misc/NOuoGrxW2nE/DHTVT-_qq40J
Direct link to just this piece of conversation.. Great!!
Alex Tatumizer Mar 14 (16 hours ago)
@Ladislav:
This conversation is from:
https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/NOuoGrxW2nE
https://groups.google.com/a/dartlang.org/d/msg/misc/NOuoGrxW2nE/DHTVT-_qq40J
Direct link to just this piece of conversation.. Great!!
Alex Tatumizer Mar 14 (16 hours ago)
@Ladislav:
Somehow, I overlooked the fact that whatever is called Function in dart in fact doesn't correspond to javascript notion of Function - it's really a closure, e.g.
Function f="abcd".substring;
print(f(0,2));
This is a great feature, so I withdraw my sarcasm. I thought dart makes distinction between Function (as pointer to function "codes") and Closure, but it probably doesn't.
Won't it be better to call it Closure, not Function then, to avoid confusion?
Ladislav Thon asvered:
Function is just something that can be called. Even this, I believe:
class Answer {
call() => 42;
}
main() {
var a = new Answer();
print(a());
print(a is Function);
}
Some Functions are in fact closures, meaning that they carry their lexical environment, but not all of them. I'm not sure about renaming Function to Closure, I think it would make some situations more clear and some less.
Tatumizer ansvered:
Probably you are right, but then things get a bit confusing indeed for anyone coming from javascript (huge army of potential dart users).
Orthogonality in programming language design is the ability to use various language features in arbitrary combinations with consistent results.[9] This usage was introduced by von Wijngaarten in the design of Algol 68:
The number of independent primitive concepts has been minimized in order that the language be easy to describe, to learn, and to implement. On the other hand, these concepts have been applied “orthogonally” in order to maximize the expressive power of the language while trying to avoid deleterious superfluities.[10]
Orthogonality is a system design property which guarantees that modifying the technical effect produced by a component of a system neither creates nor propagates side effects to other components of the system. Typically this is achieved through the separation of concerns and encapsulation, and it is essential for feasible and compact designs of complex systems. The emergent behavior of a system consisting of components should be controlled strictly by formal definitions of its logic and not by side effects resulting from poor integration, i.e. nonorthogonal design of modules and interfaces. Orthogonality reduces testing and development time because it is easier to verify designs that neither cause side effects nor depend on them.
An instruction set is said to be orthogonal if it lacks redundancy (i.e. there is only a single instruction that can be used to accomplish a given task)[11] and is designed such that instructions can use any register in any addressing mode. This terminology results from considering an instruction as a vector whose components are the instruction fields. One field identifies the registers to be operated upon, and another specifies the addressing mode. An orthogonal instruction setuniquely encodes all combinations of registers and addressing modes.[citatio
Look at "Tour of the dart language" - they are talking about functions AND closures, without elaborating on subtleties - but this are very important subtleties, deserved to be featured much more prominently.
Needs to be better documented maybe?
Check link for more conversation...
And next theme: Orthogonal Wikipedia:
Computer science
The number of independent primitive concepts has been minimized in order that the language be easy to describe, to learn, and to implement. On the other hand, these concepts have been applied “orthogonally” in order to maximize the expressive power of the language while trying to avoid deleterious superfluities.[10]
Orthogonality is a system design property which guarantees that modifying the technical effect produced by a component of a system neither creates nor propagates side effects to other components of the system. Typically this is achieved through the separation of concerns and encapsulation, and it is essential for feasible and compact designs of complex systems. The emergent behavior of a system consisting of components should be controlled strictly by formal definitions of its logic and not by side effects resulting from poor integration, i.e. nonorthogonal design of modules and interfaces. Orthogonality reduces testing and development time because it is easier to verify designs that neither cause side effects nor depend on them.
An instruction set is said to be orthogonal if it lacks redundancy (i.e. there is only a single instruction that can be used to accomplish a given task)[11] and is designed such that instructions can use any register in any addressing mode. This terminology results from considering an instruction as a vector whose components are the instruction fields. One field identifies the registers to be operated upon, and another specifies the addressing mode. An orthogonal instruction setuniquely encodes all combinations of registers and addressing modes.[citatio
perjantai 8. maaliskuuta 2013
Yksinkertainen DART ohjelmointi esimerkki, Luokkien periyttäminen. Extending DART Classes.
DART esimerkki, luokkien periyttäminen. Extending DART Classes
Tarkista koodin viimeinen versio linkistä:
https://github.com/heiklap/Simple-DART-Examples/blob/master/ape_man.dart
// apeman.dart 5.3.2013. simple dart example.
// for presenting how dart classes are created, extended and instantiated.
// developing this still further...
// This class exists simply for others to extend
class Ape {
String apeFood = "Eating juicy banana... ";
String apeJob = "Scratching my back..... ";
bool wannaMoreBananas = true;
num weightKg = 28;
}
// Human class learns something from apes and gives it forward..
// class human do not get instantiated (used) in this example..
class Human extends Ape {
String humanThinking = "What do others think about me..? ";
num weightKg = 78;
}
class HumansWife { // This class is here just to celebrate international Womans Day 8.3.
num weightKg = 67; // Will use this class in later programs
String OuSheIs = "Ou! She Is so... Eternal Inner Beauty... ";
}
// this class will have an instance AND it uses properties
// inherited from other classes
class Programmer extends Human {
String progJob = "Solving problems. And producing new and more complicated problems...";
num weightKg = 102; // and counting :( LOL!!
}
/*
main is where every DART program begins to execute. TYPE Void is strictly a note to You and your
programmer friends. It tells that main is not intended to return any value.
If there is num or String instead of void, THEN main would return a value.
*/
void main() {
print("Hei, Apina!! Terve, Ihminen! Moikka, ohjelmoija!! ");
// here Programmer class will be instantiated with keyword: new, to p.
// note, that class type: Programmer is with BIG P. Its instance is with SMALL p. !!
var p = new Programmer();
// Class programmer, p. !! uses some ancient ape skills witch it inherited..
// BUT NOTE: all these (p.apeFood and p. apeJob..) are now p. :s properties!!
print(p.apeFood); // Eating juicy banana...
print(p.apeJob); // Scratching my back.....
if (p.wannaMoreBananas) print('I Wanna More Bananas !!'); // I Wanna More Bananas !!
// Programmer class have also inherited all of human properties..
print(p.humanThinking); // What do others think about me..?
// this programmer do not have many his OWN skills yet,
// He thinks only his Job. Should give him more properties...
print(' You asking what I am doing?? ');
print(p.progJob); // "Solving problems. And producing new and more
// complicated problems..."
print(p.weightKg); // ( WTF!! This must be a BUG!!) Stomach overflow..
print("=== End of program ===");
}
/* Output of program should be this:
Hei, Apina!! Terve, Ihminen! Moikka, ohjelmoija!!
Eating juicy banana...
Scratching my back.....
What do others think about me..?
I Wanna More Bananas !!
You asking what I am doing??
"Solving problems. And producing new and more complicated problems..."
=== End of program ===
NEXT: Maybe some functions and more properties...
*/
lauantai 2. maaliskuuta 2013
Dart versionhallinta ja paketinjakelija, DART Pub Package Manager
Valikoin muutamia paketteja, joita tutkin tarkemmin.
I choosed some packets, witch I want to study closer.
http://pub.dartlang.org/packages/sqljocky MySQL connector for the Dart programming language.
http://pub.dartlang.org/packages/rikulo http://rikulo.org/projects/ui Rikulo UI is a free and open source Dart framework for creating incredible cross-platform web and native mobile applications using HTML5.
http://pub.dartlang.org/packages/mongo_dart server-side library with minimalistic support of MongoDb.
http://pub.dartlang.org/packages/bot A collection of (mostly) general libraries to make working with Dart more productive
http://pub.dartlang.org/packages/web_ui build web apps as if you had a browser from the future.
http://pub.dartlang.org/packages/hart The heart of any Dart app
http://pub.dartlang.org/packages/harvest Event store for Dart with multiple backends for easly creating event sourced applications on both the browser and VM.
http://pub.dartlang.org/packages/persistent Efficient Persistent Data Structures
http://pub.dartlang.org/packages/js The js.dart library allows Dart code running in the browser to manipulate JavaScript running in the same page. It is intended to allow Dart code to easily interact with third-party JavaScript libraries.
http://pub.dartlang.org/packages/google_tasks_v1_api Auto-generated client library for accessing the tasks v1 API.
Valintani perustui siihen, että olin keskusteluissa ja G+:ssa kuullut paketista, tai sen nimi / tyyppi kuulosti jotenkin hyvältä. Monta hyvää pakettia siis jäi sivuun, eikä tämä kokoelma välttämättä vastaa tarpeitani. Nyt kuitenkin nämä on talletettu kirjanmerkkeihin molemmissa koneissani.. tutkiminen ja soveltaminen alkaa.
http://pub.dartlang.org/ Welcome to pub.dartlang.org!
This is your friendly repository of packages of software for the Dart programming language. Explore packages here and install them using pub, the package manager for Dart.
.
I choosed some packets, witch I want to study closer.
http://pub.dartlang.org/packages/sqljocky MySQL connector for the Dart programming language.
http://pub.dartlang.org/packages/rikulo http://rikulo.org/projects/ui Rikulo UI is a free and open source Dart framework for creating incredible cross-platform web and native mobile applications using HTML5.
http://pub.dartlang.org/packages/mongo_dart server-side library with minimalistic support of MongoDb.
http://pub.dartlang.org/packages/bot A collection of (mostly) general libraries to make working with Dart more productive
http://pub.dartlang.org/packages/web_ui build web apps as if you had a browser from the future.
http://pub.dartlang.org/packages/hart The heart of any Dart app
http://pub.dartlang.org/packages/harvest Event store for Dart with multiple backends for easly creating event sourced applications on both the browser and VM.
http://pub.dartlang.org/packages/persistent Efficient Persistent Data Structures
http://pub.dartlang.org/packages/js The js.dart library allows Dart code running in the browser to manipulate JavaScript running in the same page. It is intended to allow Dart code to easily interact with third-party JavaScript libraries.
http://pub.dartlang.org/packages/google_tasks_v1_api Auto-generated client library for accessing the tasks v1 API.
Valintani perustui siihen, että olin keskusteluissa ja G+:ssa kuullut paketista, tai sen nimi / tyyppi kuulosti jotenkin hyvältä. Monta hyvää pakettia siis jäi sivuun, eikä tämä kokoelma välttämättä vastaa tarpeitani. Nyt kuitenkin nämä on talletettu kirjanmerkkeihin molemmissa koneissani.. tutkiminen ja soveltaminen alkaa.
http://pub.dartlang.org/ Welcome to pub.dartlang.org!
This is your friendly repository of packages of software for the Dart programming language. Explore packages here and install them using pub, the package manager for Dart.
.
lauantai 8. joulukuuta 2012
DART-yhteisö Google+ palvelussa
Tässä se on:
Dart-Community in Google+
.
Dart-Community in Google+
TIETOJA
This is a place to talk informally with other Dart developers.
Other good places: - dartlang.org - dartlang.org/mailing-list - stackoverflow.com - dartbug.com
torstai 29. marraskuuta 2012
Dart suomeksi. Dart:in suomentaminen. DartLang Tour suomeksi.
DartLang Tour käännettynä suomeksi.
Chapter 2. A Tour of the Dart Language: Suomeksi, suomennettuna..
Olen kääntämässä (vastoin parempaa tietoani) DartLang Tour-tiedostoa suomeksi.
Alkuperäinen engl. tiedosto on tässä:
Keskeneräinen käännöstyöni, joka alkaa olla valmis, löytyy tästä linkistä:
Ohjelmoijat eivät tarvitse käännöstä suomeksi. Ne, jotka aikovat ohjelmoijiksi, kyllä opettelevat englantia. Tämä on siis vain satunnaisia ohikulkijoita varten. Ja heille, jotka ovat vasta alkamassa opiskelua.
Programmers don’t need translation from english, they can read, and think on it.
Those who want to be programmers should quickly learn english and use it.
Those who want to be programmers should quickly learn english and use it.
So this is for casual bywalkers..
torstai 27. syyskuuta 2012
Getters and setters IN DART
Getters and setters
Getter and setter methods provide read and write access to internal object state. When calling a getter or setter, omit the trailing parentheses. Define getters and setters using the
getand set keywords.class Rectangle {
num left, top, width, height;
Rectangle(this.left, this.top, this.width, this.height);
num get right() => left + width;
set right(num value) => left = value - width;
num get bottom() => top + height;
set bottom(num value) => top = value - height;
}
Use explicit getters and setters just like you would use the generated getters and setters from instance variables.
var rect = new Rectangle(3, 4, 20, 15);
assert(rect.left == 3);
rect.right = 12;
assert(rect.left == -8);
With getters and setters, you can start with instance variables, later wrapping them with methods, all without changing client code
Methods in DART
This is drectly from Dartlang.tour 27.9.2012, spec is just changing
dartlang.org check last changes!
Methods
Methods are functions that provide behavior for an object.
Instance methods
Instance methods on objects can access instance variables and
this. The distanceTo() method in the following sample is an example of an instance method.#import('dart:math');
class Point {
num x, y;
Point(this.x, this.y);
num distanceTo(Point other) {
return sqrt(((x-other.x)*(x-other.x)) + ((y-other.y)*(y-other.y)));
}
}
Here’s how you invoke the distanceTo() method on an instance of Point:
var point = new Point(2, 2);
num distance = point.distanceTo(new Point(4,4));
assert(distance < 2.9 && distance > 2.8);Simple DART DEMO, Yksinkertainen DART esimerkki ohjelma
// Simple DART demo to show use of Control Flow-structure and varables
// that give it some control control. Done with Editor 12784 27.9.2012
// This is gonna be changed during coming days... Not happy with it..
// Also here is simple class and its instance in main structure.
// When buildin first DART programs it is better to begin with these small ones...
// Output of this is seen in editor Output windows
#import('dart:html');
var jobs = ['+1-Coffee','+2-Play Computer','3-Read Posts','4-Window watching','5-Hmmm'];
num jCount = jobs.length;
num jNow = 0;
class Listjobs {
// not so elegant...
num doJobs() {
num _i = 0;
for (_i = 0; _i < jCount; _i++){
print('Job To do now: ');
print(jobs[jNow]);
print('OK.');
jNow = jNow + 1;
}
return(jNow);
}
}
void main() {
print('listing jobs... $jCount');
var myListJobs = new Listjobs();
myListJobs;
myListJobs.doJobs();
print(' Lets DART AGAIN!! ');
}
In try dartlang http://try-dart-lang.appspot.com/ this seems to collect 5 errors,
but in my editor it runs without errors...
// that give it some control control. Done with Editor 12784 27.9.2012
// This is gonna be changed during coming days... Not happy with it..
// Also here is simple class and its instance in main structure.
// When buildin first DART programs it is better to begin with these small ones...
// Output of this is seen in editor Output windows
#import('dart:html');
var jobs = ['+1-Coffee','+2-Play Computer','3-Read Posts','4-Window watching','5-Hmmm'];
num jCount = jobs.length;
num jNow = 0;
class Listjobs {
// not so elegant...
num doJobs() {
num _i = 0;
for (_i = 0; _i < jCount; _i++){
print('Job To do now: ');
print(jobs[jNow]);
print('OK.');
jNow = jNow + 1;
}
return(jNow);
}
}
void main() {
print('listing jobs... $jCount');
var myListJobs = new Listjobs();
myListJobs;
myListJobs.doJobs();
print(' Lets DART AGAIN!! ');
}
In try dartlang http://try-dart-lang.appspot.com/ this seems to collect 5 errors,
but in my editor it runs without errors...
tiistai 25. syyskuuta 2012
Yksinkertainen TODO ohjelma DART-kielellä
Building a simple dartlang TODO app
+Victor Savkin put together a cool screencast for building a TODO app with #dartlang and +JetBrains WebStorm IDE.
Victor used his SimpleMVP framework: http://github.com/vsavkin/SimpleMVP
Aiheeseen liittyvä video on linkissä: http://vimeo.com/49728673
Siinä esitetään havainnollisesti ohjelman teko.
Aiheeseen liittyvä video on linkissä: http://vimeo.com/49728673
Siinä esitetään havainnollisesti ohjelman teko.
keskiviikko 29. elokuuta 2012
Can't send FeedBack in Dart Editor. Palautteen lähettäminen DartEditorissa ei onnistu.
Maaliskuusta lähtien palautteen lähettäminen on onnistunut.. en onnistunut selvittämään, miksi se ei aikaisemmin onnistunut.
Ongelman pohtimista aikaisemmin:
Hmm. This might be related to:
This versions of dart seem to demand Java 6 !!
You have not jre, or Java development kit; jdk.
I installed jdk under my dart program directory, and now it works
or: Try DartEditor in Linux/Ubuntu system....
And same in finish language:
Ja sama suomeksi:
Palautteen lähettäminen Dart Editorissa ei onnistu. Editorit 10994, 11397
Ratkaisu:
Ehkä Sinulla ei ole jre, Java Runtime environment
tai jdk, Java Development Kit
Nämä DartEditorin versiot siis taitavat vaatia version 6 noista edellämainituista.
Tai: Asenna koneeseen Linux, vaikka Windowsin sisälle ja käytä Editoria sieltä.
kokeilin lopulta kaikenlaista, sorkin joka paikkaa.. ehkä uusi editorin versio korjasia asian...
.
Ongelman pohtimista aikaisemmin:
Hmm. This might be related to:
This versions of dart seem to demand Java 6 !!
You have not jre, or Java development kit; jdk.
I installed jdk under my dart program directory, and now it works
or: Try DartEditor in Linux/Ubuntu system....
And same in finish language:
Ja sama suomeksi:
Palautteen lähettäminen Dart Editorissa ei onnistu. Editorit 10994, 11397
Ratkaisu:
Ehkä Sinulla ei ole jre, Java Runtime environment
tai jdk, Java Development Kit
Nämä DartEditorin versiot siis taitavat vaatia version 6 noista edellämainituista.
Tai: Asenna koneeseen Linux, vaikka Windowsin sisälle ja käytä Editoria sieltä.
kokeilin lopulta kaikenlaista, sorkin joka paikkaa.. ehkä uusi editorin versio korjasia asian...
.
Ongelma Dart-editorin asentamisessa. RATKAISTU
(Huom, nämä DartEditorin versiot näyttävät vaativan jre tai jdk version 6. Kun latasin JDK 6:n dart-hakemistooni, niin kaikki näyttää toimivan hyvin.)
Klikkaan editorin asennuspaketin kuvaketta (darteditor.exe) se avautuu, logo näkyy noin 5 sekunnin ajan, sitten Editori antaa pitkän virheilmoituksen:
" \DartEditor\.metadata" is read-only. "
Tällainen voisi liittyä ongelmaan, joka minulla oli editorien 10994 ja 11397 kanssa:
Windows Defender esti DartEditorin asentamisen, eikä edes antanut mitään varoitusta tai tiedotusta siitä. Ei, vaikka olen koneeni "Administrator".
DART-editori asennetaan toistaiseksi muista ohjelmista poikkeavalla tavalla; Siinä ei ole erillistä asennusohjelmaa, VAAN käyttäjän on avattava se "Windows pääkäyttäjänä", Administraattorina.
Vasta kun avasin kuvakkeen vartavasten hiiren OIKEAN painikkeen kautta "Windows Administrator:ina", sain asennusohjelman käynnistymään. Sitten minun piti normaaliin tapaan vastata: "Kyllä, haluan antaa tämän ohjelman tehdä muutoksia koneeseeni"
Nyt näyttää siltä, että minun on jatkossakin avattava DartEditori AINA Administratorina. Toisessa koneessani ei tätä ongelmaa ole, koska olen ymmärtänyt laittaa Windows Defenderin pois toiminnasta. Myöskin tämän koneen Linux/Ubuntu puolella asennus sujui ongelmitta.
Eiköhän tämäkin ongelma ratkea joskus...
Kysyin neuvoa tähän ongelmaan Dartlang keskusteluryhmässä:
Dart Editor FirstRun and missing User\Settings File
Minä törmäsin tähän ongelmaan, koska tavallisessa koneessani en käytä *Windows Defenderiä. Siksi se pääsi yllättämään niin pahasti toisessa koneessa.
Ohjelmoijat eivät yleensäkään käytä Windowsia juuri tämänkaltaisten asioiden takia.
Suosittelen Linuxia.
Huom! Nämä DartEditorin versiot näyttävät vaatiivan jre tai jdk 6-version.
Asensin JDK:n (Java Development Kit) 6:n dart hakemistooni, ja kaikki näyttää sitten toimivan hyvin.
Huom! Nämä DartEditorin versiot näyttävät vaatiivan jre tai jdk 6-version.
Asensin JDK:n (Java Development Kit) 6:n dart hakemistooni, ja kaikki näyttää sitten toimivan hyvin.
Problem installing Dart Editor, caused By Windows Defender. Solved.
Click EditorFile to install it, Logo is seen for 5 seconds, then you get long error message:
" \DartEditor\.metadata" is read-only. "
This might be connected to same problem, that I had with editors 10994 and 11397.
Windows Defender prevented DartEditor/installation from launching, and WD gave no warning or information about it. Editor logo was visible for 5 sec, and then I got DartEditor error message.. And I am The administrator in computer.
When I launched DartEditor "as Windows administrative" and answered: "Yes I want to allow this unknown program to ....", I got it installed. Now I must use this option also when launching editor, but I hope it will be solved soon...
I asked about this in: Dart Editor FirstRun and missing User\Settings File
.
tiistai 28. elokuuta 2012
DartEditor (11434) in windows7 Vista with Problems
Cant Launch DartEditor, it can't create Settings Folder, because: "Read Only" ??
Settled partly: Look at the end:
Editor 11434 Loaded To my bigger computer, HP, OK. (tought it was 11397---)
In smaller PB, also windows Vista, same problems contiunue...
DartEditor dont start... It cant make its settings file to <users personal folder>
I try to move folder from my HP, no succes.
.metadata is read only...
So, what next? Go to work? No. Seems I like to be stucked with problems. Can't leave them behind. And I know that only stupid and lazy people use Windows. I AM ashamed.
Any plans? little something:
A. Do check, what are the differencies between my 2 computers.
B. Try, try, boy... stuck your head to thick wall.. (never ever even dream of reading instructions).
C. Conflicting with Eclipse? so. settings... And why are Dart folders full of Eclipse stuff?
I thought i read ALL dart material, but this Eclipse thing i must have partly missed...
D. Windows security / FireWall, and so.
E. In HP /DartEditor I can not send FeedBack to Editor Group! Why?
How can i send mail directly to EditorTeam? where can I find their GMail @ ?
..to be continued.. forever... :)
Seems that this was all about stupid Windows Defender!
I opened now installation file in Windows with administrative priviledges. !! Neither Windows or editor warned me, that I must do it. Seems that I must now do it every time. I AM in Windows with full administrative priviledges!
Dart Editor is functionin, but I do not have now that .metadata folder.
Maybe I should put Windows defender to sleep, when I first time install DartEditor.
In my HP-computer I do not use defender and there I did not have these problems.
to be continued...
Settled partly: Look at the end:
Editor 11434 Loaded To my bigger computer, HP, OK. (tought it was 11397---)
In smaller PB, also windows Vista, same problems contiunue...
DartEditor dont start... It cant make its settings file to <users personal folder>
I try to move folder from my HP, no succes.
.metadata is read only...
So, what next? Go to work? No. Seems I like to be stucked with problems. Can't leave them behind. And I know that only stupid and lazy people use Windows. I AM ashamed.
Any plans? little something:
A. Do check, what are the differencies between my 2 computers.
B. Try, try, boy... stuck your head to thick wall.. (never ever even dream of reading instructions).
C. Conflicting with Eclipse? so. settings... And why are Dart folders full of Eclipse stuff?
I thought i read ALL dart material, but this Eclipse thing i must have partly missed...
D. Windows security / FireWall, and so.
E. In HP /DartEditor I can not send FeedBack to Editor Group! Why?
How can i send mail directly to EditorTeam? where can I find their GMail @ ?
..to be continued.. forever... :)
Seems that this was all about stupid Windows Defender!
I opened now installation file in Windows with administrative priviledges. !! Neither Windows or editor warned me, that I must do it. Seems that I must now do it every time. I AM in Windows with full administrative priviledges!
Dart Editor is functionin, but I do not have now that .metadata folder.
Maybe I should put Windows defender to sleep, when I first time install DartEditor.
In my HP-computer I do not use defender and there I did not have these problems.
to be continued...
Tilaa:
Blogitekstit (Atom)