1 year ago
1 year ago
Just I found a solution of a strange bug which pursued me the whole week. This small epic made such impression on me that I decided to share it with community. The error which I found, perhaps is present only at my firmware and most likely will never affect you. Unless you decide to do to Cordova/PhoneGap/HTML5 the application with vector graphics for Windows Phone 8.1
1 year ago Many having for the first time seen syntax of the Angular2 templates begin to lament, what horror made a pier, really it was impossible as in Angular1 at least. Why it was necessary to enter this variety skobochek, asterisks and other nonsense! However on closer examination all becomes far simpler, the main thing not to be frightened.
As templates in AngularJS are its integral part, it is important to deal with them at the very beginning of acquaintance from the new version of this framework. At the same time we will discuss what benefits this syntax in comparison with angular 1.x gives us. And it will be best of all to consider it on small examples.
This article is in many respects based on materials of these two articles:
We received 408 solutions from 237 different participants (only one participates in tender, the last from solutions from each participant, and we publish the last options). Besides, 7 solutions were sent us or after the termination of term of acceptance of works, or employees of Hola, and we considered them out of the competition.
1 year ago
I want to share the small positive experience about the project Typescript based on Angular + after a year. It is not a new sheaf, and I am sure that already many successfully use it. Of course, already many wait for more articles about React or Angular 2.0, but it seems to me, and this experience will be useful to someone.
1 year ago. In comparison with native JS on the DOM elements, implementation of animation algorithms on Canvas is usually more productive many times over. It is the known fact (but with features for small number of particles as it will become clear later), and it can find implementation so everything disturbing traditional under NG, but driven by rational users of "the falling snow". That it was not enough loading, in recent years it is considered a good form "to start" snow on the website scarcely noticeable, with the minimum quantity of snowflakes (5-15). Here both the effect is, and honor loads of the processor any.
Therefore, so far to NG some more days still winter, I suggest to arrange a hakatonchik on implementation of the best algorithms on a kanvasa and their analogs on DOM, having taken as a basis generally ancient native algorithms which as at most turned back in jQuery plug-in that it was convenient to connect. The most part of these algorithms does not proportion load of the processor or is made inefficiently therefore even at small number of snowflakes load the processor for 100%. Here an example of a review article where more than 10 implementations are considered, not everything, meeting in the nature. In addition, we will consider several electees to receive a backlog on development of algorithm and implementation it with good efficiency (5-6 more options will turn out). On this basis it is possible to construct completion.
In this post councils are stated how not to write a code which performance will be much lower than expected. Especially it concerns situations when the V8 engine (used in Node.js, Opera, Chromium etc.) refuses to optimize some functions.
This post — short retelling of this video in English. If there is no time to read — a living example here. In the field of factor it is possible to substitute any non-negative values. My darlings — 51, 99, 106, 134, 150.
The mathematics never ceases to surprise with the beauty. This post how to turn such simple operation as multiplication into something surprising. Now answer a question — that the general between it pictures?