DotNet Core 2.2 Web Api

Over the past few months I worked on a DotNet core framework. Some as a means of learning C, and potentially to provide my team with options for how to handle various concerns. That project never moved into use, but portions of it turn out to be very useful for general knowledge. I'm keeping the source code for this one a little closer to the chest. If you'd like to talk through what I found, feel free to ping me. Twitter might be easiest. At a high level, I covered these concerns: 


JavaScript class static constants extension on instances

Ran into an interesting question from a coworker. We were working through surprising (to me) PHP behavior on the usage of self:: vs static::. It's a question of late binding and the accessor. For a PHP reference to get a class's extended constant value from the subclass, you had to use static::.


Using private Azure DevOps git repositories with composer during Build and Release

Azure DevOps has been great to me. I'm hugely thankful for the toolkit it's provided, but it falls down a little when it comes to PHP.
Today our systems guy Eric and I figured out how to provide the authentication required by the composer install steps to pull private git repositories out of our Azure Repos.

Start first by declaring your composer.json repository and dependencies as normal:

Setting up per site read-only deploy keys using github

I'm going to forget this again if I don't write it down this time. Here's the scenario I was trying to overcome:

Single server, multiple sites backed by independent repos using ssh.
Each site should have it's own private ssh key added to the remote repository as a deploy keys. These deploy keys can not be the user's private key to get on the server.



Subscribe to Fragmented Thought RSS