teleren/devto huggingface dataset:
13 Years Later: Why Every Developer Should Finally Start Their Blog
Published: 2023-02-02 05:13:11

---
title: 13 Years Later: Why Every Developer Should Finally Start Their Blog
published: true
date: 2023-02-01 03:50:00 UTC
tags: 
canonical_url: 
---
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v6btjo6p3oauqo2enl1b.jpg)

Listen up, my coding friends! I remember reading about why every developer should have a blog 13 whole years ago. And what did I do with that knowledge? Absolutely nothing! But hey, it's never too late to start, right? So, let me remind you why you should join me on this blogging journey: 

  

- Showcase your Skills: Blogging allows you to flaunt your work, abilities, and know-how. It's a fantastic way to show the world what you're capable of and create a stunning digital portfolio to share with potential employers, clients, or colleagues. 
- Advance Your Career: Share your work with the world through your blog. Blogging helps you demonstrate your expertise and build a professional reputation that can lead to new job opportunities and a thriving career. 
- Share Your Knowledge: Spread your wisdom and experiences to others and help them grow as developers. By creating a blog, you can give back to the development community and make a positive impact. 
- Expand Your Network: Blogs are a great way to connect with other developers and industry professionals. By participating in online discussions and contributing to the development community, you'll become a valuable resource and form meaningful connections in your field. 
- Grow as a Developer: Blogging helps you refine your thoughts and organize your knowledge, leading to new insights and ideas. Your blog can serve as a powerful tool for personal growth. 
- Boost Your Resume: A well-written and engaging blog can elevate your resume and showcase your writing and communication skills. You can also show off your expertise in a specific technology or programming language. 
- Long-term Legacy: Your blog serves as a lasting record of your work and growth as a developer. In a few years, you can look back at your blog and be proud of your accomplishments and experiences.
1071. Leetcode Solution in Java
Tags: chiki1601, beginners, programming, java
Published: 2023-02-01 03:30:25

==============================================================

Description:
For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself one or more times).

Given two strings str1 and str2, return the largest string x such that x divides both str1 and str2.

 

Example 1:

Input: str1 = "ABCABC", str2 = "ABC"
Output: "ABC"
Example 2:

Input: str1 = "ABABAB", str2 = "ABAB"
Output: "AB"
Example 3:

Input: str1 = "LEET", str2 = "CODE"
Output: ""
 

Constraints:

1 <= str1.length, str2.length <= 1000
str1 and str2 consist of English uppercase letters.
==============================================================

Solution:
```java
class Solution {
  public String gcdOfStrings(String str1, String str2) {
    if (str1.length() < str2.length())
      return gcdOfStrings(str2, str1);
    if (!str1.startsWith(str2))
      return "";
    if (str2.isEmpty())
      return str1;
    return gcdOfStrings(str2, mod(str1, str2));
  }

  private String mod(String s1, final String s2) {
    while (s1.startsWith(s2))
      s1 = s1.substring(s2.length());
    return s1;
  }
}
```
==============================================================
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/greatest-common-divisor-of-strings/
PolarDB Global Hackathon 2023_Win Up to $10K USD as Prizes
Tags: webdev, hackathon, database, cloudnative
Published: 2023-02-01 03:29:10

PolarDB Global Hackathon 2023 is an open-theme contest organized by Alibaba Cloud for developers worldwide, aiming to inspire creativity and passion for cloud-native technologies. 

Participates are required to build innovative and valuable applications using at least Alibaba Cloud featured product PolarDB, a cloud-native relational database that is fully compatible with MySQL and PostgreSQL.

