teleren/devto huggingface dataset:
Performance Efficiency Pillar - Best Practice Areas
Published: 2022-04-23 19:07:57

## Selection

### Why is the Selection best practice important?

The optimal solution for a particular workload varies, and solutions often combine multiple approaches. AWS Well-Architecture workloads will enable different features, and use multiple solutions to improve performance. The selection best practice area focuses on architecture, compute, storage, database, and network best practices.

- _Architecture:_ Your architecture will likely combine a number of different architectural approaches, and the implementation of your architecture will use services that are specific to the optimization of your architecture's performance.
- _Compute:_ Selecting compute resources that meet requirements, performance needs, and provide great efficiency of cost and effort will help you accomplish more with the same number of resources.
- _Storage:_ Cloud storage is a critical component of cloud computing, holding the information used by your workload.
- _Database:_ By picking the best database to solve a specific problem (or a group of problems), you can break away from restrictive one-size-fits-all monolithic databases and focus on building applications to meet the performance needs of your customers.
- _Network:_ Since the network is between all workload components, it can have great impacts -both positive and negative- on workload performance and behaviour.

---

## Review

### Why is the Review best practice area important?

Cloud technologies are rapidly evolving, and you must ensure that workload components are using the latest technologies and approaches to continually improve performance. You must continually evaluate and consider changes to your workload components to ensure you are meeting performance and cost objectives. New technologies, such as machine learning and artificial intelligence (AI), can allow you to re-imagine customer experiences and innovate across all of your business workloads.

---

## Monitoring

### Why is the Monitoring best practice area important?

After you implement your workload, you must monitor its performance so that you can remediate any issues before they impact your customers. Monitoring metrics should be used to raise alarms when thresholds are breached.

---

## Trade-offs

### Why is Trade-offs important?

When you architect solutions, think about Trade-offs to ensure an optimal approach. Depending on your situation, you could trade consistency, durability, and space for time or latency to deliver higher performance.
Useful tools for web development in MontereyOS
Tags: php, laravel, symfony, webdev
Published: 2022-04-23 19:03:08

In this article I am going to share some daily tools that are pretty useful in my local development environment with MontereyOS.


## DBNGIN

Free All-in-One Database Version Management Tool, works with PostgreSQL, MySQL and Redis, it support multiple versions of this engines, if you are using a intel chip you got all engines available, if you are working with APPLE M1 machine you are only able to use Mysql & Redis

