teleren/devto huggingface dataset:
Svelte vs React vs Vue
Tags: react, svelte, vue
Published: 2023-10-02 05:58:45

Svelte, React, and Vue are some of the best front end frameworks and libraries. Each has its own approach and benefits, making the choice a bit challenging for developers.

In this post, we will discuss these frameworks and how they work. After that, we will compare these three in terms of performance, difficulty, scalability, and much more!

Jordan Walke, a software engineer at Facebook, came up with the idea of React in 2013. He wanted to build a library that can help developers create reusable components. The main reason behind making such building blocks is to help developers build complex user interfaces with minimum possible efforts.

At its heart, React offers a declarative UI and component-centric approach. With its Javascript XML, also known as JSX, developers can merge UI templates with JavaScript logic, crafting a seamless development experience.

Evan You, a former Google Engineer introduced Vue in 2014. Today, this framework is known as a progressive JavaScript framework which is used for building user interfaces. Its reactive data binding refreshes the view whenever underlying data changes.

Similar to React, even Vue works on component-based architecture where UI elements are modular and reusable. Apart from this, Vue easily integrates with other projects and uses virtual DOM for efficient rendering. With good ecosystem support, Vue provides tools for different web development requirements and appreciates simplicity and flexibility.

In November 2016, Rich Harris, a graphic editor of the New York Times created Svelte. It is an advanced JavaScript framework which is categorized amongst the quickest and lightest frameworks. Unlike most frameworks, Svelte doesn’t rely on a virtual DOM. Instead of this, Svelte shifts much work to compile-time and generates highly efficient vanilla JavaScript at build time.

Similar to React and Vue, Svelte is also component-based and promotes a modular code structure that can be reused in the entire application. This means developers write components with readable, concise syntax and the Svelte compiler converts it into small, efficient JavaScript bundles.

We can say that applications built by Svelte are generally faster and leaner compared to the ones that are built on other frameworks. It also supports built-in reactivity. So just in case any data changes occur, it automatically updates parts of the UI.

