Looking to simplify my C# GradeBook project

I started to learn C# recently by following the official Microsoft docs. I originally created the GradeBook project from pluralsight which I am now adding my own features to.

This section lets the user input the name of the student and the subject, which creates a new gradebook file. The code that follows this logs the users grades for each subject which can be used to calculate statistics.

The code currently works as intended but as I am new to this, Does this code follow common best practices? is there more optimized methods or flaws that I might not recognize?.

public class AddStudentDetails : AddGradeBookSubjects
{

    public static void StudentDetails()
    {

        Clear();

        //WriteLineColor just uses Writeline and ConsoleColor to change the text.
        //Used to Add the users name to the GradeBook.
        WriteLineColor("####Please enter your students name.####n", ConsoleColor.Red);
        var studentName = ReadLine();
        // add if(Regex.IsMatch(studentName, @"^(a-zA-Z)+$")) to declare valid name input?
        WriteLineColor($"{studentName} has been added to the gradebook.n", ConsoleColor.Red);
        Clear();

        //Adds course subject to the Gradebook, SubjectName = subjectName; validates that the user input is in the string array of subjects and is the correct format. 
        WriteLineColor("Please enter the course subject.n", ConsoleColor.Red);
        SubjectName = subjectName;
        WriteLineColor($"You have set the subject as: {SubjectName}. n", ConsoleColor.Red);
        Clear();

        //Creates a .txt file within a folder with the name and subject of the created gradebook.
        WriteLineColor($"Gradebook selected: {studentName}: {SubjectName}. n", ConsoleColor.Red);
        var fileName = $"{studentName} {SubjectName} GradeBook.txt";
        var path = Combine(@"H:RepositoryGradebook Version OneStudent Gradebooks", fileName);
        {
            using (var sw = CreateText(path))
            {
            }

        }
        Program.WriteLineColor($"Grade book {studentName}, {subjectName} has been created in {path}", ConsoleColor.Red);

        var book = new InMemoryBookStorage($"This book belongs to {studentName} and its subject is {SubjectName}");
        EnterStudentGrades.EnterGrades(book);

    }
}

}

public class AddGradeBookSubjects 
{
    public static string subjectName;

    public static string SubjectName
    {
        get { return subjectName; }
        set
        {
            List<string> addSubject = new List<string>() {"Maths", "Science", "English"};
            while (true)
            {
                Console.WriteLine("Select from the list below.");
                foreach (string item in addSubject) Console.WriteLine(item.ToString());
                var input = Console.ReadLine();
                if (addSubject.Contains(input, StringComparer.OrdinalIgnoreCase) &&
                    Regex.IsMatch(input, @"^(a-zA-Z)+$"))
                {
                    subjectName = input;
                    return;
                }
                else
                {
                    Console.Clear();
                    Console.WriteLine("Please enter a valid subject.");
                    
                }

                
            }
        }




    }
}

In the future, I plan on adding features that does not allow duplicate books of the same name and subject and also storing it in a database, rather than a .txt file. Thanks!

unreal 4 – Unable to turn project into exe file

I’m new to Unreal Engine and I’ve been looking for an answer online but I don’t understand why my project I just started on is unable to project. I used only blueprints. Here is the log.

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=C:/Users/belmo/OneDrive/Documents/GitHub/EscapeFromDarksidePenitentiary/EscapeFromDarkSide/EscapeFromDarkSide.uproject BuildCookRun -nocompileeditor -installed -nop4 -project=C:/Users/belmo/OneDrive/Documents/GitHub/EscapeFromDarksidePenitentiary/EscapeFromDarkSide/EscapeFromDa
rkSide.uproject -cook -stage -archive -archivedirectory=C:/Users/belmo/OneDrive/Documents/GitHub/EscapeFromDarksidePenitentiary/EscapeFromDarkSide -package -ue4exe=”C:Program FilesEpic GamesUE_4.26EngineBinariesWin64UE4Editor-Cmd.exe” -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Win64 -clientconfig=Development -utf8
output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for C:UsersbelmoOneDriveDocumentsGitHubEscapeFromDarksidePenitentiaryEscapeFromDarkSideEscapeFromDarkSide.uproject
UATHelper: Packaging (Windows (64-bit)): ********** COOK COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running UE4Editor Cook for project C:UsersbelmoOneDriveDocumentsGitHubEscapeFromDarksidePenitentiaryEscapeFromDarkSideEscapeFromDarkSide.uproject
UATHelper: Packaging (Windows (64-bit)): ERROR: Cook failed.
UATHelper: Packaging (Windows (64-bit)): (see C:UsersbelmoAppDataRoamingUnreal EngineAutomationToolLogsC+Program+Files+Epic+Games+UE_4.26Log.txt for full exception trace)
PackagingResults: Error: Cook failed.
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogEditorViewport: Clicking on Actor (LMB): StaticMeshActor (Cube11)
LogSlate: Window ‘Output Log’ being destroyed
LogSlate: Window ‘Output Log’ being destroyed
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogD3D11RHI: CreateSwapChainForHwnd failed with result ‘DXGI_ERROR_INVALID_CALL’ (0x887A0001), falling back to legacy CreateSwapChain.
LogEditorViewport: Clicking on Actor (LMB): StaticMeshActor (Cube11)