## Benefits
Winners will get up to 10 grands US dollar cash as bonuses. (wow... that's so generous, who can be the lucky one?)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdxu4zyxmkaokkfwvz26.jpg)

## Schedule

- Start: Jan. 10th 2023
- Close: Feb. 28th, EST 6PM
- Announce: Mid-March 2023

## Learn More & Join
👉https://github.com/ApsaraDB/PolarDB-Hackathon-2023
👉https://www.alibabacloud.com/developer/polardb-global-hackathon-2023

Build your team and join now, unleash creativity and possibility.
API Testing using Postman: Part 2 ( Understanding HTTP Methods and Authentication )
Tags: webdev, beginners, programming, tutorial
Published: 2023-02-01 03:23:41

In this series of API Testing using Postman - Part 2, You are going to learn What is HTTP  and What are different type of HTTP Methods like GET,POST, PUT , PATCH AND DELETE,OPTIONS ? and What is authentication and How to perform the different type of authentication in postman like basic authorization, digest authorization and aws , hawk and Oauth 1.0, 2.0 in postman.

{% embed https://youtu.be/YazDWUPh_xs %}

You are going to learn the concepts of API, API testing, web services and HTTP Methods basics which are helpful in API testing interview questions

#API #APITesting #Postman  #APITestingTutorials.

Join Facebook Group :  http://bit.ly/learntesting2019

Website:   https://scrolltest.com

Website:   https://thetestingacademy.com

Twitter: https://twitter.com/itstechmode
 🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka


✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1


✅Programming Java -
https://bit.ly/learnjava2020-p1


✅Test Automation - 
https://bit.ly/learnautomation2020


✅API Testing - 
https://www.learnapitesting.com


✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com
7 TIPE CHAKRA MERN STACK DEVELOPER
Tags: mern, webdev, javascript, programming
Published: 2023-02-01 03:19:46

Kamu harus tau nih 7 Chakra MERN Stack Developer⚛😛Yuk belajar bareng serta diskusi dikolom komentar, serta di save biar ga lupa💬😝

🌱Follow : @appardana
💭Stay Young, Be Innovative and Keep Learning

#React #HTML #CSS #Javascript #ES6 #NextJS #NodeJS #ExpressJS #MongoDB #GIT #Web #Skills #IT #ReactJS #ReactNative #Developer #Roadmap #SelfImprovement #Growth #Aditria #Pardana #AditriaPardana #appardana #iAppTech ⚛️💻

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xxo7262c1m88txlf6p70.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d5dpape9w9d3pf98qvsy.jpg)
Rust Developer con Docker
Tags: rust, devops, docker, srethisistheway
Published: 2023-02-01 03:00:00

Si por alguna razón no pueden ejecutar el [instalador](https://www.rust-lang.org/tools/install) de Rust en su computadora o simplemente prefieren tenerlo desde contenedores Docker, para ambos casos será muy útil este post.
 
Requisitos: 
- Tener [Docker instalado](https://docs.docker.com/get-docker/) 
- Imagen oficial de Rust disponible en [Docker hub](https://hub.docker.com/_/rust )

----- 

Empezamos creando en la carpeta que vamos usar para nuestro proyecto un archivo llamado `docker-compose.yml` con el siguiente formato: 
```
version: "3.9"
services:
  dev:
    image: "rust:1.67"
    volumes:
      - ./projects:/projects
    environment:
      - USER=fer 
```
- PD: El `USER` puedes usar el que prefieras. 

Ahora creamos la carpeta `/projects` que será donde se conservaran los archivos, para que no sea efímero lo que desarrollo en este entorno. 

- PD: Puedes usar el nombre de la carpeta que quieras, solo que en el docker-compose debes actualizar el nombre que elijas. 

Ejecutamos: ` docker-compose run --rm dev `

Si todo esta en orden debemos entrar en la linea de comandos del contenedor de Rust, lo que quiere decir que ya estaremos en un entorno con Rust para poder desarrollar. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wldn55dmw85gyya2x60j.PNG)

Entramos en la carpeta  `/projects` con `cd projects`. 

Ahora que estamos en projects usamos el comando `cargo new hello_world`

Al terminada la creación del proyecto `hello_world` entramos en el directorio con `cd hello_world`, y ejecutamos `cargo run`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5xugavzveodk3pgg2b1.PNG)

RUNNNN!!!! 

Para finalizar, modificamos el `main.rs` esta en la carpeta `src`  con `"Hi dear!!"` solo hace falta salvar y ejecutar nuevamente `cargo run` 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/307kkokqcdvp39by04i5.PNG)


Gracias por llegar hasta acá :)
JavaScript Loops
Published: 2023-02-01 02:40:58

