teleren/devto huggingface dataset:
Controllers in Ruby on Rails
Tags: ruby, rails, mvc
Published: 2023-02-16 13:08:49

In Ruby on Rails applications, the Model-View-Controller (MVC) architectural pattern is used to separate the application's concerns into three distinct parts: the Model, the View, and the Controller. The Controller serves as the intermediary between the Model and the View, providing the logic and behavior that determine how the application responds to user input.

When a user interacts with the application, the Controller receives input from the View and uses it to update the Model. The Model represents the data and business logic of the application and is responsible for querying, retrieving, and updating data in the application's database. The Controller retrieves data from the Model and passes it to the View, which is responsible for presenting the data to the user.

In other words, the Controller acts as a traffic cop that directs the flow of data between the Model and the View. It receives requests from the View, retrieves data from the Model, and then passes that data back to the View to be rendered and displayed to the user.

Here's a step-by-step breakdown of how the MVC pattern works in a Ruby on Rails application:

1. The user interacts with the application through the View, which can be a web page, a form, or any other interface.
2. When the user performs an action, such as clicking a button or submitting a form, the View sends a request to the Controller. 
3. The Controller receives the request, interprets it, and decides what action to take. It may need to retrieve data from the Model or perform some other logic.
4. The Controller interacts with the Model to retrieve or update data as necessary.
5. Once the Controller retrieves the necessary data, it is passed to the View.
6. The View then renders the data in an appropriate format, such as HTML or JSON, and presents it to the user. 
7. The user can then interact with the View again, which sends a new request to the Controller, and the cycle begins anew.

In summary, Controllers work with Models and Views in Ruby on Rails applications by receiving user input from the View, updating or retrieving data from the Model as necessary, and passing that data back to the View to be rendered and displayed to the user. This allows for a clear separation of concerns and makes it easier to maintain and modify the application over time.
Laravel with Docusign
Published: 2023-02-16 13:04:22

# Super

## Super test


Aujourd'hui, je vais vous présenter comment implémenter Docusign dans Laravel. 

DocuSign est **une société informatique** créée en 2003 qui propose des technologies dans le domaine de la signature électronique et de la gestion des transactions numériques, en vue de faciliter les échanges et validation électroniques de contrats et de documents. Son siège est basé à San Francisco.

```php
je test de coder en php
```
Announcing the Write for the Community Program
Tags: news, writing, community, webdev
Published: 2023-02-16 12:41:43

## Payload's Write for the Community program offers a unique opportunity to reward developers for contributing to an open-source project.


Our community has been instrumental in the breadth of features we've added to Payload over the past few years. We'd like to keep that momentum going and make it a worthwhile endeavor for all involved. That's precisely why we created the Write for the Community program.

The WFC program evolved from a handful of successful collaborations with a few of our contributors. This program will encourage developers and content creators to share their knowledge and expertise with the Payload community. By contributing articles, tutorials, and other types of content, participants can help make Payload more accessible, user-friendly, and feature-rich, and get rewarded in the process.

###What's in it for me, exactly?
Whether it's an article, repo, or both, we'll make it worth your while. Exact compensation will be determined by the value of the contribution. We're determined to expand our library of resources, and this program will help make that possible.

In addition to the monetary rewards, you'll have the opportunity to showcase your skills and expertise, gain exposure, and build your professional network. By contributing to the Payload community, contributors can establish themselves as thought leaders and experts on Headless CMS and web development.

####Read all about the program [here](https://payloadcms.com/write-for-the-community).


---

###Like what we're doing? Give us a star on GitHub
We're trying to change the CMS status quo by delivering editors with a great experience, but first and foremost, giving developers a CMS that they don't absolutely despise working with. All of our new features are meant to be extensible and work simply and sanely.

