Profile

Cover photo
Peter StJ
313,154 views
AboutPosts

Stream

Peter StJ

Shared publicly  - 
 
Така, ако някой случайно не знае, според тазгодишните абитуриенти най-добре било да се стане програмист.

Защо, чудите се. Много е просто: програмистите в чужбина взимали заплати 30000 (трийсет ХИЛЯДИ) евро на месец.

Тъкмо сега го търся този младеж в фейсбук, да ми каже къде ги дават тези 30 хиледи на месец, че да ходя и аз там да работя....
 ·  Translate
1
Add a comment...

Peter StJ

Shared publicly  - 
 
So this is now the Dart development story on Linux:

* purchase an IDE that is developed by a third party and has completely foreign shortcuts slowing you down at least 3 times and works at least twice slower than native dart editor (possibly because dart analyzer is not as fast as the java version?)
* try to use eclipse on Linux 32 bit - install eclipse Luna and then install the plugin and ... eclipse will never start again, it will just quit after the splash screen, no error on console or any sign on what went wrong
* try sublime text 3 - follow the instructions and install the dart bundle - it does not work, analyzer never starts and code navigation is broken

At this point I just say screw it, they just don't want me to use dart and that's it. 

So thanks for killing darteditor - it did you a great favor, no doubt.

Update:
* ST3 kind of works now, analyser is run but something with the options when parsing the result is broken, it 'almost' works.
* eclipse keeps krashing while loading dart related packages, tried with kepler - same thing.
* WebStorm is not that bad if you have the time to search for every possible shortcut you have been using before switching. Hint: ctrl+q to show help browser. However navigation to symbol/class is very bad - sorting is done based on some mysterious rule and not logically based on your current position in code...

I guess I will try to get used to webstorm after all, unless ST3 get fixed.
1
Add a comment...

Peter StJ

Shared publicly  - 
 
Featured on this week's Simpson:)

Does that makes me a nerd?
1
Add a comment...

Peter StJ

Shared publicly  - 
 
Finally I have managed to find the time to create a real app with the closure tools based Material Design implementation.

Its lightning fast (yes, even on iOS) and does not suffer from any of polymer's shortcomings. I was able to use templates to compose very complex UI as well, so basically I write something similar to HTML+JSX.

The only setback was how verbose the JS part is compared to Dart. 

On the other hand closure library is rock solid, even for polymer inspired apps.
1
Peter StJ's profile photo
 
On a sidenote: one should really try more often different technologies. I took the idea for DTO auto-generation and RPC package from Dart and applied it to closure - works fantastically well. Basically I take the schema from the backend guys and the UI from library and only write templates and composition / controls.

Because in this project I do not use observables I used a pubsub channel to communicate between the different controls - also works excellently. 

What I am trying to say is that polymer is not the only viable solution for fast and simple development for mid-sized apps:)
Add a comment...

Peter StJ

Shared publicly  - 
 
Dart summit day 2:

Sky is actually exciting!

Dart for mobile - still very unclear what it could do for my use cases, but seems to excite iOS developers (the 5 ones that have heared of Dart).

Node to Dart - very nice comparison with practical points..

Interesting story behind dartpad is alow revealed.

As a whole: a bunch of interesting things - go and watch all of it when you have the time:)

In spite of my great expectations for a solution for my own particular pain points with Dart turns out people are building great things and are benefiting from the platform in major ways.

For me the question remains: what is the threshold of benefits Dart should surpass in order to be the definite prime choice for writing web applications.  Personally I am still waiting for what was only showed in only one slide briefly and said to be something that is coming in the indefinite future: support automatic build/use of stubs for already typed JS libraries - the holy grail of reusability of existing code and interoperability with existing applications. If you like me have hundreds of files and millions of code in closure or typescript around just begging to be used again this might be the tipping point!

Side note: I think the pubsub method used to compose apps from pieces written in several different languages all compiled to JS is nice, but still in Dart you will receive JS objects with those messages and you need to decode them, same on the way out. Not ideal when you clearly know that it will only ever be working as JS....
1
1
george oloo's profile photo
Add a comment...

