teleren/devto huggingface dataset:
Web2? Web3? What's the difference?
Tags: blockchain, web3, web2
Published: 2022-03-03 16:07:10

What are Web2, Web3, and the difference between the two? I will explain the concept of Web2 and Web3 and also give the major differences between them.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3k8iwzu5z9hmj9mv7rt.jpeg)

**Web2**
Web2 refers to the part of the Internet that most of us are familiar with today. It is an internet dominated by companies that provide services in exchange for your data. Some of these companies are known companies like Twitter, Wikipedia, Facebook, e.t.c.

**Web3**
Web3 is an idea for a new iteration of the World Wide Web-based on blockchain technology, incorporating concepts such as decentralization and the token-based economy. The term was coined in 2014 by Ethereum co-founder Gavin Wood, and the idea sparked interest in 2021 among cryptocurrency enthusiasts, big tech companies, and venture capitalists.

**Web2 vs Web3**
So what exactly makes Web3 different from Web2? No, it isn't the number change. The major difference is that Web3 uses a decentralized network while Web2 uses a centralized network. The differences between a decentralized and centralized network are:

1.Anyone can participate in a decentralized network (participation costs are low), while participation in a centralized network is controlled by the central authority.

2.A decentralized network can still function even if a large portion of participants are attacked/taken out, while a centralized network can be taken down by attacking the central authority.

3.In a decentralized network your personal data isn't shared while in a centralized network it is shared.

4.A decentralized network gives equal opportunities to both builders and users while in a centralized network there aren't equal opportunities.

If you would like to learn more about Web3 and blockchain there's an ongoing cohort called [Blockgames](https://blockgames.gg/) organised by [Nestcoin](https://nestcoin.com/) and [Zuri Team](https://zuri.team/).
Day:36 Training at Ryaz: Crud using Mongoose
Tags: beginners, node, mongodb, webdev
Published: 2022-03-03 16:06:04

- Date:3/03/22
- Day:Thursday

Today, I started at about 11:40 am as I was done with upto six modules and left with two subparts of sixth module so  started with it and firstly compleated it then I further moved with second module so, As it was on CRUD operations using Mongoose firstly instructor introduced with mongo db As he explained that mongo db is data base which is used with node api's as user would buy a new course and host will be assigning a course to user so, all the data retrieved from user and the source data would be stored inside the mongo db database then he taught that how to install mongo db on system and how to embeed the link of mongo db inside the node api's and all functioning of mongo db.then he started with how to define schema inside the mongo db data base and defining the models and after this I get to know how to save the changes and how to delete from mongo db using await() ad save() functions and now I was left over with exercises inside this module. so, this way my day ended up and I was able to learn many new things like creating data base,enabling all crud using databases, making connections with app and many more new things.
Appendix: Operational Excellence (Prepare) - AWS Well-Architected Framework Study Guide
Published: 2022-03-03 16:04:34

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)

[Appendix: Operational Excellence](https://docs.aws.amazon.com/wellarchitected/latest/framework/a-operational-excellence.html)

**How do you design your workload so that you can understand its state?**

- Implement application telemetry
- Implement and configure workload telemetry
- Implement user activity telemetry
- Implement dependency telemetry
- Implement transaction traceability

**How do you reduce defects, ease remediation, and improve flow into production?**

- Use version control
- Test and validate changes
- Use configuration management systems
- Use build and deployment management systems
- Perform patch management
- Share design standards
- Implement practices to improve code quality
- Use multiple environments
- Make frequent, small, reversible changes
- Fully automate integration and deployment

**How do you mitigate deployment risks?**

- Plan for unsuccessful changes
- Test and validate changes
- Use deployment management systems
- Test using limited deployments
- Deploy using parallel environments
- Deploy frequent, small, reversible changes
- Fully automate integration and deployment
- Automate testing and rollback

**How do you know that you are ready to support a workload?**

- Ensure personnel capability
- Ensure consistent review of operational readiness
- Use runbooks to perform procedures
- Use playbooks to investigate issues
- Make informed decisions to deploy systems and changes

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)
Python For Everyone - Mastering Python the right way
Tags: python, beginners, guide, codenewbie
Published: 2022-03-03 16:03:54


