Recently I decided that I might actually publish my little rust crate. To that end I started looking into some of the things that are needed and what can be done. I have published a perl module in the past. And as a rule for myself, I like to provide an example program that uses a module or library. That is what I will look at today.
[Read More]Rust: Lazy Static Regex
Passing Regex around, helping the compiler keep things optimised.
Hi,
Today I will finally go over how I used the lazy_static crate to help the compiler keep regex optimised.
[Read More]Hugo Custom Info Boxes
The other day I got my regular summary from GoHugo a discourse site where I am a member. This lead me to an interesting blog, which then lead me to an article on how to add custom info boxes to your site if it is not provided by your theme.
[Read More]Swift: Deconstruct SPF
Learning Swift: Documenting a Package
Hi,
I have been working on this project on and off for a bit now. So I thought it was time to go over how we might be able to not only internally document our code, but also to document it at the package level.
[Read More]Swift: Deconstruct SPF: asMechanism with Qualifier
Hi,
In this article, I will walk through how I re-implemented the enum
for Qualifier
and MechanismKind
. I will also deliver a working asMechanism()
function. The diff is here
Swift: Deconstruct SPF - Qualifier and MechanismKind
Learning Swift: Enum
In this article I will be looking at defining the enums for Qualifier
and MechanismKind
. I will also be adding tests to ensure that the functions work as expected. Further I will implement a simple asMechanism()
as a proof of concept.
Swift: Deconstruct SPF: Strings and SubStrings
Learning Swift: Passing substrings to functions
I have been working on my SPF project in Swift of late. As part of this I have started to deal with substrings. “A slice of a string” according to Apple Documentation. In dealing with this, I have found myself quite often converting substrings back to normal strings. Today we will look at how we can pass substrings directly by making our functions generic.
[Read More]Swift: Deconstruct SPF - Struct Mechanism
Today, I will start on building out the functionality of the struct Mechanism
.
This will involve creating some tests, and basic functions.
Rust: Domain Name Validation
Recently, as I work my way through learning bits of rust, I have been thinking that I should in corporate some form of input validation for domains.
Today I will look at two crates.
[Read More]Swift: Deconstruct SPF an Outline and Background
What is SPF
If you have not followed my rust series on deconstructing SPF you can check it out here.
[Read More]