Originally published on Dev.to.If you are a website developer, you have most probably protected yourself from common attacks such as XSS, SQL, CSRF, etc. But are you safe from a Clickjacking attack? Try this: Create a blank HTML file. Add the following code: <style>body { margin:0; }</style> <iframe src=”http://your-site.com" width=”100%” height=”100%” style=”border: … [Read more...]
How to Handle Secrets in Docker
Secrets management in Docker is a critical security concern for any business. When using Docker containers, it is essential to keep sensitive data such as passwords, API keys, and other credentials secure.This blog post will discuss some best practices for managing secrets in Docker, including how to store them securely and minimize their exposure. We will explore multiple solutions: using Docker … [Read more...]
async and defer in script tag
Normal script taghttp://span In the normal script tag, the browser will parse the HTML line by line until it encounters the script tag. As soon as it encounters the script tag, it will fetch scripts from the network and execute them. Once the script is fully executed then only the browser will continue to parse HTML. async in a script tag async src="script.js"> Using the async attribute in … [Read more...]
3 Ways to Build Data Classes in Python
Data classes are used in every OOP language, these are classes that contain only fields and CRUD methods for accessing them and they act as Data holders, but certainly, they can be more!Martin Fowler, wrote in his book Refactoring: Improving the Design of Existing Code: Data classes are like children. They are okay as a starting point, but to participate as a grownup object, they need to take … [Read more...]
The Best Chrome Extensions for Programmers
Web extensions, also known as browser extensions, are small software programs that can be installed into your web browser to extend its functionality. These extensions can be used to enhance your browsing experience, add new features, and improve your productivity. As a programmer, there are many web extensions that can be incredibly helpful. In this article, we'll take a closer look at web … [Read more...]
What Do We KNow About Django?
Django is a popular web development framework that is written in Python. It is designed to be fast, scalable, and secure, making it an excellent choice for building complex web applications. In this article, we'll take a closer look at Django, including its history, features, and benefits.History of Django Django was first created in 2003 by Adrian Holovaty and Simon Willison while working at the … [Read more...]
My Journey to Becoming an industry Professional: 100 Days of Code Challenge
Hey there, coders and tech enthusiasts! I'm a sophomore in college, still new to the world of programming, but already hooked on the magic of creating something out of nothing. After a long search for a passion that could fuel my creativity and analytical side, I stumbled upon the world of coding and knew instantly that it was the perfect fit for me.So, I've decided to embark on a 100 Days of Code … [Read more...]
When to use the id attribute
The id attribute is arguably one of the most popular attributes used in HTML, second only to the class attribute. It serves a lot of purposes, which means it can easily be misunderstood or misused. Let's take a look at what it's really for, what it's not for, and what alternatives might be better.When to use the id attribute Associate a button with a form A form's submit button doesn't need to be … [Read more...]
Creating "debounce()" Using a Closure
A debounce() function is one of those awesome tools that we reach for when we want to delay an action from taking place too rapidly.A good use case might be trying to prevent too many API calls to your server when a user types into a search input box and an API call is fired for every key press. There may be some use cases where we want to immediately respond like this, but in many situations, we … [Read more...]
Easy way to understand CSS Box Model…
Introduction to the CSS Box ModelWhen laying out a document, the browser's rendering engine represents each element as a rectangular box according to the standard CSS Box Model. The Box Model is containing multiple properties such as Padding, Margin, Borders and content. CSS determines the size, position and CSS properties of these boxes. It is used to create the design and layout of web … [Read more...]
10 Useful Console Methods In JavaScript
A Javascript console object is a global object that provides access to the browser's debugging console.Most of us have used console.log() to print messages to the console. but there are many other methods that we can use to debug code easily. The Complete Article will be updated soon with console Methods🙏. Source: hashnode.com … [Read more...]
A Beginner's Guide to Getting Started with React
React is a powerful JavaScript library used for building complex user interfaces. If you're new to React, it can be daunting to know where to start. In this guide, we'll cover everything you need to know to get started with React, from setting up your development environment to building your first app. Install Node.js and npm Before you can start working with React, you need to have Node.js and … [Read more...]
JavaScript Error Management: Proven Strategies You Need to Know
Let's talk about a universal truth in programming - Murphy's law. As you probably already know, it states that anything that can go wrong will eventually go wrong. And let's face it, as much as we try to prevent it, errors and bugs seem to creep into our code at some point.JavaScript is no exception. This popular programming language is notorious for its average error-handling design. That's why … [Read more...]
What are the different datatypes in JSON
JSON supports the following 6 data types, the first 4 are primitive data types and the other 2 are complex types.TypeDetailstringdouble-quoted Unicode characters of length 0 or more. Special characters need to be escaped with a backslash ().numberany integer or floating point. JSON does not have separate types for thembooleantrue or falsenullnull or emptyarrayordered collection of valuesobjectan … [Read more...]
Building a Blog from Scratch with HTML, CSS, and JavaScript: A Step-by-Step Guide
In this tutorial, you'll learn how to create a blog from scratch using HTML, CSS, and JavaScript.We'll start by setting up the basic structure of the blog, then add styling with CSS, and finally, include some interactive features using JavaScript. By the end of this video, you'll have a fully functional blog that you can customize and use as a personal website, portfolio, or anything else you … [Read more...]
Best Practices for Writing Clean React Code
React is a popular JavaScript library used for building user interfaces. Writing clean, maintainable code is crucial to building high-quality, reliable React apps. In this post, we'll cover best practices for writing clean React code to help you build apps that are easy to read, maintain, and scale. 1. Component Structure Components are the building blocks of a React app. Structuring components in … [Read more...]
A Beginner's Guide
Are you interested in learning how to create your own website from scratch? if yes then web development is the final stop for you. Web development is the process of creating websites and web applications and as well as a crucial skill to learn in the current tech era. From an online store or a simple web app, knowing how the coding is done can be a great experience. However, if you are a newbie … [Read more...]
A complete blog on CSS Selectors
In this blog, I will be talking about various kinds of selectors in the CSS As a developer, you might be learning about many things in CSS. But if you lag in selecting or targeting the element in your development journey then you might miss the honey from the bee. I'm saying that mastering the selectors will make you 80% proficient in CSS. You should be able to understand which tag or element is … [Read more...]
HTML: Form Input types
HTML Form Input tag is one of the major reasons why JavaScript is thriving. It helps us collect and process data from a user. There is hardly any website where any type of data is not processed; be it collecting customer information, sending a request to a supplier, sending and downloading images, taking questionnaires, running a poll etc. All of these operations are done with one or another HTML … [Read more...]
Create a project with Supabase
Supabase is an open-source backend-as-a-service (BaaS) that provides developers with a set of tools to help them quickly build web and mobile applications. It offers a range of features including authentication, real-time data, APIs, and more. Supabase is designed to be a scalable and easy-to-use solution that eliminates the need for developers to spend time setting up and managing their own … [Read more...]
- « Previous Page
- 1
- …
- 588
- 589
- 590
- 591
- 592
- …
- 610
- Next Page »