teleren/devto huggingface dataset:
What are functions???
Published: 2024-02-05 02:37:33

Functions??? What are they exactly... the simple explanation is functions are blocks of reusable code that can be called and executed whenever they are needed. Functions must be given a proper set of instructions so they can be used and most importantly a name of what this function will do. Given the type of code you are writing it will be important. Lets get even more simple, functions is to programming the way recipes is to cooking. Just like a recipe tells you how to cook a specific dish, a function will tell the computer how to perform a specific task.

## How do i create a function?

Creating a function is actually quite simple. To create a function in JavaScript all you have to do is use the function keyword-> followed by the name of what this function will do-> parentheses for parameters (Parameters are variables that are defined in the function declaration and are used to receive input values when the function is called)-> the return statement is used to specify the value that the function should output-> and curly braces {} to enclose the function body. The example below is a function declaration that adds 2 numbers together.


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

Now what if we want to test that this function is working properly? Well all we have to do is console.log it. The whole purpose of this function is to add a + b. In order to do this look below at the example.

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

In this example we used console.log(addNumbers(21, 4)); to get the result of adding a + b. We could use any two numbers not just 21 and 4. Console.log allows us to print display information in the console of a web browser or a Node.js environment. It's a very helpful tool for debugging and understanding how our code is working. Something to get used to because its a tool that will be used a lot. In the example above the result (25) would be displayed in the console bar, By using console.log we can verify that our function is working as expected and see the output of our calculations.

## Why are functions so important?

To start off functions are a huge part of writing code and to break it down even more Functions help break down really big and complex programs into smaller, more manageable pieces of code. By dividing our code into functions, we can organize and structure our program's logic, making it easier to read and maintain. Well-named functions with clear purposes can make our code more easy to read and make them self-explanatory. This is important because best believe that depending on the type of code you are writing for your program it will make it a whole lot easier to navigate through it the more neat and in order your code is. A major tip is to never write a huge function that could confuse you, in fact by dividing our code into smaller functions, each function can have a specific responsibility or task, making it easier to read and maintain. Remember the more organized the better!
Buy Oramorph Whatsapp +44.7414.982.506
Tags: healthydebate, beginners, javascript, productivity
Published: 2024-02-05 02:35:05


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rehc1ctbtzffe76ncab7.jpg)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cl6g6aez12nk716io30n.jpg)
Buy Oramorph china, Buy Oramorph How To Buy Oramorph Online Without Prescription, Buy Oramorph in Australia, Buy Oramorph ON THE INTERNET, buy oramorph oral solution 10mg/5ml in uk, buy oramorph oral solution 10mg/5ml online without prescription, buy oramorph oral solution online, Buy Oramorph UK, Buy Oramorph USA, Buy Oramorph with paypal, CAN I Buy Oramorph online, Morphine, Morphine for sale in Europe
Whatsapp +1815.513.0062
Telegram +44.7916.076.425

Telegram : +44.7414.982.506
Oramorph Telegram +1413.340.4922
Tags: opensource, aws, devops, javascript
Published: 2024-02-05 02:30:33


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iagqscl9qfyhveofgd5e.jpg)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2gznknanutgr6vw7l32.jpg)
Buy Oramorph china, Buy Oramorph How To Buy Oramorph Online Without Prescription, Buy Oramorph in Australia, Buy Oramorph ON THE INTERNET, buy oramorph oral solution 10mg/5ml in uk, buy oramorph oral solution 10mg/5ml online without prescription, buy oramorph oral solution online, Buy Oramorph UK, Buy Oramorph USA, Buy Oramorph with paypal, CAN I Buy Oramorph online, Morphine, Morphine for sale in Europe, Morphine for sale in Uk, Oramorph Buy, Oramorph buy in the USA, ORAMORPH DRUG ORAMORPH FOR SALE ORAMORPH INJECTABLE, ORAMORPH ONLINE ORAMORPH, Oramorph oral, Oramorph oral solution 10mg/5ml, ORAMORPH ORAMORPH BARS, Order Morphine Online, order oramorph oral solution 10mg/5ml online without prescription, Order Oramorph without prescriptions, PILLS ORAMORPH TABLETS, purchase oramorph oral solution 10mg/5ml online, quality Oramorph oral, where i can buy oramorph oral solution 10mg/5ml online., WHERE TO BUY ORAMORPH, Where to get Morphine sulphate Injection online

Whatsapp +1.909.287.1365

Whatsapp +1413.340.4922
Best Cryptocurrency Recovery Expert / MUYERN TRUST HACKER
Published: 2024-02-05 02:03:08

