Code Monkey home page Code Monkey logo

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

Thuong Thanh Le's Projects

ecspresso icon ecspresso

ecspresso is a deployment tool for Amazon ECS

notp icon notp

Node One Time Password, convert from PHPGangsta/GoogleAuthenticator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.