Do you think you understand for-loops in JavaScript? Do you want to test your JavaScript for-loops knowledge? You came to the right place!

**What are JavaScript For-Loops**
JavaScript For-Loops are just loops. They exist in almost every single programming language. Like the name suggests, loops will loop and in our case it would loop JavaScript code! So you can run a certain set of JavaScript code x number of times! However there two important things in regards to for-loops that one must be aware of.

**Index in JavaScript For-Loops**
When you have a for-loop you will have access to something called an index. Index is an integer (plain number). You can start at 0 or 1 or 2 or even -35. Your choice! You will have access to this index which by the way you can call anything you want in the set of code that you loop through. Most developers choose to call this index “i” without the quotes.

JavaScript For-Loops are Mostly Used in Arrays!
Make no mistake. JavaScript for-loops are mostly used in Arrays. Remember what arrays are. They are just a collection of stuff. So if you want to go through every single element in your array you can use a for-loop! Simple right? You have a bunch of data in an array and you want to…let’s say….print them out to the screen or console. You can use a for-loop for that!

How a JavaScript For-Loop Looks Like

```
for (let i = 1; i <= 10; i++) {
  console.log(i);
}
```

This prints

1

2

3

4

5

6

7

8

9

10

Simple right? Well, let’s break it out real quick.

JavaScript For-Loop Syntax
I am just going to focus on the inner part of the parenthesis ()

Part 1) i = 1

Start our “count” at 1

Part 2) i <= 10

Keep going as long as i is less than or equal to 10

Part 3) i++

Increase i by one everytime

That’s it!

JavaScript For-Loops with Arrays
I feel like any description of JavaScript for-loops without including arrays is an inadequate description. So here we go.

We have an array

```
let arr = ["Ricciardo", "Verstappen", "Bottas"];
```

So now let’s print out every single element to the console or screen.


```
for (let i = 0; i < arr.length; i++) {
  console.log(arr[i]);
}
```

This will print

Ricciardo

Verstappen

Bottas

Simple right? At least I hope it is.

Now to the exercise! Don’t be nervous. No one is watching you and it is not timed. In fact, no one gives a shit if you do well or not so…no pressure!

JavaScript for-loop Exercise
Using a for loop output the elements in reverse order

```
let arr = [43, "what", 9, true, "cannot", false, "be", 3, true];
```
// Example output:
// true 3.5 be false cannot true 9 what 43 OR each item on a new line

Conclusion
Hope JavaScript for-loops make just a little more sense now. If it doesn’t, feel free to schedule a one-on-one tutoring session with me. I would love to help you understand it better.
Spring Autowiring
Tags: java, beginners, tutorial, spring
Published: 2023-02-01 02:18:35

Spring <u>Autowiring</u> is a feature of the Spring Framework that allows for the automatic injection of dependencies between beans in a Spring application. It allows developers to define the dependencies of a bean in the configuration file, rather than hard-coding them in the bean's class.

Autowiring can greatly simplify the process of creating and configuring beans in a Spring application, making it easier to manage dependencies and improve code maintainability.

## How to autowire beans?
- XML Configuration: Autowiring can be specified in XML configuration files by setting the "autowire" attribute on the <bean> definition to one of the autowiring modes, such as "byType" or "byName". 
```
<bean id="exampleBean1" class="com.example.ExampleBean1" autowire="byType"/>

<bean id="exampleBean2" class="com.example.ExampleBean2" autowire="byName"/>

<bean id="exampleBean3" class="com.example.ExampleBean3"/>
```

- Java Configuration: Autowiring can be specified in Java configuration files by using the @Autowired annotation on the setter methods or fields that should be autowired. Alternatively, you can use the @Autowired constructor to autowire by constructor. In the example below, we annotate the fields.

