Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
What are your favorite database?
Anonymous Poll
21%
PostgreSQL
59%
MySQL
8%
SQLite
4%
Redis
39%
MongoDB
2%
Cassandra
1%
Elasticsearch
4%
MariaDB
2%
DynamoDB
2%
Neo4j
Please open Telegram to view this post
VIEW IN TELEGRAM
What are your favorite editors?
Anonymous Poll
84%
VS Code
9%
Sublime Text
4%
Atom
4%
Vim
4%
NeoVim
8%
WebStorm
1%
Emacs
8%
Notepad++
17%
Visual Studio
Please open Telegram to view this post
VIEW IN TELEGRAM
What is your salary as a developer?
Anonymous Poll
42%
< 500 $
11%
500 - 1K $
17%
1K - 3K $
7%
3K - 6K $
6%
6K - 10K $
17%
10K + $
π€£46π€16β€6 6π4
May your algorithms always be efficient, your meetings brief, and your stack overflow searches fruitful.
Please open Telegram to view this post
VIEW IN TELEGRAM
β€49 15π12π€©2
function calculateAsyncSum(numbers) {
return new Promise(resolve => {
setTimeout(() => {
const sum = numbers.reduce((acc, num) => acc + num, 0);
resolve(sum);
}, 1000);
});
}
async function getResult() {
const data = [1, 2, 3, 4, 5];
const result = await calculateAsyncSum(data);
console.log(result);
}
getResult();
Please open Telegram to view this post
VIEW IN TELEGRAM
π9β€6
π18 8β€3
If you ever wondered what is the minimal Docker image in the world, then you are in right place. Is it debian, is it alpine or busybox ? ...
dooqod
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£9π5β€3
function asyncOperation() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('Async operation completed!');
}, 2000);
});
}
const asyncOperationWithTimeout = Promise.race([asyncOperation(), new Promise((_, reject) => setTimeout(() => reject('Timeout!'), 1000))]);
asyncOperationWithTimeout
.then(result => console.log(result))
.catch(error => console.log(error));
Please open Telegram to view this post
VIEW IN TELEGRAM
β€10π4
What is the output?
Anonymous Quiz
20%
undefined
35%
'Async operation completed!'
14%
This will result in an error
31%
'Timeout!'
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£78 8β€6π5π€©1
function fetchData() {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('Data fetched successfully!');
}, 1000);
});
}
async function getResult() {
const result = await fetchData();
console.log(result);
}
getResult();
Please open Telegram to view this post
VIEW IN TELEGRAM
π5 2
What is the output?
Anonymous Quiz
70%
"Data fetched successfully!"
15%
'Fetching data...'
10%
undefined
5%
This will result in an error
π15β€6π€©4π€1
There are numerous programming design patterns that youβve likely used, but youβre not aware of them...
NAIRIHAR
Please open Telegram to view this post
VIEW IN TELEGRAM
const data = [
{ id: 1, name: 'Alice', skills: ['JavaScript', 'HTML'] },
{ id: 2, name: 'Bob', skills: ['JavaScript', 'CSS'] },
{ id: 3, name: 'Charlie', skills: ['HTML', 'CSS'] },
];
const result = data.reduce((acc, person) => {
person.skills.forEach(skill => {
acc[skill] = acc[skill] ? acc[skill] + 1 : 1;
});
return acc;
}, {});
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
π23
What is the output?
Anonymous Quiz
24%
{ JavaScript: 3, HTML: 2, CSS: 2 }
20%
{ JavaScript: 3, HTML: 1, CSS: 1 }
14%
{ JavaScript: 2, HTML: 1, CSS: 1 }
42%
{ JavaScript: 2, HTML: 2, CSS: 2 }