teleren/devto huggingface dataset:
Top 10 Reasons Why JavaScript is So Popular in 2022 -Codexashish
Tags: javascript, programming, tutorial
Published: 2022-03-01 15:16:47

## Top 10 Reasons Why JavaScript is So Popular in 2022

## What is specifically JavaScript?
JavaScript could be a lightweight OOPs language that's employed by many websites for scripting the webpages and it's an understood, full-fledged programming language. JS allows dynamic interactivity on websites once it's applied to an HTML document.

JavaScript Used for:-
Web Applications
Web Servers
Server Applications
Web Development
Mobile Applications
Game
Presentations
Why JavaScript is So Popular in 2022

## No.1: Easy to Learn
JavaScript is relatively simple to find out than alternative programming languages. It’s beginner-friendly and anyone will begin learning it with no previous expertise in cryptography. typically beginners in cryptography struggle with some setting setup or start within the code editor to run the program. however, JavaScript works within the browser and you don’t get to do any reasonably specific setup to run your program.



## No.2: Huge Libraries and Frameworks
The popularity of JavaScript diode to the creation of many libraries and frameworks that have created application development economical and performant. Today, libraries like React JS, jQuery, D3.js, etc.. square measure utilized in most applications across the planet. Frameworks like Angular, Ember JS, and Vue JS give the best performance and organization to make giant applications.



## No.3: Big Community Support
JavaScript’s community has lots of people around the world and therefore the community offers ready-to-use solutions for a unique level of quality in JavaScript programming. On StackOverflow, the JavaScript developers community is one of the largest communities and none of the opposite languages supply this sort of giant support. It doesn’t matter you're building an easy website or some complicated server-side stuff, you're only one click off from Google to search out the answer for any price in programming. you'll be able to simply get the answer or support in JavaScript programming on Google immediately.

## No.4: Easy to Setup
Unlike several alternative languages, wherever you would like to go transfer the language in your machine so as to access all of its options and build a development setting, with JavaScript anyone with an 

### [Read Continue-->](https://www.codexashish.com/2022/01/top-10-reasons-why-javascript-is-so.html)
Nevertheless, Aneeqa Coded in 2022
Tags: wecoded, womenintech
Published: 2022-03-01 15:13:30

## My biggest technical goals are 
- Learn Typescript and NodeJS 
- Create my portfolio
- Write tech blogs every week
- Complete personal coding projects
- Contribute to open source
- Increase my personal network