Immersed in the digital markets as a cryptocurrency trader, MUYERN TRUST HACKER emerged as a game-changer, revolutionizing my trading trajectory. Before being acquainted with this digital assistant by a fellow trader, my foray into the crypto realm was marred by uncertainties and financial setbacks after my email was hacked and hackers swept $200,000 worth of Bitcoin from my wallet. I didn't know where to start or who to ask for help. However, with the recommendation of a family friend and the integration of MUYERN TRUST HACKER. ( Email at ( muyerntrusted AT mail-me DOT com ) or ( Telegram AT muyerntrusthacker ) I was able to track down the tool that cashed out my Bitcoin account for my trading and afterward, the landscape underwent a paradigm shift, steering me toward substantial profits and strategic acumen. In the volatile world of cryptocurrency trading, MUYERN TRUST HACKER  manifested as a guiding light, akin to a seasoned trader bequeathing a clandestine advantage. Preceding its introduction, my journey was fraught with undulating market trends and unforeseen pitfalls, resulting in financial setbacks. The advent of MUYERN TRUST HACKER was nothing short of an epiphany, offering a redemptive path and a route to success. safeguarding and recovering investments is their top-notch priority. It embodied a trusted ally, fortifying against potential losses by merciless scammers through digital interactions. MUYERN TRUST HACKER became my financial guardian, empowering strategic decisions and emboldening me to navigate the volatile cryptocurrency landscape. In stark contrast to previous financial setbacks, the tool became synonymous with profitability. Their expertise and analytical prowess transformed my trading strategies, enabling me to seize lucrative opportunities and prudently manage risks. Profits, once elusive, materialized, marking a pivotal shift in my cryptocurrency trading endeavors. Efficient in identifying patterns and trends, MUYERN TRUST HACKER mirrored the precision of an experienced trader, yet their accessible interface made them a valuable asset for traders of varied expertise. Simplifying the intricacies of cryptocurrency analysis, MUYERN TRUST HACKER emerged as the catalyst that propelled me from losses to substantial profits, representing an invaluable secret weapon in the expansive realm of cryptocurrency trading.
TCP vs UDP
Tags: networking
Published: 2024-02-04 14:53:46

Before we jump right into what TCP and UDP is all about, we have to first understand the **_OSI (Opens Systems Interconnection)_ model**. Do you ever think about what happens under the hood for data to transfered from one computer to another over the internet? The OSI model is used to visualize how this data is transmitted. 

The OSI model comes in to abstract the way data is transmitted between different computers with different architectures. This OSI model is made up of 7 different layers; **_Application layer, Presentation layer, Session layer, Transport layer, Network layer, Data link layer, Physical layer_**. For data to be transmitted, it will pas through all these 7 layers starting from the application layer where there is human-computer interaction to the physical layer which transmits raw bits of data to a physical medium. Our key focal point will be the **Transport Layer** where we will be dissecting TCP and UDP.

## What is TCP?
TCP stands for **Transmission Control Protocol** specifies how data should be broken down and sent until it reaches its destination. It works together with the IP (internet protocol). TCP determines how to break the data into packets and the IP is responsible for addressing and routing these data packets making sure it reaches the destination chronologically.
Imagine you want to access a webpage from the browser. Once the HTTP request is made, the TCP is responsible for transmitting the html file to your browser by splitting it into various packages. These packages are numbered and sent to your browser where they will assembled back to the html file for your viewing.
It is worth noting TCP is connection-oriented where before the data is split into packets and routed, a connection between the source and destination is established. This connection is known as a **handshake**.

## What is UDP?
The **User Datagram Protocol** is another protocol used to transmit data across the internet. However, it is connectionless as there is no formal connection established between the sender and receiver before the data is transmitted. UDP sends data packets directly to the computer without any connection between the two.

## TCP vs UDP
Comparatively, UDP is faster in terms of transmitting data than TCP whereas TCP is more reliable in the sense that the data is certainly going to reach its destination intact. TCP is slower because it takes time establishing the connection and if there's any data loss along the line a request will be made to obtain the missing data packet. They both have their strengths and weaknesses. UDP is commonly used in time-sensitive communications where packet loss is not a big deal and it's preferable than waiting e.g live streaming. TCP is ideal for scenarios where the data must be received intact without any data loss or alteration eg emails.

_**NB**: It is worth noting the OSI model doesn't apply to the current internet and it's the **TCP/IP** model which is currently used. The TCP/IP model comes from merging some of the layers of the OSI model._
Receta de Croquetas de Bacalao en freidora de aire
Published: 2024-02-05 01:19:17