[Stop by GitHub and give us a star!](https://github.com/payloadcms/payload)

---

###Get up and running with one line
Getting started with Payload is easy—and free forever. Just fire up a new terminal window and run the following command:

```
npx create-payload-app
```
Show off your rubber duckies
Tags: discuss
Published: 2023-02-16 12:41:34

You familiar with rubber duck debugging? Show of yours! Here's mine


![rubber duck](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4snzzv0wc18i1ukng8y.jpg)

Not familiar with rubber duck debugging? Here's an article for you https://www.freecodecamp.org/news/rubber-duck-debugging/
What is Cloud Computing?
Tags: imalisheraz, cloudcomputing, webservices, saas
Published: 2023-02-16 12:35:47

Cloud computing has become a critical aspect of modern technology, with businesses and individuals leveraging cloud infrastructure and services for everything from data storage to software development. In this article, we will explore what cloud computing is, its benefits, and the different types of cloud computing available today.

**What is Cloud Computing?**
In simple terms, cloud computing refers to the delivery of computing resources over the internet. These resources include storage, processing power, and software, which can be accessed from any device with an internet connection. Rather than relying on local infrastructure to store and manage data or run applications, cloud computing offers a scalable and flexible alternative that can be customized to the needs of each user.

**Benefits of Cloud Computing:**
Cloud computing offers a host of benefits that make it an attractive option for businesses and individuals alike. Here are just a few of the key advantages:

**Scalability:** Cloud resources can be easily scaled up or down based on the needs of the user, making it a more flexible and cost-effective solution than traditional infrastructure.

**Accessibility:** Cloud resources can be accessed from anywhere, at any time, making it easy for users to collaborate and work remotely.

**Reliability:** Cloud providers typically offer robust backup and recovery services, ensuring that data is always available and secure.

**Cost-Effective:** Because cloud resources are only paid for when used, it can be a more cost-effective solution for businesses than investing in expensive hardware and software.

**Types of Cloud Computing:**
There are three main types of cloud computing: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).

**IaaS:** IaaS provides users with access to infrastructure resources, such as virtual machines, servers, storage, and networking. Users are responsible for managing and configuring these resources, which gives them more control over their environment.

**PaaS:** PaaS provides users with a platform for developing, testing, and deploying applications. The provider manages the infrastructure resources, and the user is responsible for managing the application.

**SaaS:** SaaS provides users with access to software applications over the internet. Users do not need to manage any infrastructure resources, as the provider handles all aspects of the application.

**Conclusion:**
Cloud computing has transformed the way we store, manage, and access data and applications. Its scalability, accessibility, and cost-effectiveness make it an attractive option for businesses and individuals alike. As cloud computing continues to evolve, it is likely that we will see even more innovative solutions emerge, driving further growth and adoption in the years to come.
Paracetamol.ts💊| #13: Explica este código TypeScript
Tags: typescript, javascript, spanish, webdev
Published: 2023-02-16 12:27:20

## **<center>Explica este código TypeScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark> </center>


```ts
function f1(): void {
  return undefined;
}

function f2(): void { }

console.log(f1()) // 🤔
console.log(f2()) // 🤔
```

- A. `undefined`, `void`
- B. `null`, `null`
- C. `undefined`, `undefined`
- D. `undefined`, `NaN`

Respuesta en el primer comentario.

---
gclient sync Error
Published: 2023-02-16 11:59:16

Not able to successfully complete gclient sync in ubuntu 18.04 for native webrtc source 
Followed steps as below link:
https://webrtc.github.io/webrtc-org/native-code/development/#.