## My biggest technical achievements are
- Got the "Top Authors Award" on this blog
{% link https://dev.to/aneeqakhan/animating-my-illustration-using-animate-css-1cm8 %}
- I got 97,000+ views and 1100+ followers on dev.to
- Earned Senior Software Engineer role in my office and got a junior to mentor
- Started taking technical interviews at my current office
- Developed and released my office project and our app increased their sales greatly
- Started implementing unit tests
and many more Alhumdulilah ✨

## I pledge to break the bias in tech by connecting with others and learning about other's differences 

> 
to acknowledge differences exists

## Throughout my career (as a software developer), I have greatly overcome the Self Doubt
In starting years of my professional life, I had self-doubt. I thought I am not capable of development and I cant move forward with this profession. But my friends and colleagues helped me realize I can achieve this with practice, learning and sharing. 
After spending 5 years as a Software Engineer, I am grateful and happy that I choose this profession. Development is my passion now. 

## I pledge to support women, non-binary folks, and other minorities in tech by 
- Companies should hire females for Leadership roles
- Create equal opportunities
- Ensure a gender-equal salary/award system

Thanks for reading about my journey! Happy Women's Day! 👩🏻‍💼🧕🏻
Want to end my blog with this quote from _Michelle Obama_

> There is no limit to what we, as women, can accomplish!
Laravel 9 Roadmap 2022 | Laravel 9 Developer Roadmap 2022 - Codexashish
Tags: laravel, php, programming, tutorial
Published: 2022-03-01 15:11:50

This article will be discussing what we can expect from Laravel 9 in 2022 and how it will change the developer landscape in the coming years. This is a complete guide to Laravel, a framework for PHP developers. This guide will take you through all the basics of Laravel in order to help you create your own projects.

## Laravel 9 Complete Roadmap
The guide also includes useful tutorials and links to third-party resources that you can use according to what you need. PHP programming is an open-source, server-side scripting programming language designed for web development. Laravel is a framework that is written in PHP, and as such, it allows for rapid application development. Laravel has been downloaded 5 million times and has more than 3 million users. It is one of the best and most popular PHP frameworks today.

## Q:- What is Laravel 9 Framework?
Ans. Laravel 9 is an open-source, free PHP web application framework. It is built with a focus on the end-user experience and offers many features out of the box. Laravel 9 is the latest version of this popular framework. Laravel is the perfect tool for creating a robust and sophisticated website.  It's easy to use and offers rich functionality.

## Q:- What is the latest version of Laravel?
Ans. The latest version of the Laravel framework is 9.1.0

## Q:- What are available databases supported by Laravel?
Ans. Currently Laravel Support 4 Databases:-

MySQL
SQL Server
PostgreSQL
SQLite
Q:- How to install Laravel 9?
via composer
laravel alias
Install Laravel 9 Via Composer:-

composer create-project laravel/laravel:^9.0 ProjectName

Install Laravel 9 Via laravel alias:- 

laravel new ProjectName

## Q:- List some new features of laravel 9?
Enum Class
PHP 8 Support
PHP 8 String Functions
New Accessors And Mutatiors 
Eloquent ORM
Artisan CLI
Automatic Pagination
Anonymous Stub Migration
New Query Builder Interface
Q:- What are the default packages provided by Laravel 9 Framework?
Laravel/breeze package 
Laravel/ui
JetSteam
Cashier
Dusk
Fortify
Horizon
Octane
Passport
Sail
Sanctum
Scout
Socialite
Telescope
Horizon
Valet

## Step.1:- Basic Knowledge
PHP
VueJs
Tailwind
AWS
HTML
CSS
Bootstrap
Database
JQuerry
JavaScript


## Step.2:- Basic of PHP Programming
Why PHP for back-end development?

### [Read Continue-->](https://www.codexashish.com/2022/02/laravel-developer-roadmap.html)
Python for everyone :Mastering Python The Right Way
Tags: webdev, python, career, programming
Published: 2022-03-01 15:01:49

#Is Data the next great resource? 
The world is currently evolving and technology is shaping world events and being part of our basic life. This has led to a development of many languages to meet a broader audience and specific needs of various fields. Python is a widely-used, interpreted, object-oriented, and high-level programming language with dynamic semantics, used for general-purpose programming. It was created by Guido van Rossum, and first released on February 20, 1991. 

 ;https://www.python.org/about/apps 
https://wiki.python.org/moin/PythonProjects 


##Why Python? 
Python is high level programming language which is widely used for General Purpose Programming.
-Basically speaking I'm still learning Python and definitely I've found it much easier to learn and basic Python concepts are easy to recall. 
-It's also usable for a broad audience as it's easy to understand and read the codes. 
-Python has in built functions which are easily accessible. Here are some of the functions;
(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l15t9o4l8r4tk11ot4hw.jpg)
(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ite9wdc21yu4litfcu1d.jpg)
 
  

###
Mastering Python
Python 3 is the latest version of Python which is not installed on most platforms.For Windows and Mac users  you have to download the python application and an editor of your choice. 
There are many sources to learn Python, there are websites which offer courses on Python;
https://realpython.com/products/real-python-course/ 
https://www.udemy.com/topic/python/ 
Python tutorials can also be accessed through YouTube. 
To master Python the right way, it's  necessary to practice by writing scripts and doing python  projects often ;https://projecteuler.net/  -project Euler problems provide an insight.  
https://www.geeksforgeeks.org/ 
-To distribute your Python code-in 

1. Python library 
2. Python web application 

There are also python books which may be of help
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3g00vvs0hjfsmfqhknv5.png)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39mgznntxfot4o7zqrhi.png)
-Python has a wide field, after  learning basic concepts one can specialize to the various fields;

1. Python for Data science - for data visualization and analytics.
2. Python for web development - web development using Python frameworks.  https://hackr.io/blog/python-frameworks#types-of-python-frameworks  
3. Python for machine learning. 

####Useful links 
http://scikit-learn.org/ - Machine learning with Python
https://www.tensorflow.org/ - Deep learning with Python https://www.djangoproject.com/ - 
https://www.python.org/dev/peps/pep-0008
串接比較運算
Tags: python
Published: 2022-03-01 14:56:47