```
@Component
public class ExampleConfig {

  @Autowired
  private ExampleBean1 exampleBean1;

  // You can use @Qualifier annotation along with @Autowired to autowire beans by name.
  @Autowired
  @Qualifier("exampleBean2")
  private ExampleBean2 exampleBean2;

...
```

The default autowiring mode in Java configuration is "byType", while in XML configuration, it is set to "no". 

## Autowiring Modes:
Autowiring modes are different ways in which the Spring framework can wire beans together automatically.

1. <u>autodetect</u>: When autowiring is set to "autodetect", Spring framework will first look for a constructor to resolve the bean dependencies, and if a constructor is not found, it will fall back to using the "byType" mode.

2. <u>no</u>: When autowiring is set to "no", it means that the beans are not wired together automatically and the developer must manually specify the dependencies between the beans in the configuration. This mode provides the greatest degree of control over how beans are wired together, but it also requires the most effort on the part of the developer.

3. <u>byName</u>: This mode looks for a bean with the same name as the property that is being set. For example, if a class has a property called "processor", the Spring container will look for a bean named "processor" and wire it to the property.

4. <u>byType</u>: This mode looks for a bean of the same type as the property that is being set. For example, if a class has a property of type "Processor", the Spring container will look for a bean of type "Processor" and wire it to the property.
 
5. <u>constructor</u>: Autowiring can also be done on constructors, in which case the Spring container will look for beans of the same type as the constructor arguments and wire them to the constructor.
Linode + DEV Hackathon
Tags: linodehackathon
Published: 2023-02-01 02:05:07

## What I built


### Category Submission:


### App Link


### Screenshots


### Description
 

### Link to Source Code


### Permissive License


## Background
(What made you decide to build this particular app? What inspired you?)


### How I built it
(How did you utilize Linode? Did you learn something new along the way? Pick up a new skill?)


### Additional Resources/Info
What I accomplished today/1.31.23
Tags: html, github, newbie, helloword
Published: 2023-02-01 01:57:13

Today IS the first day i fully completed an app in html. It was very simple (on paper) to many and perhaps it will seem very simple to me 3-9 months from now but it means a lot to me TODAY. i say this because i accomplished something technical that only lived in my mind and in thoughts, and the idea to feel, to create something that i typed and figured out on my own when i felt lost and at a point extremely anxious and doubtful feels very empowering and exciting to explore more and more as i learn new skills everyday.
Statelessness in REST APIs
Tags: rest, api, design, architecture
Published: 2023-02-01 01:55:00

Statelessness is a key design principle of REST APIs. It refers to the idea that each request to a REST API should contain all the information necessary to complete the request without relying on any stored context on the server.

The stateless design of REST APIs makes them scalable and resilient, as it eliminates the need for the server to maintain a state between requests. This reduces the complexity of the server and makes it easier to add new servers to the system to handle increased traffic.

In a stateless design, the client is responsible for keeping track of the application's state, while the server provides a series of resources with which the client can interact. For example, a client might keep track of the currently logged-in user by including the user's session token in each request to the server.

The benefits of statelessness in REST APIs include the following:

**Scalability:** Stateless APIs can be easily scaled by adding new servers to the system, as each request contains all the necessary information to complete the request.

**Resilience:** Stateless APIs are more resilient to failures, as the server does not rely on any stored state to complete requests. This makes it easier to recover from failures and maintain the system over time.

**Flexibility:** Stateless APIs are more flexible, as the client is responsible for maintaining the state, which makes it easier to add new functionality to the system without breaking existing clients.

**Caching:** Stateless APIs can be easily cached, as the server does not rely on any stored state to complete requests. This can significantly improve the performance of the system.

In conclusion, statelessness is a fundamental design principle of REST APIs, and provides a scalable, resilient, flexible, and cacheable solution for modern web services. By embracing this principle, REST APIs can provide a better user experience for clients and make it easier for developers to build, maintain, and evolve the system over time.
Product Reviews And Ratings UX: A Designer’s Guide - Review
Tags: beginners, design
Published: 2023-02-01 01:53:09

