项目作者: umutphp

项目描述 :
A CLI tool for Hacker-Laws Repo
高级语言: Go
项目地址: git://github.com/umutphp/hacker-laws-cli.git
创建时间: 2020-01-29T12:44:32Z
项目社区:https://github.com/umutphp/hacker-laws-cli

开源协议:

下载


Hacker Laws CLI

Build And Release WOSPM Checker Contributor Covenant

A simple command line tool to give you a fancy command line interface to dive into laws, theories, principles and patterns listed in the repo hacker-laws by Dave Kerr.

How To Install

Basic

Follow the steps;

  1. git clone git@github.com:umutphp/hacker-laws-cli.git
  2. cd hacker-laws-cli
  3. go run main.go

Build as binary

Follow the steps;

  1. git clone git@github.com:umutphp/hacker-laws-cli.git
  2. cd hacker-laws-cli
  3. sudo go build -o /usr/local/bin/hacker-laws-cli .
  4. hacker-laws-cli list

Download and use official binary

Visit the latest release page and download the binary correspondingly.

  1. wget -O /usr/local/bin/hacker-laws-cli https://latest-binary-url
  2. hacker-laws-cli

How To Use

The build will create an executable with name hacker-laws-cli.

Execute it without argument to see the argument option;

  1. $ ./hacker-laws-cli
  2. Options for the command:
  3. help To display argument list.
  4. list To list the laws and principles.
  5. random To display random law or principles.

Sample execution #1

  1. $ ./hacker-laws-cli list
  2. Laws
  3. - Amdahl's Law
  4. - The Broken Windows Theory
  5. - Brooks' Law
  6. - Conway's Law
  7. - Cunningham's Law
  8. - Dunbar's Number
  9. - Gall's Law
  10. - Goodhart's Law
  11. - Hanlon's Razor
  12. - Hofstadter's Law
  13. - Hutber's Law
  14. - The Hype Cycle & Amara's Law
  15. - Hyrum's Law (The Law of Implicit Interfaces)
  16. - Metcalfe's Law
  17. - Moore's Law
  18. - Murphy's Law / Sod's Law
  19. - Occam's Razor
  20. - Parkinson's Law
  21. - Premature Optimization Effect
  22. - Putt's Law
  23. - Reed's Law
  24. - The Law of Conservation of Complexity (Tesler's Law)
  25. - The Law of Leaky Abstractions
  26. - The Law of Triviality
  27. - The Unix Philosophy
  28. - The Spotify Model
  29. - Wadler's Law
  30. Principles
  31. - Wheaton's Law
  32. - The Dilbert Principle
  33. - The Pareto Principle (The 80/20 Rule)
  34. - The Peter Principle
  35. - The Robustness Principle (Postel's Law)
  36. - SOLID
  37. - The Single Responsibility Principle
  38. - The Open/Closed Principle
  39. - The Liskov Substitution Principle
  40. - The Interface Segregation Principle
  41. - The Dependency Inversion Principle
  42. - The DRY Principle
  43. - The KISS principle
  44. - YAGNI

Sample execution #2

  1. $ ./hacker-laws-cli random
  2. -----------------------------------------------------
  3. The Peter Principle
  4. -----------------------------------------------------
  5. The Peter Principle on Wikipedia
  6. > People in a hierarchy tend to rise to their "level of incompetence".
  7. >
  8. > _Laurence J. Peter_
  9. A management concept developed by Laurence J. Peter, the Peter Principle observes that people who are good at their jobs are promoted, until they reach a level where they are no longer successful (their "level of incompetence". At this point, as they are more senior, they are less likely to be removed from the organisation (unless they perform spectacularly badly) and will continue to reside in a role which they have few intrinsic skills at, as their original skills which made them successful are not necessarily the skills required for their new jobs.
  10. This is of particular interest to engineers - who initial start out in deeply technical roles, but often have a career path which leads to _managing_ other engineers - which requires a fundamentally different skills-set.
  11. See Also:
  12. - The Dilbert Principle
  13. - Putt's Law
  14. -----------------------------------------------------
  15. github.com/dwmkerr/hacker-laws by Dave Kerr
  16. -----------------------------------------------------