teleren/devto huggingface dataset:
Redux Toolkit Better Than Realm Database
Tags: redux, reactnative, react, realm
Published: 2023-04-17 08:29:31

When it comes to state management in React Native applications, you have a lot of options available. Two popular choices are Redux Toolkit and Realm Database. But let's be honest, if you want a state management tool that doesn't drive you crazy, Redux Toolkit is the clear winner and I am speaking from the experience of someone who had to join in on an existing project and had to see the Armageddon going on in the codebase because someone thought "Yeah, let's do Realm".
He could have made so many other bad decisions like maybe using Flipper😬, etc. but he chose Realm!!!

Well, i am here to tell you Redux Toolkit is better and here are ten reasons why:

1. Predictable state management
Do you want to avoid pulling your hair out over unexpected bugs and behavior? With Redux Toolkit, you can rest easy knowing that state changes are handled in a predictable way.

2. Centralized store
Who needs the headache of tracking down state changes scattered throughout your codebase? With Redux Toolkit's centralized store, you can easily track and debug issues.

3. Time-travel debugging
Why settle for regular debugging when you can go back in time and replay past actions? With Redux Toolkit, you can travel back in time to diagnose even the most complex bugs.

4. Code simplicity
Who has time to write convoluted code? With Redux Toolkit, you can simplify your code and focus on building your app.

5. Easy integration with React
Why waste time figuring out how to integrate your state management tool with React when you can use Redux Toolkit's built-in integration?

6. Rich ecosystem
Why reinvent the wheel? With Redux Toolkit's vast ecosystem of libraries and plugins, you can easily extend its functionality and build better apps.

7. Performance
Why settle for slow state management when Redux Toolkit is designed with performance in mind? It can handle even the largest and most complex state with ease.

8. Developer experience
Who needs documentation that makes you want to pull your hair out? With Redux Toolkit, you can enjoy clear and intuitive documentation that won't make you want to scream.

9. Compatibility
Why deal with compatibility issues? Redux Toolkit is compatible with a wide range of React Native libraries and frameworks, making it easy to integrate with your existing codebase.

10. Community support
Why go it alone? With Redux Toolkit's large and active community, you can easily find support and resources when you need them.

In summary, if you want a state management tool that won't make you want to pull your hair out, Redux Toolkit is the clear winner. With predictable state management, a centralized store, time-travel debugging, code simplicity, easy integration with React, a rich ecosystem, great performance, clear documentation, compatibility with other libraries, and a strong community, what's not to love? So, don't waste your time with Realm Database and embrace the superior state management offered by Redux Toolkit.

Well don't come at me, it's just a thought.🤷🏽‍♂️
#TestCulture 🦅 Episode 32 – Community of Practice
Tags: beginners, agile, testing, devops
Published: 2023-04-17 08:26:52

The idea of Communities of Practice was first proposed by cognitive anthropologist Jean Lave and educational theorist Etienne Wenger in 1991. 🤝
💡 𝗝𝗲𝗮𝗻 𝗟𝗮𝘃𝗲 is a social anthropologist who develops theories of learning as a process of changing participation in ongoing, changing practices. Her lifelong work challenges conventional theories of learning and education.

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

💡 𝗘𝘁𝗶𝗲𝗻𝗻𝗲 𝗪𝗲𝗻𝗴𝗲𝗿 is an educational theorist and practitioner, recognized for co-formulating the theory of situated cognition. He has also made significant contributions to the field of communities of practice.


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