Error as per below.:
{
Updating depot_tools...
using /run/user/1000/goma_einfochips as tmpdir
compiler_proxy is not running
Syncing projects: 100% (48/48), done.                                                                                      

________ running 'python3 src/build/linux/sysroot_scripts/install-sysroot.py --arch=i386' in '/home/einfochips/0_workspace/projects/arlo/new_x86/git/webrtc_test3/webrtc-checkput'
Installing Debian bullseye i386 root image: /home/einfochips/0_workspace/projects/arlo/new_x86/git/webrtc_test3/webrtc-checkput/src/build/linux/debian_bullseye_i386-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/de629dcc11a6ab1b11e6d66c4180a959c6290097/debian_bullseye_i386_sysroot.tar.xz
Failed to download https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/de629dcc11a6ab1b11e6d66c4180a959c6290097/debian_bullseye_i386_sysroot.tar.xz
Error: Command 'python3 src/build/linux/sysroot_scripts/install-sysroot.py --arch=i386' returned non-zero exit status 1 in /home/einfochips/0_workspace/projects/arlo/new_x86/git/webrtc_test3/webrtc-checkput
Installing Debian bullseye i386 root image: /home/einfochips/0_workspace/projects/arlo/new_x86/git/webrtc_test3/webrtc-checkput/src/build/linux/debian_bullseye_i386-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/de629dcc11a6ab1b11e6d66c4180a959c6290097/debian_bullseye_i386_sysroot.tar.xz
Failed to download https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/de629dcc11a6ab1b11e6d66c4180a959c6290097/debian_bullseye_i386_sysroot.tar.xz

}

Can anyone please help to fix this
10 JavaScript Concepts For Every Programmer
Tags: javascript, webdev, beginners, tutorial
Published: 2023-02-16 11:28:39

JavaScript is a popular programming language used to create dynamic web applications and interactive user interfaces. Here are 10 important concepts that every JavaScript developer should know:

**Variables**
Variables are used to store and manipulate data in JavaScript. They can be declared using the "var", "let", or "const" keywords. "Var" is used for declaring variables with global or functional scope, "let" is used for declaring variables with block scope, and "const" is used for declaring constant values that cannot be reassigned.

**Functions**
Functions are reusable blocks of code that can be called and executed multiple times. They can be defined using the "function" keyword and can take arguments and return values.

**Arrays**
Arrays are used to store collections of data in JavaScript. They can be declared using square brackets and can contain any type of data, including other arrays and objects. Arrays can be manipulated using various methods, such as "push", "pop", "shift", and "unshift".

**Objects**
Objects are used to store collections of key-value pairs in JavaScript. They can be declared using curly braces and can contain any type of data, including other objects and arrays. Objects can be manipulated using various methods and properties, such as "dot notation" and "bracket notation".

**Control Structures**
Control structures are used to control the flow of code execution in JavaScript. They include "if/else" statements for conditional logic, "for" and "while" loops for iteration, and "switch" statements for multiple conditions.

**Scope**
Scope refers to the visibility and accessibility of variables and functions in JavaScript. Variables declared with "var" have functional or global scope, while variables declared with "let" and "const" have block scope.

**DOM Manipulation**
The Document Object Model (DOM) is a programming interface used to manipulate HTML and XML documents in JavaScript. JavaScript can be used to dynamically modify the content and structure of web pages, add or remove elements, and respond to user events.

**Events**
Events are actions or occurrences that happen in a web page, such as a mouse click or keyboard input. JavaScript can be used to respond to events and execute code in response to them.

**Asynchronous Programming**
Asynchronous programming is a technique used to perform non-blocking operations in JavaScript. This includes methods such as "setTimeout", "setInterval", and "XMLHttpRequest", which allow code to execute without blocking the main thread.

**Error Handling**
Error handling is an important concept in JavaScript, as it allows developers to gracefully handle and recover from errors and exceptions that occur during program execution. This includes the "try/catch" statement for handling exceptions and the "throw" keyword for generating custom errors.
ChatGPT Mobile App Now available on play store,download Now. Link in the description.
Tags: chatgpt, ai, gpt3, bot
Published: 2023-02-16 11:17:49

Everyone's talking about the new AI powered GPT mobile app! With its groundbreaking features and convenient accessibility, it's no wonder why.
﻿What do you think of the GPT mobile app? Have you had a chance to try it out yet?
Now available on play store,download Now: 
https://play.google.com/store/apps/details?id=com.winggs.gpt_ai_bot
Naming Anti-patterns
Tags: naming, patterns
Published: 2023-02-16 11:07:36

