• I. Overview

    To know what Codespaces is, you can check the official introduction here:
    👉 https://github.com/features/codespaces

    Codespace Overview

    II. Actions

    Step 1

    From the main page, navigate and select the Codespaces menu to access your codespaces.

    Step 1

    Step 2

    In the new window, select the button New codespace.

    Step 2

    Step 3

    Hit the button Create codespace with the following configurations:

    • Repository – the existing repository on GitHub you want to work with.
    • Branch – the branch of the repository you want to use.
    • Region – choose the region where your codespace will run.
    • Machine type – choose the machine configuration (remember: “more power, more money”).
    Step 3

    Step 4

    After hitting Create codespace, you will be redirected to Visual Studio Code in the browser.

    From here, you can do everything just like working on your local machine.

    Step 4

    Step 5

    Here’s an example demo.

    In the terminal, after running the command:

    dotnet run
    

    It will generate a URL.
    When you open localhost:5223, it will forward the port and open a new window (see next step).

    Step 5

    Step 6

    When you access the URL generated in Step 5, you’ll be redirected to a new tab like this:

    Step 6

    Step 7

    To manage your codespaces, you can see the options as shown below.

    ⚠️ Important: When you are not using a codespace, make sure to stop it to avoid unnecessary charges.

    Step 7a
    Step 7b

    III. References

  • UML Short Description

    Below is a mapping between program elements in C# and their corresponding UML diagram elements, along with the meaning of each.


    UML Elements Table

    Program elementDiagram elementMeaning
    ClassClassType and parameters specified when important; access indicated by + (public), – (private), # (protected).
    InterfaceInterfaceName starts with I. Also used for abstract classes.
    NoteNoteAny descriptive text.
    PackagePackageGrouping of classes and interfaces.
    InheritanceInheritanceB inherits from A.
    RealizationRealizationB implements A.
    AssociationAssociationA and B call and access each other’s elements.
    Association (one way)Association One WayA can call and access B‘s elements, but not vice versa.
    AggregationAggregationA has a B, and B can outlive A.
    CompositionCompositionA has a B and B depends on A.

    📖 The content belongs to the book C# 3.0 Design Patterns – Judith Bishop

  • Programming Principles

    Hi!,
    First of all, I would like to say the content above is an essential thing for each developer who wants to improve their code quality.
    I do not own the content above, I just bring it from the Lars Kappert’s GitHub.
    Please see the References section for the reference to GitHub and the owner’s websites.


    Programming Principles

    Every programmer benefits from understanding programming principles and design patterns. This overview is a reference for myself, and maybe it is of help to you during design, discussion, or review.

    The list is incomplete, and sometimes trade-offs need to be made between conflicting principles. However, higher ranked principles usually beat lower ranked ones.

    The list was inspired by The Principles of Good Programming (down? Google’s cache).
    I’ve added a bit more reasoning, details, and links to further resources. Let me know if you have any feedback or suggestions for improvement!


    Contents

    Generic

    Inter-Module/Class

    Module/Class

    Test


    KISS

    Keep It Simple, Stupid: most systems work best if they are kept simple rather than made complex.

    Why

    • Less code takes less time to write, has less bugs, and is easier to modify.
    • Simplicity is the ultimate sophistication.
    • Perfection is reached not when there is nothing left to add, but when there is nothing left to take away.

    Resources


    YAGNI

    You Aren’t Gonna Need It: don’t implement something until it is necessary.

    Why

    • Any work that’s only used for a feature that’s needed tomorrow means losing effort from features that need to be done today.
    • Leads to code bloat; software becomes larger and more complicated.

    How

    • Always implement things when you actually need them, never when you just foresee that you need them.

    Resources


    Do The Simplest Thing That Could Possibly Work

    Why

    • Real progress against the real problem is maximized if we just work on what the problem really is.

    How

    • Ask yourself: “What is the simplest thing that could possibly work?”

    Resources


    Separation of Concerns

    Separation of concerns is a design principle for separating a program into distinct sections, each addressing a separate concern.

    Example: business logic and UI. Changing UI should not require changing business logic and vice versa.

    Quoting Edsger W. Dijkstra (1974):

    It is what I sometimes have called “the separation of concerns”…

    Why

    • Simplifies development and maintenance.
    • Well-separated concerns → easier reuse and independent updates.

    How

    • Break functionality into separate modules that overlap as little as possible.

    Resources


    (… giữ nguyên nội dung gốc, format lại tương tự cho các mục tiếp theo …)


    References

  • I. Introduction

    As a developer, you might work with various different databases, and DBeaver is a good choice for it.
    But one boring thing is you might write the same code every day — so the snippet is the hero for it.

    If you have a chance to use SQL Prompt (a paid plugin for SQL Server Management Studio), you will love it.

    Luckily, DBeaver allows configuring snippets in the same way.
    And I will show you how in the section below.


    II. How to generate or import the snippet

    1. How to generate a new snippet

    Step 1
    From the menu go to:

    Window → Preferences → Editors → SQL Editor → Templates

    You will see a new window as below:

    picture 1

    Step 2
    As you see in the new window:

    • Left side: all templates that are created or imported.
    • Right side: buttons to create / update / remove / import …

    Step 3
    Create a new snippet/template.

    Click the button New.. → a new window will display:

    picture 2

    In the new window:

    • Name → the shortcut to trigger the script you want.
    • Pattern → the command that will display when you type the shortcut.
    • Insert Variable.. → shows all built-in variables to insert into your template.

    Example window:

    picture 4

    👉 This example means:
    When I type lj and press Tab, the INNER JOIN statement will be filled automatically.


    Demo

    picture 3
    select from
    select top

    2. How to import the existing snippet

    Click the button Import → a new window will display.
    Locate the folder where your template files are stored.

    In this repository’s snippets folder, I created a bunch of snippets inspired by the SQL Prompt snippet.

    ✨ If you wish to download my template, please visit my GitHub:
    Tim90s


    III. References

    Below are the links used to create the above content:

  • 1. Introduction

    If you are in the following cases, PlantUML will be the hero to rescue you:

    • You have to face change requests from the client regularly, and each time you need to update the flow or diagram in your design.
    • You want to keep track of all the changes to the flow/diagram by using a source version control such as Git or SVN.
    • You want a tool to update your diagram quickly without spending too much time recreating it.

    2. Installing and Setup PlantUML

    2.1. Using PlantUML Online

    If you want to use it quickly without any installation, just open a browser and visit:
    👉 https://plantuml.com/

    This official site includes:

    • Documentation related to PlantUML syntax and many awesome features.
    • An online editor to create, export, and share diagrams via link or file.
    picture

    You can go directly to the online editor via this link:

    👉 PlantUML Online Editor

    picture

    2.2. Using PlantUML in Visual Studio Code

    picture

    Step 1: Install the Java Runtime on your local machine to run PlantUML.
    👉 Download Java Runtime

    Step 2: In Visual Studio Code, navigate to Extensions, search for plantuml, and install it:

    picture

    After installation, you can read the introduction of this extension to learn how to use it.


    3. How to use the PlantUML syntax effectively

    To see all available syntax and diagram types, please visit the official PlantUML site.

    3.1. Use Case Diagram

    In VS Code, type the syntax of the diagram you want to create, then hit Alt + D to see the generated image.

    picture

    3.2. JSON Data Diagram

    picture

    3.3. Mindmap Diagram

    picture

    4. References