teleren/devto huggingface dataset:
Help me to make a decision: which language should I choose?
Tags: java, javascript, help, programming
Published: 2023-07-15 08:29:05

## Hello Developers!

I'm Borhan Uddin, a 24-year-old boy.
Recently, I realized that my problem-solving skills are not as good as I would like them to be. That's why I've decided to learn Data Structures and Algorithms (DSA). However, I'm facing a dilemma when it comes to choosing a programming language: JavaScript or Java.

I have a strong understanding of JavaScript, so I'm considering sticking with it since it's within my comfort zone.

And i know little bit of java also. 

On the other hand, I'm aware that Java offers a broader career path and is widely used for DSA.

I would greatly appreciate your guidance in making this decision. Thank you!
A note for beginner programmers.
Published: 2023-06-28 15:38:42


![beginner's building block to programming](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/woqu35r9pmeozsyoe6gm.png)
Watching YouTube tutorials and reading huge tutorial PDFs are a great way to learn, but nothing beats getting your hands dirty building stuff. Less tutorials and more building.

Learning is progressive, you do not need to know everything in a specific programming language or framework before you start working with it.

ChatGPT is wonderfull, avoid it like a plague 😁. ChatGPT is like a drug which you can easily get addicted to and just like a drug abuser you will no longer be able to do anything without it thereby losing the ability to think for yourself.

Allways ask for feedback on your work. When you open your work up for criticism you should be open to hearing things you don't like, things that will make you feel bad and angry, and also things you probably don't agree with.

But one thing criticism does is that it helps us give a second look at our work, whether we agree with what has been said about it or not, it gives us fresh perspective to look at our work.

Criticism is good, but always get ready for damaging words when you want to be criticized. Stay resilient and keep an open mind!

Lastly, always be prepared for change. Programming and technology are ever-changing fields. I understand that change is difficult and sometimes overwhelming, but it is the only way for us to try so many tools and choose which one is best for the job. Always be willing to shift from what works to what works better.
Migrating What If from Flask to Next.js
Tags: javascript, nextjs, webdev
Published: 2023-07-15 08:26:30

About a year ago, I created a project called What If in Flask.

It was a website where you could face hypothetical scenarios (what if), and you could enter your thoughts for each of them.
After you entered your thought, you would be able to view what other user's have said, and compare your thoughts to their's!

This is what the Flask version looked like:
{% embed https://replit.com/@VulcanWM/what-if?v=1 %}

---

Now I've decided to recreate the same project in Next.js, because I've realised Next.js is more suited for projects like these.

If you want to see what the end project is, or just follow my recreation journey, follow my DEV or Twitter account!

{% embed https://twitter.com/VulcanWM %}
Mastering the Art of Medical Writing: Unlock Your Potential with Comprehensive Courses
Published: 2023-07-15 08:22:58

[https://www.technobridge.in/medical-writing-course
](https://www.technobridge.in/medical-writing-course
)
Medical writing course by [TechnoBridge ](https://www.technobridge.in/medical-writing-course)is a critical skill in the field of healthcare and pharmaceuticals. Effective communication of scientific information is essential for disseminating research findings, developing regulatory documents, and creating educational materials for healthcare professionals and patients alike. If you have a passion for both medicine and writing, exploring medical writing courses can be an excellent opportunity to enhance your skills and embark on a rewarding career path. In this article, we will delve into the world of medical writing courses and highlight their significance in today's healthcare landscape.
آموزش جامع و حرفه ای Web API در Asp.net Core
Tags: webapi, aspcore, restapi, rest
Published: 2023-07-15 08:19:32

## Web API چیست؟

اولین سوالی که به ذهن می رسد این است که "API چیست"؟

API مخفف Application Programming Interface است. API یک عامل نرم افزاری میانی است که به دو یا چند برنامه اجازه می دهد تا با یکدیگر تعامل داشته باشند.

حال سوال بعدی این است: “Web API چیست؟”

به زبان ساده می توان گفت که web API یک رابط برنامه نویسی کاربردی برای یک برنامه وب یا وب سرور است و از پروتکل HTTP برای برقراری ارتباط بین کلاینت و وب سایت ها برای دسترسی به داده ها استفاده می کند.

## Asp.net Core Web API چیست؟
[ASP.NET Core Web API](https://codecell.ir/course/efdc) یک چارچوب محبوب برای ساخت API های وب است که می تواند توسط طیف گسترده ای از کلاینت ها از جمله برنامه های کاربردی وب، برنامه های تلفن همراه و برنامه های دسکتاپ استفاده شود. Asp.net Core Web API یک چارچوب سبک و مقیاس پذیر برای ساختن API های RESTful در اختیار توسعه دهندگان قرار می دهد که می تواند برای نمایش داده ها و عملکردها در اختیار مشتریان خارجی باشد.

## چرا Web API مورد نیاز است؟
کاربران می خواهد از دستگاه های مختلف مانند موبایل، مرورگر، دستگاه های گوگل و غیره به برنامه دسترسی داشته باشد. در این صورت Web API می تواند مفید باشد.

دستگاه های مختلف به Web API درخواست می دهند و Web API در قالب JSON پاسخ خواهد داد. اکثر دستگاه ها قادر به درک خروجی JSON هستند.

## تفاوت gRPC و REST چیست؟
سرویس های REST از یک مدل درخواست و پاسخ ارتباطی استفاده می کنند که معمولاً بر روی HTTP 1.1 ساخته شده است، اما gRPC  چارچوبی برای پیاده سازی API های RPC از طریق HTTP/2 است که نسبت به HTTP 1.1 هم سریع تر و هم ایمن تر است.

برای آشنایی بیشتر با gRPC [دوره آموزش gRPC در Asp Core](https://codecell.ir/course/788d) را مشاهده کنید.
چرا یادگیری ASP.NET Core Web API برای توسعه دهندگان اهمیت دارد؟
یادگیری API های وب برای توسعه دهندگان مهم است زیرا به آن ها امکان دسترسی به عملکرد سایر برنامه ها و خدمات را می دهد.  Web API به توسعه دهندگان اجازه می دهد تا به راحتی برنامه های کاربردی خود را با سیستم های دیگر مانند پلتفرم های رسانه های اجتماعی، پردازشگرهای پرداخت و سایر خدمات مبتنی بر وب ادغام کنند. علاوه بر این، درک API های وب به توسعه دهندگان اجازه می دهد تا با استفاده از قابلیت های سیستم های دیگر، برنامه های قدرتمندتر و انعطاف پذیرتری بسازند. Web API می تواند باعث توسعه سریع تر، افزایش عملکرد و بهبود تجربه کاربر شود.

## نتیجه گیری:
ASP.NET Core Web API یک چارچوب قدرتمند و محبوب برای ساختن API های وب است که می تواند توسط طیف گسترده ای از کلاینت ها استفاده شود. پشتیبانی از پلتفرم های مختلف، معماری سبک و مقیاس پذیر، ماهیت منبع باز، ادغام آسان با سایر سرویس ها، انعطاف پذیری، ویژگی های امنیتی و قابلیت های تست، آن را به بهترین انتخاب برای توسعه دهندگانی تبدیل می کند که به دنبال ساخت API های وب مقیاس پذیر و ایمن هستند. با مجموعه گسترده ای از ویژگی ها و اکوسیستم قوی، ASP.NET Core Web API مطمئناً برای سال های آینده یک رقیب برتر در دنیای توسعه API وب باقی خواهد ماند.
برای یادگیری اصولی و حرفه ای Web API [دوره جامع و کاربردی Web API در Asp.net Core](https://codecell.ir/course/efdc) را از کدسل تهیه نمایید.
Master Royale: Decoding Diplomacy and Alliances in Strategy Games
Published: 2023-07-15 08:02:13

[Master Royale](https://masterroyale.org/), a prominent private server for strategy games, offers a unique platform that not only emphasizes tactical gameplay but also fosters the development of diplomacy and alliances among players. In this article, we will explore the intricacies of diplomacy and alliances in strategy games and how they contribute to a dynamic and engaging experience on Master Royale.

Understanding Diplomacy in Strategy Games:

Diplomacy plays a vital role in strategy games, allowing players to interact and negotiate with other players. It involves forming alliances, negotiating treaties, and managing relationships to further individual and collective objectives. Master Royale provides a rich environment for diplomatic interactions, where players can collaborate, strategize, and build alliances to gain an edge over opponents.

Benefits of Alliances:

Forming alliances on [Master Royale ](https://masterroyale.org/)can offer numerous advantages. Alliances enable players to share resources, exchange information, and coordinate attacks on common enemies. By pooling resources and leveraging collective strengths, alliances can provide crucial support during battles and help players navigate complex gameplay challenges.

Negotiation and Communication:

Effective negotiation and communication are essential for successful alliances. Diplomatic discussions on Master Royale involve exchanging proposals, setting goals, and establishing mutually beneficial arrangements. Clear and open communication fosters trust, ensures alignment of objectives, and facilitates efficient decision-making within the alliance.

Maintaining Balance and Power:

Balancing power dynamics within alliances is crucial. While alliances provide strength and security, they can also create complexities and internal rivalries. Maintaining a balance of power ensures that no single player or faction becomes too dominant, promoting stability and fair gameplay.

Adaptability and Strategy:

Diplomacy and alliances on Master Royale require adaptability and strategic thinking. As the game progresses, alliances may shift, new opportunities may arise, and the geopolitical landscape may change. Being flexible and adapting to evolving situations is key to maximizing the benefits of alliances and maintaining a competitive advantage.

Conflict Resolution and Betrayal:

Conflicts and betrayals can also occur within alliances, adding an element of intrigue and drama to gameplay. Players must navigate potential conflicts diplomatically, resolve disputes amicably, and handle instances of betrayal effectively. Mastering conflict resolution skills within alliances is a testament to strategic acumen and the ability to navigate the intricate dynamics of the game.
Placeholder title
Tags: refinehackathon
Published: 2023-07-15 08:00:34

## 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 refine? Did you learn something new along the way? Pick up a new skill?) 

### Additional Resources/Info
Unraveling the Code: A Journey into the Enigmatic World of Computer Programming
Tags: webdev, javascript, beginners, programming
Published: 2023-07-15 07:55:33


The Language of Machines:
Imagine a universe where communication is achieved through a series of 1s and 0s. This is the realm of binary, the foundation of all computer languages. Explore the origins of programming languages, from the birth of Assembly to the elegance of Python and the vast ecosystem of JavaScript. Discover the diverse syntax, unique features, and the artistry behind choosing the right language for the task at hand.

Taming the Digital Wild West:
Coding is like riding a wild stallion across an untamed landscape. As we venture deeper into the realms of programming, we encounter challenges and triumphs akin to pioneers of the Wild West. From debugging a stubborn bug to optimizing performance, we navigate through the trials and tribulations, all while honing our problem-solving skills and becoming digital pioneers in our own right.

The Architects of the Digital Age:
The world's greatest structures are often the result of visionary architects. In the digital realm, programmers are the architects of the virtual landscape. Delve into the realm of software architecture, where the grand visions of programmers take shape. Explore the principles of modular design, scalability, and maintainability, and learn how these concepts shape the digital infrastructures that power our modern world.

The Art of Algorithms:
Behind every powerful software lies a meticulously crafted algorithm. Let's dive into the artistry of algorithm design, where efficiency and elegance converge. Explore famous algorithms, from sorting and searching to graph theory and machine learning. Witness the beauty of optimized code, and how a cleverly designed algorithm can transform complex problems into elegant solutions.

The Creative Canvas of Software Development:
Programming isn't just about logic and numbers; it's a canvas for creativity. Discover the intersection of programming and art, where innovative minds fuse code with design to create stunning user interfaces and immersive experiences. Unleash your creativity as we explore the world of web development, game design, and graphical user interfaces.
✨Hướng Dẫn Soi Cầu XSMB Nhanh Chính Xác Nhất
Tags: xoso66, xoso66casino, xoso66zone, soicauxsmb
Published: 2023-07-15 07:41:19

✨[Hướng Dẫn Soi Cầu XSMB Nhanh Chính Xác Nhất](https://xoso66.zone/soi-cau-xsmb/)
✨Hướng dẫn cách soi cầu XSMB
✨Chia sẻ chiến thuật soi cầu xsmb
✨Tỷ lệ trúng thưởng cao
👇chi tiết 👇
🌐Website: [https://xoso66.zone/soi-cau-xsmb/](https://xoso66.zone/soi-cau-xsmb/)
🌐Fanpage: [https://www.facebook.com/xoso66zone/](https://www.facebook.com/xoso66zone/)
📌Địa chỉ: 113 P. Đại La, Trương Định, Hai Bà Trưng, Hà Nội, Việt Nam.
📲Số điện thoại: 0921 214 694.
📧Email: [xoso66.zone@gmail.com.](xoso66.zone@gmail.com.)
#xoso66 #xoso66casino #xoso66zone #nha_cai_xoso66 #soicauxsmb #nhacaiuytin
MJGS Newsletter - Synthetic Biology Inside (Issue #123)
Tags: javascript, tech, webdev, discuss
Published: 2023-07-15 07:39:16

---
title: MJGS Newsletter - Synthetic Biology Inside (Issue #123)
published: true
description: The whirlwind passing through the world of social media continues, while a new very far out and quite strange paradigm of computation starts to gain some traction.
tags: javascript, tech, webdev, discuss
---

Synthetic Biology Inside (Issue #123)

The whirlwind passing through the world of social media continues, while a new very far out and quite strange paradigm of computation starts to gain some traction.

https://markjgsmith.substack.com/p/mark-smiths-newsletter-15-07-2023

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Converting Images to USDZ Format for Websites
Published: 2023-07-15 07:36:55

Hello,

I'm a beginner when it comes to HTML and websites, but I've recently been experimenting with Python to convert images into STL format successfully. However, I'm facing a challenge when it comes to integrating the STL file into a website. What I'm trying to achieve is similar to the functionality found on the website https://imagetostl.com/, but instead of generating STL files, I want to convert images into USDZ format.

I'd greatly appreciate any guidance or suggestions on how to tackle this problem. Here's a brief overview of what I've accomplished so far:

I've managed to convert images to STL format using Python.

However, I'm unsure how to effectively embed the resulting STL file into a website.

My ultimate goal is to convert images into USDZ format, on a website.

If anyone has experience working with USDZ conversion or integrating 3D files into websites, I would love to hear your insights. Specifically, I'm interested in understanding:

The process of converting images to USDZ format.

How to effectively embed USDZ files into a website.

Any recommended libraries, tools, or tutorials that can simplify this process.

Thank you so much in advance for your help and support. I'm eager to learn and explore this exciting field further!
Go: Using fork module
Tags: go, programming, tutorial, development
Published: 2023-07-15 07:29:27

## Why ?

When you are using a Go module and encounter a bug, you may try to fix it by forking the repository and sending a pull request. However, the merge or release tag might not be immediately available, and you still need to use the module.

Here is how you can use the **forked module**: After forking the repository and committing the bug fix, you can run the following command:

```bash
go mod edit -replace github.com/someuser/repo=github.com/yourusername/repo@branch
```

This command will add the following code to your `go.mod` file:

```gomod
replace github.com/someuser/repo => github.com/yourusername/repo branch
```

Now, you just need to run the following command to download the module:

```bash
go mod download
```

If you take a look at your `go.mod` file, you will see that the branch has been changed to `tag-(time commit)-(hash commit)`.

```gomod
replace github.com/someuser/repo => github.com/yourusername/repo v0.0.0-(time commit)-(hash commit)
```

Whenever the pull request has been merged, you can feel free to remove the `replace` statement in the `go.mod` file and update the module.

## References

-   https://www.jvt.me/posts/2022/07/07/go-mod-fork/
Dp Algo
Tags: algorithms
Published: 2023-07-15 07:25:37


**2771. Longest Non-decreasing Subarray From Two Arrays**

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


```
class Solution:
    def maxNonDecreasingLength(self, nums1: List[int], nums2: List[int]) -> int:
        ans = 1
        Len = len(nums1)
        dp1 = [1] * Len
        dp2 = [1] * Len
        for i in range(1, Len):
            if nums1[i] >= nums1[i-1]:
                dp1[i] = max(dp1[i], dp1[i-1] + 1)
            if nums1[i] >= nums2[i-1]:
                dp1[i] = max(dp1[i], dp2[i-1]+  1)
            if nums2[i] >= nums2[i-1]:
                dp2[i] = max(dp2[i-1] + 1, dp2[i])
            if nums2[i] >= nums1[i-1]:
                dp2[i] = max(dp2[i], dp1[i-1] + 1)
            ans = max(ans, dp1[i], dp2[i])
        # print(dp1, dp2)
        return ans
```
How to show less content in Angular
Tags: angular, pip, lesscontent, text
Published: 2023-07-15 07:11:54

#### Made by [@Vic-rider](https://twitter.com/tossouvincenta1)

## NgxLessTextPipe

This pipe is created to help show less content like emails, descriptions, details.

### Install

Run `npm i ngx-less-text-pipe` to install it.



### Import

Navigate to the module or standalone component in which you want to use.

```ts

import { NgxLessTextModule } from "ngx-less-text-pipe";

@NgModule({
  declarations: [
  ],
  imports: [
    BrowserModule,
    NgxLessTextModule
  ],
  providers: [],
})
export class ProductsModule { }

```


### Use

You have to go to your template where you want to use lessText pipe.

```html
<p> {{ product.description | lessText:'100' }} </p>
```

Here, 100 represents the number of characters you want to display.
Web Accessibility: Checking color contract with Firefox Developer Edition
Tags: web, a11y
Published: 2023-07-15 07:00:13

Firefox Developer Edition has some really cool features, one of them is we can easily check color contract of a web page inside browser dev tool.

I was learning to use [WAVE](https://wave.webaim.org/) to evaluate web accessibility on one of my side project [React SaaSkit Demo](https://github.com/heybran/react-typescript-sasskit), and it reported that the primary button has color contract issue of `4.3: 1` which is less than the minimum color contract ratio of `4.5 : 1` required by WCAG 2.0 AA on body text.

> WCAG 2.0 level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. WCAG 2.1 requires a contrast ratio of at least 3:1 for graphics and user interface components (such as form input borders). WCAG Level AAA requires a contrast ratio of at least 7:1 for normal text and 4.5:1 for large text.

I wanted to see if Firefox Developer Edition has color contract checker baked into its developer tool. Indeed it has, under **Accessibility** panel.

If we open dev too, and go to **Accessibility** panel and on top left corner there's a **Check for issues** select box where we can click and choose **Contract**, then Firefox will evaluate the page and generate a report about color contract for current web page.

![A screenshot of Firefox browser dev tool accessibility panel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x021jiede5jcfs84ztx0.jpg)

It reported that I have two buttons on my page that have color contract issue.

![A screenshot of Firefox browser dev tool color contract report](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tql1omugevou9yc8np3n.jpg)

Here's a short demo video showing this in action.

{% youtube JF49D-nJUcI %}
Coding Problem Interview Series: How to Implement Merge Sort?
Tags: codenewbie, beginners, discuss, career
Published: 2023-07-15 07:00:00

📣 Calling experienced devs and recent interviewees! Join the "Coding Problem Interview Series" to help code newbies tackle interview questions assessing problem-solving skills, algorithmic knowledge, and implementation of sorting, string manipulation, and data structure algorithms.

Share your expertise and insights! Pleas share multiple perspectives and tips for standout answers!


Today's question is:

> Walk me through the implementation of the merge sort algorithm.

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
Balancing Skills: Beyond Coding Expertise
Tags: discuss
Published: 2023-07-15 07:00:00

Being a well-rounded coder involves more than just technical skills. What are some non-technical skills or areas of personal growth you'd like to develop alongside your coding expertise? Let's chat about the benefits of a holistic skill set.

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
As a beginner.....
Tags: webdev, javascript, beginners, tutorial
Published: 2023-07-15 06:53:54

Hello devs!

Nerro here! I am a full stack developer using JavaScript and NodeJs to change myself and the world one commit at a time.


I joined dev sometime back but I have been inactive for all that time until now. 


I however want to put myself and my knowledge our there on a learning journey for new tech stacks, technologies and other tech-related topics. I will be writing articles, tutorials and short "how-to" and "what-is" posts on here.
Follow along as we explore this long exciting journey.

Happy Coding ☯️