- Short introduction to the master class
- Overview of demo project
- 📖 Presentation: "part #1 Architecture"
- 📖 Presentation SOLID principles for frontend projects
- Q&A session and Summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const babelParser = require("@babel/parser"); | |
const babelCore = require("@babel/core"); | |
const traverse = require("@babel/traverse").default; | |
const generate = require("@babel/generator").default; | |
function generateMemberExpressionString(node) { | |
if (node.type === "MemberExpression") { | |
const object = generateMemberExpressionString(node.object); | |
const property = node.property.name; | |
return `${object}.${property}`; |
По мотивам вопросов чатика react.js@telegram
Оффтоп: пожалуйста, не нужно в сотый раз объяснять уже набившую оскомину тему новичку, который задаст подобный вопрос. Просто поделитесь ссылкой на этот текст. С уважением, Андрей @XaveScor Звёздочка
Краткий ответ на этот вопрос, если вы не хотите разбираться детальнее:
- Если вы экспериментируете, то можете взять в качестве стейт-менеджера что угодно. Буквально. Опыт лишним не будет.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const computedName = '--> my function name <--' | |
const fn = ({ | |
[computedName](){ throw new Error() } | |
})[computedName] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path') | |
const isEqual = require('lodash.isequal'); | |
const emojiList = require('emojis-list'); | |
const args = process.argv; | |
const emojiUnicodePoints = emojiList.map((code) => [...code].map((point) => point.codePointAt(0))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getUniqueId(length = 12, prefix = '', postfix = '') { | |
function generate() { | |
return Math | |
.floor((1 + Math.random()) * 0x10000) | |
.toString(36) | |
.substring(3); | |
} | |
let gen = new Array(length) | |
.fill(null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.storage.estimate().then(e=>console.log(e.usage/1024)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in your .zshrc add: | |
alias HG='history | grep ' | |
# reload ZSH (using my default location as an example) | |
. ~/.zshrc | |
# Now run: ``HG something_of_interest`` and your history is grepped for said interesting something. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON.parse(a.replace(/(\w+)\s?:/g, '"$1":')) | |
JSON.stringify(eval(mystr)) |
NewerOlder