woo-besluit-broncode-digid-app
type_safe
Our great sponsors
woo-besluit-broncode-digid-app | type_safe | |
---|---|---|
19 | 6 | |
18 | 1,452 | |
- | - | |
4.6 | 5.4 | |
over 1 year ago | 6 days ago | |
C# | C++ | |
GNU General Public License v3.0 or later | 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.
woo-besluit-broncode-digid-app
-
Code Smell 193 - Switch Instead of Formula
private static string GetPercentageRounds(double percentage) { if (percentage == 0) return "⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪"; if (percentage > 0.0 && percentage <= 0.1) return "🔵⚪⚪⚪⚪⚪⚪⚪⚪⚪"; if (percentage > 0.1 && percentage <= 0.2) return "🔵🔵⚪⚪⚪⚪⚪⚪⚪⚪"; if (percentage > 0.2 && percentage <= 0.3) return "🔵🔵🔵⚪⚪⚪⚪⚪⚪⚪"; if (percentage > 0.3 && percentage <= 0.4) return "🔵🔵🔵🔵⚪⚪⚪⚪⚪⚪"; if (percentage > 0.4 && percentage <= 0.5) return "🔵🔵🔵🔵🔵⚪⚪⚪⚪⚪"; if (percentage > 0.5 && percentage <= 0.6) return "🔵🔵🔵🔵🔵🔵⚪⚪⚪⚪"; if (percentage > 0.6 && percentage <= 0.7) return "🔵🔵🔵🔵🔵🔵🔵⚪⚪⚪"; if (percentage > 0.7 && percentage <= 0.8) return "🔵🔵🔵🔵🔵🔵🔵🔵⚪⚪"; if (percentage > 0.8 && percentage <= 0.9) return "🔵🔵🔵🔵🔵🔵🔵🔵🔵⚪"; return "🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵"; } } } // Full source // https://github.com/MinBZK/woo-besluit-broncode-digid-app/blob/master/Source/DigiD.iOS/Services/NFCService.cs
- De vrijmibodraad
- When you let interns code the official government ID app
-
Dutch Government's DigiD iOS App Code Snippet
The Dutch government was forced to release the source code of their DigiD digital authentication iOS app. It is written in C#. https://github.com/MinBZK/woo-besluit-broncode-digid-ap
- The Dutch government was forced to release the source code of their DigiD digital authentication iOS app
-
its okay guys they fixed it!
I actually have a really big love hate relationship with digiD. It can be great or your biggest nightmare. I actually found a public archive of the code though: https://github.com/MinBZK/woo-besluit-broncode-digid-app
-
Source code for Dutch DigiD app released under Dutch Open Government Act
It would seem so: https://github.com/MinBZK/woo-besluit-broncode-digid-app/blo...
The interesting aspect of this is that it can be studied to write clients for platforms that are not officially supported -- currently, only Android and iOS are supported, but it'd be great to see a Linux client too.
type_safe
-
Why is this piece of code compiling with char as c-tor argument?
Yep. And there are some libraries to provide strong-type int, depending on what you need: type_safe or even units.
-
its okay guys they fixed it!
Which programming language has, by default, a float type between 0.0 and 1.0? I think it is solvable with libraries in some languages, sure, but it is there in the type system or the standard library of some mainstream language?
-
Optional output arguments
Consider taking a look at the type_safe library https://github.com/foonathan/type_safe which has an output_parameter type
-
Integer Conversions and Safe Comparisons in C++20
foonathan/type_safe provides wrappers around standard types that prevent most of the unwanted implicit conventions. Also it provides backport of safe comparasions on C++11 and C++14
- How to make "stronger" types in C++ (easily)
-
Things You Should Do Now
I agree, the 'microtype' pattern can be a good way of getting the type-checker to catch silly mistakes.
In Ada it's standard practice. In C++ you really need a library to do it easily, but there's a good one out there ready to go:
https://github.com/foonathan/type_safe/
What are some alternatives?
FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
cuid - Collision-resistant ids optimized for horizontal scaling and performance.
govuk-puppet - Decommissioned: Puppet manifests that used to provision the legacy GOV.UK stack.
UUID - :snowflake: A PHP library for generating universally unique identifiers (UUIDs).
my_first_calculator.py - my_first_calculator.py
io-app - IO, l'app dei servizi pubblici
mp-units - The quantities and units library for C++
Elm - Compiler for Elm, a functional language for reliable webapps.
spec - The canonical spec for ulid