Skip to content

oricha/good_bad_code

Repository files navigation

Good and Bad Code Samples in JavaScript

Welcome to the "Good and Bad Code Samples in JavaScript" repository! This repository is a collection of code examples that demonstrate good and bad coding practices in JavaScript. Our goal is to help developers learn how to write clean, efficient, and maintainable code by showcasing both positive and negative examples.

Table of Contents

  1. Introduction
  2. Repository Structure
  3. Contributing
  4. License

Introduction

JavaScript is a versatile and powerful programming language used for both client-side and server-side development. However, with great power comes great responsibility. As developers, it's essential to understand the best practices and potential pitfalls of the language.

This repository aims to provide a learning resource for developers who want to improve their JavaScript coding skills. By examining good and bad code samples, developers can gain insights into what to do and what to avoid when writing JavaScript code.

Repository Structure

The repository is organized into different file based for "Good" and "Bad" code examples, such as:

  • Async-await
  • Renamed file
  • Destructuring
  • Loops
  • Rest-params
  • Spread-syntax
  • Template-literals

Each folder contains subfolders for "Good" and "Bad" code examples. Within each subfolder, you'll find .js files that demonstrate the respective coding practices.

Contributing

We welcome contributions from the developer community! ☺️ If you'd like to contribute to this repository, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Add your code examples (good or bad) in the appropriate folders.
  4. Commit your changes and push them to your fork.
  5. Create a pull request describing the changes you made.

Before submitting your pull request, please ensure that your code examples follow the best practices and coding standards for JavaScript.

License

This repository is licensed under the MIT License. Feel free to use, modify, and distribute the code examples as you see fit, provided you include the copyright notice and permission notice in all copies or substantial portions of the software.

About

Good & bad Js Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published