Skip to content

Instantly share code, notes, and snippets.

View 4ront's full-sized avatar

Rinat Valiullov 4ront

View GitHub Profile
@4ront
4ront / js-task-1.md
Created February 9, 2017 18:43 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
@4ront
4ront / array_iteration_thoughts.md
Created January 15, 2017 19:51 — forked from ljharb/array_iteration_thoughts.md
Array iteration methods summarized

While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.

Intro

JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it much simpler to think about both the old list and the new one, what they contain, and

var s = [1,2,3];
s.reverse;
- цель (повышение узнаваемости бренда / расширение аудитории и тд)
- задачи (привлечение посетителей, клиентов / продажа / сбор регистрационных данных / информирование и тд)
- целевая аудитория (пол, возраст, география, предпочтения, сфера деятельности и тп)
- общее описание сайта, схематичная структура
- смысловые блоки
- шрифты, цветовая гамма, формы и нюансы графического решения (с утверждением первичного макета)
- тексты, их стилистика и объём (исходя из целей)
- изображения, инфографика
- поддержка браузеров (исходя из целевой аудитории)
- seo
@4ront
4ront / index.html
Last active May 23, 2016 16:42
template_html
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Example</title>
</head>
<body>
</body>
</html>