Source of [comparison between React, Vue and Svelte.](https://www.frontendeng.dev/blog/16-react-svelte-vue-the-ultimate-comparison)
Programming in z80 step by step
Published: 2023-10-02 05:55:29


# 1. instroduccion del microprocesador  z80 e historia 



## 1.1 instroduccion del microprocesador z80 

creado en el año 1976 fue el primer microprocesador utilizado en las primeras arquitecturas unificadas de diferentes fabricantes, antesala del IBM PC , como por ejemplo la arquitectura MSX. Podriamis afirmar que el zilog z80 es del de mayor exito en el mercado de la nformatica personal en toda la hostoria. este microprocesador alcanzo la mayor pupularidad en los años 1980 del siglo 21. 

## 1.2 Historia 

la empresa zilog nacio en el año 1974 y creada por Federico Faggin, que habia trabajando para la compañia intel antes de fundar la empresa con los conocimientos arquiridos decidio diseña fue propio microprocesador que fue compatible con la arquitectura del int 4004 , 8008, y 8080 ya que fue hacia parte de equipo del diseño de los microprocesadores mensionados anterior mente , Dos años despues de haber fundado la empresa lanzo al mercado el procesador z80.


El Exito del microprocesador surgio cuando fue incorporado a ordenadores de gran exito como el Amstrad CPC , Spectrum ZX . la en ladecada de los 90 fue abriendo mercado en el mundo de las consolas de video juegos 



> El zilog z80 fue o es un microprocesador de clanacion mediante ingeneria inversa por otras compañias como por ejemplos :  National Semiconductor , Sharp , o NEC.


el microprosador z80 es muy usado en en sistemas embebidos algo que pasa de ser percibido para el consumidor  de la informatica personal
Local 本機 WordPress 開發環境建置工具
Tags: wordpress
Published: 2023-10-02 05:37:44

最近又碰到那萬惡的 WordPress，重新調查了 WordPress 在本機端建置的方案，發現了一個新東西覺得還不錯用，在這邊分享。

## 本機環境

如同大多數的資訊專案一樣，在為 WordPress 製作新站台也往往是先在本機端建置一套開發環境，在比較穩定後再部署到生產機台中，可是萬惡的 WordPress 並沒有內建原生的開發環境，所以以往都是採用一些第三方包好的懶人包／架站機之類來使用，可是使用體驗並不好，包括必須要配置一些參數等，以及它們有些還在用老舊的 PHP 或 Apache 或 MySQL，這裡介紹的 [Local](https://localwp.com/) 解決了一部分前面提到的的問題。

## [Local](https://localwp.com/)

Local 也算是本機架 WordPress 的懶人包之一，它有一些值得一提的特色：

- 跨平台 Linux、macOS、Windows。
- 管理工具簡單好上手。
- 支援在本機建立多個獨立站台。
- 每個站台的底層套件 PHP、MySQL 可自由更換版本。
- 整合 [MailHog](https://github.com/mailhog/MailHog) 用於確認信件寄發狀況。
- 預設支援 HTTPS。
- 整合 [WP-CLI](https://wp-cli.org/)。
- 整合 [Ngrok](https://ngrok.com/)。
- 整合 [Adminer](https://www.adminer.org/) 作為 MySQL 管理界面。

## Local 的安裝與建立站台

[Local](https://localwp.com/) 的安裝與使用非常簡單，只要去 [Local 的網站](https://localwp.com/)下載並安裝即可，並且 Local 同時提供了 Linux、macOS、Windows 的安裝包，以及一致的管理介面。

安裝後跑起來應該會看到這個畫面：

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

左邊的主選單，除了第二個「Local Sites」外，其它都是些付費相關的加值服務，我輩小資男女們應該用不到。

Local Sites 這頁，按 CREATE A NEW SITE 應該會看到這幾頁：

### Setup Site

第一頁填站名。

![Setup Site](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k5tlr7b94uexpitgd3o6.png)

先輸入站名，再把 ADVANCED OPTIONS 展開後會看到更多欄位：

- Local site domain：本地的網址。
- Local site path：站台專案在電腦內的資料夾。
- Create site from Blueprint?：付費服務可略過。

### Setup Environment

第二頁決定底層組件，它預帶的 PHP 7.3.5、Nginx、MySQL 8.0.16 都是目前的主流選擇，可以直接使用。

### Setup WordPress

第三頁設定 WordPress 帳密。

![Setup WordPress](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rfw05bz2vjg07cofrpbz.png)

- 那個 email 不用去改它，Local 有整合 [MailHog](https://github.com/mailhog/MailHog) 來確認信件的寄發狀況。
- 那個 multisite 的欄位一般不會使用。

## Local 管理工具

依照上面的步驟建立站台後，會回到 Local Sites 的頁面：

![Local Sites](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vra5uzmchjhvufaw3isd.png)

頁面內大部分的內容應該都很好懂，重點提示一下幾個可能較陌生的功能：

- 最下方的 Live Link 啟動後會透過 ngrok 的服務產生一組 xxxxxxxxx.ngrok.io 的網址，這組網址可以給外部的人訪問，即使這台本機電腦可能是在內網 NAT 後方也無妨，但每次開關 Live Link 的網址都會變動，所以真的只適合拿來給同事或客戶預覽，無法作為正式網址。詳細的 ngrok 介紹可以參考另外一篇〈[ngrok 讓本機發佈出可被訪問的網址](@/2021/2021-12-09-ngrok/index.md)〉。
- Local 又自動幫我們建立 HTTPS 所需要的 TLS 憑證，不過是自簽的，需要對憑證做信任許可，在 SSL 頁面的 TRUST 按下去，Local 會把憑證加入系統的信任憑證庫內。
- 在 UTILITIES 內有可以進到 MailHog 的連結，MailHog 是 SMTP 發信的攔截器，所有 WordPress 寄出的信件都會被放進 MailHog 內，方便我們做格式或內容的確認。

## Local 可以更好的地方

Local 已經是本人遇過最佳的 WordPress 懶人包，但還是有些缺憾：

- Web server 只能選 Nginx 或 Apache，還無法用更新一代的 [Caddy](https://caddyserver.com/)。
- Local 較適合單人單線開發，因為沒有同步或版控的機制，較不適合多人多線開發，不過這其實是萬惡的 WordPress 的原罪。
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-02 05:31:20

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using [% embed LINK %] -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
AOG777.Com
Tags: aog, aog777, aog7
Published: 2023-10-02 05:29:17

Chào mừng mọi người đến với nhà cái AOG777 nơi phục vụ các khách hàng, đa dạng hóa thể loại, đầy đủ các chương trình hấp dẫn, phục vụ quý khách hàng một cách chu đáo và hỗ trợ nhanh nhất. Xin cảm ơn!
Link Đăng ký:
Web: https://aog777.com/
Web: https://aog676.com/
Telegram: https://t.me/aog676cskh

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u4caj47cpn79o3hfg5k3.png)
Apache AGE: A Technical Dive
Tags: postgres, apacheage
Published: 2023-10-02 05:21:12

Apache AGE is an open-source graph database that combines the power of PostgreSQL and the flexibility of multi-model data storage with the graph data model. In this technical article, we will take a deep dive into Apache AGE, exploring its key features and functionality, and provide screenshots to illustrate its capabilities.

**Introduction to Apache AGE**
Apache AGE is built on top of the PostgreSQL database system, which means it inherits all the benefits of PostgreSQL while adding native support for property graphs and graph queries. It enables developers to work with complex interconnected data structures efficiently and intuitively.
**Creating a Graph Database**
Once Apache AGE is installed, you can create a graph database and start populating it with data. Let's create a simple graph that represents social relationships between users. Here's how you can do it using SQL commands:

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

**Querying the Graph**
One of the strengths of Apache AGE is its expressive query language for traversing and querying graph data. Let's run a few queries to explore our social network graph.

**Find Friends of Alice**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4b64e2ono9k9dxcab11p.png)
This query above will return the friends of Alice:
Analyzing the Graph
You can also perform complex graph analytics with Apache AGE. Let's say we want to find the shortest path between two users, Alice and Carol:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ayn70y8r8pgfu0tm9bh0.png)
**Visualization**
Visualizing your graph data is essential for understanding the relationships within your dataset. Apache AGE integrates with various visualization tools and libraries to help you create meaningful visual representations of your data.

**Conclusion**
Apache AGE is a powerful open-source graph database that seamlessly extends PostgreSQL to support graph data models. In this technical deep dive, we've explored schema creation, querying capabilities, graph analytics, and visualization. Apache AGE's combination of SQL and graph query capabilities makes it a valuable tool for developers and data professionals working with interconnected data.

If you're working on projects that involve complex relationships and need efficient graph data processing, Apache AGE might be the right choice for you. Its seamless integration with PostgreSQL and rich feature set make it a compelling option for building graph-based applications.

For more information, documentation, and community support, visit the Apache AGE website.
Hacktoberfest 2023 Pledge
Tags: hack23contributor, hacktoberfest, hacktoberfest23, opensource
Published: 2023-10-02 05:19:51

I'm Abhay, excited to share my Hacktoberfest 2023 journey as a maintainer. This isn't my first Hacktoberfest rodeo; I've had the privilege of Contributing in previous years, but this year is truly special, as I am a maintainer for a repo. You can find me on GitHub [here](https://github.com/darkbits018).

**My Pledge**
I pledge to be welcoming, helpful contributing, and adding to world and interweb love. I am looking forward to constructing and developing. I will be Including myself and others for a better community in learning and teaching.
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-02 04:56:56

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using [% embed LINK %] -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Created My First npx Package: "create-sra"
Tags: webdev, javascript, opensource, react
Published: 2023-10-02 04:48:09


## Introduction
I am excited to introduce my first npx package, **create-sra**!This package was born out of a desire to streamline the process of creating Single-Page React Applications (SRAs) quickly and efficiently. You can find the package on [npm](https://www.npmjs.com/package/create-rp-app) here._SRA means "SUPER-REACT-APP"_

## Motivation
As a frontend developer, my go-to tools are React, often used with Create-React-App or NextJS. However, building projects with Create-React-App can be a slow process, and it sometimes introduces vulnerabilities. Recognizing these pain points, I identified an opportunity to simplify this process by crafting a tool that automates the initial setup, including webpack configuration. This not only saves time and effort but also grants users greater flexibility.

## Package Overview
`create-sra` is a command-line tool that swiftly generates a basic Single-Page React Application, powered by webpack, with just a few straightforward commands. It establishes the essential files and folder structure based on the user's preferences, allowing you to dive straight into crafting your application logic.

## Installation
- To use `create-sra` just open terminal and type
```
npx create-sra
```

![Demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9jzeb9wvnleg6r49z7l.gif)
- This will create a new directory and all the necessary files and dependencies to kickstart your project.

## Key Features
-**Quick Setup**: `create-sra` establishes a basic SRA with a default configuration, allowing you to start coding right away.
-**Built-in Development Server**: The package includes a development server, enabling you to see your changes in real-time as you code.
-**Clean React Project**: No unnecessary packages are installed by default.
-**No Vulnerabilities**: There are no package vulnerabilities.
-**CSS Framework Support**: You can easily download various CSS frameworks.
-**Superfast**: Quickly create, install, and set up folders.


## Conclusion
Creating `create-sra` has been an incredibly rewarding journey. It's gratifying to know that this package has the potential to save developers a significant amount of time and effort in setting up new React projects. 
I encourage you to give `create-sra` a try and let me know your thoughts. Your feedback is invaluable and will play a crucial role in the package's ongoing development.

Feel free to comment below with any questions, suggestions, or feedback.

_**Happy Coding**_
Redux Explained: Simplifying Complex State Management part-1
Tags: react, redux, beginners, frontend
Published: 2023-10-02 04:33:31

**Why we need redux in our react project**
Redux is a popular state management library in the React ecosystem, and it can be beneficial in React projects for several reasons:

1. **Centralized State Management**: Redux provides a centralized store to manage the application's state. This makes it easier to access and modify data across different parts of your application, ensuring a single source of truth.

2. **Predictable State Changes**: Redux enforces a unidirectional data flow, making state changes predictable and easier to debug. Actions describe changes to the state, and these changes are handled by pure functions called reducers.

3. **Middleware**: Redux allows the use of middleware, such as Redux Thunk or Redux Saga, to handle asynchronous operations, API calls, and side effects. This keeps your components focused on rendering and interacting with the UI.

4.**Ecosystem and Tools**: Redux has a large ecosystem of extensions and dev tools. You can use tools like Redux DevTools to inspect and manipulate the state of your application during development, making it easier to understand what's happening in your app.

5.**Maintainability**: Redux encourages a structured and organized codebase. It separates concerns by keeping the state and state logic separate from the presentation layer (React components).

6.**Sharing State:** Redux makes it easy to share state between components that are not directly connected in a parent-child relationship. This simplifies the sharing of data between various parts of your application.
Google Translate API in a React.js
Tags: webdev, react, javascript, translate
Published: 2023-10-02 04:01:05

Google Translate API in a React.js application to translate text between languages, you can follow these steps:


**Set Up Google Cloud Project:**

- Go to the Google Cloud Console (https://console.cloud.google.com/).
- Create a new project or use an existing one.
- Enable the "Cloud Translation API" for your project.

**Obtain API Key:**

- In the Cloud Console, navigate to "APIs & Services" > "Credentials."
- Create a new API Key.
- Keep this API Key handy as you'll need it to make API requests.

**Install Dependencies:**

- Open your React.js project's terminal and install the necessary packages:

```
npm install axios
```

**Create API Request:**

- Create a new file, e.g., GoogleTranslate.js, to handle API requests.
- Inside this file, you can use Axios to send requests to the Google Translate API:

```
import axios from 'axios';

const API_KEY = 'YOUR_GOOGLE_TRANSLATE_API_KEY';
const API_URL = 'https://translation.googleapis.com/language/translate/v2';

const translateText = async (text, targetLanguage) => {
  const response = await axios.post(
    `${API_URL}?key=${API_KEY}`,
    {
      q: text,
      target: targetLanguage,
    }
  );

  return response.data.data.translations[0].translatedText;
};

export default translateText;
```

**Integrate into React Component:**

- Now you can use the translateText function in your React components.
- Let's assume you have an input field for the text and a dropdown to select the target language.
- When the user enters text and selects a language, you can trigger the translation:

```
import React, { useState } from 'react';
import translateText from './GoogleTranslate';

function App() {
  const [inputText, setInputText] = useState('');
  const [targetLanguage, setTargetLanguage] = useState('es'); // Default: Spanish

  const handleTranslate = async () => {
    if (inputText) {
      const translatedText = await translateText(inputText, targetLanguage);
      // Do something with the translatedText, e.g., display it on the page.
    }
  };

  return (
    <div>
      <input
        type="text"
        value={inputText}
        onChange={(e) => setInputText(e.target.value)}
      />
      <select
        value={targetLanguage}
        onChange={(e) => setTargetLanguage(e.target.value)}
      >
        <option value="es">Spanish</option>
        <option value="fr">French</option>
        {/* Add more language options */}
      </select>
      <button onClick={handleTranslate}>Translate</button>
    </div>
  );
}

export default App;
```

Remember to replace '**_YOUR_GOOGLE_TRANSLATE_API_KEY_**' with your actual API Key in the GoogleTranslate.js file.
🚀 API Maker - Custom API [Post operation]
Published: 2023-10-02 03:53:22

##⭐ List of Feature ⭐

✅ User can create Custom API for, using API Maker inbuilt 
 ▸ auto generated APIs, 
 ▸ schema APIs, 
 ▸ events, 
 ▸ utility Classes, 
 ▸ system APIs, 
 ▸ Third- party APIs, 
 ▸ Logging,
 ▸ Full fledged use of request and response properties,
 ▸ Caching data,
 ▸ Write simple or complex business logic etc..

✅ Download & Upload
 ▸ Streaming huge amount of single or multiple files.

✅ Automatic caching
 ▸ Handle caching in well manner, taken care of modification.

✅ Versioning without limitation
 ▸ Manage multiple version smoothly, without any extra care.

✅ Inbuilt Hooks Support
 ▸ User can add number of pre-hook & post-hook without limitation.

✅ Use Samples examples
 ▸ Using samples user can write code fast and easily.

✅ Error stack
 ▸ In case of error, you found error stack with highlighted on specific line.

✅ Real time logging
 ▸ For troubleshooting, implement and check real time logs.

✅ Key binding
 ▸ To improve work experience in editor we provided inbuilt key binding. 
 ▸ like, Test Code, Save Code, Full-screen code, Insert code, Toggle code panel.

✅ Convert and Validate - Request body and query params
 ▸ To keep code clean and concise.

----------------------------------

##⭐ Custom API Structure ⭐

👉 Basic Info:
 ▸ Enter meaning full name, label & path
 ▸ Set request method [Get / Post / Put / Delete]
 ▸ Cashing [enable / disable]
 ▸ Encryption Data provision, accept only encrypted data or plain
 ▸ Manage there own errorList
 ▸ API Access Type - either API public or Token base access
 ▸ reqBodySchema - validate body of request.
 ▸ reqQueryParametersSchema - validate query params of request.

👉 Code:
 ▸ user can write code in inbuilt powerful editor.

👉 Docs:
 ▸ Manage API related documents

----------------------------------

##⭐ Single Click facilities ⭐

 ▸ Add API Version
 ▸ Edit API Version
 ▸ Remove API Version
 ▸ Active API
 ▸ Save API
 ▸ Test API
 ▸ Insert Code
 ▸ Open Utility
 ▸ Refresh/Load types
 ▸ Code compactor
 ▸ Code finder
 ▸ Zoom in / out
 ▸ Show/hide response panel
 ▸ Copy Interface
 ▸ Copy response
 ▸ Download response
 ▸ Clear response

----------------------------------


## Youtube video link
https://youtu.be/08CDuRohL4g


## Websites
https://apimaker.dev


## API Docs link


## Follow on twitter
https://twitter.com/api_maker


## Linked In
https://www.linkedin.com/company/api-maker