The first product in Facebook-backed crypto money project Diem is coming soon

It is said that the first product in the Facebook-led crypto money project, which was previously designated as Libra but later rebranded as Diem, will appear at the end of this quarter with the support of Fireblocks and First Digital Assets companies.
According to the statement made by Fireblocks and First, both companies are Diem’s; It will enable it to connect to financial services organizations such as banks, exchanges, payment service companies and e-Wallets.
What do you think of this…

Read more

thumbnail – It seems fair to have a different preview for the same project when filtered into a different category?

Fist of all sorry for my terrible english 🙂
So, my new client is a designer and we are discussing about having different preview image for the same project with same contents if filtered in different category.
For example in the projects index:
designer/projects (the project xxxname have one preview image).
designer/logotype (the same xxxname project have the logo as preview image).
designer/website (the same xxxname project have the website as preview image). I think in this way the user can be confused about what he has already seen or not. What do you think about?

project structure – Function/class implementations in __init__.py of a Python module

Some packages have __init__.py files containing actual implementations of functions or classes. There are also very famous projects adopting this practice:

I was wondering what are the pros and cons of this practice and when it should be adopted.
I’ve searched online, but it seems that there is not a clear indication or a best practice. A lot of people suggest limiting the content of the __init__.py to essential things, using them only to structure your package.

I understand that this approach makes clearer interfaces of your module, especially if you have very small modules, with a very limited number of simple classes and functions. On the other hand, if you have a very large number of modules and all the implementations are in the __init__.py files, you will end having several files with the same name and probably you have to work on them at the same time; moreover, the size of the files can easily get out of hand and make them difficult to read and mantain.

Is there a best practice or at least a rule of thumb here? Is there any interesting reading or discussion on this topic?

No URLs to submit, project on pause for 5 minutes. I need your help again

I couldn’t sleep for two days and started a new project on another computer to solve it, but I still see the same problem.Please help me solve the problem.

architecture – Monorepo, or how to handle two application modules in one project

The problem:
There are two application, which have many common parts.

Desire: reuse common code between application.

Question: what is the best way to achieve this?

Simply create two application modules in project and share common code between them in lib modules?

Monorepo? What is monorepo for Android projects?

No URLs to submit, project on pause for 5 minutes(I’ve been working all night trying to solve it) — 👉 GSA SEO and Marketing Forum 👈

1.Delete and reinstall all programs 10 times

2. Delete link list and download again and import (link list from Asia Virtual Solution)

3.Using 100 semi-proxies.

4. x evil,captcha breaker using

5.WINDOWS SERVER 2019

AMD THREADRIPPER 3960X 24 – CORE

RAM 128GB

6. 7 tier data packs purchased from Asia Virtual Solution
 tier1 and tier1-1 working but The rest The other five are not submit.

I’ve been working all night trying to solve it for three days.

Please help me.

Thank you.

You Have an Idea For a New Project? Get It Started Today! Hire an Expert Freelancer | Proxies123.com

You Have an Idea For a New Project? Get It Started Today!

Hire an Expert Freelancer -> By the hour or fixed Price

– Graphic Designer
– Web Development
– Programming
– Writing & Translation
– Social Media Marketer
– and more

Workforces4u #1 Services Providing Goal-Oriented Online Solutions For Your Business.
workforces4u.com/how-it-works

Workbench application project with documentation in eclipse

I am trying to make a simple workbench application project in Eclipse but I can’t seem to figure out how to build the documentation. I have written a package, but when I click build (under Documentation) in Application Tools I get:

/Users/(...)/docbuild.xml:132: The following error occurred while executing this line:
/Users/(...)/docbuild.xml:97: The following error occurred while executing this line:
/Users/(...)/eclipse/java-2020-12/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/440/0/.cp/MathematicaSource/DocumentationBuild/SystemFiles/ant/Build/notebook.xml:430: build failure

The first two lines are links to the docbuild.xml file. Do I need to modify this file?

Is there a sample workbench Application Project with Documentation that I can download and use as a guide? Is there a tutorial or book that I can consult in regards to making a proper application project together with its various ingredients such as documentation?