teleren/devto huggingface dataset:
Convenciones de nombre... ¿Como debo de nombrar o llamar las "cosas" en Laravel?
Tags: laravel, codequality
Published: 2021-05-28 13:34:41

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2lz48660f7iwv890sfg3.jpg)

Partiendo de estas cuatro convenciones de nombres más utilizadas en la programación, las cuales son: 

🐪 camelCase

🍢 kebab-case

👨🏼‍🏫 PascalCase

🐍 snake_case

## ¿Cómo llamar a los Modelos?

En Laravel los modelos debe llamarse en singular, sin espacios entre las palabras y utilizando la estrategia de combinación de palabras llamada "**PascalCase".**
✅
```php
User, BlogPost, Product, ProductCategory
```
🚫
```php
Users, blogsPost, product, product_categories
```

**Tip importante:** Procurar utilizar nombres en ingles para llamar las cosas y de esta manera aseguras que tu código va poder ser comprendido con mayor facilidad por otros desarrolladores. 

## ¿Cómo llamar a las propiedades en los Modelos?

Estas debemos llamarlas en minúsculas y "**snake_case**", simplemente debemos seguir la convención que existe en las columnas de la base de datos. Por ejemplo:
✅
```php
$this->updated_at, $this->email, $this->name
```
🚫
```php
$this->updatedAt, $this->Email, $this->ProductName
```

## ¿Cómo llamar los métodos utilizados en los modelos?

 Todos los métodos que creemos en nuestro proyecto dentro de Laravel, debemos de llamarlos utilizando la convención camelCase. Por ejemplo: 
✅
```php
public function index(), public function getUserByEmail()
```
🚫
```php
public function Index(), public function get_user_by_email()
```

**Tip importante:** Dentro de los tests, debemos llamar a los métodos utilizando la convención "**snake_case**";

## ¿Cómo llamar a los controladores?

Los controladores que creemos en Laravel deben de ser singulares, con la convención "**PascalCase"** y terminar con la palabra "**Controller**".
✅
```php
UserController, ProductController, BlogController
```
🚫
```php
userController, blog_controller, productController, auth_Controlle.
```

## ¿Cómo nombrar las tablas de las bases de datos?

Las tablas de la base de datos deben de ser nombradas en plural y utilizando la convención "**sanke_case**".
✅
```php
users, categories, failed_jobs
```
🚫
```php
Users, blog, failedJobs
```

### Caso para las tablas pivote:

Las tablas pivotes deben de nombrarse en singular, alfabeticamente según cada modelo que se utilice y utilizando la convención "**snake_case**".
✅
```php
post_user, blog_category, category_product 
```
🚫
```php
postUser, BlogCategory, product_category
```
Nuhamedia.com
Published: 2021-05-28 13:30:18

<a href="https://nuhamedia.com/">Nuhamedia.com</a> merupakan blog yang mengulas, mereview, memberikan tutorial dan panduan serta menampilkan informasi yang menarik seputar dunia teknologi secara spesifik membahas hal yang berkaitan dengan topik website, sosmed, aplikasi, gadget, pc/laptop dan provider.
Ch 7 and 8 
Tags: shapeup, books, productivity, operations
Published: 2021-05-28 13:28:04

CH 7 Bets, not Backlogs

A slight sigh of relief passed through the room when we said there will be no more backlogs. To some this might be blasphemy to others it might be one less list of things they will never get to.

At Loadup we land somewhere in between where our backlog gets some love, but it definitely has items that will never get done. For the most part ours may be different because the backlog is partly between a decentralized list, and a backlog. The decentralized list idea brought up in the book puts the responsibility of keeping track of important ideas that might still be important when we have time to get to them. Instead of offloading that responsibility to someone who might not see the value of the project you hold on, and potentially champion your project when the time is right. 

Really important ideas come back to you.

Chapter 8