Wenger further developed the concept in a 1998 book: “Communities of Practice”. For Wenger, these communities are a means of learning that can be classified in the style of education called 𝐬𝐨𝐜𝐢𝐨𝐜𝐨𝐧𝐬𝐭𝐫𝐮𝐜𝐭𝐢𝐯𝐢𝐬𝐦.
These communities are interested in sharing the tacit knowledge held within an organization.
👉🏼 Learn more about the concept about [Community Of Pratice here.](https://agilitest.com/cards/community-of-practice)
SV388 - Link Trang Tổng Đá Gà Trực Tiếp Nhà Cái SV388
Published: 2023-04-17 08:26:26

https://sv388.studio/ SV388 là nhà cái đá gà trực tiếp uy tín hàng đầu tại Châu Á và Việt Nam với các dịch vụ đá gà cựa sắt✔️ đá gà cựa dao phát trực tiếp từ Thomo✔️ Campuchia✔️ Philippines✔️✔️✔️
sv388.studio@gmail.com
535 Đ. Cộng Hòa, Phường 13, Tân Bình, Thành Phố Hồ Chí Minh
https://www.diigo.com/profile/sv388studio
https://solo.to/sv388studio
https://scrapbox.io/sv388studio
https://wakelet.com/@sv388studio
https://heylink.me/sv388studio/
Most Likely Java Exception Handling Interview Questions
Tags: java, interview, fresher, jobs
Published: 2023-04-17 08:22:17

1) What is an exception?
2) How the exceptions are handled in Java?
3) What is the difference between error and exception in Java?
4) Can we keep other statements in between try, catch and finally blocks?
5) Can we write only try block without catch and finally blocks?
6) There are three statements in a try block – statement1, statement2 and statement3. After that there is a catch block to catch the exceptions occurred in the try block. Assume that exception has occurred in statement2. Does statement3 get executed or not?
7) What is unreachable catch block error?
8) Explain the hierarchy of exceptions in Java?
9) What are run time exceptions in Java. Give example?
10) What is OutOfMemoryError in Java?
11) what are checked and unchecked exceptions in Java?
12) What is the difference between ClassNotFoundException and NoClassDefFoundError in Java?
13) Can we keep the statements after finally block If the finally block is returning the control?
14) Does finally block get executed If either try or catch blocks are returning the control?
15) Can we throw an exception manually? If yes, how?
16) What is Re-throwing an exception in Java?
17) What is the use of throws keyword in Java?
18) Why it is always recommended that clean up operations like closing the DB resources to keep inside a finally block?
19) What is the difference between final, finally and finalize in Java?
20) How do you create customized exceptions in Java?
21) What is ClassCastException in Java?
22) What is the difference between throw, throws and throwable in Java?
23) What is StackOverflowError in Java?
24) Can we override a super class method which is throwing an unchecked exception with checked exception in the sub class?
25) What are chained exceptions in Java?
26) Which class is the super class for all types of errors and exceptions in Java?
27) What are the legal combinations of try, catch and finally blocks?
28) What is the use of printStackTrace() method?
29) Give some examples to checked exceptions?
30) Give some examples to unchecked exceptions?
31) Do you know try-with-resources blocks? Why do we use them? When they are introduced?
32) What are the benefits of try-with-resources?
33) What are the changes made to exception handling from Java 7?
34) What are the improvements made to try-with-resources in Java 9?
35) What are the differences between StackOverflowError and OutOfMemoryError In Java?

See the answers at https://javaconceptoftheday.com/java-exception-handling-interview-questions-and-answers/
Solving FizzBuzz Problem in JavaScript
Published: 2023-04-22 22:53:51

---
title: Solving FizzBuzz Problem in JavaScript
published: true
date: 2023-04-17 08:00:39 UTC
tags: 
canonical_url: https://codexive.hashnode.dev/solving-fizzbuzz-problem-in-javascript
---

We are going to play a game called FizzBuzz, Have you played the game before, if you havent no need to worry I will show you how. I can tell you for free that afterward you would love to play it and write a program code for it in your favorite programming language, its so enticing.

In this game we are going to start by counting from 1 and saying each number out loud but here is where the fun comes in when we get to a number that is a multiple of 3, instead of saying that number itself we say the word Fizz! And when we get to a number that is a multiple of 5 we say the word Buzz! if a number is then a multiple of both 3 and 5 we say the word FizzBuzz! cool right? I know.

My preferred language is Javascript so let's write a program to play the game using my language. Any programming will do the trick but I choose to use JS.

First, we need to tell the computer that we want to start the counting of numbers from 1. We can do that by creating a variable called count and setting it up with the value of 1.

```
let count = 1

```

