durationcheck
unit_fun
durationcheck | unit_fun | |
---|---|---|
2 | 1 | |
45 | 21 | |
- | - | |
0.7 | 0.0 | |
about 1 year ago | over 5 years ago | |
Go | Elixir | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
durationcheck
-
Please put units in names
And there's also a fancy pancy linter that checks for this bug for you that's conveniently already integrated with golangci-lint for you, you just need to turn it on.
-
Please Put Units in Names
Now I insist on using the durationcheck lint to guard against this (https://github.com/charithe/durationcheck). It found a flaw in some exponential-backoff code I had refactored but couldn’t easily fully test that looked right but was wrong, and now I don’t think Go’s approach is reasonable anymore.
unit_fun
-
Please Put Units in Names
I ended up building a library for elixir a few years back for this kind of thing: https://github.com/meadsteve/unit_fun.
What are some alternatives?
SI - A header only C++ library that provides type safety and user defined literals for physical units
secure_random - Convenience library for random base64 strings modeled after my love for Ruby's SecureRandom
kal - A powerful, easy-to-use, and easy-to-read programming language for the future.
slime - Minimalistic HTML templates for Elixir, inspired by Slim.
go - The Go programming language
expletive - Profanity filter library for Elixir
Squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis
bencode - A bencode encoder and decoder written in Elixir
dimensioned - Compile-time dimensional analysis for various unit systems using Rust's type system.
chinese_translation - An elixir module to translate simplified Chinese to traditional Chinese, and vice versa, based on wikipedia data
zen
eden - edn (extensible data notation) encoder/decoder for Elixir