Code Monkey home page Code Monkey logo

Comments (7)

Jogai avatar Jogai commented on July 3, 2024 1

If this is used I think its way easier to use something like https://shields.io/#/examples/social

But I think the discussion should be about what the best metrics are. Do people really star/fork repos they think are awesome? In my case, the answer is no...

from awesome-dotnet-core.

LordMike avatar LordMike commented on July 3, 2024 1

They should be cached after the first request (on Shield.io's end) - as they use Cloudflare. It's still not awesome, but at least it doesn't hit some home-grown server setup.

Personally. This setup would annoy me a lot. I like the simplistic nature of the list, and I expect that all projects on the list are "awesome", in a sense that I don't need to evaluate if one project is "better" than another in terms of stars.

If it really must be, I would suggest a lighter layout, where (markdown permitting) the metrics are printed after the description. Like this:

  • autorest - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above -- 424 forks | 2.109 stars | 964 watchers

The new metrics should be as small and non-intruding as possible.

from awesome-dotnet-core.

ngohungphuc avatar ngohungphuc commented on July 3, 2024

I think we can do that but does it really need for the repo ?

from awesome-dotnet-core.

fidergo-stephane-gourichon avatar fidergo-stephane-gourichon commented on July 3, 2024

Shields.io appears to provide an easy solution. All metrics are imperfect. In the spirit of release-early, release-often I've hacked a bash-based command line to run at the root directory of the repository:

 TEMPLATE=$(
     for FACET in github/forks github/stars github/watchers
     do echo -n "![\1 $FACET](https://img.shields.io/${FACET}/\3.svg) "
     done
         )
 echo "$TEMPLATE"
 [[ -e README.md.orig ]] || cp -v README.md README.md.orig 
 sed < README.md.orig "s|\[\([^]]*\)\](\([^)]*//github.com/\)\([^()]*\))|${TEMPLATE}[\1](\2\3)|g" >README.md

It prefixes any link to a github repository with shields badges. Thus, it turns:

* [autorest](https://github.com/Azure/autorest) - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. `4.5.x or above`

into

* ![autorest github/forks](https://img.shields.io/github/forks/Azure/autorest.svg) ![autorest github/stars](https://img.shields.io/github/stars/Azure/autorest.svg) ![autorest github/watchers](https://img.shields.io/github/watchers/Azure/autorest.svg) [autorest](https://github.com/Azure/autorest) - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. `4.5.x or above`

which yields, before:

  • autorest - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

after:

  • autorest github/forks autorest github/stars autorest github/watchers autorest - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

Still not sure if it's a good idea, because current README.md causes 1767 requests to img.shields.io.

from awesome-dotnet-core.

Jogai avatar Jogai commented on July 3, 2024

A flatter style and a bit of coloring makes it less intrusive. Still I agree with @LordMike

  • autorest github/forks autorest github/stars autorest github/watchers autorest - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

from awesome-dotnet-core.

LordMike avatar LordMike commented on July 3, 2024

In all the examples here, the line height is doubled. :/
Below are some styles from Shields.io.

flat:

  • autorest github/forks - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

flat-square:

  • autorest github/stars - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

plastic:

  • autorest github/watchers - Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby. 4.5.x or above

from awesome-dotnet-core.

thangchung avatar thangchung commented on July 3, 2024

After a long time to investigate, I come up with not changing the current style of readme because of performance when we did a lot of requests to calculate and pull statistic. Keep it for now. Thank you all for your enthusiasm for making this repo more and more popularly.

from awesome-dotnet-core.

Related Issues (20)

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.