Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion TestProcessing-1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@
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
{
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<string,int> a = new Dictionary<string,int>();
for (int i=0; i<q.Length; i++)
Expand Down