I didn't expect 95% of customers rely on reviews of a product when shopping for their next purchase. This blog starts off by talking about how the design of the way reviews are presented confuse most customers and end up doing more harm than good.

The post talks about how most people will view positive reviews to make their purchase. Reviews that comment on the quality of a product, the price, and risk involved if they don't like the product (customer service, returns/refund policy). 

They talk about rewarding negative reviews and how many people will also rely on negative reviews to make their decision in buying a product. Some of these negative reviews are based on things that aren't a permanent problem meaning than something irrelevant to the actual product itself. Meaning, delayed shipping time during the holidays, a bug that is currently worked on, and issues that aren't permanent to the product.

The post talks about negative reviews not always applying to everyone and the review being trustworthy to the customer. The reviews that seem to hold most value are related to customer service, refund issues, and the product not working in general.

People rely on statistics in sports, politics, and in this case product reviews. Seeing a detailed list of 1-5 star reviews is something customers rely on because why would you buy a product where over half of the reviews are negative reviews? There is nuance with these 1-5 star reviews because what is really the difference between a 4 or 5 star review? 

What really matters is the amount of reviews and the average score it has. Surprisingly, 70% of customers would pick the one with the higher number of ratings despite its lower average. This means the customer trusts the product where more people have purchased and reviewed with a slightly lower score than less reviews and slightly higher score.

What I gathered in full from this blog is customers would rather trust the majority of people than the minority of peoples opinions of a product review. I feel when people are buying things from the internet they trust previous peoples experiences than what the actual retailer claims. Thus I feel it is important to maintain a positive customer relationship post-purchase with a good product than boast an incredible product with poor customer service.
<p></p><p></p>
Tags: paragraph
Published: 2023-02-01 01:52:00

ISSUE: Had a small issue whenever i tried to follow along the writing if i type <p> then it doubled as <p></p> but it did not in the course video. i had to back space and it became more time consuming.

Cause/Solution: I learned that the html was set to auto close tags, all i had to do was set the vscode checkbox that enabled the auto close to "off."
Security Operations Solution Packs
Published: 2023-02-01 01:38:21

Okta Workflows has just released a number of templates focused on Security Operations Centre (SOC) processes. These Workflow templates are designed to help solve specific identity-based automation challenges for the Security Operations team using a bundled collection of pre-built and fully customizable flows. The categories include: Some of the main benefits are: To find all … [Continue reading Security Operations Solution Packs →](https://iamse.blog/2023/01/31/security-operations-solution-packs/)
JJMasterData - A .NET library to generate CRUDs from database metadata at runtime.
Tags: csharp, dotnet
Published: 2023-02-01 01:30:21

[JJMasterData](https://www.github.com/jjconsulting/JJMasterData) is an open-source .NET library to quickly create runtime pages from database metadata.

You can create a runtime CRUD with a simple tag helper in your View like this:

`<jj-form-view element-name="MyMetadataName"`

This will generate a result like this:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4i283v47kng1mygrmad.png)

This runtime generated table supports:
- All CRUD operations
- Filters
- Pagination
- Data importation/Exportation
- Audit Log
- Custom actions

---
You can check more about MasterData at our [GitHub](https://www.github.com/jjconsulting/JJMasterData) or our [docs](https://portal.jjconsulting.com.br/jjdoc/articles/intro.html).
Smooth view and edit mode transition
Tags: react, edit, javascript, ux
Published: 2023-02-01 01:14:55

Hey everyone,

If you're looking to improve the data editing experience in your React app, check out our "smooth-edit" library! With its seamless transition between view and edit mode, your users will love how easy and intuitive data editing becomes.

Did I mention that it is UI and form library agnostic?

Take a look at the demo video: www.youtube.com/watch?v=fChEPk-R-zs

And try it out for yourself: www.npmjs.com/package/smooth-edit

Let me know what you think!