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]Swift: Deconstruct SPF Getting Started
Learning Swift by trying to make a simple project
In my previous series “Learning Rust”. I decided to attempt to learn some fairly basic rust concepts and constructs by working on a fairly simple project. This seemed to go fairly well. So I am now going to attempt to work on the same project, but this time, using Swift.
[Read More]Rust: Move from binary to library and Add Documentation Examples that are tested.
In the previous article in this series I went through some basics of documenting your rust code. I had hoped to be able to take advantage of another nice feature of rust. That being the fact that code examples are actually tested by rust. I will go through the changes I had to make for this to work.
[Read More]Rust: Documenting your Code
Hi.
As with all projects. It’s important to create documentation. This is, as we know, very important when creating code. When we come back to a project after a break, or if someone new takes over. Documentation will help you remember or learn what the code does. The thinking that was behind certain decisions.
SPF: Adding Support for A and MX Mechanisms in Rust
This is a quick followup on my progress in deconstructing SPF using Rust.
Today I was able to implement both A
and MX
mechanisms.
Looking at Regex in Rust (Addendum)
Hi. In my previous article Looking at Regex in Rust. I covered some basics. Today I will go over some new things that I have learned, as I expanded on things that my regex expression needs to handle. In particular the need to handle the possible existence or none existence of qualifiers +
,-
,~
,?
.