Python 有許多便利的語法, 不過如果沒有了解其中的細節, 就可能會出現意外的結果, 像是串接[比較運算](https://docs.python.org/3/reference/expressions.html#comparisons)就是一個例子。

## 兩個比較一次寫完

如果你想比較 `a` 是否介於 1~6 之間, 一般的寫法會是這樣：

```python
>>> a = 3
>>> a >=1 and a <=6
True
>>>
```

在 Python 中可以把 2 個比較運算串接在一起, 寫成這樣：

```python
>>> 1 <= a <= 6
True
>>>
```

它實際上就是：

```python
>>> 1 <= a and a <= 6
True
>>>
```

## 串接的比較運算只會計算運算元一次

雖然剛剛說串接的比較運算就等於拆開的兩個比較運算分別運算後再進行 `and` 運算, 但實際上**兩個比較運算器 (operator) 共用的運算元只會計算一次**, 請看以下範例：

```python
>>> a = [1, 2, 3]
>>> 1 <= a.pop() <= 6
True
>>> a
[1, 2]
```

由於中間的 `a.pop()` 只會執行一次, 並用其運算結果進行比較運算, 所以等同於：

```python
>>> 1 <= 3 <= 6
```

而比較運算結束後也可以看到 `a` 串列只彈出了 3 這個項目, 這跟以下的寫法是不一樣的：

```python
>>> a
[1, 2]
>>> 1 <= a.pop() and a.pop() <= 6
True
>>> a
[]
>>>
```

這種寫法在 `and` 左右兩側都執行了 `a.pop()`, 所以彈出了 2 個項目, 因此運算結束後, `a` 已經空掉了。

## 串接的比較運算彼此並不相關

不過在串接比較運算的時候, 千萬不要誤會, 串接的比較運算個別是獨立的, 彼此並不相關, 例如：

```python
>>> a = 10
>>> 5 < a > 8
True
>>>
```

實際上就是：

```python
>>> 5 < a and a > 8
True
>>>
```

跟 5 與 8 之間的比較完全無關, 就是兩個獨立分開的比較運算。即使是不同類型的比較, 也可以串接在一起, 例如：

```python
>>> a = 10
>>> b = [1, 2, 10]
>>> 2 < a in b
True
>>>
```

實際上就是：

```python
>>> 2 < a and a in b
True
>>>
```

## 你可以無限串接比較運算

依據上述原則, 其實你還可以無限串接, 像是這樣：

```python
>>> 1 < 10 > 8 < 8.2 > 3
True
>>>
```

只要記得 2 個比較運算器共用的運算元只會計算一次, 個別的比較運算器會取兩側的運算元進行運算, 並將結果 `and` 後就是串接比較運算的結果。

由於是 `and` 運算, 所以也遵循[布林運算的規則](https://docs.python.org/3/reference/expressions.html#boolean-operations), 只要目前的比較運算得到 `False`, 就不會進行後續的比較運算, 例如：

```python
>>> a = [1, 2, 3]
>>> 1 > 10 > a.pop()
False
>>> a
[1, 2, 3]
>>>
```

由於 `1 > 10` 已經是 `False`, 沒有必要進行 `10 > a.pop()` 的比較, 所以不會執行 `a.pop()`, 因此運算結束後 `a` 串列的內容不變。

要特別留意的是如果同樣的運算元出現多次, 就有可能計算該運算元多次, 例如：

```python
>>> a = [1, 2, 3]
>>> 1 < a.pop() > 2 > a.pop()
False
>>> a
[1]
>>>
```

由於 `1 < a.pop() > 2` 為 `True`, 所以會進行 `2 > a.pop()` 的比較運算, `a.pop()` 又執行了一次, 實際上就彈出了 2 個項目, 因此 `a` 串列內僅剩下 1 個項目。

## 小結

本文介紹的雖然是個小主題, 不過如果能夠善用, 就可以更簡潔清楚地表達複雜的比較運算, 值得花點時間學下來喔！
How to write a README?
Tags: documentation, productivity
Published: 2022-03-01 14:50:11

A README.md file, the beginning of every project.

It's always a challenge to create a good README, when you are working on an open source project, or with a team. We always have a lot of questions in mind about what can we do, add, remove...

> *Should I add this information?*

> *Is it too much?*

> *Should I add a schema ?*

So, to help you to have a good start on what you can do, should do and how to do it, here is **[Make a README project](https://www.makeareadme.com/)**.

![Make a README Project screenshot - Template part](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqtbj666w41lr6xcadfv.png) 

---

As we talk about for **How to write a changelog?**, this documentation will give you all the guide lines to create an efficient README.

{% embed https://dev.to/adaendra/what-is-a-changelog-and-how-to-write-one-47on %}

But, if you have to share more informations, don't hesitate to create a more complete documentation in your project and expose it through link or by creating a documentation with [MkDocs](https://www.mkdocs.org/), [Read the Docs](https://readthedocs.org/) ...

---

Also to help you to create your README, there is a ton a really cool tools to use, such as 

- **[ReadMe.so](https://readme.so)** : To create your README with an online editor
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/338c0ms2h1f97xmmhuhd.png)
- **[Git badges](https://github.com/puf17640/git-badges#readme)** : To display some important informations as badges
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/soh0cg3tdrs36hghwnmj.png)
- **[Github Stats](https://github.com/anuraghazra/github-readme-stats#readme)** : To display some informations about your github stats
![Img](https://camo.githubusercontent.com/8fd2570f103d1aae8a4d8970535274ae19c2ee62587d8868d618be37001263d0/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f616e7572616768617a72612f696d6167652f75706c6f61642f76313539353137343533362f6772732d7468656d65735f6c34796e6a612e706e67)   

... and so on!

You can check online, there is a bunch of tools and some git projects are listing them :
- https://github.com/dhyeythumar/awesome-readme-tools
- https://github.com/matiassingers/awesome-readme

---

Now you have all the tools to create an efficient README! 🚀

If you need more inspiration, don't hesitate to check README files from other projects or check some posts. There is a lot of posts online which are talking about cool README designs.

I hope it will help you! 🍺

---

<center><h3>You want to support me?</h3></center>
<a href="https://www.buymeacoffee.com/mxguilbert7" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
Managing laravel translations in database
Tags: laravel
Published: 2022-03-01 14:16:24

Translations in a Laravel project may be quite cumbersome to deal with. Laravel comes with very capable localization features, but they are based around the filesystem. 

When building a tool for others to use, you may find yourself with the problem that the people who are in charge of the translation, are not the programmers. They would like a nice interface for translating, but that is quite hard to provide with laravel since the files are in version control. The files may not even contain the keys to be translated.

I created a package to help deal with this: [laravel-database-translations](https://packagist.org/packages/mortendhansen/laravel-database-translations)

Key problems to solve:

- Developers does not want to keep language files updated
- Developers may not know what languages should be supported down the road.
- Handing over files to translators (agencies or stakeholders) is not easy, and reading them back is not easy either.

Package features:

- Translation keys are in the database and can be managed there
- if the value in the database is null or missing, it falls back to Laravel
- Keys are written to database as they are requested in the UI. This means that missing translations are added without work from the developers side
- Files may hold defaults/fallback values. For example laravel ships with translations for validation, there is no need to translate those keys. Just leave them alone in the database
- if a new locale is added, database will update itself with the missing translations for the new locale. 

The package readme describes the installation. Translations from database are cached and the specific group is re-cached whenever you create or update through the model.
Why and how to check if an Ansible module supports check_mode?
Tags: automation, ansible, ansiblemodules, ansibleplaybooks
Published: 2022-03-01 14:14:13

Ansible **check_mode** is an extremely useful feature when creating or editing an Ansible playbook, especially when running complex playbooks that involve major changes to servers. **check_mode** lets you see what the playbook will do without actually changing anything on the remote servers. This dry run helps you find potential errors that would seriously damage the servers or completely shut them down. Better safe than sorry, right? 

But not all Ansible modules support 𝐜𝐡𝐞𝐜𝐤_𝐦𝐨𝐝𝐞 and for some this is not clearly specified in their documentation! Modules that don't support it do not report what changes they might have made, making the dry run unreliable. 

So how can you check whether modules from your playbook support **check_mode** or not? Simple. Ansible Playbook Quality Scanner checks the modules for you and solves the question immediately. [Try it out.](https://scanner.steampunk.si/)
Hacking Friend's Phone using College Wi-fi
Published: 2022-03-01 14:12:05

This trick will enable you to project your friend's device(android 9+) live time and in some android devices you can even control it remotely if you share same wi-fi.
**Requirements**
- A computer/laptop
- A usb cable 
- Internet 
- Your friend's phone for 20-30 seconds unlocked.(just like in the movies)

**Steps**

**1.** Get Your friend's phone enable developers Options in his phone. These are hidden settings that are usually enabled by tapping build number in About-phone settings.
**2.** Enable Usb Debugging and Usb Debugging-Security-settings(for controlling) in his phone. As shown in the picture. It is suggested to not change any other setting in the developers options. ![developers options](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m5ej5n92c3l07wil16s3.jpg)
**3.** Now there is a very nice project on github named [SCRCPY](https://github.com/Genymobile/scrcpy). This blog is just a noob use of that project for fun.You can download it from this [link](https://github.com/Genymobile/scrcpy#summary).
**4.**(Only for windows users)After download extract the zip and open the folder in CMD in which the executable are that is scrcpy.exe.
**5.** Plug you friend's phone and the phone will prompt about the rsa signature of your computer. Accept it.
![Rsa sample image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lam2gtt0x0wyu59jpoq6.jpg)
 
**6.**Now In the 
cmd (withing the same folder with scrcpy.exe) type  
``` 
./scrcpy 
```
for Linux Shell just type 
```
scrcpy
 ```
This should start projecting your friend's phone screen on your computer. Now connect both the devices with your hostel network(this is required for wireless connection) 
![cmd sample image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjwoepaht5h4h5yr1kfu.png)
![mobile sample image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fpfiz8ot78vjd0kasoe1.png)
 
**7.** now in the same terminal press ctrl+c and enter 
windows (withing the same folder with scrcpy.exe)
```
./scrcpy --tcpip
``` 
linux
```
scrcpy --tcpip
```for linux this should restart the projection but this time you can unplug your friend's phone from your computer.
**8.** Now you can connect to your friend's phone anytime from your terminal by just entering 
windows (withing the same folder with scrcpy.exe)
```
./scrcpy
``` 
linux
```
scrcpy
```
And can control it using your mouse and keyboard if you had enabled Usb Debugging-Security-settings in his phone.For additional controls like power-button and volume up/down follow their documentation.
If you find scrcpy helpful for you then star it on GitHub as well.
Java in VS Code - Learn directly from the core engineers
Tags: beginners, tutorial, opensource, java
Published: 2022-03-01 14:11:02

Hi! Welcome to this ongoing interview series with the core engineering team of Java in VS Code! Please let us know in the comments, for which extension or feature you want to have the next interviews! Also, what features do you miss for your java coding experience within VS Code?

[Get started with VS code Java Extension Pack](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack)

## Basics of Java editing and refactoring in VS Code

{% youtube eLiiDIlom5E %}

In this session, we explore VS code Java editing and refactoring, and you get to meet one of its engineers - Jinbo Wang!

[Java refactoring and Source Actions docs](https://code.visualstudio.com/docs/java/java-refactoring)


## Debug your Java Code

{% youtube bccB3IhQhSg %}

VS Code's Java debugger extension helps accelerate your edit, compile, and debug loop. This session introduces you to the extension, its incredible features, and you get to meet one of its engineers - Jinbo Wang!

[Java debug extension](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug)

## Test Runner Extension

{% youtube AulgIP9P8Cw %}

The VS Code Java extensions are among the first to adopt the new Testing API from Visual Studio Code to provide a better testing experience. With the release of VS Code 1.59 as well as our Java Test Runner extension (included in the Java Extension pack), we have made significant improvements to Java testing experience in terms of features, capabilities, and ease of use. This session introduces you to the extension and you get to meet one of its engineers - Sheng Chen!

[Test Runner for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test)

## Gradle Extension

Meet Shi Chen, Software Engineer, working full time on Java and Gradle in VS Code. Learn all the tips and tricks of the Gradle extension for VS Code!

> The [Gradle extension](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle) is not part of the Java Extension package. Remember to add it separately 😊

[Gradle Extension for Java Developers](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle)

{% youtube dfiaqZX-504 %}

## More Resources

1. [Official documentation for Java in VS Code](https://code.visualstudio.com/docs/java/java-tutorial)

2. [Java Pack on VS Code - GitHub project](https://github.com/microsoft/vscode-java-pack)

3. [Video for Spring development within GitHub Codespaces](https://www.youtube.com/watch?v=uNnsP6nS49M)