![Python Logo](https://biogas-india.com/wp-content/uploads/2021/06/Lozingle_10032014-1280x720-1.jpg)

There's a general saying that *what is good for Mr A may not be good for Mr B*. But then, how about Mr B diligently following the right way or process? Well I'll leave you to be the judge of that.

Ever since I picked an interest in learning **python**, its been an interesting ride all through, especially having to find out the numerous solutions one can achieve with it.

Lets get down to business. It may interest you that python can be applied in the following fields;

1. Website development
1. Data Science
1. Machine Learning
1. Automation and a lot more.

Deciding which field you will like to specialize in will help you  streamline your learning. However, the following basic knowledge are required irrespective of the field you decide to concentrate on.

**Data Types**: these includes how to represent strings, numbers, boolean and functions declaration.
**Data structures** : the likes of `tuples`, `sets`, `dictionary` etc is also needed.
**Object Oriented Programming** : how to use classes and create reusable modules.
Get more information from my previous articles 

- https://dev.to/tarakuds/python-101-ultimate-python-guide-11pl

- https://dev.to/tarakuds/data-structures-and-algorithm-5707

Back to the top, all that has been stated are just words of mouth. In order to actualize any of these processes and see it work real time, you will be needing an IDE(by now you should know what this is) and an interpreter. In this case, I will recommend using Visual studio code amongst others and the python extension on VS code or download Python itself from their official website. You can use the following links [visual studio code official](https://code.visualstudio.com/) [python official website](https://www.python.org/downloads/). To get more information about its installation you can check some of my previous articles stated above.

Here are a few projects you can get done using python and references to their code base on my github profile. Please do good to star if you find these codes useful.
- [Determine Fibonacci sequence](https://github.com/tarakuds/project1)
- [identifying if a particular year is a leap year](https://github.com/tarakuds/project1/tree/leapYearCalc)
- [Web scrapping using instagram as a reference to download profile pictures of any user - *still a work in progress*] (https://github.com/tarakuds/project1/tree/instaDownloader)

Enjoy your read.
OpenPGP
Published: 2022-03-03 16:02:56

This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/FINGERPRINT) to [this dev.to account](https://dev.to/k0rr). For details check out https://keyoxide.org/guides/openpgp-proofs

[Verifying my OpenPGP key: openpgp4fpr:DDFC9116D71C415E3C4CF0AD62EAEBDADFB8CF22]
How to know your url location on react (with react-router-dom)
Tags: javascript, react
Published: 2022-03-03 15:59:36

In this post we will be able to see how to know the url we are currently on so for example if we have to fire an event depending on the url we can do it.

First of all we need to have installed or we have to be using react-router-dom

If you already got it let's begin

First import it at the top of your js or ts file 

```
import { useLocation } from 'react-router-dom';
```

Once you import it we can call it like this inside the component

```
const Home = () => {
  const location = useLocation();

  useEffect(() => {
    console.log(location.pathname)
}, [])
return(
  <div></div>
)
}
```

Now if you go to the console on the browser you will be able to see the path you currently at.
Appendix: Operational Excellence (Organization) - AWS Well-Architected Framework Study Guide
Published: 2022-03-03 15:56:53

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)

[Appendix: Operational Excellence](https://docs.aws.amazon.com/wellarchitected/latest/framework/a-operational-excellence.html)

**How do you determine what your priorities are?**

- Evaluate external customer needs
- Evaluate internal customer needs
- Evaluate governance requirements
- Evaluate compliance requirements
- Evaluate threat landscape
- Evaluate tradeoffs
- Manage benefits and risks

**How do you structure your organization to support your business outcomes?**

- Resources have identified owners
- Processes and procedures have identified owners
- Operations activities have identified owners responsible for their performance
- Team members know what they are responsible for
- Mechanisms exist to identify responsibility and ownership
- Mechanisms exist to request additions, changes, and exceptions
- Responsibilities between teams are predefined or negotiated

**How does your organizational culture support your business outcomes?**

- Executive Sponsorship
- Team members are empowered to take action when outcomes are at risk
- Escalation is encouraged
- Communications are timely, clear, and actionable
- Experimentation is encouraged
- Team members are enabled and encouraged to maintain and grow their skill sets
- Resource teams appropriately
- Diverse opinions are encouraged and sought within and across teams

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)
Early access launch of Adama, a serverless multiplayer game platform
Tags: serverless, realtime, gamedev
Published: 2022-03-03 15:55:29

I’m [“early-access” launching Adama](https://www.adama-platform.com/): a SaaS “serverless” infrastructure for Jamstack, games (particularly board games), and traditional real-time scenarios (presence, pub/sub, etc…).

This work is rooted in the frustration of building complicated board games using existing infrastructure. It just so happens that making board games easier has wide reaching implications.

This is a radically different kind of “serverless” infrastructure where I want the benefits of both a serverless architecture with a monolithic server, and this is achieved by building a comprehensive language to transform documents within the service as close to data as possible with minimal reads and writes.

As this is “early access”, I’ve outlined the current challenges on the site and [have a launch post which goes into more detail](https://www.adama-platform.com/2022/03/02/early-access-launch-and-confession.html). 

From a technical perspective, the now and future architecture has some interesting tidbits around streaming. However, the key value proposition is the language which I enjoy using (and building). This language has (1) await/async semantics to perform coordination between multiple people, (2) integrated queries for simpler thinking about state, (3) privacy as a first class citizen, (4) access control is baked in, (4) reactive formulas which lazily compute values, (5) simple message passing between user and the document, (6) modern features which make doing bad things impossible, (7) state can be rewound with a rewind, (8) no need to serialize state or think about networking, [and (9) more](https://book.adama-platform.com/) 

I’ve got my work cut out for me, but I’m starting the effort to find early adopters and build community that want to play as I push forward on [my strategy since many of my investments are driven by pathologies](https://www.adama-platform.com/2022/02/24/open-strategy.html). 

I would deeply appreciate any feedback, comments, and questions here, via my new shiny email: jeff@adama-platform.com, or my [discord channel](https://discord.gg/W3Cj4Byhttps://discord.gg/W3Cj4By)
earthporn teaser
Tags: codepen
Published: 2022-03-03 15:45:18

<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="JjOwRmy" data-user="J2A2K4E" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/J2A2K4E/pen/JjOwRmy">
  earthporn teaser</a> by J2A2K4E (<a href="https://codepen.io/J2A2K4E">@J2A2K4E</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<p>A teaser promoting the lifestyle magazine of  WewoChro.news using Swiper.js and GSAP TweenMax .</p>

{% codepen https://codepen.io/J2A2K4E/pen/JjOwRmy %}
Launched a SaaS Starter Kit on Product Hunt
Tags: saas, nextjs, javascript, webdev
Published: 2022-03-03 15:41:52

---
title: Launched a SaaS Starter Kit on Product Hunt
published: true
description: An open-source starter kit that will help you build full-stack multi-tenant SaaS platforms efficiently and help you focus on developing your core SaaS features. Built on top of popular and modern technologies such as Next JS, Tailwind, Prisma, and Stripe.
tags: saas, nextjs, javascript, webdev
cover_image: https://nextacular.co/images/seo-cover.png
---

Hi Devs! 👋

I recently launched Nextacular over at Product Hunt: [https://www.producthunt.com/posts/nextacular](https://www.producthunt.com/posts/nextacular)

I'm very excited to share [Nextacular🌙](https://nextacular.co).

It has been in development since January this year and I've been gathering feedback on what are the basic SaaS features that founders should not sweat about to help them focus on building the core of their solutions. The feedback gathered resulted in Nextacular, which is a SaaS starter-kit built on top of modern technologies.

Also, in our startup, our team didn't have a standard way of building our applications, so I thought of spending some time crafting this Workspace-based multi-tenant SaaS starter kit to be deployed on Vercel. This is an open-source initiative to contribute to the development community.

More details about the app in the website and in the Product Hunt Listing.

Please let me know your feedback! I appreciate all comments and inputs, and I'll constantly improve Nextacular to deliver an open-source alternative to building your next SaaS. 💬❤️

Project Repository can be found here: [https://github.com/arjayosma/nextacular](https://github.com/arjayosma/nextacular)

Appreciate your support!
Directivos de Tempel Group
Tags: javascript, beginners, tutorial, react
Published: 2022-03-03 15:37:48

uno de los principales partners de Getac a nivel global, y anfitriones locales de la marca durante Expomin, señalaron uno de los principales objetivos de su participación, es dar a conocer a los visitantes el alto nivel y desempeño de los equipos Getac, además del su detalle de especialización, que permite que sean la mejor herramienta de trabajo para quienes trabajan en el sector minero, no solo en Chile sino en todo el mundo.

Tempel Group, como socio oficial de Getac en Iberia y Latinoamérica, ofrece el servicio de asesoría técnica y comercial desde el proceso de selección del producto por parte del cliente, hasta el apoyo durante todo el ciclo de vida.

[leer mas](https://informativocolombia.com/)
En el mismo informe se predice
Tags: javascript, tutorial, react, python
Published: 2022-03-03 15:35:57

una reducción en las muertes y lesiones de un 10% y un 20% respectivamente, en el mismo periodo de 10 años, lo cual constituye otro argumento crucial para el tema de la digitalización de sector. De acuerdo con los organizadores de la exposición, este nuevo formato híbrido -por combinar la asistencia presencial y virtual-, permitirá que muchos más profesionales puedan participar en la exhibición desde cualquier dispositivo y en lugar.

Johnny Chong, Getac Sales Manager Latam, agregó que los dispositivos totalmente robustos de Getac, ofrecen diversas soluciones con certificaciones ATEX, IECEx o ANSI, que permiten ser utilizados con seguridad en áreas con vapores y gases explosivos, además los equipos también se pueden usar en temperaturas extremas que varían entre -29 °C y 63 °C., es decir ofrecen mayor seguridad y productividad para industrias altamente exigentes como la minería; combinando un potente rendimiento informático con tecnología antiexplosiva.

[leer mas](https://informativocolombia.com/)
En este sentido, Teddy Wang
Tags: javascript, beginners, programming, tutorial
Published: 2022-03-03 15:34:05

Business Developer Manager LatinAmerica, indicó que en el pasado quedaron aquellos días en que los geólogos llevaban mapas topográficos impresos y los ingenieros de minas utilizaban linternas para revisar sus registros en la oscuridad. “En la era de la digitalización, las laptops, notebooks y tabletas robustas son jugadores estratégicos que permiten a los operadores observar los datos de perforación en tiempo real, controlar equipos automatizados y comunicar información esencial desde una mina subterránea a las oficinas de administración”.

Cabe señalar que, de acuerdo con el informe de iniciativa de transformación digital publicado por el Foro Económico Mundial en 2015, estos avances tecnológicos podrían generar al 2025, más de 425 mil millones de dólares para la industria minera, sus clientes y la sociedad.
[leer mas](https://informativocolombia.com/)
liderando de forma "robusta"
Tags: javascript, webdev, beginners, tutorial
Published: 2022-03-03 15:32:10

Getac, fabricante líder en soluciones informáticas robustas, anunció su participación en Expomin 2021, la exposición minera más importante de América Latina, que se llevará a cabo en Santiago de Chile, del 25 al 29 de octubre próximos, en un formato híbrido, que va a permitir la participación de muchas más empresas alrededor del mundo.

Para Getac, Expomin resulta una de las exhibiciones especializadas más importantes, debido a la diversidad de dispositivos robustos de la marca dirigidos a la industria minera, pero también por la importancia y la repercusión que tiene el tema de la digitalización entre los protagonistas y trabajadores de la industria minera alrededor del mundo.
[leer mas](https://informativocolombia.com/)
Review Process - AWS Well-Architected Framework Study Guide
Published: 2022-03-03 15:31:15

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)

[**The Review Process**](https://docs.aws.amazon.com/wellarchitected/latest/framework/the-review-process.html)
- Purpose of reviewing an architecture is to identify any critical issues that might need addressing or areas that could be improved
- Outcome of the review is a set of actions that should improve the experience of a customer using the workload
- Team members who build an architecture should use the Well-Architected Framework to continually review their architecture
- Reviews should be applied:
     - at key milestones in the product lifecycle
     - early on in the design phase to avoid one-way doors 
     - before the go-live date
- Follow a set of hygiene processes including a Well-Architected review as architecture changes
- Suggested items to facilitate your meetings:
     - A meeting room with whiteboards
     - Print outs of any diagrams or design notes
     - Action list of questions that require out-of-band research to answer
- Common objections to review process can be alleviated by pointing out that:
     - Reviews help identify potentially missed issues
     - They help develop a playbook to respond to issues that couldn't be addressed before launch
     - They don't have to reveal proprietary secrets if they follow the Well-Architected Framework

[Return to Well-Architected Framework Guide](https://dev.to/aidutcher/aws-well-architected-framework-study-guide-introduction-fjg)
MessageBag in Laravel - Laravel tips
Tags: laravel, messagebag, php, tips
Published: 2022-03-03 15:24:22

This article is only for laravel developer.

MessageBag is a great tools in laravel php framework to send error message in previous page. In few days ago i fall in a problem to send some error message to view page. But i can't use it on validation of laravel and send error. i have several check of work. i have to overwrite MessageBag. so i use this simple syntax like below.

`$message = new MessageBag([
    'field_name' => ['Invalid input, Please try again.'],
]);`
And send it on like this.

return redirect()->back()->withInput()->withErrors($message);
I have already have a view page where i want to show after submit this.

` <div class="form-group{{ $errors->has('field_name') ? ' has-error' : '' }}">
    <h3 class="payment-tittle">Insert your Input here</h3>
    <input class="is_required validate account_input form-control {{ ($errors->has('field_name'))?"input-error":"" }}"
           type="tel" name="otp" value="{{ old('field_name') }}" required>
    @if ($errors->has('field_name'))
        <span class="help-block"> {{ $errors->first('field_name') }}  </span>
    @endif
</div>`
But i suggest all of you that use laravel validation process. But this process can be help you.
Array Slicing
Tags: javascript, beginners, programming, computerscience
Published: 2022-03-03 15:20:05

Array slicing involves taking a subset from an array and allocating a new array with those elements.

In JavaScript you can create a new array of the elements in myArray, from startIndex to endIndex (exclusive), like this:

```
  myArray.slice(startIndex, endIndex);
```

You can also get everything from startIndex onwards by just omitting endIndex:

```
  myArray.slice(startIndex);
```

_Careful: there's a hidden time and space cost here! It's tempting to think of slicing as just "getting elements," but in reality you are:_❗❗❗

**Allocating a new array**

Copying the elements from the original array to the new array
This takes O(n)O(n) time and O(n)O(n) space, where nn is the number of elements in the resulting array.

That's a bit easier to see when you save the result of the slice to a variable:

`  const tailOfArray = myArray.slice(1);`

But a bit harder to see when you don't save the result of the slice to a variable:

```
  return myArray.slice(1);
// Whoops, I just spent O(n) time and space!

  myArray.slice(1).forEach(item => {
  // Whoops, I just spent O(n) time and space!
});

```

So keep an eye out. Slice wisely.🧐