Merge branch 'master' into patch-1
@ -11,9 +11,8 @@ before_install:
|
||||
script:
|
||||
- npm run linter
|
||||
- npm run extractor
|
||||
- npm run builder
|
||||
- npm run packager
|
||||
- npm run tester
|
||||
- npm run test
|
||||
- npm run vscoder
|
||||
after_success:
|
||||
- chmod +x .travis/push.sh
|
||||
|
||||
@ -26,7 +26,7 @@ upload_files() {
|
||||
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
|
||||
if [ $TRAVIS_BRANCH == "master" ]; then
|
||||
echo "Pushing to master branch..."
|
||||
git push --force --quiet "https://${GH_TOKEN}@github.com/30-seconds/30-seconds-of-code.git" master > /dev/null 2>&1
|
||||
git push --quiet "https://${GH_TOKEN}@github.com/30-seconds/30-seconds-of-code.git" master > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 26 KiB |
BIN
assets/logo.png
|
Before Width: | Height: | Size: 26 KiB |
@ -1,24 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewbox="0 0 512 512">
|
||||
<defs>
|
||||
<style>
|
||||
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:600);
|
||||
</style>
|
||||
</defs>
|
||||
<ellipse id="yellow-bg" cx="256" cy="256" fill="#f7df1e" stroke-linecap="round" rx="224" ry="224"/>
|
||||
<path id="left-outline" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="15" d="M107.75 427.164c-46.086-41.619-75.262-102.447-76.632-170.59-.298-19.408 1.73-38.295 5.816-56.375"/>
|
||||
<path id="right-outline" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="13.803" d="M211.607 35.363A224.31 224.31 0 0 1 256 30.95c123.712 0 224 100.632 224 224.768 0 124.135-100.288 224.767-224 224.767-16.58 0-32.74-1.807-48.293-5.237"/>
|
||||
<path id="left-detail" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="14" d="M76.974 122.656a83.03 83.03 0 0 1 6.014-8.151"/>
|
||||
<path id="right-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M32 256h20"/>
|
||||
<path id="left-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M460 256h20"/>
|
||||
<path id="top-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M256 32v20"/>
|
||||
<path id="bottom-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M256 460v20"/>
|
||||
<path id="right-bottom-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M72 384l12-10"/>
|
||||
<path id="left-mid-bt-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M440 384l-12-10"/>
|
||||
<path id="left-mid-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M430 118l-12 10"/>
|
||||
<path id="top-left-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M350 70l9-14"/>
|
||||
<path id="bottom-left-line" fill="none" stroke="#060606" stroke-linecap="round" stroke-width="10" d="M350 442l9 14"/>
|
||||
<path id="hand" fill="rgba(170,170,170,1)" stroke="#060606" stroke-width="9.584" d="M279.967 249.94c-3.009-14.768-16.44-24.085-30-20.808-13.56 3.276-22.114 17.905-19.106 32.674 3.008 14.769 50.44 120.443 50.57 118.892.068-.81 1.544-115.988-1.464-130.757z"/>
|
||||
<text x="196" y="188" fill="#060606" font-family="Source Sans Pro" font-size="120">
|
||||
JS
|
||||
</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
@ -28,5 +28,6 @@ module.exports = {
|
||||
requirables: [
|
||||
`snippets.json`,
|
||||
`archivedSnippets.json`
|
||||
]
|
||||
],
|
||||
parser: '_30codeParser',
|
||||
};
|
||||
|
||||
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* Implement Gatsby's Browser APIs in this file.
|
||||
*
|
||||
* See: https://www.gatsbyjs.org/docs/browser-apis/
|
||||
*/
|
||||
|
||||
// You can delete this file if you're not using it
|
||||
|
||||
let locationScrollTops = [];
|
||||
|
||||
const onPreRouteUpdate = ({ location, prevLocation }) => {
|
||||
try {
|
||||
let scrollTop = document.querySelector('.content').scrollTop;
|
||||
locationScrollTops[prevLocation.pathname] = scrollTop;
|
||||
}
|
||||
catch (e) { }
|
||||
};
|
||||
|
||||
const onRouteUpdate = ({ location, prevLocation }) => {
|
||||
try {
|
||||
if (locationScrollTops[location.pathname]) {
|
||||
document.querySelector('.content').scrollTop = locationScrollTops[location.pathname];
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
|
||||
export { default as wrapRootElement } from './src/docs/state/ReduxWrapper';
|
||||
export { onPreRouteUpdate, onRouteUpdate };
|
||||
@ -1,90 +0,0 @@
|
||||
const config = require('./config');
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: `${config.name}`,
|
||||
description: `${config.description}`,
|
||||
author: `@30-seconds`,
|
||||
siteUrl: `${config.siteUrl}`,
|
||||
},
|
||||
plugins: [
|
||||
`gatsby-plugin-sitemap`,
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
name: `snippets`,
|
||||
path: `${__dirname}/${config.snippetPath}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
name: `snippets_archive`,
|
||||
path: `${__dirname}/${config.snippetArchivePath}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
name: `snippet_data`,
|
||||
path: `${__dirname}/${config.snippetDataPath}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
name: `assets`,
|
||||
path: `${__dirname}/${config.assetPath}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-plugin-page-creator`,
|
||||
options: {
|
||||
path: `${__dirname}/${config.pagePath}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-transformer-remark`,
|
||||
options: {
|
||||
plugins: [
|
||||
{
|
||||
resolve: `gatsby-remark-images`,
|
||||
options: {
|
||||
maxWidth: 590,
|
||||
},
|
||||
},
|
||||
`gatsby-remark-prismjs`,
|
||||
`gatsby-remark-copy-linked-files`,
|
||||
],
|
||||
},
|
||||
},
|
||||
`gatsby-plugin-sass`,
|
||||
`gatsby-transformer-json`,
|
||||
`gatsby-transformer-sharp`,
|
||||
`gatsby-plugin-sharp`,
|
||||
{
|
||||
resolve: `gatsby-plugin-google-analytics`,
|
||||
options: {
|
||||
trackingId: `UA-117141635-1`,
|
||||
anonymize: true, // Always set this to true, try to comply with GDPR out of the box
|
||||
respectDNT: true, // Always set to true, be respectful of people who ask not to be tracked
|
||||
cookieExpires: 0, // Always set to 0, minimum tracking for your users
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-plugin-manifest`,
|
||||
options: {
|
||||
name: `${config.name}`,
|
||||
short_name: `${config.shortName}`,
|
||||
start_url: `/`,
|
||||
background_color: `#1e253d`,
|
||||
theme_color: `#1e253d`,
|
||||
display: `standalone`,
|
||||
icon: `assets/30s-icon.png`, // This path is relative to the root of the site.
|
||||
},
|
||||
},
|
||||
`gatsby-plugin-offline`,
|
||||
`gatsby-plugin-react-helmet`,
|
||||
`gatsby-plugin-netlify`,
|
||||
],
|
||||
};
|
||||
262
gatsby-node.js
@ -1,262 +0,0 @@
|
||||
const path = require(`path`);
|
||||
const { createFilePath } = require(`gatsby-source-filesystem`);
|
||||
const config = require('./config');
|
||||
|
||||
const { getTextualContent, getCodeBlocks, optimizeAllNodes } = require(`./src/docs/util`);
|
||||
|
||||
const requirables = [];
|
||||
|
||||
config.requirables.forEach(fileName => {
|
||||
requirables.push(require(`./snippet_data/${fileName}`));
|
||||
});
|
||||
|
||||
const toKebabCase = str =>
|
||||
str &&
|
||||
str
|
||||
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
|
||||
.map(x => x.toLowerCase())
|
||||
.join('-');
|
||||
|
||||
exports.onCreateNode = ({ node, actions, getNode }) => {
|
||||
const { createNodeField } = actions;
|
||||
|
||||
if (node.internal.type === `MarkdownRemark`) {
|
||||
const value = createFilePath({ node, getNode });
|
||||
createNodeField({
|
||||
name: `slug`,
|
||||
node,
|
||||
value,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
exports.sourceNodes = ({ actions, createNodeId, createContentDigest, getNodesByType }) => {
|
||||
const { createTypes, createNode } = actions;
|
||||
const typeDefs = `
|
||||
type Snippet implements Node {
|
||||
html: HtmlData
|
||||
tags: TagData
|
||||
title: String
|
||||
code: CodeData
|
||||
id: String
|
||||
slug: String
|
||||
path: String
|
||||
text: TextData
|
||||
archived: Boolean
|
||||
}
|
||||
|
||||
type HtmlData @infer {
|
||||
full: String
|
||||
text: String
|
||||
fullText: String
|
||||
code: String
|
||||
example: String
|
||||
}
|
||||
|
||||
type CodeData @infer {
|
||||
src: String
|
||||
example: String
|
||||
}
|
||||
|
||||
type TextData @infer {
|
||||
full: String
|
||||
short: String
|
||||
}
|
||||
|
||||
type TagData @infer {
|
||||
primary: String
|
||||
all: [String]
|
||||
}
|
||||
`;
|
||||
createTypes(typeDefs);
|
||||
|
||||
const markdownNodes = getNodesByType('MarkdownRemark');
|
||||
|
||||
const snippetNodes = requirables
|
||||
.reduce((acc, sArr) => {
|
||||
const archivedScope = sArr.meta.scope.indexOf('archive') !== -1;
|
||||
return ({
|
||||
...acc,
|
||||
...sArr.data.reduce((snippets, snippet) => {
|
||||
return ({
|
||||
...snippets,
|
||||
[snippet.id]: { ...snippet, archived: archivedScope}
|
||||
});
|
||||
}, {})
|
||||
});
|
||||
}, {});
|
||||
|
||||
Object.entries(snippetNodes).forEach(([id, sNode]) => {
|
||||
let mNode = markdownNodes.find(mN => mN.frontmatter.title === id);
|
||||
let nodeContent = {
|
||||
id,
|
||||
tags: {
|
||||
all: sNode.attributes.tags,
|
||||
primary: sNode.attributes.tags[0]
|
||||
},
|
||||
title: mNode.frontmatter.title,
|
||||
code: {
|
||||
src: sNode.attributes.codeBlocks.es6,
|
||||
example: sNode.attributes.codeBlocks.example
|
||||
},
|
||||
slug: mNode.fields.slug,
|
||||
path: mNode.fileAbsolutePath,
|
||||
text: {
|
||||
full: sNode.attributes.text,
|
||||
short: sNode.attributes.text.slice(0, sNode.attributes.text.indexOf('\n\n'))
|
||||
},
|
||||
archived: sNode.archived
|
||||
};
|
||||
createNode({
|
||||
id: createNodeId(`snippet-${sNode.meta.hash}`),
|
||||
parent: null,
|
||||
children: [],
|
||||
internal: {
|
||||
type: 'Snippet',
|
||||
content: JSON.stringify(nodeContent),
|
||||
contentDigest: createContentDigest(nodeContent)
|
||||
},
|
||||
...nodeContent
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
exports.createResolvers = ({ createResolvers }) => createResolvers({
|
||||
Snippet: {
|
||||
html: {
|
||||
resolve: async (source, _, context, info) => {
|
||||
const resolver = info.schema.getType("MarkdownRemark").getFields()["html"].resolve;
|
||||
const node = await context.nodeModel.nodeStore.getNodesByType('MarkdownRemark').filter(v => v.frontmatter.title === source.title)[0];
|
||||
const args = {}; // arguments passed to the resolver
|
||||
const html = await resolver(node, args);
|
||||
return {
|
||||
full: `${html}`,
|
||||
text: `${getTextualContent(html, true)}`,
|
||||
fullText: `${getTextualContent(html, false)}`,
|
||||
code: `${optimizeAllNodes(getCodeBlocks(html).code)}`,
|
||||
example: `${optimizeAllNodes(getCodeBlocks(html).example)}`
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
exports.createPages = ({ graphql, actions }) => {
|
||||
const { createPage } = actions;
|
||||
|
||||
const snippetPage = path.resolve(`./src/docs/templates/SnippetPage.js`);
|
||||
const tagPage = path.resolve(`./src/docs/templates/TagPage.js`);
|
||||
|
||||
return graphql(
|
||||
`
|
||||
{
|
||||
allSnippet(sort: {fields: id}) {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
slug
|
||||
tags {
|
||||
all
|
||||
primary
|
||||
}
|
||||
text {
|
||||
full
|
||||
short
|
||||
}
|
||||
title
|
||||
html {
|
||||
code
|
||||
example
|
||||
full
|
||||
text
|
||||
fullText
|
||||
}
|
||||
code {
|
||||
src
|
||||
example
|
||||
}
|
||||
archived
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
).then(result => {
|
||||
if (result.errors) {
|
||||
throw result.errors;
|
||||
}
|
||||
|
||||
// Create individual snippet pages.
|
||||
const snippets = result.data.allSnippet.edges;
|
||||
|
||||
snippets.forEach(snippet => {
|
||||
if (!snippet.node.archived) {
|
||||
createPage({
|
||||
path: `/snippet${snippet.node.slug}`,
|
||||
component: snippetPage,
|
||||
context: {
|
||||
snippet: snippet.node
|
||||
}
|
||||
});
|
||||
} else {
|
||||
createPage({
|
||||
path: `/archive${snippet.node.slug}`,
|
||||
component: snippetPage,
|
||||
context: {
|
||||
snippet: snippet.node
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Create tag pages.
|
||||
const tags = [...new Set(
|
||||
snippets.map(snippet => (snippet.node.tags || {primary: null}).primary)
|
||||
)]
|
||||
.filter(Boolean)
|
||||
.sort((a, b) => a.localeCompare(b));
|
||||
|
||||
tags.forEach(tag => {
|
||||
const tagPath = `/tag/${toKebabCase(tag)}/`;
|
||||
const taggedSnippets = snippets
|
||||
.filter(snippet => snippet.node.tags.primary === tag)
|
||||
.filter(snippet => !snippet.node.archived)
|
||||
.map(({node}) => ({
|
||||
title: node.title,
|
||||
html: node.html.text,
|
||||
tags: node.tags.all,
|
||||
id: node.slug.slice(1)
|
||||
}));
|
||||
createPage({
|
||||
path: tagPath,
|
||||
component: tagPage,
|
||||
context: {
|
||||
tag,
|
||||
snippets: taggedSnippets
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
const beginnerSnippets = snippets
|
||||
.filter(({ node }) => node.tags.all.includes('beginner'))
|
||||
.filter(snippet => !snippet.node.archived)
|
||||
.map(({ node }) => ({
|
||||
title: node.title,
|
||||
html: node.html.text,
|
||||
tags: node.tags.all,
|
||||
id: node.slug.slice(1)
|
||||
}));
|
||||
|
||||
createPage({
|
||||
path: `/beginner`,
|
||||
component: tagPage,
|
||||
context: {
|
||||
tag: `beginner snippets`,
|
||||
snippets: beginnerSnippets
|
||||
},
|
||||
});
|
||||
|
||||
return null;
|
||||
});
|
||||
};
|
||||
@ -1,8 +0,0 @@
|
||||
/**
|
||||
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
|
||||
*
|
||||
* See: https://www.gatsbyjs.org/docs/ssr-apis/
|
||||
*/
|
||||
|
||||
// You can delete this file if you're not using it
|
||||
export { default as wrapRootElement } from './src/docs/state/ReduxWrapper';
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: AJAX
|
||||
tags: AJAX
|
||||
---
|
||||
|
||||
Asynchronous JavaScript and XML (known as AJAX) is a term that describes a new approach to using multiple technologies together in order to enable web applications to make quick updates to the user interface without reloading the entire browser page.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: API
|
||||
tags: API
|
||||
---
|
||||
|
||||
API stands for Application Programming Interface and is a set of features and rules provided by a provided by a software to enable third-party software to interact with it.
|
||||
The code features of a web API usually include methods, properties, events or URLs.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Argument
|
||||
tags: Argument
|
||||
---
|
||||
|
||||
An argument is a value passed as an input to a function and can be either a primitive or an object.
|
||||
In JavaScript, functions can also be passed as arguments to other functions.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Array
|
||||
tags: Array
|
||||
---
|
||||
|
||||
Arrays are used to store multiple values in a single variable.
|
||||
Arrays are ordered and each item in an array has a numeric index associated with it.
|
||||
JavaScript arrays are zero-indexed, meaning the first element's index is 0.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Asynchronous programming
|
||||
tags: Asynchronous programming
|
||||
---
|
||||
|
||||
Asynchronous programming is a way to allow multiple events to trigger code without waiting for each other.
|
||||
The main benefits of asynchronous programming are improved application performance and responsiveness.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Automatic semicolon insertion
|
||||
tags: Automatic semicolon insertion
|
||||
---
|
||||
|
||||
Automatic semicolon insertion (ASI) is a JavaScript feature that allows developers to omit semicolons in their code.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Boolean
|
||||
tags: Boolean
|
||||
---
|
||||
|
||||
Booleans are one of the primitive data types in JavaScript.
|
||||
They represent logical data values and can only be `true` or `false`.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: CORS
|
||||
tags: CORS
|
||||
---
|
||||
|
||||
Cross-Origin Resource Sharing (known as CORS) is a mechanism that uses extra HTTP headers to tell a browser to let a web application running at one domain have permission to access resources from a server at a different domain.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: CSS
|
||||
tags: CSS
|
||||
---
|
||||
|
||||
CSS stands for Cascading Style Sheets and is a language used to style web pages.
|
||||
CSS documents are plaintext documents structured with rules, which consist of element selectors and property-value pairs that apply the styles to the specified selectors.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: CSV
|
||||
tags: CSV
|
||||
---
|
||||
|
||||
CSV stands for Comma-Separated Values and is a storage format for tabular data.
|
||||
CSV documents are plaintext documents where each line represents a table row, with table columns separated by commas or some other delimiter (e.g. semicolons).
|
||||
The first line of a CSV document sometimes consists of the table column headings for the data to follow.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Callback
|
||||
tags: Callback
|
||||
---
|
||||
|
||||
A callback function, also known as a high-order function, is a function that is passed into another function as an argument, which is then executed inside the outer function.
|
||||
Callbacks can be synchronous or asynchronous.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Character encoding
|
||||
tags: Character encoding
|
||||
---
|
||||
|
||||
A character encoding defines a mapping between bytes and text, specifying how the sequenece of bytes should be interpreted.
|
||||
Two commonly used character encodings are ASCII and UTF-8.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Class
|
||||
tags: Class
|
||||
---
|
||||
|
||||
In object-oriented programming, a class is a template definition of an object's properties and methods.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Closure
|
||||
tags: Closure
|
||||
---
|
||||
|
||||
A closure is the combination of a function and the lexical environment within which that function was declared.
|
||||
The closure allows a function to access the contents of that environment.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: CoffeeScript
|
||||
tags: CoffeeScript
|
||||
---
|
||||
|
||||
CoffeeScript is a programming language inspired by Ruby, Python and Haskell that transpiles to JavaScript.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Constant
|
||||
tags: Constant
|
||||
---
|
||||
|
||||
A constant is a value, associated with an identifier.
|
||||
The value of a constant can be accessed using the identifier and cannot be altered during execution.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Constructor
|
||||
tags: Constructor
|
||||
---
|
||||
|
||||
In class-based object-oriented programming, a constructor is a special type of function called to instantiate an object.
|
||||
Constructors often accept arguments that are commonly used to set member properties.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Continuous Deployment
|
||||
tags: Continuous Deployment
|
||||
---
|
||||
|
||||
Continuous Deployment follows the testing that happens during Continuous Integration and pushes changes to a staging or production system.
|
||||
Continuous Deployment ensures that a version of the codebase is accessible at all times.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Continuous Integration
|
||||
tags: Continuous Integration
|
||||
---
|
||||
|
||||
Continuous Integration (CI) is the practice of testing each change done to a codebase automatically and as early as possible.
|
||||
Two popular CI systems that integrate with GitHub are Travis CI and Circle CI.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Cross-site scripting (XSS)
|
||||
tags: Cross-site scripting (XSS)
|
||||
---
|
||||
|
||||
XSS refers to client-side code injection where the attacker injects malicious scripts into a legitimate website or web application.
|
||||
This is often achieved when the application does not validate user input and freely injects dynamic HTML content.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Currying
|
||||
tags: Currying
|
||||
---
|
||||
|
||||
Currying is a way of constructing functions that allows partial application of a function's arguments.
|
||||
Practically, this means that a function is broken down into a series of functions, each one accepting part of the arguments.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: DNS
|
||||
tags: DNS
|
||||
---
|
||||
|
||||
A DNS (Domain Name System) translates domain names to the IP addresses needed to find a particular computer service on a network.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: DOM
|
||||
tags: DOM
|
||||
---
|
||||
|
||||
The DOM (Document Object Model) is a cross-platform API that treats HTML and XML documents as a tree structure consisting of nodes.
|
||||
These nodes (such as elements and text nodes) are objects that can be programmatically manipulated and any visible changes made to them are reflected live in the document.
|
||||
In a browser, this API is available to JavaScript where DOM nodes can be manipulated to change their styles, contents, placement in the document, or interacted with through event listeners.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Deserialization
|
||||
tags: Deserialization
|
||||
---
|
||||
|
||||
Deserialization is the process of converting a format that has been transferred over a network and/or used for storage to an object or data structure.
|
||||
A common type of deserialization in JavaScript is the conversion of JSON string into an object.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Domain name registrar
|
||||
tags: Domain name registrar
|
||||
---
|
||||
|
||||
A domain name registrar is a company that manages the reservation of internet domain names.
|
||||
A domain name registrar must be approved by a general top-level domain (gTLD) registry or a country code top-level domain (ccTLD) registry.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Domain name
|
||||
tags: Domain name
|
||||
---
|
||||
|
||||
A domain name is a website's address on the Internet, used primarily in URLs to identify the server for each webpage.
|
||||
A domain name consists of a hierarchical sequence of names, separated by dots and ending with an extension.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: ES6
|
||||
tags: ES6
|
||||
---
|
||||
|
||||
ES6 stands for ECMAScript 6 (also known as ECMAScript 2015), a version of the ECMAScript specification that standardizes JavaScript.
|
||||
ES6 adds a wide variety of new features to the specification, such as classes, promises, generators and arrow functions.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Element
|
||||
tags: Element
|
||||
---
|
||||
|
||||
A JavaScript representation of a DOM element commonly returned by `document.querySelector()` and `document.createElement()`.
|
||||
They are used when creating content with JavaScript for display in the DOM that needs to be programatically generated.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Event-driven programming
|
||||
tags: Event-driven programming
|
||||
---
|
||||
|
||||
Event-driven programming is a programming paradigm in which the flow of the program is determined by events (e.g. user actions, thread messages, sensor outputs).
|
||||
In event-driven applications, there is usually a main loop that listens for events and trigger callback functions accordingly when one of these events is detected.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Event loop
|
||||
tags: Event loop
|
||||
---
|
||||
|
||||
The event loop handles all asynchronous callbacks.
|
||||
Callbacks are queued in a loop, while other code runs, and will run one by one when the response for each one has been received.
|
||||
The event loop allows JavaScript to perform non-blocking I/O operations, despite the fact that JavaScript is single-threaded.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Express
|
||||
tags: Express
|
||||
---
|
||||
|
||||
Express is a backend framework, that provides a layer of fundamental web application features for Node.js.
|
||||
Some of its key features are routing, middleware, template engines and error handling.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Factory functions
|
||||
tags: Factory functions
|
||||
---
|
||||
|
||||
In JavaScript, a factory function is any function, which is not a class or constructor, that returns a new object.
|
||||
Factory functions don't require the use of the `new` keyword.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: First-class function
|
||||
tags: First-class function
|
||||
---
|
||||
|
||||
A programming language is said to have first-class functions if it treats them as first-class citizens, meaning they can be passed as arguments, be returned as values from other functions, be assigned to variables and stored in data structures.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Flexbox
|
||||
tags: Flexbox
|
||||
---
|
||||
|
||||
Flexbox is a one-dimensional layout model used to style websites as a property that could advance space distribution between items and provide powerful alignment capabilities.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Function
|
||||
tags: Function
|
||||
---
|
||||
|
||||
Functions are self-contained blocks of code with their own scope, that can be called by other code and are usually associated with a unique identifier.
|
||||
Functions accept input in the form of arguments and can optionally return an output (if no `return` statement is present, the default value of `undefined` will be returned instead).
|
||||
JavaScript functions are also objects.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Functional programming
|
||||
tags: Functional programming
|
||||
---
|
||||
|
||||
Functional programming is a paradigm in which programs are built in a declarative manner using pure functions that avoid shared state and mutable data.
|
||||
Functions that always return the same value for the same input and don't produce side effects are the pillar of functional programming.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Functor
|
||||
tags: Functor
|
||||
---
|
||||
|
||||
A Functor is a data type common in functional programming that implements a `map` method.
|
||||
The `map` method takes a function and applies it to the data in the Functor, returning a new instance of the Functor with the result.
|
||||
JavaScript `Array`s are an example of the Functor data type.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Garbage collection
|
||||
tags: Garbage collection
|
||||
---
|
||||
|
||||
Garbage collection is a form of automatic memory management.
|
||||
It attempts to reclaim memory occupied by objects that are no longer used by the program.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Git
|
||||
tags: Git
|
||||
---
|
||||
|
||||
Git is an open-source version control system, used for source code management.
|
||||
Git allows users to copy (clone) and edit code on their local machines, before merging it into the main code base (master repository).
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: HTML
|
||||
tags: HTML
|
||||
---
|
||||
|
||||
HTML stands for HyperText Markup Language and is a language used to structure web pages.
|
||||
HTML documents are plaintext documents structured with elements, which are surrounded by `<>` tags and optionally extended with attributes.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: HTTP and HTTPS
|
||||
tags: HTTP and HTTPS
|
||||
---
|
||||
|
||||
The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server.
|
||||
The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transferred between a client and a server.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Higher-order function
|
||||
tags: Higher-order function
|
||||
---
|
||||
|
||||
Higher-order functions are functions that either take other functions as arguments, return a function as a result, or both.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Hoisting
|
||||
tags: Hoisting
|
||||
---
|
||||
|
||||
Hoisting is JavaScript's default behavior of adding declarations to memory during the compile phase.
|
||||
Hoisting allows for JavaScript variables to be used before the line they were declared on.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: IP
|
||||
tags: IP
|
||||
---
|
||||
|
||||
An IP address is a number assigned to a device connected to a network that uses the Internet protocol.
|
||||
Two IP versions are currently in use - IPv4, the older version of the communication protocol (e.g. 192.168.1.100) and IPv6, the newest version of the communication protocol which allows for many different IP addresses (e.g. 0:0:0:0:ffff:c0a8:164).
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Integer
|
||||
tags: Integer
|
||||
---
|
||||
|
||||
Integers are one of the primitive data types in Javascript.
|
||||
They represent a numerical value that has no fractional component.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Integration testing
|
||||
tags: Integration testing
|
||||
---
|
||||
|
||||
Integration testing is a type of software testing, used to test groups of units/components of a software.
|
||||
The purpose of integration tests are to validate that the units/components interact with each other as expected.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: JSON
|
||||
tags: JSON
|
||||
---
|
||||
|
||||
JSON (JavaScript Object Notation) is a format for storing and exchanging data.
|
||||
It closely resembles the JavaScript object syntax, however some data types, such as dates and functions, cannot be natively represented and need to be serialized first.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: MDN
|
||||
tags: MDN
|
||||
---
|
||||
|
||||
MDN Web Docs, formerly known as Mozilla Developer Network, is the official Mozilla website for development documentation of web standards and Mozilla projects.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: MVC
|
||||
tags: MVC
|
||||
---
|
||||
|
||||
MVC stands for Model-View-Controller and is a software design pattern, emphasizing separation of concerns (logic and display).
|
||||
The Model part of the MVC pattern refers to the data and business logic, the View handles the layout and display, while the Controller routes commands to the model and view parts.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Module
|
||||
tags: Module
|
||||
---
|
||||
|
||||
Modules are independent, self-contained pieces of code that can be incorporated into other pieces of code.
|
||||
Modules improve maintainability and reusability of the code.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: MongoDB
|
||||
tags: MongoDB
|
||||
---
|
||||
|
||||
MongoDB is a NoSQL database model that stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Mutable value
|
||||
tags: Mutable value
|
||||
---
|
||||
|
||||
Mutable value is a type of variable that can be changed once created.
|
||||
Objects are mutable as their state can be modified after they are created.
|
||||
Primitive values are not mutable as we perform reassignment once we change them.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: NoSQL
|
||||
tags: NoSQL
|
||||
---
|
||||
|
||||
NoSQL databases provide a mechanism to create, update, retrieve and calculate data that is stored in models that are non-tabular.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Node.js
|
||||
tags: Node.js
|
||||
---
|
||||
|
||||
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
|
||||
Node.js can execute JavaScript code outside of the browser and can be used to develop web backends or standalone applications.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Npm
|
||||
tags: Npm
|
||||
---
|
||||
|
||||
Npm is a package manager for the JavaScript programming language and the default package manager for Node.js.
|
||||
It consists of a command-line client and the npm registry, an online database of packages.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Object-oriented programming
|
||||
tags: Object-oriented programming
|
||||
---
|
||||
|
||||
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which may contain both data and procedures which can be use to operate on them.
|
||||
JavaScript supports Object-oriented programming both via prototypes and classes.
|
||||
@ -1,8 +0,0 @@
|
||||
---
|
||||
title: Object
|
||||
tags: Object
|
||||
---
|
||||
|
||||
Objects are data structures that contain data and instructions for working with the data.
|
||||
Objects consist of key-value pairs, where the keys are alphanumeric identifiers and the values can either be primitives or objects.
|
||||
JavaScript functions are also objects.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: PWA
|
||||
tags: PWA
|
||||
---
|
||||
|
||||
Progressive Web App (known as PWA) is a term used to describe web applications that load like regular websites but can offer the user functionality such as working offline, push notifications, and device hardware access that were traditionally available only to native mobile applications.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Prepared statements
|
||||
tags: Prepared statements
|
||||
---
|
||||
|
||||
In databases management systems, prepared statements are templates that can be used to execute queries with the provided values substituting the template's parameters.
|
||||
Prepared statements offer many benefits, such as reusability, maintainability and higher security.
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Promise
|
||||
tags: Promise
|
||||
---
|
||||
|
||||
The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.
|
||||
A Promise can be in one of these states: pending(initial state, neither fulfilled nor rejected), fulfilled(operation completed successfully), rejected(operation failed).
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Prototype-based programming
|
||||
tags: Prototype-based programming
|
||||
---
|
||||
|
||||
Prototype-based programming is a style of object-oriented programming, where inheritance is based on object delegation, reusing objects that serve as prototypes.
|
||||
Prototype-based programming allows the creation of objects before defining their classes.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Pseudo-class
|
||||
tags: Pseudo-class
|
||||
---
|
||||
|
||||
In CSS, a pseudo-class is used to define a special state of an element and can be used as a selector in combination with an id, element or class selector.
|
||||
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: Pseudo-element
|
||||
tags: Pseudo-element
|
||||
---
|
||||
|
||||
In CSS, a pseudo-element is used to style specific parts of an element and can be used as a selector in combination with an id, element or class selector.
|
||||
@ -1,784 +0,0 @@
|
||||
# 30-seconds-of-code JavaScript Glossary
|
||||
|
||||
## Contents
|
||||
|
||||
* [`AJAX`](#ajax)
|
||||
* [`API`](#api)
|
||||
* [`Argument`](#argument)
|
||||
* [`Array`](#array)
|
||||
* [`Asynchronous programming`](#asynchronous-programming)
|
||||
* [`Automatic semicolon insertion`](#automatic-semicolon-insertion)
|
||||
* [`Boolean`](#boolean)
|
||||
* [`Callback`](#callback)
|
||||
* [`Character encoding`](#character-encoding)
|
||||
* [`Class`](#class)
|
||||
* [`Closure`](#closure)
|
||||
* [`CoffeeScript`](#coffeescript)
|
||||
* [`Constant`](#constant)
|
||||
* [`Constructor`](#constructor)
|
||||
* [`Continuous Deployment`](#continuous-deployment)
|
||||
* [`Continuous Integration`](#continuous-integration)
|
||||
* [`CORS`](#cors)
|
||||
* [`Cross-site scripting (XSS)`](#cross-site-scripting-xss)
|
||||
* [`CSS`](#css)
|
||||
* [`CSV`](#csv)
|
||||
* [`Currying`](#currying)
|
||||
* [`Deserialization`](#deserialization)
|
||||
* [`DNS`](#dns)
|
||||
* [`DOM`](#dom)
|
||||
* [`Domain name registrar`](#domain-name-registrar)
|
||||
* [`Domain name`](#domain-name)
|
||||
* [`Element`](#element)
|
||||
* [`ES6`](#es6)
|
||||
* [`Event-driven programming`](#event-driven-programming)
|
||||
* [`Event loop`](#event-loop)
|
||||
* [`Express`](#express)
|
||||
* [`Factory functions`](#factory-functions)
|
||||
* [`First-class function`](#first-class-function)
|
||||
* [`Flexbox`](#flexbox)
|
||||
* [`Function`](#function)
|
||||
* [`Functional programming`](#functional-programming)
|
||||
* [`Functor`](#functor)
|
||||
* [`Garbage collection`](#garbage-collection)
|
||||
* [`Git`](#git)
|
||||
* [`Higher-order function`](#higher-order-function)
|
||||
* [`Hoisting`](#hoisting)
|
||||
* [`HTML`](#html)
|
||||
* [`HTTP and HTTPS`](#http-and-https)
|
||||
* [`Integer`](#integer)
|
||||
* [`Integration testing`](#integration-testing)
|
||||
* [`IP`](#ip)
|
||||
* [`jQuery`](#jquery)
|
||||
* [`JSON`](#json)
|
||||
* [`MDN`](#mdn)
|
||||
* [`Module`](#module)
|
||||
* [`MongoDB`](#mongodb)
|
||||
* [`Mutable value`](#mutable-value)
|
||||
* [`MVC`](#mvc)
|
||||
* [`Node.js`](#nodejs)
|
||||
* [`NoSQL`](#nosql)
|
||||
* [`Npm`](#npm)
|
||||
* [`Object-oriented programming`](#object-oriented-programming)
|
||||
* [`Object`](#object)
|
||||
* [`Prepared statements`](#prepared-statements)
|
||||
* [`Promise`](#promise)
|
||||
* [`Prototype-based programming`](#prototype-based-programming)
|
||||
* [`Pseudo-class`](#pseudo-class)
|
||||
* [`Pseudo-element`](#pseudo-element)
|
||||
* [`PWA`](#pwa)
|
||||
* [`React`](#react)
|
||||
* [`Recursion`](#recursion)
|
||||
* [`Regular expressions`](#regular-expressions)
|
||||
* [`Repository`](#repository)
|
||||
* [`Responsive web design`](#responsive-web-design)
|
||||
* [`Scope`](#scope)
|
||||
* [`Selector`](#selector)
|
||||
* [`SEO`](#seo)
|
||||
* [`Serialization`](#serialization)
|
||||
* [`Shadow DOM`](#shadow-dom)
|
||||
* [`SQL injection`](#sql-injection)
|
||||
* [`SQL`](#sql)
|
||||
* [`SSL`](#ssl)
|
||||
* [`Stream`](#stream)
|
||||
* [`Strict mode`](#strict-mode)
|
||||
* [`String`](#string)
|
||||
* [`SVG`](#svg)
|
||||
* [`Template literals`](#template-literals)
|
||||
* [`TypeScript`](#typescript)
|
||||
* [`Unit testing`](#unit-testing)
|
||||
* [`URI`](#uri)
|
||||
* [`URL`](#url)
|
||||
* [`UTF-8`](#utf-8)
|
||||
* [`Value vs reference`](#value-vs-reference)
|
||||
* [`Variable`](#variable)
|
||||
* [`Viewport`](#viewport)
|
||||
* [`Vue`](#vue)
|
||||
* [`WebAssembly`](#webassembly)
|
||||
* [`Web Components`](#web-components)
|
||||
* [`WebGL`](#webgl)
|
||||
* [`WebRTC`](#webrtc)
|
||||
* [`WebSockets`](#websockets)
|
||||
* [`XHTML`](#xhtml)
|
||||
* [`XML`](#xml)
|
||||
* [`Yarn`](#yarn)
|
||||
|
||||
### AJAX
|
||||
|
||||
Asynchronous JavaScript and XML (known as AJAX) is a term that describes a new approach to using multiple technologies together in order to enable web applications to make quick updates to the user interface without reloading the entire browser page.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### API
|
||||
|
||||
API stands for Application Programming Interface and is a set of features and rules provided by a provided by a software to enable third-party software to interact with it.
|
||||
The code features of a web API usually include methods, properties, events or URLs.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Argument
|
||||
|
||||
An argument is a value passed as an input to a function and can be either a primitive or an object.
|
||||
In JavaScript, functions can also be passed as arguments to other functions.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Array
|
||||
|
||||
Arrays are used to store multiple values in a single variable.
|
||||
Arrays are ordered and each item in an array has a numeric index associated with it.
|
||||
JavaScript arrays are zero-indexed, meaning the first element's index is 0.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Asynchronous programming
|
||||
|
||||
Asynchronous programming is a way to allow multiple events to trigger code without waiting for each other.
|
||||
The main benefits of asynchronous programming are improved application performance and responsiveness.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Automatic semicolon insertion
|
||||
|
||||
Automatic semicolon insertion (ASI) is a JavaScript feature that allows developers to omit semicolons in their code.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Boolean
|
||||
|
||||
Booleans are one of the primitive data types in JavaScript.
|
||||
They represent logical data values and can only be `true` or `false`.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Callback
|
||||
|
||||
A callback function, also known as a high-order function, is a function that is passed into another function as an argument, which is then executed inside the outer function.
|
||||
Callbacks can be synchronous or asynchronous.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Character encoding
|
||||
|
||||
A character encoding defines a mapping between bytes and text, specifying how the sequenece of bytes should be interpreted.
|
||||
Two commonly used character encodings are ASCII and UTF-8.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Class
|
||||
|
||||
In object-oriented programming, a class is a template definition of an object's properties and methods.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Closure
|
||||
|
||||
A closure is the combination of a function and the lexical environment within which that function was declared.
|
||||
The closure allows a function to access the contents of that environment.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### CoffeeScript
|
||||
|
||||
CoffeeScript is a programming language inspired by Ruby, Python and Haskell that transpiles to JavaScript.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Constant
|
||||
|
||||
A constant is a value, associated with an identifier.
|
||||
The value of a constant can be accessed using the identifier and cannot be altered during execution.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Constructor
|
||||
|
||||
In class-based object-oriented programming, a constructor is a special type of function called to instantiate an object.
|
||||
Constructors often accept arguments that are commonly used to set member properties.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Continuous Deployment
|
||||
|
||||
Continuous Deployment follows the testing that happens during Continuous Integration and pushes changes to a staging or production system.
|
||||
Continuous Deployment ensures that a version of the codebase is accessible at all times.
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Continuous Integration
|
||||
|
||||
Continuous Integration (CI) is the practice of testing each change done to a codebase automatically and as early as possible.
|
||||
Two popular CI systems that integrate with GitHub are Travis CI and Circle CI.
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### CORS
|
||||
|
||||
Cross-Origin Resource Sharing (known as CORS) is a mechanism that uses extra HTTP headers to tell a browser to let a web application running at one domain have permission to access resources from a server at a different domain.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Cross-site scripting (XSS)
|
||||
|
||||
XSS refers to client-side code injection where the attacker injects malicious scripts into a legitimate website or web application.
|
||||
This is often achieved when the application does not validate user input and freely injects dynamic HTML content.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### CSS
|
||||
|
||||
CSS stands for Cascading Style Sheets and is a language used to style web pages.
|
||||
CSS documents are plaintext documents structured with rules, which consist of element selectors and property-value pairs that apply the styles to the specified selectors.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### CSV
|
||||
|
||||
CSV stands for Comma-Separated Values and is a storage format for tabular data.
|
||||
CSV documents are plaintext documents where each line represents a table row, with table columns separated by commas or some other delimiter (e.g. semicolons).
|
||||
The first line of a CSV document sometimes consists of the table column headings for the data to follow.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Currying
|
||||
|
||||
Currying is a way of constructing functions that allows partial application of a function's arguments.
|
||||
Practically, this means that a function is broken down into a series of functions, each one accepting part of the arguments.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Deserialization
|
||||
|
||||
Deserialization is the process of converting a format that has been transferred over a network and/or used for storage to an object or data structure.
|
||||
A common type of deserialization in JavaScript is the conversion of JSON string into an object.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### DNS
|
||||
|
||||
A DNS (Domain Name System) translates domain names to the IP addresses needed to find a particular computer service on a network.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### DOM
|
||||
|
||||
The DOM (Document Object Model) is a cross-platform API that treats HTML and XML documents as a tree structure consisting of nodes.
|
||||
These nodes (such as elements and text nodes) are objects that can be programmatically manipulated and any visible changes made to them are reflected live in the document.
|
||||
In a browser, this API is available to JavaScript where DOM nodes can be manipulated to change their styles, contents, placement in the document, or interacted with through event listeners.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Domain name registrar
|
||||
|
||||
A domain name registrar is a company that manages the reservation of internet domain names.
|
||||
A domain name registrar must be approved by a general top-level domain (gTLD) registry or a country code top-level domain (ccTLD) registry.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Domain name
|
||||
|
||||
A domain name is a website's address on the Internet, used primarily in URLs to identify the server for each webpage.
|
||||
A domain name consists of a hierarchical sequence of names, separated by dots and ending with an extension.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Element
|
||||
|
||||
A JavaScript representation of a DOM element commonly returned by `document.querySelector()` and `document.createElement()`.
|
||||
They are used when creating content with JavaScript for display in the DOM that needs to be programatically generated.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### ES6
|
||||
|
||||
ES6 stands for ECMAScript 6 (also known as ECMAScript 2015), a version of the ECMAScript specification that standardizes JavaScript.
|
||||
ES6 adds a wide variety of new features to the specification, such as classes, promises, generators and arrow functions.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Event-driven programming
|
||||
|
||||
Event-driven programming is a programming paradigm in which the flow of the program is determined by events (e.g. user actions, thread messages, sensor outputs).
|
||||
In event-driven applications, there is usually a main loop that listens for events and trigger callback functions accordingly when one of these events is detected.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Event loop
|
||||
|
||||
The event loop handles all asynchronous callbacks.
|
||||
Callbacks are queued in a loop, while other code runs, and will run one by one when the response for each one has been received.
|
||||
The event loop allows JavaScript to perform non-blocking I/O operations, despite the fact that JavaScript is single-threaded.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Express
|
||||
|
||||
Express is a backend framework, that provides a layer of fundamental web application features for Node.js.
|
||||
Some of its key features are routing, middleware, template engines and error handling.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Factory functions
|
||||
|
||||
In JavaScript, a factory function is any function, which is not a class or constructor, that returns a new object.
|
||||
Factory functions don't require the use of the `new` keyword.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### First-class function
|
||||
|
||||
A programming language is said to have first-class functions if it treats them as first-class citizens, meaning they can be passed as arguments, be returned as values from other functions, be assigned to variables and stored in data structures.
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Flexbox
|
||||
|
||||
Flexbox is a one-dimensional layout model used to style websites as a property that could advance space distribution between items and provide powerful alignment capabilities.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Function
|
||||
|
||||
Functions are self-contained blocks of code with their own scope, that can be called by other code and are usually associated with a unique identifier.
|
||||
Functions accept input in the form of arguments and can optionally return an output (if no `return` statement is present, the default value of `undefined` will be returned instead).
|
||||
JavaScript functions are also objects.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Functional programming
|
||||
|
||||
Functional programming is a paradigm in which programs are built in a declarative manner using pure functions that avoid shared state and mutable data.
|
||||
Functions that always return the same value for the same input and don't produce side effects are the pillar of functional programming.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Functor
|
||||
|
||||
A Functor is a data type common in functional programming that implements a `map` method.
|
||||
The `map` method takes a function and applies it to the data in the Functor, returning a new instance of the Functor with the result.
|
||||
JavaScript `Array`s are an example of the Functor data type.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Garbage collection
|
||||
|
||||
Garbage collection is a form of automatic memory management.
|
||||
It attempts to reclaim memory occupied by objects that are no longer used by the program.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Git
|
||||
|
||||
Git is an open-source version control system, used for source code management.
|
||||
Git allows users to copy (clone) and edit code on their local machines, before merging it into the main code base (master repository).
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Higher-order function
|
||||
|
||||
Higher-order functions are functions that either take other functions as arguments, return a function as a result, or both.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Hoisting
|
||||
|
||||
Hoisting is JavaScript's default behavior of adding declarations to memory during the compile phase.
|
||||
Hoisting allows for JavaScript variables to be used before the line they were declared on.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### HTML
|
||||
|
||||
HTML stands for HyperText Markup Language and is a language used to structure web pages.
|
||||
HTML documents are plaintext documents structured with elements, which are surrounded by `<>` tags and optionally extended with attributes.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### HTTP and HTTPS
|
||||
|
||||
The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server.
|
||||
The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transferred between a client and a server.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Integer
|
||||
|
||||
Integers are one of the primitive data types in Javascript.
|
||||
They represent a numerical value that has no fractional component.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Integration testing
|
||||
|
||||
Integration testing is a type of software testing, used to test groups of units/components of a software.
|
||||
The purpose of integration tests are to validate that the units/components interact with each other as expected.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### IP
|
||||
|
||||
An IP address is a number assigned to a device connected to a network that uses the Internet protocol.
|
||||
Two IP versions are currently in use - IPv4, the older version of the communication protocol (e.g. 192.168.1.100) and IPv6, the newest version of the communication protocol which allows for many different IP addresses (e.g. 0:0:0:0:ffff:c0a8:164).
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### jQuery
|
||||
|
||||
jQuery is a frontend JavaScript library, that simplifies DOM manipulation, AJAX calls and Event handling.
|
||||
jQuery uses its globally defined function, `$()`, to select and manipulate DOM elements.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### JSON
|
||||
|
||||
JSON (JavaScript Object Notation) is a format for storing and exchanging data.
|
||||
It closely resembles the JavaScript object syntax, however some data types, such as dates and functions, cannot be natively represented and need to be serialized first.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### MDN
|
||||
|
||||
MDN Web Docs, formerly known as Mozilla Developer Network, is the official Mozilla website for development documentation of web standards and Mozilla projects.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Module
|
||||
|
||||
Modules are independent, self-contained pieces of code that can be incorporated into other pieces of code.
|
||||
Modules improve maintainability and reusability of the code.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### MongoDB
|
||||
|
||||
MongoDB is a NoSQL database model that stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Mutable value
|
||||
|
||||
Mutable value is a type of variable that can be changed once created.
|
||||
Objects are mutable as their state can be modified after they are created.
|
||||
Primitive values are not mutable as we perform reassignment once we change them.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### MVC
|
||||
|
||||
MVC stands for Model-View-Controller and is a software design pattern, emphasizing separation of concerns (logic and display).
|
||||
The Model part of the MVC pattern refers to the data and business logic, the View handles the layout and display, while the Controller routes commands to the model and view parts.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Node.js
|
||||
|
||||
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
|
||||
Node.js can execute JavaScript code outside of the browser and can be used to develop web backends or standalone applications.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### NoSQL
|
||||
|
||||
NoSQL databases provide a mechanism to create, update, retrieve and calculate data that is stored in models that are non-tabular.
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Npm
|
||||
|
||||
Npm is a package manager for the JavaScript programming language and the default package manager for Node.js.
|
||||
It consists of a command-line client and the npm registry, an online database of packages.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Object-oriented programming
|
||||
|
||||
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which may contain both data and procedures which can be use to operate on them.
|
||||
JavaScript supports Object-oriented programming both via prototypes and classes.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Object
|
||||
|
||||
Objects are data structures that contain data and instructions for working with the data.
|
||||
Objects consist of key-value pairs, where the keys are alphanumeric identifiers and the values can either be primitives or objects.
|
||||
JavaScript functions are also objects.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Prepared statements
|
||||
|
||||
In databases management systems, prepared statements are templates that can be used to execute queries with the provided values substituting the template's parameters.
|
||||
Prepared statements offer many benefits, such as reusability, maintainability and higher security.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Promise
|
||||
|
||||
The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.
|
||||
A Promise can be in one of these states: pending(initial state, neither fulfilled nor rejected), fulfilled(operation completed successfully), rejected(operation failed).
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Prototype-based programming
|
||||
|
||||
Prototype-based programming is a style of object-oriented programming, where inheritance is based on object delegation, reusing objects that serve as prototypes.
|
||||
Prototype-based programming allows the creation of objects before defining their classes.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Pseudo-class
|
||||
|
||||
In CSS, a pseudo-class is used to define a special state of an element and can be used as a selector in combination with an id, element or class selector.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Pseudo-element
|
||||
|
||||
In CSS, a pseudo-element is used to style specific parts of an element and can be used as a selector in combination with an id, element or class selector.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### PWA
|
||||
|
||||
Progressive Web App (known as PWA) is a term used to describe web applications that load like regular websites but can offer the user functionality such as working offline, push notifications, and device hardware access that were traditionally available only to native mobile applications.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### React
|
||||
|
||||
React is a frontend framework, that allows developers to create dynamic, component-based user interfaces.
|
||||
React separates view and state, utilizing a virtual DOM to update the user interface.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Recursion
|
||||
|
||||
Recursion is the repeated application of a process.
|
||||
In JavaScript, recursion involves functions that call themselves repeatedly until they reach a base condition.
|
||||
The base condition breaks out of the recursion loop because otherwise the function would call itself indefinitely.
|
||||
Recursion is very useful when working with nested data, especially when the nesting depth is dynamically defined or unkown.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Regular expressions
|
||||
|
||||
Regular expressions (known as regex or regexp) are patterns used to match character combinations in strings.
|
||||
JavaScript provides a regular expression implementation through the `RegExp` object.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Repository
|
||||
|
||||
In a version control system, a repository (or repo for short) is a data structure that stores metadata for a set of files (i.e. a project).
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Responsive web design
|
||||
|
||||
Responsive web design is a web development concept aiming to provide optimal behavior and performance of websites on all web-enabled devices.
|
||||
Responsive web design is usually coupled with a mobile-first approach.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Scope
|
||||
|
||||
Each function has its own scope, and any variable declared within that function is only accessible from that function and any nested functions.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Selector
|
||||
|
||||
A CSS selector is a pattern that is used to select and/or style one or more elements in a document, based on certain rules.
|
||||
The order in which CSS selectors apply styles to elements is based on the rules of CSS specificity.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### SEO
|
||||
|
||||
SEO stands for Search Engine Optimization and refers to the process of improving a website's search rankings and visibility.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Serialization
|
||||
|
||||
Serialization is the process of converting an object or data structure into a format suitable for transfer over a network and/or storage.
|
||||
A common type of serialization in JavaScript is the conversion of an object into a JSON string.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Shadow DOM
|
||||
|
||||
Shadow DOM allows you to attach hidden DOM trees to elements in the normal DOM tree, which are included in the document rendering, but excluded from the main document DOM tree.
|
||||
A shadow DOM tree will start with a shadow root, to which you can attach any elements you want, just like in a regular DOM.
|
||||
Examples of shadow DOM uses are the `<video>`/`<audio>` elements and the simple `<input type="range">` element.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### SQL injection
|
||||
|
||||
SQL injection is a code injection technique, used to attack data-driven applications.
|
||||
SQL injections get their name from the SQL language and mainly target data stored in relational databases.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### SQL
|
||||
|
||||
SQL stands for Structured Query Language and is a language used to create, update, retrieve and calculate data in table-based databases.
|
||||
SQL databases use a relational database model and are particularly useful in handlind structured data with relations between different entities.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### SSL
|
||||
|
||||
Secure Sockets Layer, commonly known as SSL or TLS, is a set of protocols and standards for transferring private data across the Internet.
|
||||
SSL uses a cryptographic system that uses two keys to encrypt data.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Stream
|
||||
|
||||
A stream is a sequence of data made available over time, often due to network transmission or storage access times.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Strict mode
|
||||
|
||||
JavaScript's strict mode is a JavaScript feature that allows developers to use a more restrictive variant of JavaScript and it can be enabled by adding `'use strict';` at the very top of their code.
|
||||
Strict mode elimiated some silent errors, might improve performance and changes the behavior of `eval` and `arguments` among other things.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### String
|
||||
|
||||
Strings are one of the primitive data types in JavaScript.
|
||||
They are sequences of characters and are used to represent text.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### SVG
|
||||
|
||||
SVG stands for Scalable Vector Graphics and is a 2D vector image format based on an XML syntax.
|
||||
SVG images can scale infinitely and can utilize clipping, masking, filters, animations etc.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Template literals
|
||||
|
||||
Template literals are strings that allow embedded expressions.
|
||||
They support multi-line strings, expression interpolation and nesting.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### TypeScript
|
||||
|
||||
TypeScript is a superset of JavaScript, adding optional static typing to the language.
|
||||
TypeScript compiles to plain JavaScript.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Unit testing
|
||||
|
||||
Unit testing is a type of software testing, used to test individual units/components of a software.
|
||||
The purpose of unit tests are to validate that each individual unit/component performs as designed.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### URI
|
||||
|
||||
URI stands for Uniform Resource Identifier and is a text string referring to a resource.
|
||||
A common type of URI is a URL, which is used for the identification of resources on the Web.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### URL
|
||||
|
||||
URL stands for Uniform Resource Locator and is a text string specifying where a resource can be found on the Internet.
|
||||
In the HTTP protocol, URLs are the same as web addresses and hyperlinks.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### UTF-8
|
||||
|
||||
UTF-8 stands for UCS Transformation Format 8 and is a commonly used character encoding.
|
||||
UTF-8 is backwards compatible with ASCII and can represent any standard Unicode character.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Value vs reference
|
||||
|
||||
When passing a variable by value, a copy of the variable is made, meaning that any changes made to the contents of the variable will not be reflected in the original variable.
|
||||
When passing a variable by reference, the memory address of the actual variable is passed to the function or variable, meaning that modifying the variable's contents will be reflected in the original variable.
|
||||
In JavaScript primitive data types are passed by value while objects are passed by reference.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Variable
|
||||
|
||||
A variable is a storage location, associated with an identifier and containing a value.
|
||||
The value of a variable can be referred using the identifier and can be altered during execution.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Viewport
|
||||
|
||||
A viewport is a polygonal (usually rectangular) area in computer graphics that is currently being viewed.
|
||||
In web development and design, it refers to the visible part of the document that is being viewed by the user in the browser window.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Vue
|
||||
|
||||
Vue.js is a progressive frontend framework for building user interfaces.
|
||||
Vue.js separates view and state, utilizing a virtual DOM to update the user interface.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### WebAssembly
|
||||
|
||||
WebAssembly (WA) is a web standard that defines an assembly-like text format and corresponding binary format for executalbe code in web pages.
|
||||
WebAssembly is meant to complement JavaScript and improve its performance to match native code performance.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Web Components
|
||||
|
||||
Web Components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML tags to use on web pages and apps.
|
||||
Building custom components using these standards means that you can use them across modern browsers regardless of any JavaScript library or framework.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### WebGL
|
||||
|
||||
WebGL stands for Web Graphics Library and is a JavaScript API that can be used for drawing interactive 2D and 3D graphics.
|
||||
WebGL is based on OpenGL and can be invoked within HTML `<canvas>` elements, which provide a rendering surface.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### WebRTC
|
||||
|
||||
WebRTC stands for Web Real-Time Communication and is an API that can be used for video-chat, voice-calling and P2P-file-sharing web apps.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### WebSockets
|
||||
|
||||
WebSockets is a protocol that allows for a persistent client-server TCP connection.
|
||||
The WebSocket protocol uses lower overheads, facilitating real-time data transfer between client and server.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### XHTML
|
||||
|
||||
XHTML stands for EXtensible HyperText Markup Language and is a language used to structure web pages.
|
||||
XHTML is a reformulation of the HTML document structure as an application of XML.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### XML
|
||||
|
||||
XML stands for eXtensible Markup Language and is a generic markup language specified by the W3C.
|
||||
XML documents are plaintext documents structured with user-defined tags, surrounded by `<>` and optionally extended with attributes.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
### Yarn
|
||||
|
||||
Yarn is a package manager made by Facebook.
|
||||
It can be used as an alternative to the npm package manager and is compatible with the public NPM registry.
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: React
|
||||
tags: React
|
||||
---
|
||||
|
||||
React is a frontend framework, that allows developers to create dynamic, component-based user interfaces.
|
||||
React separates view and state, utilizing a virtual DOM to update the user interface.
|
||||