Well this turned into a doozy of a conversation. That now seems to be a fortuitous precursor to the direction our company is heading(I'm writing this post a week later, so I get the benefit of hindsight here). 

The conversation mainly revolved around the benefit or lack of benefit that would happen if we were able to implement some form of cycle for our work. What it boils down to is the idea that measuring developer efficiency is a weird cross between shaking an 8 ball, rolling some bones, and spreadsheets; all wrapped up in the name of effective planning. Now I know that isn't entirely true, and that the answer is out there somewhere. Yet if you are fine with that kind of ambiguity there can be some benefit that comes from some kind of structure/schedule to how the entirety of the development [process works](https://queue.acm.org/detail.cfm?id=3454124). On a side note you should check out the research article by Microsoft ala Github on a framework for measuring developer productivity. The Github blog talks a bit about how they used it, and has a neat Slackbot to help you improve your developer efficiency and happiness.

One thing that has been brought up numerous times is that Basecamp is a different company, provides different services, and thus we can't just copy what they do. I bring this up because in the chapter there is almost a blase approach to bugs. There are caveats that important bugs will halt the presses, but nonetheless a bug is a bug and can be dealt with six weeks from now. At LoadUp almost every bug directly impacts our revenue flow. Now of course we could take the time to have someone look into each bug, see how often it is occuring, and make the decision to fix it or not. In that time frame we could lose a lot of sales instead of immediately beginning to work on it. One thing we all are leaning towards is having someone available for bugs, bug duty, extermination time, etc. This way we all aren't watching the channel and being distracted by any level of bug.

That's all for now. There is a can of worms waiting for conversation. Hit up some comments if you want to discuss.
CUSTOM CRM DEVELOPMENT: COST AND BENEFITS
Tags: crm, development
Published: 2021-05-28 13:24:27

In the past few years, custom CRM systems have gained large popularity. Many companies are using them successfully to increase both productivity and profit. However, most organizations are still only eyeing these solutions. Often, you don’t want to build your own CRM system because you are unwilling to waste money on something you can get with standard CRMs.

You may ask: if there are ready-made budget solutions, why develop a CRM from scratch? Many people know popular CRM system examples such as Salesforce, SAP, and Microsoft Dynamics. Compared to them, custom CRM software pricing may seem unreasonably high. However, ready CRMs are not able to fully take into account the specifics of customer relationships and therefore are good only for small businesses. Note that the use of standard CRMs also implies expenses on support, improvement and configuration of the system, personnel training, and licenses.

The development of custom CRM solutions is a guarantee of adapting them to the peculiar needs of every medium and large business, ensuring the required level of sales.

If you want to learn how to build your own CRM, you are in the right place.

This is an extract. Read the full article: https://requestum.com/custom-crm-development
A COMPLETE GUIDE TO CREATING A FACE EDITING APP — BEST PRACTICES, TIPS, AND MORE
Tags: app, photo
Published: 2021-05-28 13:22:46

Do you want to develop a worthy FaceApp alternative? But how much does it cost to develop an AI photo editor? Learn the best practices, tips, and the cost in our complete guide. Make your app go viral.

HOW TO MAKE A TOP-OF-THE-LINE FACE EDITING APP
Do you remember the hugely popular mobile application FaceApp? Developed with AI technology, it allows you to transform photos and see how you would look in old age or in deep childhood. Since its release on Android in February 2017, over 100 million users have downloaded the app on Google Play alone.

Such applications also enable you to try on the faces of DiCaprio, Britney Spears, and other world-renowned celebrities. Are you interested in creating such a solution of your own? The specialists of our company eagerly share some pro tips on developing a viral face photo editor, finding efficient ways to monetize it, and figuring out the cost to make an app like FaceApp.

This is an extract. Read the full article: https://requestum.com/guide-face-editing-app
LIVE STREAM VIDEO ANALYSIS WITH COMPUTER VISION: USE IN BUSINESS
Tags: videoanalysis, computervision
Published: 2021-05-28 13:14:51

Want to learn how to use AI for live stream analysis? Read this article to find out how beneficial this technology can be for your company’s productivity!

AI IN BUSINESS: LIVE STREAM VIDEO ANALYSIS
Nowadays, the number of companies introducing artificial intelligence into their business models is rapidly increasing. Furthermore, many financial and marketing experts claim that this technology can revolutionize the global market. According to their forecast, the market share of AI in 2027 will reach $267 billion.

The immense computational abilities of AI are often used for video analysis. By entirely removing the human intervention factor, it allows business owners to gather and examine their video feed data. Thus, in this article, we will define how AI streaming can influence today's business practices.

This is an extract. Read the full article for more information: https://requestum.com/live-stream-video-analysis
As a Programmer or a Person in Tech what are your Thoughts ?
Tags: saas, startup, programming, discuss
Published: 2021-05-28 13:11:45


#### How will it work ?

- I am planning of building a place/product where imagine someone wants to learn a Tech he/she will get all the best resources available on the internet in one place. For example let's take Typescript. So if someone visits the site he will be shown a bunch of tech languages, frameworks and what not and now he selects Typescript. 


- And now the site shows him/her all the resources available to learn Typescript which actually the other users can Post. And the resources are categorized according to the platforms like- Youtube, Blogs, Online Course Platforms ( Coursera, Udemy, etc ), Social Platforms (Great Twitter, Instagram accounts to follow), Discord Servers and what not. 


- And all these lists of data will be sorted according to the user reviews or likes so that a programmer or newbie gets the best resources ever on the internet.


- We can also send out weekly newsletters for the best resources for the tech to the category the users follow.


- Obviously the first set of content will be curated by me, but to encourage quality submissions there will be a invite points for users calculated based upon the metrics of their post.


- And as you can probably imagine it can be scalable to anything and awesome feature additions too.

#### A Rough Vision

- It will be the goto source for every valid resource to learn something currently present on the Internet. It will solve the age old question of How to and Where to learn which millions of developers ask when starting out their journey ?


- I love Naval Ravikant and as he says Code and Content have been and will create wealth in future. And with this my vision is to lessen the friction needed to learn to code by connecting curiosity with the awesome Creators.


- I would love to know your thoughts on this. Thanks for your time !  🧡
JavaScript Interview Question #43: Object.toString vs Array.toString
Tags: webdev, javascript, codenewbie, beginners
Published: 2021-05-28 12:49:22

![coderslang javascript interview question #43](https://learn.coderslang.com/js-test-43.png)

What's the difference between `Object.toString` and `Array.toString` in JavaScript? What’s the output?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

[A regular behavior](https://learn.coderslang.com/ru/js-test-22-tostring-nuances-in-javascript/) of the JavaScript function `Object.prototype.toString` in a browser — is a string that looks like `[object "TYPE"]`. The part "TYPE" is substituted with the type of the Object that `toString` is called on. In our case, it's `Array`.

```js
console.log(toStringObj.call(arr)); // [object Array]
```

In the second instance, we call `toString` from `Array`. It’s not the same function as it overrides the standard implementation of `Object.prototype.toString`.

`Array.prototype.toString` returns a string that consists of all the array elements separated with commas.

```js
console.log(toStringArr.call(arr)); // 1,2,3
```

---

**ANSWER**: 2 strings will appear on the screen:

```js
[object Array]
1,2,3
```

[Learn Full-Stack JavaScript](https://js.coderslang.com)
Updating Drupal 9 core with Composer
Tags: drupal, cms, php, composer
Published: 2021-05-28 12:32:47

## Introduction

This post is a sequel to my past story where I succeeded in getting "Available updates" in admin panel of Drupal.

{% post nabbisen/fix-drupal-s-failed-to-get-available-update-data-error-on-available-updates-53f %}

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

## Body

### Event

It recommended updating to [9.1.9](https://www.drupal.org/project/drupal/releases/9.1.9) because of [a security vulnerability](https://www.drupal.org/sa-core-2021-003) [9.1.8](https://www.drupal.org/project/drupal/releases/9.1.8) today.
However, there was none of auto core update.
Therefore, I tried to update it manually. It was my first Drupal core update with `update.php` via a web browser instead of [drush](https://www.drush.org/latest/) commands.

Besides, when drush is installed with Drupal, there is a way to update database with it:

{% post nabbisen/updating-drupal-with-composer-2j05 %}

### Operation

Connect to the server via SSH.
Move to Drupal directory:

```console
$ cd <drupal-dir>
```

It is able to check outdated packages beforehand:

```console
$ composer outdated
...
drupal/core                          9.1.8   9.1.9   Drupal is an open source content man...
...
```

Then, update drupal/core + its dependencies only.

```console
$ composer update drupal/core "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 6 updates, 0 removals
  - Upgrading drupal/core (9.1.8 => 9.1.9)
  ...
```

Optionally (and maybe not being recommended), it's also able to update all:

```console
$ #composer update
```

Next, if drush exists, `drush update` is available.
But, in my case, it doesn't.
Alternatively, I opened `https://<fqdn>/update.php` in my web browser, following the official documentation, [Drupal - Updating Drupal core via Composer](https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-composer).
Said, "Drupal database update"!

![update.php in web browser](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ja9h0mlboplxqzmz4q6y.png)

Happily, there was nothing to do that time.

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

## Conclusion

The status report became healthy again, saying "Up to date ✅"🙂

![status report](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/egpchvl6pb5gg4k0dl72.png)

## Reference

- [Drupal - Updating Drupal](https://www.drupal.org/docs/updating-drupal)
Linux for Devops Basic Cource
Tags: linux, devops, aws, cloud
Published: 2021-05-28 12:30:35

Hey People,
Today I want to review a course "Linux for Devops" by Valexy Technology which you can find out on UDEMY Platform.

I took this course because I want to learn Devops from scratch and Linux is the base of learning Devops!

The Course Contain:

1. Basic Linux Commands:
   * AWS and how to create an Ec2 Instance from AWS.
   * To run Linux on windows, use MobaXterm.
   * Linux File System Hierarchy.

2. Managing Files:
  * Read/Write/Access command
  * Changing Directory
  * Search and Replace a word in Linux

3. User Management:
 * Login as a User onto EC2 Instance.
 * Changing Permissions - Commands: chmod
 * Changing Ownership - Commands: chown, file.

4. System Management:
 * Gather System Information - Commands: free, cpuinfo, uname.

5. Software Management:
 * Installation Packages - Commands : yum [install, remove]
 * Updating and getting info about packages - Commands: yum 

6. Networking:
 * Collect Network info - Commands: hostname, ping, wget
 * Telnet

7. Services:
 * Services - Commands: service [status, start, stop]
 * Services - commands chkconfig, systemctl

8. Process Management:
 * Process Management - Commands: ps, fg, bg, top.

9. Other Topics:
 * Archiving files and directories - Commands: gzip, gunzip, zip, unzip.
* Crontab.
* Softlink and Hardlink.
* Copy files from Windows to Linux - Commands: scp



If you are new to Linux and want to learn Devops from Scratch then I will recommend you this course as it contains all the required commands and learning which is used in Devops!

Course: https://www.udemy.com/course/valaxy-linux/
📱Build a Flutter Wishlist App, Part 3: Finishing the App with User Authentication and a Secured API.
Tags: security, android, flutter
Published: 2021-05-28 12:11:18

#### Update the Flutter wishlist app to use Auth0 authentication so that the user has to log in and the app accesses a secured API.

### <br>
This is the third and final article in a series that guides you through the process of creating a “wishlist” mobile application using the Flutter SDK. The wishlist contains items that the user would like to someday own, storing each item’s name, description, and URL. The mobile app provides the user interface and communicates with a back-end application, which stores the list and provides an API to perform CRUD operations on it. The initial version of the app simply provides a functioning wishlist, while the final version incorporates Auth0 authentication to allow only authorized users to use the app as well as to use a secure API.

> Note: This article builds on material and code from the two previous articles in this series, [*Build a Flutter Wishlist App, Part 1: Introducing Flutter and Building a Basic Wishlist App*](https://auth0.com/blog/build-flutter-wishlist-app-with-secure-api-part-1/) and [*Build a Flutter Wishlist App, Part 2: Adding CRUD Functionality to Your App*](https://auth0.com/blog/build-flutter-wishlist-app-with-secure-api-part-2/).

## The Current State of the App

At this point, you have a fully functional wishlist app. It stores and displays the items on your wishlist. It also allows you to add items to the list, edit items in the list, and delete items from the list.

![The wishlist app displaying the items in the wishlist.](https://images.ctfassets.net/23aumh6u8s0i/12xp32ptuN6keNMqgU1sKY/ab5d73f0ffe5a8f319c722da1fc8a3d8/03_wishlist.jpg)

The problem is that the app *isn’t* secure. It doesn’t require the user to log in, and its API is openly accessible. It’s all too easy for an unauthorized party to see, alter, or erase the contents of the wishlist.

In this article, you will address these security issues in a couple of ways:

1. You’ll change the app so that it makes use of a secure API that requires authentication. It will have the exact same endpoints that the original API has, but it won’t allow unauthorized access to its functionality.
2. You’ll also change the way that it grants access to the user. Right now, anyone can use the app without logging in. You’ll update the app so that users will be required to log in in order to use the app.

> To work on this article, you’ll need to have entered the code from the first two articles in this series. 
> 
> You’ll also need an Auth0 account, since you’ll use it to add authentication to the app. If you don't have one yet, [sign up for a free Auth0 account](https://auth0.com/signup).



[Read more...](https://auth0.com/blog/build-flutter-wishlist-app-with-secure-api-part-3/?utm_source=content_synd&utm_medium=sc&utm_campaign=flutter)
Arrays in C
Tags: computerscience, arrays, clanguage
Published: 2021-05-28 12:08:55

An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using indices of an array.  They can be used to store collection of primitive data types such as int, float, double, char, etc of any particular type. To add to it, an array in C/C++ can store derived data types such as the structures, pointers etc. Given below is the picture representation of an array.

Why do we need arrays? 
We can use normal variables (v1, v2, v3, ..) when we have a small number of objects, but if we want to store a large number of instances, it becomes difficult to manage them with normal variables. The idea of an array is to represent many instances in one variable.
Array declaration in C/C++: 
int arr[6] = { 10, 20, 30, 40 }

Array declaration by specifying size:
// Array declaration by specifying size
int arr1[10];
// With recent C/C++ versions, we can also
// declare an array of user specified size
int n = 10;
int arr2[n];

Advantages of an Array in C/C++: 
1. Random access of elements using array index.
2. Use of less line of code as it creates a single array of multiple elements.
3. Easy access to all the elements.
4. Traversal through the array becomes easy using a single loop.
5. Sorting becomes easy as it can be accomplished by writing less line of code.

Disadvantages of an Array in C/C++: 
1. Allows a fixed number of elements to be entered which is decided at the time of declaration. Unlike a linked list, an array in C is not dynamic.
2. Insertion and deletion of elements can be costly since the elements are needed to be managed in accordance with the new memory allocation.
[PT-BR] Séries que todo Programador(a) ou entusiasta de tecnologia deve assistir
Tags: showdev
Published: 2021-05-28 12:02:34

### Silicon Valley

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g5109ixw3g5v9m5gc812.jpg)
_2014 • comédia • 6 temporadas_

A história acompanha Richard Hendricks, um engenheiro tentando construir sua própria empresa chamada Pied Piper. A série consegue representar bem como o Vale do Silício trabalha, mas também mostra que as pessoas com mais chances de se tornarem bem sucedidas são, frequentemente, aquelas com menos habilidade de lidar com o sucesso.

### Person of Interest

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zwcrutsvkesxqy54pump.png)
_2011  •  ação  •  5 temporadas_

John Reese, um ex-agente da CIA, é recrutado por Mr. Finch, um milionário e gênio da tecnologia que após o ataque terrorista de 11 de setembro, é chamado para desenvolver uma máquina capaz de organizar informações e prevenir possíveis ameaças à segurança nacional em Nova York.

### Scorpion

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/alp3kfu5e615sfle39ld.png)
_2014  •  ação  •  4 temporadas_

O excêntrico Walter O’Brien lidera o equipe Scorpion, um grupo de mentes brilhantes que age como uma linha de defesa contra complexas ameaças tecnológicas.

### The It Crowd

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l63qdfb1es8cq2gklec3.png)
_2006  •  comédia  •  4 temporadas_

The It Crowd mostra o dia-a-dia da Reynholm Industries, uma empresa londrina, pela ótica da equipe de suporte dos computadores.

### Halt and catch fire

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j74grkz9ikfgubqxt0zt.png)
_2014  •  drama  •  4 temporadas_

Em meio à ascensão dos computadores nos anos 80, um executivo do ramo da informática se junta a um engenheiro e uma aluna prodígio para criar um algo revolucionário.

Caso queira realizar um projeto comigo (ou até mesmo bater papo), não hesite em me enviar uma mensagem, acesse o link das minhas redes sociais abaixo: ⤵️

[Instagram](instagram.com/celycodes)
[Twitter](twitter.com/celycristhyne)
[GitHub](https://github.com/celenny)
[LinkedIn](https://www.linkedin.com/in/celenny)