Next, we need to write out the logic that will make our program say the numbers and FizzBuzz when appropriate. We can use a loop to go through all the numbers from 1 which is the count value to 100 (or any other number we wish to play up to). Inside the loop, we want to use an IF statement to check if the current number is a multiple of 3, 5, or both. If it is we can then use the console.log command to make the program say either Fizz, Buzz or FizzBuzz. Now let's write the code down

```
for(let count = 1; count <= 100; count++){
    if(count % 3 === 0 && count % 5 === 0){
        console.log("FizzBuzz");
    } else if (count % 3 === 0){
        console.log("Fizz");
    } else if (count % 5 === 0){
        console.log("Buzz");
    } else {
        console.log(count);
    }
}

```

Our code is ready to be shipped by the power in 0s and 1s. Now when we run this program, our computer will play the FizzBuzz game for us! We can change the number we wish to play with by changing the number in the loop. For example, if we want to play up to 50, we can change the loop to:

```
for(let count = 1; count <= 50; count++){
    //FizzBuzz Logic as above goes here
}

```

And thats it, my fellow developers, we have just created a FizzBuzz game program that we can play using JavaScript. Have fun coding!
Storyblok/Svelte v3.0.0. is here 🎉
Published: 2023-04-17 08:00:00

We're excited to announce the release of our latest [SvelteKit SDK version, v3.0.0](https://github.com/storyblok/storyblok-svelte/releases/tag/v3.0.0)! 


