teleren/devto huggingface dataset:
console.log("Week 1 of Coding with COVID");
Tags: webdev, javascript, beginners
Published: 2023-03-06 03:26:19

Hey, I'm Isaac, and I'm excited to share my journey into coding with you! I recently started my coding journey at Flat Iron School, and I can honestly say that it has been an adventure so far. But, my first week was unlike any other, as I was diagnosed with COVID-19 just days into my coursework.

Learning a new skill can be challenging on its own, but doing it while being sick was a whole different story. I found myself struggling to focus and retain information, and my symptoms made it difficult to stay motivated. The exhaustion, headaches, and body aches made it hard to sit at the computer for extended periods, and the constant coughing made it difficult to concentrate. But, despite the challenges, I persevered.

One of the things that made it easier was the flexibility of the program. I appreciated that I could learn at my own pace and on my own schedule, which allowed me to take breaks when needed and catch up when I felt better. The supportive community of students and instructors also helped me stay motivated and on track, even when I was feeling down.

During my first week, I learned a lot about coding basics, including how to use the command line, git hub and some basic javascript concepts like how to create strings in JavaScript. These skills were incredibly cool and I found myself getting lost in the process of coding, which made the struggle of being sick a little more bearable.

In addition, as someone who works at Amazon, I'm grateful for the career choice I made. It has allowed me the opportunity to pursue my passion for coding, and I'm excited to see where this new skillset takes me.

I was impressed by the practicality of the skills I was learning. I realized that coding can be applied to many different fields, from business to healthcare to education. It was exciting to think about the possibilities and the potential impact that coding can have in the world.

While COVID-19 presented a unique challenge during my first week at Flat Iron School, it also taught me the importance of perseverance, flexibility, and community. It reminded me that learning a new skill is not always easy, but with determination and support, anything is possible.

And you know what else? I joked about writing a program in JavaScript that fixes COVID. Although it was just a joke, it reminded me of the power of coding and the impact it can have on the world. Who knows, maybe one day I'll be able to use my coding skills to make a real difference.

Despite the challenges that COVID-19 brought during my first week at Flat Iron School, I was able to learn some cool coding skills and continue pursuing my passion. As a coder, I've learned that perseverance is key - if at first you don't succeed, just keep debugging!

So, as I continue on my coding journey, I'm excited to see what new skills and knowledge I'll gain, and how I can use them to make a positive impact on the world. Thanks for reading, and happy coding!
O Bedardeya Lyrics - Tu Jhooti Main Makkar | Arijit Singh
Tags: webdev, bollywood, music, beginners
Published: 2023-03-06 03:19:41

