Добавлено: 11 сентября 2023 г.
In today’s rapidly evolving web development landscape, selecting the right framework is crucial for delivering efficient, scalable, and maintainable applications. React and Blazor are two leading frameworks that have gained significant attention in recent years. As developers and businesses weigh their options, understanding the differences between these two powerful tools becomes increasingly important. This article will delve into the strengths and weaknesses of both React and Blazor, comparing their performance,...
далее...
Добавлено: 29 апреля 2023 г.
JavaScript is a versatile programming language that allows developers to create dynamic and interactive web applications. One common task in web development is to refresh or reload a web page, either to update its content or to trigger certain actions.
In this article, we will explore different ways to refresh a page in JavaScript and understand the pros and cons of each approach.
Why refresh a page in JavaScript?
Refreshing a web page...
далее...
Добавлено: 26 февраля 2023 г.
Error handling with Async/Await in JS
This will be a small article, based on some issues I picked up during code reviews and discussions with other developers. This article is rather focused on the novice JS developers.
A Simple Try Catch
Let’s start with the simple try...catch example.
function thisThrows() {
throw new Error("Thrown from thisThrows()");
}
try {
thisThrows();
} catch (e) {
console.error(e);
} finally {
console.log('We do cleanup here');
}
// Output:
// Error: Thrown from thisThrows()
// ...stacktrace
//...
далее...
Добавлено: 26 февраля 2023 г.
Achieve Typescript mastery with a 21-steps guide, that takes you from Padawan to Obi-Wan.
Content
Intro
Best Practice 1: Strict Type Checking
Best Practice 2: Type Inference
Best Practice 3: Linters
Best Practice 4: Interfaces
Best Practice 5: Type Aliases
Best Practice 6: Using Tuples
Best Practice...
далее...
Добавлено: 28 декабря 2022 г.
print media queries
Вы можете стилизировать версию вашего сайта для печати с помощью media query:
@media print {
* {
background-color: transparent;
color: #000 ;
box-shadow: none;
text-shadow: none;
}
}
gradient text
h1 {
background-image: linear-gradient(to right, #C6FFDD, #FBD786, #f7797d);
background-clip: text;
color: transparent;
}
Улучшаем media defaults
Когда пишите css reset файлик, добавьте настройки для мультимедийных файлов:
img, picture, video, svg {
max-width: 100%;
object-fit: contain; /* preserve a nice aspect-ratio */
}
column count
Создаем column лейауты с...
далее...
Добавлено: 2 июня 2022 г.
Backend frameworks are the most critical building blocks that make application development easier and practical. Most developers, and clients for whom the developers create apps, have a problem choosing a backed framework. For a long time, .NET has played a crucial role as the go-to framework to develop the core elements of the apps.
On the other hand, front-end frameworks are the pioneering blocks that define how the user will interact...
далее...