Peter StJ

Shared publicly  - 
 
Dart summit day one in brief:

No news in dart<->js story really, only a hint of what is hoped to work someday.

DartEditor is deprecated - go buy license from InteliJ

Timeframe for readable js compilation is put in 2016

60frames talk was not about 60frames with dart but with C# engine and dart was used as level editor, still kind of cool but definitely not related to dart performance

The reflectable package leaves me even more confused, the official recommendation now is to use code generation instead of reflection

Non-nullable types are yet to be discussed, far from implementing, even when they would help with type inference.

dart2js still needs to deal with corner cases preventing it from producing the optimal code, too much 'we would like to work on it', but some nice tips on how to help it do its job (so basically after merging my libraries into one cohesive structure I now again have to split them up into hundred of pieces)

It is the first summit, yes, but 4+ years have been spent on this project. I was easily fooled into expecting somehow somewhat more......

#dartlang  
1
1
george oloo's profile photo
Add a comment...

Communities

4 communities

Peter StJ

Shared publicly  - 
 
Why is tree shaking important?

Filesize after gzipping:
Original: 525206
Tree shaken: 70124

Without tree shaking JS is almost as large as all the used images.

If you want to know the difference simply test on real 2G connection on your phone!
2
Add a comment...

Peter StJ

Shared publicly  - 
 
Защо е сложно да се пише софтуер, обяснение за филолози

Представете си, че сте писател и поддържате проекта Война и Мир. По задание трябва да се напише нов епизод, в който Наташа Ростова се разхожда под дъжда в парка.

Звучи просто - пишете "заваля дъжд", запис. Програмата гърми с грешка "Наташа Ростова умря". Започва се неколкодневно ровене - как е умряла, защо е умряла... Оказва се, че Пиер Безухов е бил в парка с обувки с гладка подметка, подхлъзнал се е в дъжда, изпуснал е пистолета си, пистолетът е гръмнал, куршумът е рикоширал в един стълб и е убил Наташа Ростова.

Как може да се оправи това? Да смените обувките на Пиер Безухов? Да заредите пистолета с халостни патрони? Решавате да махнете стълба. Запис и нова грешка - "Поручик Ржевски умря".

Оказва се, че в следващата глава поручикът се обляга на стълба, който току що сте махнали...
 ·  Translate
1
Add a comment...

Peter StJ

Shared publicly  - 
 
Today tried the 'new, faster c9'. Well, I don't know about how faster it is but building closure project with the compiler (java) is hideously slow.

And that is why the 'developer' machines will never go away, no matter how 'cloudy' things get for the end users...
1
Peter StJ's profile photo
 
My bad - its slower locally as well, I guess the project just got too big. 

Once again I appreciate the beauty of Dart - in Dart I can get all the errors and warning at writing time and not wait for compilation to complete to see where I missed something... 10 years later and still no one single viable plugin/IDE for closure. I guess even Google considered that to be a dead end.
Add a comment...

Peter StJ

Shared publicly  - 
 
So basically Microsoft wants you to try out their new light code editor (Code Visual Studio) on Linux, but provides it only for 64bit systems... interesting...

Evidently I need to upgrade to 64bit, or just forget about MS. Which one should I do?
1
Add a comment...

Peter StJ

Shared publicly  - 
 
Microsoft might be onto something: movies playing in VR so you no longer need those humongous TVs:) 
1
Add a comment...

Peter StJ

commented on a post on Blogger.
Shared publicly  - 
 
Great applicability but complete lack of documentation.

I think we as community should push for packages WITH documentation. I find it kind of pointless to have such great tooling if I should still gess what does what in it and what are the parameters - I don't want to go back to JS where I have to have all documentation opened in browser tabs for simplest of task.
1
Add a comment...
Communities
4 communities
Work
Occupation
Javascript magician
Links
YouTube
Contributor to
Story
Tagline
There is someone on that tree!
Introduction
If it is broken - we fix it. That's how we did it in the old days.
Basic Information
Gender
Male
Looking for
Friends, Networking