---
title: Naming Anti-patterns
published: true
description: Some naming anti-patterns
tags: naming,patterns
cover_image: https://images.unsplash.com/photo-1567604130959-7ea7ab2a7807?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-16 10:47 +0000
---

### Naming is hard

|Smell|Why|Prefer|
|---|---|---|
| "Date" | Just "date" without a context does not help understanding when reading the code. | Prefer using a preposition together with some context such as "HappenedAt", "UpdatedOn", "AllowedAfter" |
| Just "in/out" or as prefix/suffix | These are easy to mix up but don't require a source/target which often results in ambiguity.<br/>Example: directories called `/files/in` and `/files/out`, this doesn't tell you in or out from where. | If you use "to/from", they require a source/target which should give more clarity.<br/>Example: `/files/from_remote_server` and `/files/to_remote_server` |

Do you have any naming anti-patterns you'd like to share? Please do!



Credits:
  * [Unsplash image](https://unsplash.com/photos/cWQDPiVe5yo)
telnet
Tags: linux, telnet, sbwriteups, beginners
Published: 2023-02-16 10:51:39

## telnet ##

This article is about another network troubleshooting utility called `telnet`. It is a network protocol that allows you to connect to remote systems over a TCP/IP network. It is used to connect to servers and network equipment over port 23. Though telnet is not a secure protocol and is not recommended due to the lack of encryption, it really helps in troubleshooting issues.

- Telnet is simple to use; simply type `telnet` into the shell and you will be transported to the world of telnet.
```
$ telnet
telnet> quit
$
```

- To connect to a remote server:
```
$ telnet <remote server IP address>
```

- To check check if a remote port is open or not:
```
$ telnet <remote server IP address> <port number>
```

- To specifically connect to IPv4, use -4:
```
$ telnet -4 google.com 443
Trying 142.250.183.46...
Connected to google.com.
Escape character is '^]'.
^CConnection closed by foreign host.
$
```

- To specifically connect to IPv6, use -6:
```
$ telnet -6 google.com 443
Trying 2404:6800:4009:821::200e...
Connected to google.com.
Escape character is '^]'.
^CConnection closed by foreign host.
$
```

Feel free to check its `man` page for more details around telnet.
Writing an AI Word Processor
Tags: chatgpt, ai, javascript, svelte
Published: 2023-02-16 10:49:24

Word processors have always been General and General purpose transformer AI such as ChatGPT is of ideal for text based problems, It cant do sport or dance, but it can do this. 

So let's build a new word processor with ChatGPT built in, we are just at the UI Stage, inspired by Notion and MSWord and my own ideas of what looks nice. I have no idea what will change yet, but I do know its as simple as making a POST, so all I need to do is tailor the UI to re-write a specific section or at-least suggest edits.

The problem I want to solve is that AI like any copy and paste, takes away mistakes, personality, your writing and soul, so let's find a way to get 'inspired' by AI and improve chunks of your document.

particularly I see this as a way to specialise a word processor for writing specific documents really well, anything, dull, hard, monotonous, particularly Resumes/CV's 

{% codesandbox bold-grass-fvx7kf %}
Debugging Common Lisp: fix a bug and resume execution from where it stopped
Tags: lisp, debugging
Published: 2023-02-16 10:46:31

Hi lispers on dev.to o/

Let's add some Common Lisp content out there shall we?

I recently made a little screencast that shows a really great feature of Common Lisp, one not easy to discover, nor to imagine its mere possibility. 

When you get dropped into the interactive debugger because an error occurred in your code, you can fix the bug, re-compile the erroneous function (yes, one function) and **resume the execution from where it stopped, without re-running everything from zero**! It's just an awesome productivity boost.

This shows you how to do:

{% embed https://www.youtube.com/watch?v=jBBS4FeY7XM %}

Yes, we use this everyday.

As a consequence, this is the workflow difference between a lambda language and Common Lisp:

![](https://lisp-journey.gitlab.io/images/debugging-python-VS-lisp.png)

See you!

---

- this was originally published on: https://lisp-journey.gitlab.io/blog/debugging-lisp-fix-and-resume-a-program-from-any-point-in-stack/
Record - the best tool to find and resolve user issues and bugs.
Tags: product, customer, debugging, productivity
Published: 2023-02-16 10:33:45

**Hi All, **

I am new here, so if it is not the right way to use this platform please let me know! 

Over the past few months, we are working on **Record** a tool that will change how user issues are solved and bugs are fixed. 

The ultimate goal is to generate solution suggestion code written using AI. 

We started by collecting the Data, and today Record is the best tool for collecting, investigating, and analyzing user issues. Through a set of tools, designed for customer-facing and R&D teams.

We open today the App for R&D and developers, I know that Record can make you much more productive on focused. 

Look forward to get your feedback: 
[Our Website](Https://torecord.it)
Float UI is now part of MarsX mission
Tags: opensource, ai, design, tailwindcss
Published: 2023-02-16 10:31:09

Today, we are excited to announce that [Float UI](https://floatui.com/) is now part of the [marsx.dev](https://marsx.dev/?ref=floatui) mission! We are thrilled to be part of this mission and to be able to contribute our expertise in user interface design and development, and the best thing is that Float UI pro will be open source 🥳.

If you don't know what is Float UI, you can read this blog post, contains everything you need to know about Float UI, [read this now](https://floatui.com/blog/the-modern-react-ui-components).

## What is MarsX

[Mars](https://marsx.dev/?ref=floatui) is a free dev tool for building web and mobile apps out of micro-apps combining no-code and code interfaces. We can also say it's a platform that is designed specifically for startups and aims to make their journey easier, bringing more power and flexibility by allowing them to reuse thousands of micro-apps from previous projects built on the platform.

With this new partnership, we will make all of our components open source. This means that developers can now access our codebase and use it in their own projects without any restrictions or fees. We believe that this will make it easier for developers to create beautiful user interfaces quickly and easily.

We are also excited to be part of the marsx.dev mission because it allows us to collaborate with other talented developers from around the world who share our passion for creating great user experiences. We look forward to working together on projects that will help make the web a better place for everyone!

### Note

We are working now on making [Float UI](https://floatui.com/) open source, so make sure to [follow us](https://twitter.com/float_ui) on Twitter to get notified, [follow us](https://twitter.com/float_ui)
Newbie to Software Engineering - My Personal Journey
Published: 2023-02-16 10:30:43


![Hero Image](https://images.unsplash.com/photo-1571171637578-41bc2dd41cd2?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80)
As a newbie to software engineering, I know I had a lot to learn before I could even think about being a successful software engineer. My personal journey has been a long one, and I have learned a lot over the past year. As a software engineer, I have had to learn the basics of coding, object-oriented programming, and debugging. I also had to learn about software architecture and design, database management, user experience, and more.

The most difficult part of my journey has been learning the fundamentals of software engineering. I had to understand all of the concepts and terminology before I could even start coding. Then I had to learn the different tools and frameworks that help make coding more efficient. I also had to become familiar with the coding languages and technologies that are used to develop software.

The next step in my journey was to learn how to build and debug a software system. This was perhaps the most challenging part of the job, as I had to understand the various components of a software system and how they interact with each other. I had to learn how to debug code and troubleshoot errors, as well as how to write unit tests and maintain code quality.

Another important part of my journey has been learning how to collaborate with other developers. I had to understand the different kinds of software development processes and which ones work best for certain types of projects. I also had to learn how to communicate with colleagues, clients, and other stakeholders about the project.

As a software engineer, I have had to take the time to learn about new technologies, frameworks, and trends to stay up-to-date. I have attended conferences, workshops, and webinars to stay informed. I also read blogs and articles from other software engineers who are also starting their journey to learn what they can do to be successful.

My journey as a software engineer has been a long and rewarding one. I have learned a lot and continue to learn new concepts every day. I am excited to see how far I can take my skills. For any new software engineer out there, I hope that my experiences can help you on your own journey towards success!