Table of Contents:
You have probably stumbled upon this video, which explains how to convert your favorite VSCode theme to also be usable in Visual Studio 2022. Well, it's not entirely correct, it still applies, but there has to be some clarification.
As the video lacks some information, I will try to make it as easy as possible.
Table of Contents:
/* eslint-disable @typescript-eslint/no-non-null-assertion */ | |
/** | |
* Applies the implementation of baseConstructors to the derived constructor - injects methods into | |
* the given class. | |
* | |
* @param {{ new (): T }} derivedConstructor Class we want to inject mixins into | |
* @param {{ new (): unknown }[]} baseConstructors Array of classes we want to take mixins from | |
*/ | |
export function ApplyMixins<T>( |
After poking around with route separation, I found this (a bit messy and ugly) way to keep routes in separate files without touching the RouteServiceProvider
at all - the only update is to change the web namespace to 'routes/web/main.php'
since this will be the definitions file for all routes.
This is more of an experiment, not a recommended way of doing this. You could also do this in RouteServiceProvider
in a loop with glob
.
First thing to do will be moving routes to a new directory: routes/web
, which will only contain main.php
and index.php
files - main being the definitions file which will register route groups all together .
Let's assume we have a website, where we can edit our profile and change some private account settings. The structure would be something like the example below (not ideally of course, it's just a quick example, no one would structure a page like this):
using System.Collections.Generic; | |
using System.Linq; | |
public static class DictionaryExtensions | |
{ | |
/// <summary> | |
/// <para />Merges this dictionary with another dictionary | |
/// <example> | |
/// <code> | |
/// Dictionary<string, int> dictionary = dictionary.MergeWith(otherDictionary); |
This is not a Documentation format. This is a very close transcription of Academind's video: "TypeScript Course for Beginners 2021 - Learn TypeScript from Scratch!", which was a part of my learning process. I highly recommend watching the entire 3 hours course available on Academind's YouTube channel.
This is not a 1:1 transcription (roughly 90:100) - do not rely on these notes as some parts of the video were skipped and it contains some self-interpreted content.
GitHub anchors might not work, sadly ¯_(ツ)_/¯