Skip to content
View chipgata's full-sized avatar

Block or report chipgata

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
chipgata/README.md

About Chip

  • 👋 Hi, I’m @chipgata
  • 👀 I’m interested in building something with automation
  • 🌱 I’m currently learning clean, refactor and design code
  • 💞️ I’m looking to collaborate to build something which really helpful for the community
  • 📫 How to reach me? Create a PR, haha

Code Clean and Refactor Rules

  • The name of class, function or variable should be meaning.
  • Code should follow Stepdown Rule. Reading Code from Top to Bottom
  • The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that. Function only do one thing.
  • Zero arguments for a function is very good. One argument is good. Two arguments are enough good. Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification—and then shouldn’t be used anyway.
  • Try/catch blocks are ugly in their own right. They confuse the structure of the code and mix error processing with normal processing. So try/cactch should do on main function, the function which is called can skip try/catch.
  • Don’t Repeat Yourself
  • Add new is better than change, but if need to update, update on one place is better than multiple places, if you are not trust your memory

Popular repositories Loading

  1. chipgata chipgata Public

    Config files for my GitHub profile.

  2. terraform-aws-jenkins-module terraform-aws-jenkins-module Public

    A terraform Jenkins module

  3. ssh_exporter ssh_exporter Public

    Forked from treydock/ssh_exporter

    Go