Developers Club geek daily blog

Desktop applications on JavaScript. Part 1

1 year, 9 months ago
For anybody not a secret that presently JavaScript became one of the most popular programming languages. In far 90e years, at the time of origin of language when it was created to add for the only purpose interactivity a web to pages and to improve process of user interaction who could think that it will reach so unknown heights. Now on it it is possible to do almost anything. You want to write the website: both a backend and a frontend on JavaScript? please! You want to write mobile application on JavaScript? there are no problems. You program the microcontroller – and here you will be come to the rescue by JavaScript.

There are of course small minuses in approach of use of JavaScript everywhere, but if to think, then what is the time and forces it is possible to save, having learned only one language, especially, if the same application has to work at different platforms. Different platforms you speak? Hm … Precisely – different platforms – now JS is able to afford desktop Windows applications, Linux, Mac how you ask? The answer is simple: meet – NW.js.

On the first letters it is possible to read – Node.js + Webkit if these concepts are not familiar to you yet, then you will understand soon about what there is a speech.

Node.js – the software platform based on the V8 engine which broadcasts our script in machine code. This platform was created in 2009 mainly for work with a backend of the websites.

WebKit — the free engine developed by the Apple company. It was for the first time announced as a part of Safari in 2003
So, both Node.js modules, and standard browser API will be available to the code written on JS for this technology (according to WebKit)

Read more »


Bug with GPU and Canvas in Google Chrome under Windows

1 year, 9 months ago
The other day worked over unusual and from that an interesting challenge. It became clear that our managers on a certain page constantly have a message of "Opanka" in Google Chrome. I will tell at once, the page this very saturated, and comprises rather heavyweight components as a photo gallery, the card and a panorama. At me it was impossible to reproduce this bug in any way, and I am going to tell about what was made to find and neutralize it.

Read more »


2D shadows on WebGL for 4 simple steps

1 year, 9 months ago
In this article I will tell about how the hands, having only a notepad and any Web server to make shader 2D - shadows on WebGL. All steps lie on a gitkhaba as branches and git checkout stepN so welcome even that who is not configured to incense switch.

KDPV:


Read more »


Node.textContent behaves as Node.innerHTML in the javascript protocol or generation of the password in a browser tab

1 year, 9 months ago
Krossbrazureny, cross-platform feature of a task (set) of Node.textContent:

<a href="javascript:document.body.textContent = '<div>text</div>';">click</a>

The code will insert a line as html:

<div>text</div>

Read more »


Performance measurement of functions in JavaScript

1 year, 9 months ago


Performance always played a key role in the software. And in web applications its value is even higher as users can easily go to competitors if the website made by you works slowly. Any professional web developer has to remember it. Today it is still possible to apply successfully the mass of old acceptances of optimization of performance, like minimization of amount of requests, use of CDN and not use to rendering of the blocking code. But the more developers apply JavaScript, the problem of optimization of its code becomes more important.

Read more »


Rista — lightweight and fast alternative React-at

1 year, 9 months ago
I want to tell about one of the velik which it seems turned out quite successful and can it will be is useful to someone else. I will begin a little from far away.

In general, I love React! When this framework only appeared, I was skeptical about it enough as, in general, and to all appearing frameworks. But here everything is farther went according to very rare scenario. What more I tried to write on it different hellovorlda and tudulist with, more it me was pleasant to those and at some point was even somehow fallen in love. Only one moment in it to me did not become to liking — the default mechanism of statuses in which there are a lot of minuses.

Read more »


Codecha — a programmer kapcha or as it is not necessary to project API

1 year, 9 months ago
On the website I use Codecha — programmer I smoke. It is a unique kapcha for which solution it is required to write a function body, solving an objective, in one of the selected programming languages.

КДПВ —  виджет этой самой капчи

It does not provide so reliable protection against bots as, for example, Google reCAPTCHA (the set of tasks is limited and they quickly enough can be proreshat, and then to give ready answers), but helps against nonprogrammers (for a certain category of forums of crowd of the students asking to perform their laboratory work — this problem, spam bots is worse). But a note not about it.

Problem which I faced during use of Codecha — absolutely inconvenient API of both the widget of a kapcha, and the server.

Read more »


Angular Light for jQuery/JS of developers

1 year, 9 months ago


I on the Toaster periodic see " questions how to hide the block by clicking" or "how to color on a condition" therefore I want to show you 4 "acceptances" which can improve your jQuery-code and speed of development.

Initial example


Examples to the description are lower: jQuery example and Angular Light example
This example consists of 2 "moments": 1. Click to select "panel", 2. To display the selected "panel".

Read more »


Creation of the desktop application by means of Electron and web technologies

1 year, 9 months ago
Acquaintance to Electron

Official page of the Electron project.

Initially Electron was developed for the Atom editor by the GitHub company.

Electron (earlier known as Atom Shell) allows us to create cross-platform applications, using HTML, CSS and JavaScript. What is big plus for commands which are engaged in web development. Need disappears to look for new developers for creation of desktop versions of already existing projects.

The prekompilirovany binarnik and the libraries necessary for operation of application and access to native API of an operating system is Electron. It includes Node.js directed to work in the desktop environment and the minimum version of the Chromium browser controlled by JavaScript.

Read more »


typescript 1.7 release

1 year, 9 months ago
I welcome, colleagues! Yesterday Microsoft strained and rolled out release of upcoming version of typescript, the typified superstructure over javascript. In the new version not only exponentiation and a separate configuration are more whole, but also the first practices on async/await from the ES7 standard. In more detail under a cat.

Read more »