teleren/devto huggingface dataset:
Deploy Spring Boot Crud Application with MySQL Database to Minikube
Tags: kubernetes
Published: 2022-12-28 16:24:06

Source Code : https://github.com/pradz13/K8S/tree/main/SpringBootCrudRest

K8S Scripts :
https://github.com/pradz13/K8S/tree/main/SpringBootCrudRest-scripts

Following are the steps to deploy Spring Boot Crud Application with MySQL Database in K8S Minikube cluster :

Create a Spring Boot Crud project with MySQL DB and test it locally.

Create the DB Deployment YML file. Please refer - https://github.com/pradz13/K8S/blob/main/SpringBootCrudRest-scripts/db-deployment.yaml

Persistent Volume Claim is created for providing storage space for the database. Deployment and Service concepts we have already discussed in the previous tutorial.

Start the Minikube - minikube start

Check Minikube status - minikube status

Allow Kubernetes to read our local Docker repository - eval $(minikube docker-env)

Deploy the MySQL Deployment created above in Minikube with the command - kubectl apply -f db-deployment.yaml

Get the MySQL running POD with the command - kubectl get pods

Connect to the Node inside the cluster using the following command - kubectl exec -it <pod name> bash

Then use the following command to connect to MySQL Server : mysql -h mysql -u root -p

Use the command to see all databases :
show databases;

It should have created a database mentioned in our db-deployment.yaml file(mysql in this example). Change the database with the following command :

use database_name;

Build the Docker image of the Spring Boot application :
docker build -t springbootcrudrest:1.0 .

Check if the image has been build or not with the command : docker images

Write the Deployment and Service for Spring Boot application -
https://github.com/pradz13/K8S/blob/main/SpringBootCrudRest-scripts/app-deployment.yaml

Deploy the Spring Boot Deployment created in Minikube with the command - kubectl apply -f app-deployment.yaml
TDD Isn't About Testing, Despite Having Test in the Name
Published: 2022-12-28 16:04:51

---
title: TDD Isn't About Testing, Despite Having Test in the Name
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-28 16:04 +0000
---

The "programmers can't name things" trope is real. TDD, or "TEST Driven Development", which has "test" in the name, is about design. But we don't call it "Design Driven Development" because those of us from front-end love our Designers, and just assume that is implied, and they direct us what to build. TDD's value isn't just design, it's testing that our code works, now, after a change, any time we deploy stuff, etc.

