Giter Club home page Giter Club logo
PK Score
55359
849274

egg is winner.

egg is better than eclipse-cleancode-sorter.

More interesting! Play with egg's owner and eclipse-cleancode-sorter's owner PK.

open Graph Image
photo
open Graph Image
photo
is In Organization
No
is In Organization
Yes
description
The Clean Code Sorter implements a sorting algorithm based on the newspaper metaphor described by Robert C. Martin in his book titled Clean Code. Robert describes the sorting philosophy as follows: "A class should be readable like a newspaper, starting with the most important methods, followed by methods which are invoked later in the execution flow." The sorter is implemented such that the calling method (the caller) is placed as close as possible to the called method (the callee) to improve the readability of the source code. The most important methods are place at the top of the document while supporting methods are placed immediately below the methods they support. The result is that reading the source code, from top to bottom, is akin to reading prose. To allow relevant methods to be clustered as close as possible to each other, the following sorting algorithm is used. In general, constructors are sorted before public methods, which are sorted before package methods, which are sorted before protected methods, which are sorted before private methods. In addition, methods are also sorted by the number of parameters they have and also their return type. Finally, the clean code sorting algorithm is applied to place called methods right below calling methods, and inner classes are placed at the end of the document.
description
🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
homepage
homepage
https://eggjs.org
url
https://githubhelp/mystilleef/eclipse-cleancode-sorter
url
https://githubhelp/eggjs/egg
disk Usage
8108
dis kUsage
10162
stargazer Count
3
stargazer Count
18836
forkCount
0
forkCount
1808
watcher Count
2
watcher Count
18836
created At
2015-06-25
created At
2016-06-18
license Info
license Info
MIT License
issues
0
issues
50
languages
1
languages
4
repository Topics
0
repository Topics
9
owner
mystilleef
owner
eggjs
owner Avatar
photo
owner Avatar
photo
other
other

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.