This new version uses the latest version of our [js-client](https://github.com/storyblok/storyblok-js-client) - which means we are finally removing Axios in favor of native Fetch API (polyfillable via [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch)). 

Another benefit is, that it uses @svelte/package - producing an optimized bundle which is up to date with the latest Svelte and SvelteKit updates. 

Last, but not least, it's fully typed 💪

To make sure you can use older versions if needed, there is now also version v2.5.0 of our SDK, which we will maintain for retro-compatibility and IE support (using js-client 4). You can find an overview [here](https://github.com/storyblok/storyblok-svelte#compatibility).
Programming Languages (March/April 2023)
Tags: rust, deno, babashka
Published: 2023-04-17 07:54:18

---
title: Programming Languages (March/April 2023)
published: true
description: Notes on learning programming languages for March and April 2023
tags: rust, deno, babashka
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-04-17 07:30 +0000
---

I've been trying a few new languages recently trying to decide if there's anything I want to try and pivot to using in the longer term.

I recently had a chance to use Go but people have also recommended Rust and I would that the languages are similar enough and target enough of the same problems that the language communities feel quite strongly about one another. I've only scratched the surface of Rust currently but things I like so far are the greater explicitness in things like type casting and while I don't love strict compilers generally the error messages are actually some of the best I've seen in a long while.

I tend to enjoy working in dynamic languages so I have also tried [Elixir](https://elixir-lang.org/) and initially the experience was very positive but I hit a bit of a wall when it came to [pattern matching function dispatch](https://inquisitivedeveloper.com/lwm-elixir-23/), while pattern matching for destructuring is as I would expect the number of different ways that people structure their dispatch, particularly on recursive functions made me feel like I wasn't able to understand how to structure a problem. I also hit a wall with binary and string destructuring, where as lists behave in a LISPy way I ended up in a rabbit hole of type mismatch when trying to pull apart strings and differentiate between binary representations and characters. Go was equally horrible with its use of Runes for most things and ASCII for default loops.

I ultimately felt I needed a better guide to the language and have paused it for now as it isn't a very popular language (even though it might have one of the [best web frameworks](https://www.phoenixframework.org/) about currently).

I already know Clojure but haven't been using JVM languages recently. [Babashka](https://babashka.org/) is a Clojure subset that can be installed via asdf and doesn't require a JVM setup. I'm still working through the tutorial but it was a reminder of how great programming Clojure is and how simple setup can be made.

[Deno](https://deno.land/) is a Typescript-based alternative to Node and it is a pretty good programming environment with a decent tutorial. However as a scripting or CLI language it suffers from asynchronous IO which adds lots of tedium compared to synchronous alternatives or simply languages that wrap their IO in better abstractions. I think I need to try and get onto the web programming side of things to see something that is maybe a stronger fit.
Is learning about Web3 as a junior web dev a good idea?
Tags: discuss, webdev, web3
Published: 2023-04-17 07:13:44

Bit of context for the question - I am learning web development with the MERN stack, and building projects to showcase my skills in order to get employed. I see Web3 hype all around, and was wondering whether learning about it and building a project involving it, say, a blogging platform, would be a good use of my time or if I should focus on more "traditional" things instead? Mainly considering it to show I am keeping up with the latest technology, though not sure if there's better ways to do that.

Thoughts?
Integrating AI into Mobile app development
Tags: app, appdevelopme, webdev, appboxer
Published: 2023-04-17 06:50:52

AI allows apps to learn from user behavior and provide personalized experiences, automate tasks, and make predictions based on data analysis.
Here are some ways that AI can Help into [App Development](https://appboxer.com.au/):
1. Personalized recommendations
2. Image and video recognition
3. Predictive analytics
4. Natural language processing (NLP)
5. Chatbots
6. Voice assistants
Delete Vertices (Nodes) from Apache AGE
Tags: apacheage, graphdatabase, database, postgres
Published: 2023-04-17 06:27:43

In Apache AGE, we cannot delete a node without also deleting edges that start or end on said vertex. Either explicitly `delete` the vertex's edges first and then delete the vertex, or use `DETACH DELETE` to delete vertex's edges first and then delete the vertex.

**Delete single vertex:**
Here is the simple query for deleting a vertex if it has no edge.
**Query:**
`SELECT * 
FROM cypher('graph_name', $$
	MATCH (v:Useless)
	DELETE v
$$) as (v agtype);`

**Explanation:**
This query will match vertices with label `Useless` by `MATCH (v:Useless)` and then `delete` them using `DELETE v`.


**Using DETACH DELETE:**
If we have some edges associated with the vertex we want to delete. We can use `DETACH DELETE` to delete all the edges related to the vertex and the vertex itself.

**Query:**
`SELECT * 
FROM cypher('graph_name', $$
	MATCH (v:Useless)
	DETACH DELETE v
$$) as (v agtype);`

**Explanation:**
The above Query first match the vertex to be deleted by using `MATCH (v:Useless)`, then use `DETEACH DELETE` to first `delete` a vertex’s edges then `delete` the vertex itself.


**Return a `deleted` vertex:**
`SELECT *
FROM cypher('graph_name', $$
	MATCH (n {name: 'A'})
	DELETE n
	RETURN n
$$) as (a agtype);`

**Explanation:**
The above Query first match the vertex to be deleted by using `MATCH (n {name: 'A'})`, then delete (`DELETE n`) the vertex and also returns the deleted vertex using `RETURN n`.

For more details visit: https://age.apache.org/overview/

**AGE Github Link:** https://github.com/apache/age

**AGE Viewer Github Link:** https://github.com/apache/age-viewer
🌟Exploring the Power of .NET Core: Unleashing the Full Potential of Cross-Platform Development🚀
Tags: dotnet, dotnetcore, webdev, programming
Published: 2023-04-17 06:20:28

The rise of cross-platform development has been fueled by the need to create applications that can run on multiple platforms, including Windows, macOS, and Linux. .NET Core, an open-source, cross-platform framework developed by Microsoft, has emerged as a popular choice among developers for building cross-platform applications.

In this article, we will explore the power of .NET Core and how it can help developers unleash the full potential of cross-platform development.

**Cross-Platform Capabilities🌐:** One of the key benefits of .NET Core is its cross-platform capabilities. Developers can write applications that can run on multiple platforms without having to rewrite the code for each platform. This reduces development time and ensures that the application is consistent across all platforms.

**Performance💨:** .NET Core offers superior performance compared to other cross-platform frameworks. It uses just-in-time (JIT) compilation, which compiles the code at runtime, resulting in faster execution times. Additionally, .NET Core has a smaller memory footprint, making it ideal for building high-performance applications.

**Flexibility💪:** .NET Core offers a high degree of flexibility, allowing developers to choose the tools and libraries they prefer. This means that developers can use their preferred tools, such as Visual Studio, Visual Studio Code, or JetBrains Rider, to build .NET Core applications.

**Open-Source🆓:** .NET Core is an open-source framework, meaning that developers can contribute to the development of the framework and use it for free. This has resulted in a vibrant community of developers who are constantly working on improving the framework.

**Cloud-Ready☁️:** .NET Core is designed to be cloud-ready, which means that it can be easily deployed to cloud platforms such as Azure, AWS, and Google Cloud Platform. This makes it ideal for building cloud-native applications.

.NET Core is a powerful cross-platform framework that offers a wide range of benefits to developers. Its cross-platform capabilities, superior performance, flexibility, open-source nature, and cloud-readiness make it an ideal choice for building modern applications. If you haven't tried .NET Core yet, now is the time to explore its full potential.
Wavlink Router Setup
Published: 2023-04-17 05:32:16

Rebooting the router may be all it takes to fix the problem. To do this, unplug the power cord from both ends of your Wavlink router, wait five seconds and then plug it back in. The WiFi light will blink on briefly when you connect your Wavlink router to power again. This means that after being rebooted, your Wavlink router is starting up again and should be ready for use in a few minutes. If this doesn’t help you log into your [Wavlink router setup](https://wavlinkwiifi.com/), continue reading below for more troubleshooting steps
How to Disable Coupons for COD Orders in WooCommerce
Tags: woocommerce, wordpress, webdev
Published: 2023-04-17 05:03:04

Coupon codes are a popular way to incentivize customers to make purchases on e-commerce platforms. However, for businesses that offer cash on delivery (COD) as a payment option, coupons can be a double-edged sword. While they can attract customers and boost sales, they can also lead to revenue loss and increased risk of fraud. That's why it's important to disable coupon codes for COD orders in WooCommerce.

The good news is that disabling coupons for COD orders in WooCommerce is easy. You can do it by adding a simple code snippet to your functions.php file.

```
add_filter( 'woocommerce_coupon_is_valid', 'disable_coupon_for_cod_orders', 10, 2 );

function disable_coupon_for_cod_orders( $is_valid, $coupon ) {
    // Check if COD is selected
    if ( isset( $_POST['payment_method'] ) && $_POST['payment_method'] == 'cod' ) {
        $is_valid = false;
        wc_add_notice( __( 'Sorry, you cannot use a coupon for COD orders.' ), 'error' );
    }
    return $is_valid;
}

```

 This code snippet will check if the customer has selected COD as the payment option, and if so, it will disable the coupon codes for that order. This way, you can ensure that your business is protected from coupon code abuse, while still offering your customers the convenience of COD

Disabling coupons for COD orders is an effective way to prevent revenue loss and reduce the risk of fraudulent activities. It also ensures that your business can continue to offer COD as a payment option without incurring any additional costs or risks.

In addition to disabling coupons for COD orders, you can also consider implementing other fraud prevention measures, such as address verification and fraud detection tools. These measures can help you further reduce the risk of fraudulent activities and protect your business from revenue loss.
Thedevlog - PVP Turned based tactics game.
Tags: gamedev, showdev, programming, mobile
Published: 2023-04-17 04:43:56

I am currently making a mobile pvp turned based game.

I will probably make first the MVP product which is already playable.

Game will have different classes
- Spellblade
- Ronin
- Samurai
- Monk
- Cleric
- Bard
- more to come.


Here are some preview of the game and character classes.

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

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


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


Initial game preview

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

Game does not yet have a final name. Do you have any suggestions ?
How To Auto Select Shipping Method in Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-04-17 04:43:33

Magento 2 is a well known internet business stage that offers an extensive variety of transportation strategies to convey items to clients. Naturally, clients can pick the delivery technique they like during the checkout interaction for that you can likewise add Custom structure at end. Nonetheless, this can be a tedious undertaking, particularly for online stores with an enormous number of requests. To smooth out this interaction, Magento 2 permits you to auto-select the delivery strategy in view of explicit measures.

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

This blog entry will direct you through the course of **_how to auto select shipping method in Magento 2._**

For more info, visit **_https://webguru.dev/how-to-auto-select-shipping-method-in-magento-2/_**