... that said, I love when [Allen Holub](https://twitter.com/allenholub/status/1607839169245761536) rages, so reposting. That, and us TDD fans are horrible at describing, marketing, and implementing TDD, but we try anyway.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtf8hdqc30frmyidrxk7.jpg)
Any one with the idea to create a canonical link for a laravel project?
Published: 2022-12-28 16:01:39

Hi folks, had a busy day working on creating canonical links for the project, the project name is [pay someone to do my online class](https://spideressay.org/), which is basically created with view laravel, and hmtl and mysql.  I created the access for better evaluation and access to every individual but it appears a greater problem to canonicalize the pages. How do we go about it?
OpenPGP Proof
Published: 2022-12-28 15:47:27

This is an OpenPGP proof that connects my [OpenPGP](https://keyoxide.org/hkp/b2df528a36c376be5235592848109850ff0552f6) key to [this](https://dev.to/dforbes) dev.to account. 

[Verifying my OpenPGP key: openpgp4fpr:B2DF528A36C376BE5235592848109850FF0552F6]
Is JavaScript a feature rich or mess?
Tags: javascript, newfeatures, backwardcompatibility, opinion
Published: 2022-12-28 15:24:15

JavaScript is a modern and backward compatible programming language. I gave this weird definition because JavaScript is being constantly modernised and is maintaining backward compatibility. These two characters are essential to the language. And I wanted to highlight how this two play together. Please note that I am here to share my opinions.
While I was trying to come up with an idea for an article, a question struck me. Is JavaScript a feature-rich or a mess? By mess I don't mean quarky behaviour of JavaScript as it is defined in specification and we all can try to learn it. Buy it I mean that the language simply has so many features. The language offers multiple ways of doing several things. Let's have a look at few of them.
## Variable declaration
JavaScript atleast has two ways of defining variables, by using var and by using let and const keywords. New keywords let and const are result of modernising process. While var was present from beginning. I understand that both have their pros and cons but I just wanted to highlight two ways of declaring variables.
## Two ways for function declaration
Arrow function is relatively new edition to the language. JavaScript already had old way of defining functions. Both have some differences regarding implementation. But it doesn't matter for very simple use cases.
## Addition to class keyword
Recently many keywords like class were added into the language which are related to object oriented programming. We can argue about it's usefulness but the truth is that now we have two ways to work with object oriented code. We can use new keywords and features or we can also use old constructor based approach.
## Two API(s) for working with dates
We all know about tricky Date API for working with dates and time in JavaScript. We also have new Temporal API with looks very nice for working with dates. On a side note, I have another problem with this as well. New API may not be compatible with old API. I know we have work around this. But it would be nice if new would support old as well.
## So many data structures
I don't have any objections about this as each data structure has unique purpose. but it is true that the language has many data structures with basic once like Object and Array. For example, we have Map, WeakMap, Set and WeakSet. And yes Record & Tuple are coming to the language!
## Conclusion
It is very easy to prove that the language is feature-rich. But sometimes it looks like mess of features. one can argue that multiple ways of doing things gives greater flexibility and I completely agree to that. But sometimes it can create confusions as well. Would love to know your opinions!
React JS vs Angular JS
Tags: react, angular, webdev
Published: 2022-12-28 15:23:59

Today, I'm going to be discussing the two most popular JavaScript frameworks: React and Angular. Both of these frameworks are widely used in the development of modern web applications, and they each have their own unique features and benefits.

**React** is a JavaScript library that was developed by Facebook and is primarily used for building user interfaces. It is known for its flexibility and simplicity, making it a popular choice among developers. One of the main benefits of React is that it allows developers to create reusable components, which can be easily shared and modified across different projects. This can save a lot of time and effort during the development process.


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


**Angular**, on the other hand, is a full-featured framework that was developed by Google. It is more comprehensive than React, and includes many features out-of-the-box, such as dependency injection, routing, and forms validation. Angular is a good choice for larger, more complex projects that require a lot of features and functionality.


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



So, which framework is the best choice for your project? It really depends on your specific needs and goals. If you're looking for a simple, lightweight solution that allows for a lot of flexibility, then React might be the right choice for you. On the other hand, if you need a more comprehensive solution with a lot of built-in features, then Angular might be a better fit.

Ultimately, the decision will come down to your specific project requirements and your team's skills and preferences. Both React and Angular are powerful and popular frameworks, and either one can be a good choice depending on your needs.
Returning after 20 years...
Tags: georgiatech, beginners, codenewbie
Published: 2022-12-28 15:20:08

After graduating with a degree in Computer Science, I was quickly drawn into the family law firm. Now with a 10-month-old daughter, the days of setting up camp in a hotel room to prep for the next day's court battle are behind me. 
How much has changed in 20 years? Is it better to start fresh or with an outdated foundation? Let's find out.
How to avoid remote work pitfalls
Tags: remotework, beginners
Published: 2022-12-28 15:05:39

Working remotely is a great thing, but it does have some caveats 👇

We’ve all heard about the benefits of remote working - work when and where you like, greater flexibility and more time for leisure activities. It is all true, and I am a huge fan of telecommuting as well.

But don’t forget that there are also some caveats and pitfalls to remote set up. Here are four key things to consider:

# 1 You need to be disciplined.
Some people may find it difficult to stay focused when they are not in an office environment. It's important to make sure that you have a good routine and stick to it.

# 2 Separating work and non-work time can be tricky.
When your office is at home, it can be tough to draw a line between 'work' and 'not work' hours. Make sure you take proper breaks!

# 3 Make sure your employer understands what asynchronous remote work is.
This means that you may need to communicate more frequently with your team as you won't have the convenience of a face-to-face chat.

#4 If the rest of the team is collocated, then you may feel isolated and have less influence on decisions made.
One way to address this is to set up regular check-in calls with colleagues. Another interesting idea is virtual teambuilding activities. This can be quite fun!

To summarise - yes, remote working is great - but don’t forget the extra effort needed to make it work well!
Best choices of programming languages for a beginner⭐
Tags: programming, beginners, computerscience
Published: 2022-12-28 15:03:23

A programming language is required if you wish to work in the computer industry. If you are unsure about which programming language to use, I have included some beginner-friendly programming languages below.

Note: Learning and mastering one language is the ideal option for beginners.

## C++

![c++](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmauwnrs4kx61gmlib1a.jpg)

C++ is a cross-platform language that can create high-performance applications. C++ was developed by Bjarne Stroustrup, as an extension to the C language.

Advantages-

1. It gives programmers a high level of control over system resources and memory.
2. It can be found in today's operating systems, Graphical User Interfaces, and embedded systems.
3. It is an object-oriented programming language that gives a clear structure to programs and allows code to be reused, lowering development costs.
4. It is portable and can be used to develop applications that can be adapted to multiple platforms.

## Python

![python](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yyhlvycd2ldxt35bnci4.jpg)

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

Advantages-

1. It has a simple syntax similar to the English language.
2. Its syntax allows developers to write programs with fewer lines than some other programming languages.
3. It can be used on a server to create web applications.
4. It can be used alongside software to create workflows.

## Java

![java](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uz9cn0h13cfuv00b7v6s.png)

Java is a popular programming language, created in 1995. It is owned by Oracle, and more than 3 billion devices run Java.

Advantages-

1. It has a large demand in the current job market
2. It is easy to learn and simple to use
3. It has huge community support (tens of millions of developers)
4. It's used for various purposes like mobile applications development, desktop application development, and many others.

## JavaScript

![Javascript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlpikjtb0ohz3ydt1uxg.jpg)

JavaScript is the world's most popular programming language. JavaScript is the programming language of the Web.

Advantages-
1. It is a simple and easy-to-use programming language.
2. It is one of the world's most popular programming languages.
3. It is used by many famous companies.
4. It is a versatile language that can be used for front-end as well as back-end development.

If you like my post consider following me I am sharing content on programming and development also you can like or comment on this post.

You can contact me on-
[LinkedIn](https://www.linkedin.com/in/rhlgt/)
[Twitter](https://twitter.com/rahulgtst)
Stack Implementation Using Python
Tags: ds, algorithms, python, programming
Published: 2022-12-28 14:55:12

#How stack works and logic
If we imagine a stack horizontally then...
Element in stack is inserted in the same way we append an element to an array. So this logic could be used for the push function of our stack.
Element is popped from the end of the stack so we have a direct pop() function which can be implemented in the pop function for this. pop() removes the first element from a list so we use pop(-1) to remove the last element.

###This was a question from [GeeksForGeeks Practice](https://practice.geeksforgeeks.org/problems/implement-stack-using-array/1?page=1&category[]=Arrays&curated[]=1&curated[]=7&sortBy=submissions)

Ex: push(1), push(2), push(3), pop()
    [1]       [1,2]   [1,2,3]   [1,2]

##Code

`class MyStack:
    
    def __init__(self):
        self.arr=[]
    
    #Function to push an integer into the stack.
    def push(self,data):
        #add code here
        self.arr.append(data)
    
    #Function to remove an item from top of the stack.
    def pop(self):
        #add code here
        if len(self.arr) > 0:
            popped = self.arr.pop(-1)
            return popped
        else:
            return -1`


Thank You. Hope you liked this solution. If there are better solutions or you have your own different solution then comment it below👍
Different ways to create objects in JavaScript
Tags: javascript, beginners, react, webdev
Published: 2022-12-28 14:53:52


JavaScript is a flexible object-oriented language when it comes to syntax. We will see the different ways to instantiate objects in JavaScript.

JavaScript is an object-based language that uses prototypes rather than classes. Before we move forward, let's clarify this. JavaScript allows you to create hierarchies of objects and inherit properties and their values based on this different basis.



- **Creating object with a constructor:**
Constructor is nothing but a function and with the help of a new keyword, the constructor function allows the creation of multiple objects of the same flavor.

```
function Person(name) {
  this.name = name;
  this.age = 21;
}
var object = new Person("Sudheer");

```


- **Using object literals:** Literals are smaller and simpler ways to define objects. We simply define the property and values inside curly braces.

```
var object = {
     name: "Samiksha",
     age: 22
};

Object literal property values can be of any data type, including array, function, and nested object.
```


- **Creating object with Object.create() method:** 
This method creates a new object by passing the prototype object as a parameter.

```
var object = Object.create(null);
```


- **Using Es6 classes:**
 The class feature to create the objects.

```
class Person {
  constructor(name) {
    this.name = name;
  }
}

var object = new Person("Samiksha");
```


- **Singleton Pattern:** 
Singletons are objects that only exist once. The constructor returns the same instance every time, so one can avoid accidentally creating multiple instances by repeating the call.

```
var object = new (function () {
  this.name = "Samiksha";
})();
```
8 Trận Đấu Có Nhiều Bàn Thắng Nhất Tại World Cup
Published: 2022-12-28 14:35:31


Tính đến thời điểm hiện tại, Premier League đứng đầu trong top những giải đấu đóng góp nhiều bàn thắng nhất cho World Cup 2022.
Xem thêm:[**bóng đá số**](https://teccoskyville.com.vn/bong-da-so/)
Cụ thể, theo thống kê, cho đến nay, các cầu thủ Premier League đã ghi 35 bàn tại World Cup. Ba cầu thủ Premier League sút nhiều nhất vào lưới Qatar là Richarlison và bộ đôi Tam sư Saka Rashford (mỗi người 3 bàn).
Tuy nhiên, cả Richarlison, Saka và Rashford đều không có cơ hội để bổ sung vào danh sách ghi bàn của họ tại World Cup. Bởi Brazil và Anh đã dừng bước sau trận thua Croatia và Pháp ở tứ kết.
Xem thêm:**[Ronaldo Ủng Hộ Neymar Dự World Cup 2026](https://penzu.com/p/f69cdc46)**
Đứng thứ 2 trong top 8 giải đấu ghi nhiều bàn thắng nhất trong Ngày hội bóng đá Qatar là Ligue 1. Ngôi sao của giải VĐQG Pháp đã ghi 20 bàn tại World Cup. Hai trong số ba cây săn bàn hàng đầu tại World Cup năm nay là Paris Saint-Germain, Kylian Mbappe và Lionel Messi.
Xem thêm:**[Chọn HLV Mới, FA Đưa Tuchel Và Pochettino Vào Tầm Ngắm](https://teccoskyvillezz.wixsite.com/tecco-skyville-tower/post/ch%E1%BB%8Dn-hlv-m%E1%BB%9Bi-fa-%C4%91%C6%B0a-tuchel-v%C3%A0-pochettino-v%C3%A0o-t%E1%BA%A7m-ng%E1%BA%AFm)**
Hiện tại, Mbappe dẫn đầu danh sách Vua phá lưới với 5 bàn. Messi, trong khi đó, đứng thứ hai với bốn bàn thắng. Do còn 2 trận (bán kết, tranh hạng ba hoặc chung kết), Mbappe và Elpurga chắc chắn có thể gia tăng số bàn thắng.
Xếp thứ 3, 4 và 5 sau Premier League và Ligue 1 là La Liga, Bundesliga và Serie A. Các lịch thi đấu này đã lần lượt cung cấp 18, 14 và 12 bàn thắng cho sự kiện bóng đá lớn nhất hành tinh.
Xem thêm:**[Người Hùng Của ĐT Pháp Thừa Nhận May Mắn Hơn Tuyển Anh](https://dev.to/teccoskyvillezz/nguoi-hung-cua-dt-phap-thua-nhan-may-man-hon-tuyen-anh-53p0)**
Super Lig của Thổ Nhĩ Kỳ đứng thứ 6 với 9 bàn thắng. 
Nổi bật nhất trong số này là Enner Valencia. Tiền đạo của Fenerbahce đã ghi 3 bàn cho Ecuador.
Hai trận đấu cuối cùng trong top 8 là giải Hà Lan và Bồ Đào Nha. Giải VĐQG Bồ Đào Nha và Eredivisie đã cùng nhau đóng góp 7 bàn thắng tại World Cup.
8 trận đấu có nhiều bàn thắng nhất tại World Cup

Bạn vừa xem:**[8 Trận Đấu Có Nhiều Bàn Thắng Nhất Tại World Cup](https://dev.to/teccoskyvillezz/8-tran-dau-co-nhieu-ban-thang-nhat-tai-world-cup-3l98)**

Mọi thông tin xin vui lòng liên hệ với **[Tecco Skyville Tower ](http://teccoskyville.com.vn/)**
5 Beginner-Friendly Projects to Build with HTML, CSS, and JavaScript 💻
Tags: beginners, html, css, javascript
Published: 2022-12-28 14:35:22

Are you just starting out with HTML, CSS, and JavaScript? Looking for some fun and challenging projects to help you learn and improve your skills? Look no further! 🔍

One of the best ways to learn a new programming language is by building projects and experimenting with different techniques and approaches. 💡 That's why I have put together a list of five beginner projects that you can try out with HTML, CSS, and JavaScript.

**1. Personal website or portfolio 🌐**

A personal website or online portfolio is a great way to showcase your skills and experiences to potential employers or clients. 💼 You can use HTML and CSS to structure and style your website, and add some interactivity with JavaScript. 💻

**2. To-do list 📝**

A to-do list is a simple yet powerful application that allows users to add and remove items from a list. 📊 This project will help you practice working with forms, events, and the DOM (Document Object Model). 📈

**3. Calculator ➕**

A calculator is a must-have tool for anyone who works with numbers. 📊 With this project, you'll get to practice building a basic calculator that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. 🧮

**4. Quiz game 🧑‍💼**

A quiz game is a fun and engaging way to test your knowledge on a particular subject. 🤔 With this project, you'll get to build a quiz game where users can answer multiple choice questions. 🧑‍🎓

**5. Image gallery 🖼️**

An image gallery is a great way to showcase a collection of images. With this project, you'll get to build an image gallery where users can browse through a collection of images. You can use JavaScript to add some interactivity, such as the ability to filter images by category or to open a larger version of the image in a lightbox. 🖼️

These are just a few ideas to get you started. With a little creativity and some practice, you'll be able to build all kinds of interesting projects using HTML, CSS, and JavaScript. So why not give these beginner projects a try and see what you can create? 🤗
devto_proof
Published: 2022-12-28 13:31:34

---
title: devto_proof
published: true
description: Keyoxide proof
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-28 13:27 +0000
---
Keyoxide Profile URL
https://keyoxide.org/95e823e6a359a5967ab30e0d55526347d4d76a9f