The digest of fresh materials from the world of the frontend for the last week №340 (November 19 - 2? 2018)

CSS / HTML
+ 0 -

The digest of fresh materials from the world of the frontend for the last week №339 (November 12 - 1? 2018)

CSS / HTML
+ 0 -

For which I do not like the modern web

For which I do not like the modern web 3r361.  
3r361.  
The very first step in working with the web is sending data to your server application. And if the parsing of a dozen small lines can be entrusted to the framework, then what about loading files? 3r361.  
3r361.  
Take for example PHP, although the above is also true for 99% of other languages ​​and technologies. Suppose we want to allow the user to upload pictures to the site, for this we make a file type field and Outwardly, everything is very simple, only a few bytes have changed in the form and in the code, but now instead of text from forms, you can work with files! But not everything ...
+ 0 -

Availability of interfaces. Lecture of Yandex

Availability of interfaces. Lecture of YandexMy name is Dima, I work in the Yandex office in St. Petersburg and I do internal services in the Toloka interface development team. This year I prepared a lecture for Schools for the development of interfaces . Below is its interpretation.
 
 
What is the availability of interfaces? For whom is it important and why should it be pursued? What are the basic techniques that make the interface accessible? In addition to these questions, the lecture clarifies the principles that underlie assistive technologies. I tried to understand the theory and a large number of practical examples, as well ...
+ 0 -

[Перевод]Correct or kill automatically installed JavaScript?

Hello, Habr! I present to your attention the translation of the article Julie Marchant Fix or Kill Automatically Installed jаvascript?
 
In Richard Stallman's essay "jаvascript Trap" it is noted that people run non-free programs that are automatically installed in their browsers every day. In fact, he greatly understated the problem. Not only do most users run non-free programs every day just by browsing web pages, they run dozens or even hundreds of such programs every day. The jаvascript trap is extremely real and prolific. It is believed that working with sites will be disrupted without ...
+ 0 -

Where do the websites go after death? Personal experience

Where do the websites go after death? Personal experienceHello habr.
 
 
Long ago, more than 10 years ago, I started a website. More precisely, even two. The first was a typical home page in the style of narod.ru (if anyone remembers), honestly mapped using Notepad in HTML. There were no contacts or LiveJournal yet, so having your own site with a photo gallery, a news feed, a guest book and a visitor counter at the bottom of the page was cool. The second site in the domain com, was intended to accommodate several shareware programs. For him was even bought a corporate design template, so that looked like a site for those times, quite well.
 
 
Genius ...
+ 0 -

Once again about the web components

Once again about the web components  
 
Each time when an article or a commentary mentions a group of Web Components standards, almost the same thing happens: people who, often, have very little idea what they are talking about, begin to share "expert" opinions. Each time the discussion rolls down to one and the same scenario, the name of which rhymes with the word "rook". And I really would like a positive, constructive and a transition to practical applications. In this article, I will try to answer at once the overwhelming majority of typical questions and refute the maximum of common misconceptions. Subsequently, in a difficult situation...
+ 0 -

Combating dirty side effects in pure JavaScript functional code

Combating dirty side effects in pure JavaScript functional codeIf you try your hand at functional programming, it means that you will soon be confronted with the concept of pure functions. Continuing the exercises, you will find that programmers who prefer a functional style seem to be obsessed with these functions. They say that pure functions allow us to talk about the code. They say that pure functions are entities that are unlikely to work so unpredictably that they will lead to a thermonuclear war. You can also learn from such programmers that pure functions provide referential transparency. And so on - to infinity.
 
 
By the way, functional programmers ...
+ 0 -

PHP 7.3. What's new

PHP 7.3. What's new
 
Syntax
 
 
Mitigate the requirements for the syntax of Heredoc and Nowdoc
 
Support for endpoints in function and method calls
 
References in list ()  

 

Obsolete features (deprecated)


 
  1.  
  2. Function image2wbmp () declared obsolete  
  3. Flags FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED when using FILTER_VALIDATE_URL are declared obsolete  
  4. Register-independent constants are declared obsolete  

 

New features


 
  1.  
  2. Optional exception throw for errors in functions json_encode ...
+ 0 -

We test the creation of a component library for Angular using the new command for Angular /Cli - library

We test the creation of a component library for Angular using the new command for Angular /Cli - library
 
When the project becomes slightly more than one, it becomes necessary to somehow re-use not only the individual modules with the code, but also the UI components themselves. There are many options for solving the problem - from the traditional copy-paste, to setting up a separate project with tests, documentation and even blackjack.
 
The problem is that the second option requires significant efforts to prepare and each such project is unique - with its tools in which each new developer needs to be re-learned. At the end of July, the Angular team proposed a comprehensive solution to this problem by adding ...
+ 0 -