From 8ca0a453abaeee354eff89bc3b058a6723a131be Mon Sep 17 00:00:00 2001 From: James Busby <146133909+JamesB05@users.noreply.github.com> Date: Thu, 31 Jul 2025 06:18:07 +0100 Subject: [PATCH] Update Program.cs --- TestProcessing-1/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/TestProcessing-1/Program.cs b/TestProcessing-1/Program.cs index 696b14e..1a55ab5 100644 --- a/TestProcessing-1/Program.cs +++ b/TestProcessing-1/Program.cs @@ -6,6 +6,13 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; +//Include a summary of what your code is intented to achieve (its purpose) +//no error handling is shown, try adding a try-catch +//outputs are not formatted, making readability hard in long lists +//doesnt check if file exists or is formatted right, just assumes +//may break if input is malformed +//use classes like TextProcessor to introduce OOP principles + namespace TestProcessing_1 { internal class Program @@ -13,7 +20,7 @@ internal class Program static void Main(string[] args) { Console.WriteLine("gimmefile"); - var z = Console.ReadLine(); + var z = Console.ReadLine(); //variable names are too short, (z, q, q) making readability hard, use names like fileName instead var q = File.ReadAllLines(z); Dictionary a = new Dictionary(); for (int i=0; i