Download [here](https://dbngin.com/)

---

## Postgres App

If you are working with Apple M1 machine you would need to wait until you are able to use Postgres with DBngin, so here is a great solution to manage postgres in M1 devices.

You can download it [here](https://postgresapp.com/downloads.html)

You should "turn on" the postgres server and then use a database client to interact/create/delete different postgreSQL databases.

---

## TablePlus

It has a free plan with some limitations, but most of the time it is useful even with the free plan.

Definitely locally you would need some sort of database client and there are a lot that are pretty cool like SequelPro, an advantage with TablePlus is that it works for different database engines.

You can download it [here](https://tableplus.com/download)

---

## VS Code

If you want a free code editor that enables a lot of capabilities to work with any PHP/Laravel app without problem you can use VSCode and add plugins to make it works pretty similar to PHPstorm, with some little downsides

You can download it [here](https://code.visualstudio.com/)

---

## PHPStorm

It is paid, but there are free plans for students and open source project creators.

Definitely you should need a code IDE or at least a code editor, in this case PHPStorm offers a lot more features so why not?

You can download it [Here](https://www.jetbrains.com/es-es/phpstorm/download/#section=mac)

---

## Ray

It is a paid software, but it adds debugging new abilities to different technologies/languages, it works for PHP, Laravel, NodeJS, Vue, Go, Ruby, etc.

You can check the docs [here](https://spatie.be/docs/ray/v1/introduction)

---

## Tinkerwell

It is a paid product too, it helps you to test ideas, prototype code and test local applications or using ssh by checking your code output in remote applications too.

You can download it [here](https://tinkerwell.app/)
I am stuck
Tags: python, beginners, help, codenewbie
Published: 2022-04-23 19:01:11

text = input()
word = input()
print (word)
words = word.split()
print (text)
print (words)
if text in words:
   print("Word found")
else:
   print("Word not found")


I can't find what I am doing wrong on this code
It doesn't print Word found, so I debugged using the print statement to see what the variable "words" print, at first, it works fine, then it doesn't. Please assist me
Request/Response Cycle
Tags: beginners, ruby, rails
Published: 2022-04-23 18:57:06

A common category of web applications built with RoR are form-based apps, which give users a form for submitting data, which stores that data in a database and lets users view or modify those entries.

**Displaying the form to the user**
1. A user enters a _URL path_ on their browser and executes.
2. When the URL path is executed, the browser sends a _GET_ request for that URL.
3. The GET request hits the _rails router_ (config/routes.rb). The router maps the URL to a _controller action_ to handle the request.
4. The controller action receives the GET request and passes it on to the _view_.
5. The view _renders the page as HTML_.
6. The controller sends the HTML back to the browser. The page loads and the user sees the page with the form.

**Submitting the form**

1. The user fills and _submits_ the form.
2. When the form is submitted, the browser sends a _POST_ request to the Rails app.
3. The POST request hits the _rails router_(config/routes.rb). The router maps the POST request to the correct controller action.
4. The _controller action_ receives the POST request. The controller action retrieves the submitted data from the form and uses the model to store the data into the database.
5. The _model_ completes its task.
6. The _controller action_ passes the request on to the _view_.
7. The view _renders the page as HTML_.
8. The controller sends the HTML back to the browser. The page loads and the user sees it.
5 Popular Web Development Stacks And My Personal Stacks
Tags: node, php, javascript, webdev
Published: 2022-04-23 18:46:54

⬇️ LEMP
→Linux
→Nginx
→MySQL
→PHP


⬇️ LAMP
→Linux
→Apache
→MySQL
→PHP


⬇️ MERN
→MongoDB
→Express
→React
→NodeJs


⬇️ MEVN
→MongoDB
→Express
→Vue
→NodeJs


⬇️ MEAN
→MongoDB
→Express
→Angular
→NodeJs

------
## MY FAVORITE STACKs

⬇️ MNNN
→MySQL/MongoDB
→NestJS
→NextJs
→NodeJs


⬇️ MNRN
→MySQL/MongoDB
→NestJS
→React (native)
→NodeJs


⬇️ MANN
→MySQL/MongoDB
→Android
→NestJS
→NodeJs


Whats your favorite Stack?
Gomo - 📐 Simple Golang multi modules tool.
Tags: go, bash, tooling, github
Published: 2022-04-23 18:38:33

<a href="https://github.com/abdfnx/gomo#gh-light-mode-only">
  <img src="https://github.com/abdfnx/gomo/raw/main/.github/assets/logo.png" alt="Gomo">
</a>

{% github abdfnx/gomo no-readme %}

> Gomo is a Simple Golang multi modules tool. inspired from [turborepo](https://turborepo.org)

## Installation ⬇

### Using script

- Shell

```bash
curl -sL https://bit.ly/gomo-cli | bash
```

- PowerShell

```powershell
iwr -useb https://bit.ly/gomo-win | iex
```

**then restart your powershell**

### Homebrew

```
brew install abdfnx/tap/gomo
```

## Usage

- Creates a new gomo.json file in the current folder

```bash
gomo init
```

- Initialize a new module

```bash
gomo init --mod github.com/x/x2 --path dir
```

- Download go packages through all your modules

```bash
gomo
```

- Get a go package and add it through all modules

```bash
gomo get github.com/gorilla/mux
```

- Delete a go package through all modules

```bash
gomo delete github.com/example/example1
```

- Update all packages

```bash
gomo update
```

- Add any missing packages necessary to build all your modules

```bash
gomo tidy
```

## Gomo config file

```json
{
  "cmds": {
    "download": "go mod download",
    "update": "go get -u"
  },
  "modules": [
    ".",
    "test",
    "test/web"
  ]
}
```

thank you for your time and don't forgot to star the repo if you like it
AWS Well-Architected Framework - Performance Efficiency Pillar
Tags: aws, cloud, architecture
Published: 2022-04-23 18:35:17

## What Is the Performance Efficiency Pillar?

The Performance Efficiency pillar focuses on the efficient use of computing resources to meet requirments, and how to maintain efficiency as demand changes and technologies evolve.

## Why is Performance Efficiency important to improving my architecture?

Performance efficiency uses multiple solutions and enables different features to improve workload performance. When you take a data-driven approach to building a high-performance architecture, you can make fact-based decisions about your architecture. using the best practices of the Performance Efficiency pillar will allow you to optimize for higher performance, and put in place monitoring to help ensure that the performance of your architecture does not degrade over time.

---

## What are the design principles of the Performance Efficiency pillar?

There are five design principles for Performance Efficiency in the cloud.

### Democratize advanced technologies

Make advanced tech nology implementation easier for your team by delegating complex tasks to your cloud vendor. Rather than asking your IT team to learn about hosting and running a new technology, consider consuming the technology as a service. In the cloud, these technologies become services that your team can consume, allowing your team to focus on product development rather than resource provisioning and management.

### Go global in minutes

Deploying your workload in multiple AWS Regions around the world helps you to provide lower latency and better experience for your customers at minimal cost.

### Use serverless architectures

Serverless architectures remove the need for you to run and maintain physical servers for traditional compute activities. For example, serverless storage services can act as static websites (removing need for webservers), and event services can host code. This removes the operational burden of managing physical servers and can lower transactional costs because managed services operate at cloud scale.

### Experiment more often

With virtual and automatable resources, you can quickly carry out comparative testing using different types of instances, storage, or configurations.

### Consider mechanical sympathy

Understand how your team consumes cloud services, and always use the technology approach that aligns best with your workload goals. For example, consider data access patterns when you select database or storage approaches.

---

## What are the best practice areas of Performance Efficiency?

- Selection
- Review
- Monitor
- Trade-offs
Rails Standard Controller Actions
Tags: ruby, rails, beginners
Published: 2022-04-23 18:33:07

Controller _actions_: Are the methods created inside the controller file, which are used for displaying and modifying data.

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

- **HTTP Verb** exists in your **_config/routes.rb_** file. 
- **Path** refers to the URL a user inputs in their browser.
- **Controller#action** refers to the actions in the **_app/controllers/messages_controller.rb_**.

If you want to create routes for all 7 actions in your app, you can add a resource route to your _routes.rb_ file. The resource route maps URLs to the Messages controller's 7 actions which are (index, show, new, create, edit, update and destroy)
`resources :messages`

If you only want to create routes for specific actions, use :only. The code line below maps URLs only to the Messages controller's index and show actions.
`resources :messages, only: [:index, :show]`

Here is a link on more information about [Rails Routing]((https://guides.rubyonrails.org/routing.html))
How to land your first tech job: use numbers in your resume
Tags: career, codenewbie, beginners
Published: 2022-04-23 18:08:43

Landing your first job in tech is tough for everyone, even more so if you are a self-taught software engineer.

In this video I share the most important secret to writing a killer resume. If you follow just this one rule, you will probably be alright.

{% embed https://youtu.be/4UqhkDk-hvk %}

[Subscribe](https://www.youtube.com/channel/UCwkrS1KQCC9jlTriI6m9xuQ?sub_confirmation=1) to my channel if you don't want to miss upcoming videos about job search in tech.
Reliability Pillar - Best Practice Areas
Tags: aws, cloud, architecture
Published: 2022-04-23 18:06:20

## Reliability Foundations

### Why is the Reliability Foundations best practice area important?

Foundational requirements are those in which the scope extends beyond a single workload or project. Before architecting any system, foundational requirements that influence reliability should be in place. These requirements are something neglected because they are beyond a single project's scope. This neglect can significantly impact the ability to deliver a reliable system.

---

## Workload Architecture

### Why is the Workload Architecture best practice area important?

A reliable workload starts with up-front design decisions for both software and infrastructure. Your architecture choices will impact your workload behaviour across all of the Well-Architecture pillars.

---

## Change Management

### Why is the Change Management best practice area important?

For reliable operation of the workload, you must anticipate and accommodate changes to your workload or its environments. Changes include those imposed on your workload, such as spikes in demand, and also those from within, such as feature deployments and security patches.

---

## Failure Management

### Why is the Failure Management best practice area important?

In any system of reasonable complexity, it is expected that failures will occur. Reliability requires that your workload be aware of failures as they occur and take action to avoid impact on availability. Workloads must be able to both withstand failures and automatically repair issues.
PythonIsCool - Introduction
Tags: python, tutorial, beginners, codenewbie
Published: 2022-04-23 18:01:48

# Introduction

## Table of contents
[What is Python?](#1)
[Why Python?](#2)
[How to learn to code?](#3)
[Why should you read this blog?](#4)
[Where do you write Python code?](#5)

---

## What is Python? <a name="1"></a>

Python is a multi-purpose, programming language. It is easy to learn and is quite useful for beginner programmers. Python is easier to understand and comprehend, because the syntax is more like English and the indentation is legible. Adding to its simple code, Python has some features that can enable you to show simple animations. Those can be used to make games.

---

## Why Python? <a name="2"></a>

Adding to its facility, according to TIBOE Programming Index, Python is ranked 3rd in the most used programming languages. If you want to see how to make a game on Python or something like that, when you search it up on Google, you will most probably find many suitable tutorials on the first Google search page, as Python is a popular language. Python has won Language of the Year in 2007, 2010 and 2018 which makes it more fun to learn.

---

## How to learn to code? <a name="3"></a>

If you have this blog, learning Python will be quite easy for you. Luckily for you, this blog will start with the basics and gradually get harder. Just follow the steps and you will be an expert in no time.

---

## Why should you read this blog? <a name="4"></a>

Anyone who likes computer programming should read this, whether that's a child or an adult. If you want to learn how to write your own software rather than using someone else’s, this blog is the perfect blog to read. In the next few chapters, you will learn the basics, like where to write your Python code, to a bit more harder things, like the different kinds of loops and if statements, and how to use them. 

---

## Where do you write Python code? <a name="5"></a>

The first step to producing a fabulous software is finding a suitable place for writing your code. There are many free IDEs that you can use. 

One of them is Python IDLE. When you install Python, IDLE is also installed by default. This makes it easy to get started in Python. Its major features include the Python shell window(interactive interpreter), auto-completion, syntax highlighting, smart indentation, and a basic integrated debugger. IDLE is a decent IDE for learning as it's lightweight and simple to use. However, it's not for optimum for larger projects.

Another one is Atom. Atom is an open-source code editor developed by Github that can be used for Python development. Atom is highly customisable. You can install packages as per your need. Some of the commonly used packages in Atom for Python development are autocomplete-python, linter-flake8, python-debugger, etc.

The one I prefer to use is [repl.it](https://replit.com) , it is used for small and big projects and has most of Python IDLE functions.

---

Thanks for reading! If you found this interesting or fun to read, follow me so you get a notification when the next chapter is posted!
AWS Well-Architected Framework - Reliability Pillar
Tags: cloud, aws, architecture
Published: 2022-04-23 17:44:11

## What is the Reliability Pillar?

The Reliability pillar focuses on the ability of a workload to perform its intended function correctly and consistently when it's expected to. This includes the ability to operate and test the workload through its total lifecycle.

## Why is Reliability important to improving my architecture?

Reliability of a workload in the cloud depends on several factors, the primary of which is resiliency.

### Resiliency

Resiliency is the ability of a workload to recover from insfrastructure or service disruptions, dynamically acquire computing resources to meet demand, and mitigate disruptions -such as misconfigurations or transient network issues.

Using the best practices of the Reliability pillar can enable workloads to achieve the availability goals required to achieve an organization's business objectives. These best practices help mitigate the turbulent conditions of production, and therefore best serve your users.

---

## What are the design principles of the Reliability pillar?

There are five designs principles for Reliability in the cloud.

### Automatically recover from failure

By monitoring a workload for key performance indicators (KPIs), you can trigger automation when a threshold is breached. These KPIs should be a measure of business value, not of the technical aspects of the operation. This allows for automatic notification and tracking of failures, and for automated recovery processes that work around or repair theb failure. With more sophisticated automation, it's possible to anticipate and remediate failures before they occur.

### Test recovery procedures

In the cloud, you can test how your workload fails, and you can validate your recovery procedures. You can use automation to simulate different failures or recreate scenarios that led to failure pathways that you can test and fix before a real failure scenario occurs, thus reducing risk.

### Scale horizontally to increase aggregate workload availability

Replace one large resource with multiple small resources to reduce the impact of a single faiilure on the overall workload. Distribute requests across multiple, smaller resources to help ensure they don't share a common point of failure.

### Stop guessing capacity

In the cloud, you can monitor demand and workload utilization, and automate the addition or removal of resources to maintain the optimal level to satisfy demand withouth over -or under- provisioning. There are still limits, but some quotas can be controlled and others can be managed.

### Manage change in automation

Changes to your infrastructure should be made using automation. The changes that need to be managed include changes to automation, which then can be tracked and reviewed.

---

## What are the best practice areas of Reliability?

- Foundations
- Workload Architecture
- Change Management
- Failure Management
Install XDEBUG in MontereyOS
Tags: php, laravel, symfony, webdev
Published: 2022-04-23 17:35:05

## Check the PHP current version

Open the terminal and type this command:

```
php -v
```

If you are using a local php version from homebrew or use Valet to set multiple php versions, with this command you would get exactly the current version.

## Install XDEBUG

Depending on your Mac architecture it could change (intel/m1)

### With Homebrew (intel)

```
pecl install xdebug
```

### On Apple M1

```
arch -arm64 sudo pecl install xdebug
```

Or this other command, depending on how PHP is compiled, and what the default architecture is:

```
arch -x86_64 sudo pecl install xdebug
```

## Get the php.ini file location

In the terminal run this command:

```
php --ini
```

You would get four values, the second line returns the `php.ini` file location, with this you can open a text editor and add xdebug.

## Add XDEBUG

In my case I am using `php 8.0.18` so the `php.ini` file location is: `/opt/homebrew/etc/php/8.0/php.ini`

Now you can open the file with an editor, in my case I am using vscode for this little changes, so in my terminal I use this command:

```
code /opt/homebrew/etc/php/8.0/php.ini
```

If you prefer to make the change in the terminal, you can use, this other command:

```
nano /opt/homebrew/etc/php/8.0/php.ini
```

Then at the very end add to the file this lines:

```
zend_extension=xdebug
xdebug.mode=develop,debug,coverage
```

It would set XDEBUG and also set and XDEBUG mode, useful when you are using the `--coverage` flags to run your tests.

## Test your XDEBUG configuration

Now we are ready to test the installation by running this command:

```
php -v
```

Now it should show something like this:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtwmivxwpp9ptd0jl28q.png)
Great Free CSS Course by Google 😻🔥
Tags: webdev, css, beginners, html
Published: 2022-04-23 17:33:34

{% embed https://youtu.be/H33Qz_GbPbw %}

In my latest **[Youtube Video](https://youtu.be/H33Qz_GbPbw)**, I'm sharing information regarding this **Free CSS Course By Google** for you to learn and master **CSS** 🤯

Make sure to watch the **[Youtube Video](https://youtu.be/H33Qz_GbPbw)** and also make sure to **Like** the **[Youtube Video](https://youtu.be/H33Qz_GbPbw)** & **Subscribe** to my **[Youtube Channel](https://www.youtube.com/channel/UCIb8_J9lqtiWGMIOdQ5DVsg)** for more **Amazing** content related to **Web Development** and **Self Taught Developer** Journey 🙌

---

Please do me a favour by **Reacting** to this post with 
❤️ + 🦄 and also bookmark 🔖 it for your future reference ✅

---

**Connect/Follow** me on Social platforms like Twitter, Linkedin where I regularly post Tips💡+ Guides📜 + Resources 🌟 related to Web Development and Programming 👨‍💻


![RammCodes Social Follow Request Banner](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8a5vzbe9atsgmoll0oih.png)

### 🐦 **[My Twitter](https://twitter.com/rammcodes)**
### 👨‍💼 **[My Linkedin](https://www.linkedin.com/in/rammcodes/)**
### 🌐 **[My Website](https://rammaheshwari.com)**

---

Press the **Follow** button to stay updated with my content 🚀

Thanks for your **Support** ❤️