**["O Bedardeya"](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)** is a new Hindi song from the movie "**[Tu Jhoothi Main Makkaar](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**" sung by **[Arijit Singh](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)** and composed by **[Pritam](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)** Da. The soulful lyrics of the song are written by **[Amitabh Bhattacharya](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**. The music video features Bollywood stars **[Ranbir Kapoor and Shraddha Kapoor](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**. Experience the heartfelt emotions of love and heartbreak through this melodious track, out now under the T Series label.

![O Bedardeya Lyrics- Arijit Singh | Ranbir Kappor](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/auxx9gfaxbm352kmfe6p.jpg)

## **[O Bedardeya Song Info:](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**

- Song [O Bedardeya](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)
- Singer [Arijit Singh](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)
- Lyrics [Amitabh Bhattacharya](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)
- Music [Pritam](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1) 
- Movie [Tu Jhoothi Main Makkaar](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)
- Cast [Ranbir Kappor, Shraddha Kapoor](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)
- Label T Series

## **[O Bedardeya Lyrics In English:](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**

Pyaar Jhootha Tha, Jataya Hi Kyu
Pyaar Jhootha Tha, Jataya Hi Kyu
Aise Jaana Tha, To Aaya Hi Kyu
Aise Jaana Tha, To Aaya Hi Kyu

Aise Tum Garat Zara
Aur Sitam Kardeya
Aaja Bewajah Sa Ye Rishta Khatam
Karde

Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao

Dard E Dil Ke Bina Mahefil Hi Kya
Dard E Dil Ke Bina Mahefil Hi Kya
Jo Na Toota Kabhi Wo Dil Hi Kya
Jo Na Toota Kabhi Wo Dil Hi Kya

Hai Mera Haal Bura, Aur Bura Karde Aa
Mere Jakhmo Ko Jara Aur Hara Karde Aa

Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao Bedardeya Aa
Yaar Bedardeya Aao.....

**[Read the full Article](https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1)**: https://www.mismatchlyrics.com/2023/03/o-bedardeya-lyrics-arijit-singh-ranbir-kapoor.html?m=1
Full Stack Web Development
Published: 2023-03-06 02:51:46

Full stack web development is development of backend and frontend of a website's that is called full stack.
Full stack is usaully called web development also for the calling of backend and frontend together the Full Stack name is given.
HTML , CSS and Javascript are the base of any website and it comes in the Frontend development.
By using HTML, CSS and Javascript you can make website's base and run smoothly.
Backend consists of things that we don't see one the browser it complied in the machine and displayed to us. The process of compling codes in background is done by backend development. 
Backend development is more complex than the Frontend development.
Understanding ChatGPT Prompts
Published: 2023-03-06 02:49:40

Like millions of others, I have had the opportunity to interact with ChatGPT. My previous encounters with chatbots have been underwhelming, and I typically avoid them, preferring to resolve my banking issues independently. However, ChatGPT's arrival in the chatbot realm has completely altered my expectations. My advice to anyone seeking to use ChatGPT is to view it as a tool and maintain reasonable expectations. Don't settle for the initial response; instead, question and refine your prompts. It would be beneficial to learn about prompt engineering, which will become increasingly valuable as chatbots become more advanced.


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

To excel at ChatGPT prompts, you need to acquire effective communication skills with this potent large language model, which is trained by OpenAI. When you comprehend the art of creating prompts, you can extract maximum benefits from ChatGPT, such as creating superior content, addressing intricate queries, or engaging in thought-provoking discussions.

Here are some pointers to help you master [ChatGPT prompts](https://datafit.ai/):

**Be specific**: When crafting your prompt, be as specific as possible about the information or response you’re looking for. Vague prompts can lead to irrelevant or inaccurate responses.

**Use natural language**: ChatGPT is designed to understand natural language, so it’s important to phrase your prompts in a way that feels conversational and easy to understand.

**Give context**: Providing context can help ChatGPT understand the purpose of your prompt and provide more accurate responses. For example, if you’re asking a question about a specific topic, provide some background information about that topic.

**Use formatting**: Formatting can help make your prompt easier to read and understand. Use bullet points or numbered lists to break up long prompts and make them more digestible.

**Ask follow-up questions**: ChatGPT can generate responses to your prompts, but it can also engage in ongoing conversations. Don’t be afraid to ask follow-up questions to clarify or expand on the responses you receive.

To understand better, let me reveal a website that provides prompts for ChatGPT. Currently, it has data on many current hot topics for you to refer to, such as [marketing prompts](https://datafit.ai/cat/marketing), IT prompts, social media, and more.
The easiest way to have consistent looking code
Tags: vscode, beginners, productivity
Published: 2023-03-06 02:13:41

One of the hardest things for me as a programmer with terrible ADHD is making sure that my code always looks clean and consistent. I _hate_ finishing a project and then having to go back and make all of the code look pretty, it's like torture to me. But now, I can leave all of that pain in the past. Introducing the newest extension to my VSCode roster... [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode).

Allow me to explain what this amazing extension does. Let's say you have some code that just looks... messy. No shame in it, we all write ugly code from time to time. 
![ugly code example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rpfeagt97vydh9v0wccr.png)
See? That's pretty disgusting looking if you ask me. Now you could go back and format that all by hand, wasting precious time, or you could just relax and let Prettier do it for you. By just pulling up your command palette and looking for the "Format Document" option, you can pick Prettier as your formatter and make this document look... prettier. 
![pretty code example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fpcjv3h1m2b2y682dxm.png)

Prettier is highly customizable and has add-ons out there for a multitude of programming languages, including PHP, Ruby, JavaScript, HTML, CSS, Tailwind, etc. You can also have Prettier format your code every time you save if that's something you're interested in. If you're interested in other great VSCode extensions, you should absolutely check out [my other blog post](https://dev.to/chasehuber/some-helpful-extensions-for-beginners-in-vs-code-54c6) that talks about some of my favorites. Hopefully this extension saves you millions of hours of frustration, as it has done for me.
Vercel: The Cloud Platform for Modern Web Development
Published: 2023-03-06 01:58:01

If you're interested in a cloud platform that's designed for modern web development, then Vercel is a great choice! Vercel is a cloud platform that allows developers to build and deploy their applications with ease.

## What is Vercel?
Vercel is a cloud platform that provides many amazing features. It provides a powerful set of tools to help developers build and deploy their applications, including a serverless function platform, a global CDN, automatic SSL, and more.

## Why Choose Vercel?
One of the biggest advantages of Vercel is its ease of use. Developers can easily set up and deploy their applications with just a few clicks, thanks to its intuitive user interface. Vercel also offers a wide range of features that make it an ideal choice for modern web development, such as:

- _**Severless Functions:**_ Vercel's serverless function platform allows developers to run their code without the need for a server. This means that developers can focus on building their applications without worrying about managing servers or infrastructure.

- _**Global CDN:**_ Vercel's global CDN ensures that applications are delivered quickly and reliably, no matter where the user is located. This is especially important for applications with a global user base.

- _**Automatic SSL:**_ Vercel automatically provides SSL certificates for all applications, ensuring that they are secure and protected against potential security threats.

- _**Integrations:**_ Vercel integrates with a wide range of tools and services, including GitHub, GitLab, and Bitbucket, making it easy to integrate Vercel into your existing development workflow.

## Conclusion
Through and through Vercel is an excellent cloud platform for modern web development. Its ease of use, powerful features, and integrations make it an ideal choice for developers who want to focus on building applications without having to worry about managing infrastructure. If you're looking for a cloud platform that's designed for modern web development, then Vercel is definitely worth a look!
Local Development Environments for Go using asdf.
Tags: go, setup, tutorial
Published: 2023-03-06 01:40:49

Over the years I have dealt with different ways to setup a project for Python & Go. I am sharing how I setup my personal and work projects for extensibility and modularity.

There are a lot of ways to setup Python dev environments and Go but this is what works best for me and how I get higher adoption at work for my projects. (This can be extended for any language btw Node or Rust even). 

I will write up how I setup Go projects in this post & then follow up with a Python version which adopts a lot the same concepts. 

### Assumptions:

1. You have homebrew [homebrew](https://brew.sh/) install
2. You are using MacOS or Linux.

### Step 1: Pre-reqs:

1. asdf: Installing [asdf](https://asdf-vm.com/guide/getting-started.html) this is how you can manage different versions of languages and use them across projects 
~~2. Installing [Poetry](https://python-poetry.org/) (for Python only) is a way to manage dependencies & virtual environments in Python. This was shown to me by Data Scientist at work and I would never go back using any other method. ~~ this will be relevant for the Python blog post

## Step 1: Setup for both install asdf & add to your shell (I use zsh, so adjust if you use bash or something else).
- `brew install asdf`
- `echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ~/.zsh_profile`

## Step 2: Go Setup
In asdf the order of operations is adding a 1. language plugin, 2. adding a version(s) and 3.then setting the language locally or globally for your projects

### Setup Langauge Plugin
- Setting up asdf for go run `asdf plugin add golang`
- adding different go versions if you want the latest run `asdf install golang latest`
- OR install a specific version running `asdf install golang 1.19` 

### Setup Local & Global Version
In this case I have a hello-go directory that i want to use Go 1.19 in order to do that you would run
- `asdf local golang 1.19`
![Setting Local install](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ohmgc2u1huz77ijvepkv.png)

### Init a baseline project.
Get the current directory and init a go project
- run `pwd` which will output the directory `/Users/ramzi/documents/projects/hello-go` in my case. 
- run `go mod init documents/projects/hello-go`

![Init the project](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bw6y84k3my5roskrnblg.png)

- Create `hello.go` file by running `touch hello.go` and add in the following code: 
![Hello.go code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijczr7q8wsp2q9vixv4c.png)

- Run `go run hello.go` and you should get your  output printed! 
![Printed Results](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gsrqgzvtb1cakau3njgw.png)




## Closing Thoughts
The purpose of this is when you need to have multiple version of a language across different projects and you want to keep this binaries separate. With asdf you can set a global version (which I do not recommend) but to do so you will run `asdf global golang 1.19` for example. 

This is especially important as a Python developer which I will share in an upcoming blog post.
Code Smell 199 - Gratuitous Booleans
Tags: webdev, beginners, programming, tutorial
Published: 2023-03-06 00:29:19

*A code that either returns or no returns at all*

> TL;DR: Check carefully your boolean expressions

# Problems

- Readability

- Possible Defects

# Solutions

1. Refactor and remove obsolete code

# Context

When a function is designed to return an invariant value, it may be poor design, but it shouldn’t adversely affect the outcome of your program. However, when it happens on all paths through the logic, it is likely a mistake.

This rule raises an issue when a function contains several return statements that all return the same value.

# Sample Code

## Wrong

[Gist Url]: # (https://gist.github.com/mcsee/dc73985cd7ff45aa7496f41f96e81fe3)
```python
# Gratuitous boolean expressions

if a > 0 and True:
    print("a is positive")
else:
    print("a is not positive")

```

## Right

[Gist Url]: # (https://gist.github.com/mcsee/c8d0be601736520faa86a8d7e781be2f)
```python
if a > 0:
    print("a is positive")
else:
    print("a is not positive")
```

# Detection

[X] Automatic 

Many [linters](https://rules.sonarsource.com/javascript/type/Code%20Smell/RSPEC-2589) can detect this problem by parsing execution trees.

# Tags

- Complexity

# Conclusion

Boolean expressions should be straightforward to read and understand.

# Relations

{% post https://dev.to/mcsee/code-smell-115-return-true-3gn4 %}

{% post https://dev.to/mcsee/code-smell-118-return-false-569p %}

{% post https://dev.to/mcsee/code-smell-101-comparison-against-booleans-3aic %}

# More Info

{% post https://dev.to/mcsee/how-to-get-rid-of-annoying-ifs-forever-1jfg %}

[SonarSource](https://rules.sonarsource.com/javascript/type/Code%20Smell/RSPEC-2589)

# Disclaimer

Code Smells are just my [opinion](https://dev.to/mcsee/i-wrote-more-than-90-articles-on-2021-here-is-what-i-learned-1n3a).

# Credits

Photo by [Jungwoo Hong](https://unsplash.com/@hjwinunsplsh) on [Unsplash](https://unsplash.com/images/things/arrow)
    
* * *

> The central enemy of reliability is complexity.

_Daniel Geer_

{% post https://dev.to/mcsee/software-engineering-great-quotes-26ci %}

* * *

This article is part of the CodeSmell Series.

{% post https://dev.to/mcsee/how-to-find-the-stinky-parts-of-your-code-1dbc %}
CentOS 7 裝 PHP FPM
Published: 2023-03-06 00:26:00

因為我們是用 CentOS Software Collection 的 PHP 7，所以 PHP FPM 也要用 SCL 提供的。

主要是參考 〈[CentOS 7 安裝 Nginx、MySQL / MariaDB、PHP7，架設 LEMP 網頁伺服器筆記](https://blog.gtwang.org/linux/linode-centos-7-nginx-mysql-mariadb-php-7-installation-notes/)〉。

先把 PHP FPM 裝起來：

```sh
> sudo yum install rh-php72-php-fpm
```

修改 /etc/opt/rh/rh-php72/php-fpm.d/www.conf，把 user、group 設定為 nginx：

```conf
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
; RPM: apache user chosen to provide access to the same directories as httpd
;user = apache
user = nginx
; RPM: Keep a group allowed to write in log dir.
;group = apache
group = nginx
```

把 PHP FPM 跑起來：

```sh
> sudo systemctl start rh-php72-php-fpm
```

再把 PHP FPM 設為開機啟動服務：

```sh
> sudo systemctl enable rh-php72-php-fpm
```

下一篇來研究 nginx * PHP FPM 的作法。
asdf Blogs
Published: 2023-03-06 00:16:41

**The asdf main page:** https://asdf-vm.com/ . Allows us to manage multiple runtime versions with a single CLI tool

**asdf: A version manager to rule them all:** https://dev.to/codegram/asdf-a-version-manager-to-rule-them-all-5bbh 

With asdf you install language version managers, and it offers a common syntax to install language versions.

**asdf: The final version manager:** https://dev.to/video/asdf-the-final-version-manager-19am
[Notion Mac App] Open by new Window.
Tags: notion, mac, application
Published: 2023-03-06 00:12:36

Right click of the upper tab,
Press the `Move Tab to New Window`.

![Screenshot 2023-03-03 at 16.16.24.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1900756/544789d8-c1c6-0f54-2bc5-44bb0633fe2b.png)


Or just
`command + shift + N`

🦄
AI powered code debugging extensions
Tags: openai, vscode, ai, python
Published: 2023-03-06 00:04:10

GitHub Copilot is nice for autocompletion, but 80% of the coding is debugging. @musabshakil shares a quick demo in his DEV post, which I encourage you to watch. 

{% link https://dev.to/musabshakil/get-instant-error-solutions-with-gpt-42cc %}

_header image was generated using [midjourney](https://www.midjourney.com/app/jobs/53c570b9-3cc2-48c5-9fe0-8d855cfbeb34/)_

## What is MusabShakeel576/quickfix.ai?
The TLDR; is you can copy the error message and get a suggested solution from the AI. Quickfix AI is also in its alpha phase, so expect bugs and report them to the author via the GitHub repo. 

{% github MusabShakeel576/quickfix.ai noreadme %}

quickfix.ai is an ambitious project made up of two powerful AI-powered extensions, VS Code and chrome. Both simplify your developer experience and speed up debugging.

- [VS Code Extension](https://github.com/MusabShakeel576/quickfix.ai/blob/main/vscode-extension/README.md)
- [Chrome Extension](https://github.com/MusabShakeel576/quickfix.ai/blob/main/chrome-extension/README.md)

## How does it work?
Quickfix AI uses GPT and Vector Index to provide instant solutions for errors in your code within the code editor using AI.

The code seems straightforward, but I did not install and run the alpha build locally. I am going off the demo provided by the author in their post. I also focus on understanding the code, and the [backend/src/gpt.py](https://github.com/MusabShakeel576/quickfix.ai/blob/main/backend/src/gpt.py#L19-L22) seems to be powered by a single python package to manage the model. Python has been the premier language to support NLP for some time, so it makes sense that the developer experience packaged through one interaction.  

```py
# /backend/src/gpt.py
from pathlib import Path
from gpt_index import GPTSimpleVectorIndex, Document

def generate_index(workspace):
    file = workspace.name+'.json'
    path = Path.cwd() / "storage" / file

    if path.is_file():
        index = GPTSimpleVectorIndex.load_from_disk(path)
    else:
        documents = [Document(document) for document in workspace.documents]
        index = GPTSimpleVectorIndex(documents)
        with open(path, 'w'):
            pass
        index.save_to_disk(path)
        
    return index

def generate_solution(workspace) -> str:
    index = generate_index(workspace)
    response = index.query(workspace.input)
    return response
```

If you understand Python and are interested in supporting it, it is open-sourced. Support the author with feedback and a star on their GitHub project. 

Also, if you have a project leveraging OpenAI or similar, leave a link in the comments. I'd love to take a look and include it in my [9 days of OpenAI series](https://dev.to/bdougieyo/30-days-of-openai-1ek6).

_Find more AI projects using [OpenSauced](https://insights.opensauced.pizza/ai/repositories/filter/recent)_

Stay saucy.