Developers Club geek daily blog

bala.js — the murderer of jQuery in 408 characters of a code *

1 year, 11 months ago
* It is a joke.

image
(the picture is borrowed somewhere on the Internet)

[Repository]

All hi.

For a long time there passed times of obligatory support 6, 7, 8 Donkeys and inevitable use of jQuery, DOM API is gradually given to a uniform type, but I still often meet on statement Internet open spaces that VanillaJS is a long sausage.

Like, why to me to write here so:
document.querySelector('.selector');

If I can write here so:
$('.selector');

I partly agree with it because it is, periodically, necessary to select elements many times in the application. It is necessary to define functions, the doing selection, directly in a code:

// selects one node matched given selector
function $(selector, ctx) {
	return (ctx || document).querySelector(selector);
}

// selects all nodes matched given selector
function $$(selector, ctx) {
	return [].slice.call((ctx || document).querySelectorAll(selector));
}

It concerns tiny scripts. For large projects, of course, it is necessary to yuzat some framework which undertakes all manipulations over DOM.

Read more »


Use of comet of the server for implementation of a simple chat

1 year, 11 months ago
Comet — any model of work of a web application at which permanent HTTP connection allows the Web server to send (push) given to the browser without additional request from the browser.

On the scheme the place of comets of the server in the course of work is represented.
На схеме изображено место комет сервера в процессе работы.

Read more »


The digest of interesting materials from the world of web development and IT for the last week No. 190 (on December 13 — 20, 2015)

1 year, 11 months ago
We bring to your attention a selection with links to useful resources, interesting materials and IT news


Read more »


Comparison of css-freymvorkov/bibliotek on a living example. Part 1

1 year, 11 months ago
сравнение css-фреймворков на примере

Prolog


In this cycle of articles I intend to carry out objective comparison of css-frameworks on the basis of living examples, as to TodoMVC for js of solutions.

In input article you learn about frameworks and libraries and about their distinctions. I will tell into what types they are divided. I will specify the planned list of ready solutions for the analysis.

Read more »


We prepare ASP.NET 5: in more detail about work with Gulp

1 year, 11 months ago
We continue our column on the subject ASP.NET 5 by the publication from Dmitry Sikorsky (DmitrySikorsky) — the developer from Ukraine. In this article Dmitry tells about scenarios of application with ASP.NET 5 of popular means of Gulp in more detail. The previous articles from a column can always be read according to the link #aspnetcolumn — Vladimir Yunev
Before emergence of ASP.NET 5 I never used such tools as Gulp therefore it was necessary to find some time and to understand what is it when I created the first project on this platform (the truth, then there still there was Grunt, but it is not important). I will not begin to press in basic things which already everywhere are rather in detail described (I mean that in your project there is already Gulpfile.js and you can perform tasks from it, using the manager of execution of tasks the Visual Studio 2015), and at once I will pass to business and in practice I will show how it is possible to use Gulp for automation of all in your project on ASP.NET 5.


Fragments of the Gulpfile.js file of a test project of AspNet5Gulpization which entirely lies here will be given in article: https://github.com/DmitrySikorsky/AspNet5Gulpization.

Introduction


You for certain know for what the new wwwroot folder is used. Actually, with its emergence I a little in a new way looked at scripts, styles and pictures. Namely, as well as server code of the website, now I separate them into source codes and objects, ready to the publication.

Read more »


Angular2 now "beta"

1 year, 11 months ago
I bring to your attention transfer of article from the official blog AngularJS.

We are happy to share with you news that the Angular 2 project reached a beta. That the second version in comparison with the first brought, you can learn about that set of innovations from the previous post. Studying of Angular 2 can be begun on the website angular.io.

What is meant by "beta"?

"Beta" means that now we are sure that the most part of developers has an opportunity successfully to create large applications by means of Angular 2.

Read more »


Art approach to loading of images

1 year, 11 months ago
As to the artist and the web developer, I had a need for own gallery over time. Usually, galleries have two basic functions: demonstration of a show-window — all (or some) pictures — and detailed demonstration of one. Implementation of both functions is practically in any ready gallery. But "shabby" appearance of ready galleries and, the become the standard, user interface do not suit for the artist :). And non-standard — demands special architecture and implementation of the code performing loading and demonstration of pictures. I in this article will omit demonstration and the user interface. The main attention will be given to loading of pictures from the server. About the final organization of controlled loading with use of queues, the asynchronous loader, processing the blob objects, cascades of execution of promises and with a possibility of a suspension will also go the speech.



Code samples are written on coffeeScript

Read more »


Shortcuts in JavaScript

1 year, 11 months ago


Learning any programming language, it is useful to know about its features and to be able to use effectively language constructions. I want to share with you shortcuts for JS. These reductions in certain cases can facilitate reading a code, and also it is essential to reduce its quantity. However it is necessary to remember that they can play a dirty trick with you and if to use them everywhere, your code will stop being read and supported.

Read more »


Concept "Native Elements "(Native Elements)

1 year, 11 months ago
image

All of kind health.
Wanted to offer the concept of JavaScript (JS) of library for convenient use of Custom Elements (in Russian I will call "own elements"). Before offering Polymer, X-Tag, Bosonic and others, I ask to read the text up to the end.

Read more »


"War and peace" – testing time

1 year, 11 months ago


4 December days in a row, about 1300 people for 60 hours from 30 cities read "War and peace". The unprecedented multimedia project from VGTRK during which Lev Tolstoy's work was read from the first and to the last line. The project takes the grandness and pulls on the Guinness Book of Records.

In addition to a literary marathon a series of interactive infografichesky works under the auspices of analytical community Tolstoy Digital was released. Each infographics, and all them 4, analyzes work under razlichnyma corners: human relations, places, time, history, objects, culture in general.

Under a cat fragments from the novel, there is a little code and my thoughts on process of an infografirovaniye of data on the example of an event taymlayn.

Read more »