Hoy en DeBocado, te presentamos una receta de croquetas de bacalao en la [freidora de aire](https://debocado.net/recetas-freidora-sin-aceite/): una alternativa fácil, sencilla y más saludable que las compradas. En mi casa, las croquetas de bacalao fresco de la abuela son una tradición que no puede faltar durante la Semana Santa.

Para esta receta, he utilizado migas de bacalao desmigado, pero también puedes optar por bacalao fresco o congelado. La elaboración de estas croquetas de bacalao en la freidora sin aceite es casera, saludable y sumamente sencilla. Todo el proceso se ha realizado en mi freidora de aire de 5,5L Innsky, sin necesidad de microondas, horno o Thermomix.

Además, tienes la opción de preparar las croquetas de bacalao con patatas, gambas, a la portuguesa, entre otras variantes. Te invito a explorar otras recetas de croquetas en la freidora de aire, como las croquetas de jamón en airfryer o las croquetas de batata en airfryer. A continuación, te detallo los ingredientes necesarios para esta receta:

Migas de bacalao desalado - 250 gr
1 Cebolla
3 cucharadas de Harina de trigo
4 cucharadas de Aceite de oliva
Leche semidesnatada - 750 ml
3 Huevos
Pan rallado - 100 gr (para rebozar)
1 cucharadita de Pimienta negra
1 cucharadita de Nuez moscada
Sigue la elaboración en la freidora sin aceite para disfrutar de estas deliciosas croquetas de bacalao caseras y saludables.
How to choose the best data structure to solve a problem.
Published: 2024-02-05 00:20:32

1. Analyse your problem to determine the operations that must be suported. Examples may include inserting a data item into the data structure, deleting, and finding a specified data item.
2. Quantify the resource constraints for each operation.
3. Select the data structure that best meets these requirements.

This three-step approach to selecting a dsa operationalizes a data-centered view of the design process. The **first concern** is for the data and the operations to be performed on them, the **next concern** is the representation for those data, and the **final concern** is the implementation of that representation.
Resource constraints on certain key operations, such as search, inserting data records, and deleting data records, normally drive the data structure selection process.
* Are all data items inserted into the data structure at the beginning, or are insertions interspersed with other operations?
* Can data items be deleted? If so, this will probably make the implementation more complicated.
* Are all data items processed in some well-defined order, or is search for specific data items allowed? "Random access" search generally requires more complex data structures.

---

**Example**: A bank must support many types of transactions with its customers. From a database perspectice, we see that ATM transaction do not modify the database significantly. For simplicity, assume that if money is added or removed, this transaction simply changes the valued stored in an account record. Adding a new account to the database is allowed to take several minutes. Deleting an account need have no time constraint, because from the customer's point of view all that matters is that all the money be returned (equivalent to a withdrawal). Typically they are not willing to wait more than a brief time for individual account transactions such as a deposit or withdrawal.
When considering the choice of data structure to use in the database system that manages customer accounts, we see that a data structure that has little concern for the **cost of deletion**, but is highly efficient **for search** and moderately efficient for **insertion**, should meet the resource constraints imposed by this problem. Records are accessible by unique account number. One data structure that meets these requirements is the **hash table**. 
* Hash Tables allow for **extremely fast exact-match search**. A record can be modified quickly when the modification does not affect its space requirements.
* Hash Tables also support efficient insertion of **new records.**
* While **deletions **can also be supported efficiently, too many deletions lead to some degradation in performance for the remaining operations.
* However, the hash table **can be reorganized periodically to restore the system to peak efficiency** (search for **load factor**. Such reorganization can occur offline so as not to affect ATM transactions.
How Do You Shift the Focus from Individual to Collective Success?
Tags: discuss
Published: 2024-02-05 00:00:00

---
published_at : 2024-02-05 00:00 +0000
---
How does your team shift focus from individual achievements to collective results? Share examples of successful collaboration towards shared goals.
<br>
Follow the DEVteam for more discussions and online camaraderie!
{% embed https://dev.to/devteam %}
Caption This! 🤔💭
Tags: watercooler
Published: 2024-02-05 00:00:00

Think you've got what it takes to whip up the cleverest caption for this image? Give it a shot!
![Ice Cream Cone with a Fluorescent Bulb inside](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/48dxpl4ck6upuq5zb0mn.jpg)

---

Follow the DEVteam for more discussions and online camaraderie! {% embed [https://dev.to/devteam](https://dev.to/devteam) %}
K8S - exercise 1: create, fix, get, and delete PODS
Tags: kubernetes
Published: 2024-02-04 23:49:05

This exercise is based on the course LinuxFoundationX LFS158x
Introduction to Kubernetes. 


## Create a pod in a declarative way

create a file called pod.yaml

touch pod.yaml
vim pod.yaml

past this code in pod.yaml

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
    - name: nginx
      image: nginx:1.14.2
      ports:
        - containerPort: 80
```

Run the command:

```bash
kubectl create -f pod.yaml
```

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


## Create a pod in a imperative way

```bash
kubectl run firstrun --image=nginx
```

Get pods to see the new pod:

```bash
kubectl get pods
kubectl get pods -o wide
```

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

## Create a pod in a mix way (declarative and imperative)

```bash
kubectl run firstrun --image=ngixx --port=88 --dry-run -o yaml > secondrun.yaml
```

If you notice, I introduced some errors in the YAML file so that I can fix them.

Modify because it is not possible to have two pods with the same name and label:

name, label, container -> name

```bash
kubectl describe secondrun
```

Run this command, to replace the previous pod:

```bash
kubectl replace --force -f secondrun.yaml
```

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

Now let's delete the pods:

```bash
kubectl delete -f pod.yaml
```

```bash
kubectl delete pods firstrun secondrun
```

![4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tf4qv800vkaycnnimpi9.png)
Introducción a C++: parte 3 Estructuras de control [repetitivas]
Tags: cpp, beginners, tutorial, spanish
Published: 2024-02-04 23:46:28

### Repetitivas
De manera simple estas estructuras ejecutan fragmentos de codigo mientras se cumplen ciertas condiciones, existen 3 tipos principales: **while**, **do-while**, **for**.

#### While
El `while` se utiliza para ejecutar fragmentos de codigo mientras se cumple la condición es decir si no se cumple no se ejecuta nada, su estructura es: 

```
while (condición){
  // Codigo que se ejecuta mientras se cumple la condición 
}
```
Ejemplo usando while: 

![while-example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0oekrpj7bjkvdjz3b2zw.png)

#### Do-while
El `do-while` al igual que el while ejecuta el fragmentos de codigo mientras una condición se cumple, la diferencia es que este ejecuta el fragmento al menos una vez, es decir se ejecuta 1 vez y después comprueba si sigue ejecutándose, su estructura es: 
```
do {
 // Codigo que se ejecuta 1 vez y verifica si sigue  ejecutándose 
} while (condición);

```
Ejemplo usando do-while:

![do-while-example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/53gv4zwgjuvog7wk4y61.png)

#### For
El `for` al igual que el while ejecuta el fragmentos de codigo mientras una condición se cumple. Sin embargo, la diferencia clave radica en su estructura y propósito, el `for` se usa generalmente se utiliza generalmente para iterar sobre una secuencia específica de elementos, como una lista, una tupla, o un rango numérico, su estructura es: 
```
for (inicialización; condición; incrementación;){
   // Fragmento de codigo 
}
```
Una manera mas sencilla de verlo es: 
```
for (desde; hasta; con paso de;){
   // Fragmento de codigo 
}
```
Ejemplo usando for:

![for-example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hbo484r95gtnim6zqiwa.png)

#### Conclusión
Aunque las 3 estructuras sirven para ejecutar fragmentos de codigo mientras una condición se cumple, para determinar que estructura usar, lo mejor es ver el propósito de nuestro programa.
Reviewing Functions
Tags: javascript
Published: 2024-02-04 23:45:54

Today, I decided I needed to go over functions a little more. I have really been trying to nail in some of these concepts as I know it will come back to haunt me if I don't. Anyways, just a quick check up. I'll add a small portion of what I decided to work on below. Mainly used replit and videos to follow along!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hip2g2zkxemmwz13rjbu.png)
Unveiling PHP Library Development 101: from Basics to Advanced
Published: 2024-02-04 22:27:10

 🚀 PHP Library Development 101 book is out for **FREE** 🚀

Hello, DEV Community!

I'm excited to offer my book, **PHP Library Development 101: From Basics to Advanced** for **FREE**. With nearly a decade of working experience in PHP, I've distilled my learning and discoveries into this book to help others embark on their journey in building PHP libraries.

This book was reviewed by expert PHP developers to ensure the accuracy of the content.

**Why This Book?**

This book is not just about understanding PHP libraries; it's a comprehensive guide aimed at shaping you into a proficient PHP developer. Whether you're just starting or are an experienced developer, this book is tailored to enhance your skills deepen your understanding of PHP library development, and put you on the right path in the PHP library development world.

**What You'll Learn:**

- The foundational concepts of PHP libraries.
- Advanced topics like Namespaces, Autoloading, Exceptions, and more.
- Practical approaches to write reusable code and contribute to the open-source community.

**My Learning Philosophy**

I believe in learning by sharing and writing. This book embodies that philosophy, serving as a practical starting point for those looking to master PHP libraries and advanced PHP subjects.

**Be Part of This Journey**

As we approach the release of the book, I invite you to subscribe for exclusive early insights and chapter previews. Your feedback and participation would be invaluable to this journey.

🔗 **Get The book**
You get:
* Two PDF files one in Dark and the other in Light themes.
* Two directories contain the code of the library built through the book.

Find it here: https://ahmadraafat.gumroad.com/l/php-library-development-book

And subscribe to my newsletter directly: https://ahmadraafat.gumroad.com/subscribe

Happy Coding!