toast notifications(+) #17

Merged
mshafer1 merged 41 commits from dev/toast_notifications_plus into master 2025-02-11 04:53:56 -05:00
5 changed files with 527 additions and 2 deletions
Showing only changes of commit 65f27c7c42 - Show all commits

View File

@@ -32,6 +32,8 @@
button1 = new System.Windows.Forms.Button(); button1 = new System.Windows.Forms.Button();
tbMessage = new System.Windows.Forms.RichTextBox(); tbMessage = new System.Windows.Forms.RichTextBox();
iconBox = new System.Windows.Forms.PictureBox(); iconBox = new System.Windows.Forms.PictureBox();
progressBar1 = new System.Windows.Forms.ProgressBar();
lbTimeout = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)iconBox).BeginInit(); ((System.ComponentModel.ISupportInitialize)iconBox).BeginInit();
SuspendLayout(); SuspendLayout();
// //
@@ -40,23 +42,27 @@
tbTitle.BackColor = System.Drawing.SystemColors.ControlDark; tbTitle.BackColor = System.Drawing.SystemColors.ControlDark;
tbTitle.BorderStyle = System.Windows.Forms.BorderStyle.None; tbTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
tbTitle.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); tbTitle.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
tbTitle.ForeColor = System.Drawing.SystemColors.ControlLightLight;
tbTitle.Location = new System.Drawing.Point(54, 13); tbTitle.Location = new System.Drawing.Point(54, 13);
tbTitle.Name = "tbTitle"; tbTitle.Name = "tbTitle";
tbTitle.ReadOnly = true; tbTitle.ReadOnly = true;
tbTitle.Size = new System.Drawing.Size(683, 32); tbTitle.Size = new System.Drawing.Size(683, 32);
tbTitle.TabIndex = 0; tbTitle.TabIndex = 0;
tbTitle.MouseDown += window_MouseDown;
// //
// button1 // button1
// //
button1.BackColor = System.Drawing.SystemColors.ActiveCaptionText; button1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
button1.FlatAppearance.BorderColor = System.Drawing.Color.White;
button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Silver;
button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
button1.ForeColor = System.Drawing.SystemColors.ButtonFace; button1.ForeColor = System.Drawing.SystemColors.ButtonFace;
button1.Location = new System.Drawing.Point(759, 7); button1.Location = new System.Drawing.Point(759, 7);
button1.Name = "button1"; button1.Name = "button1";
button1.Size = new System.Drawing.Size(29, 38); button1.Size = new System.Drawing.Size(29, 38);
button1.TabIndex = 1; button1.TabIndex = 1;
button1.Text = "x"; button1.Text = "X";
button1.UseVisualStyleBackColor = false; button1.UseVisualStyleBackColor = false;
button1.Click += btnClose_Click; button1.Click += btnClose_Click;
// //
@@ -65,12 +71,14 @@
tbMessage.BackColor = System.Drawing.SystemColors.ControlDark; tbMessage.BackColor = System.Drawing.SystemColors.ControlDark;
tbMessage.BorderStyle = System.Windows.Forms.BorderStyle.None; tbMessage.BorderStyle = System.Windows.Forms.BorderStyle.None;
tbMessage.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); tbMessage.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
tbMessage.ForeColor = System.Drawing.SystemColors.ControlLightLight;
tbMessage.Location = new System.Drawing.Point(12, 57); tbMessage.Location = new System.Drawing.Point(12, 57);
tbMessage.Name = "tbMessage"; tbMessage.Name = "tbMessage";
tbMessage.ReadOnly = true; tbMessage.ReadOnly = true;
tbMessage.Size = new System.Drawing.Size(776, 213); tbMessage.Size = new System.Drawing.Size(776, 191);
tbMessage.TabIndex = 2; tbMessage.TabIndex = 2;
tbMessage.Text = ""; tbMessage.Text = "";
tbMessage.MouseDown += window_MouseDown;
// //
// iconBox // iconBox
// //
@@ -80,12 +88,39 @@
iconBox.TabIndex = 3; iconBox.TabIndex = 3;
iconBox.TabStop = false; iconBox.TabStop = false;
// //
// progressBar1
//
progressBar1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
progressBar1.Enabled = false;
progressBar1.ForeColor = System.Drawing.SystemColors.WindowFrame;
progressBar1.Location = new System.Drawing.Point(70, 254);
progressBar1.MarqueeAnimationSpeed = 1;
progressBar1.Name = "progressBar1";
progressBar1.Size = new System.Drawing.Size(718, 23);
progressBar1.Step = 1;
progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
progressBar1.TabIndex = 4;
progressBar1.Value = 100;
//
// lbTimeout
//
lbTimeout.AutoSize = true;
lbTimeout.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
lbTimeout.Location = new System.Drawing.Point(21, 254);
lbTimeout.Name = "lbTimeout";
lbTimeout.Size = new System.Drawing.Size(43, 17);
lbTimeout.TabIndex = 5;
lbTimeout.Text = "label1";
lbTimeout.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// NotificationDialog // NotificationDialog
// //
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.SystemColors.ControlDark; BackColor = System.Drawing.SystemColors.ControlDark;
ClientSize = new System.Drawing.Size(800, 289); ClientSize = new System.Drawing.Size(800, 289);
Controls.Add(lbTimeout);
Controls.Add(progressBar1);
Controls.Add(iconBox); Controls.Add(iconBox);
Controls.Add(tbMessage); Controls.Add(tbMessage);
Controls.Add(button1); Controls.Add(button1);
@@ -93,6 +128,7 @@
FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
Name = "NotificationDialog"; Name = "NotificationDialog";
Text = "NotificationDialog"; Text = "NotificationDialog";
Click += window_MouseDown;
((System.ComponentModel.ISupportInitialize)iconBox).EndInit(); ((System.ComponentModel.ISupportInitialize)iconBox).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
@@ -104,5 +140,7 @@
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.RichTextBox tbMessage; private System.Windows.Forms.RichTextBox tbMessage;
private System.Windows.Forms.PictureBox iconBox; private System.Windows.Forms.PictureBox iconBox;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label lbTimeout;
} }
} }

View File

@@ -2,6 +2,9 @@
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
using System.Drawing; using System.Drawing;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Windows.Forms; using System.Windows.Forms;
using System.ComponentModel;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
using Microsoft.Win32;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
using System.Diagnostics;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
namespace ntfysh_client namespace ntfysh_client
@@ -13,8 +16,21 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private const int ScreenMargin = 20; private const int ScreenMargin = 20;
private System.Timers.Timer? timer = null; private int _timeout = 0;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private System.Timers.Timer? displayTimeoutTimer = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private System.Windows.Forms.Timer? updateTimer = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private Stopwatch? shownStopwatch = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private ToolTipIcon? _icon; private ToolTipIcon? _icon;
private int _progress_value = 0;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private int progress
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
get { return this._progress_value; }
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
set
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this._progress_value = value;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progressBar1.Value = value;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
public bool IsVisible public bool IsVisible
{ {
@@ -34,30 +50,69 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{ {
if (this.IsVisible) if (this.IsVisible)
{ {
// close the current notification
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.handleTimeout(null, null); this.handleTimeout(null, null);
} }
// setup data
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this._icon = icon; this._icon = icon;
if (this._icon != null) if (this._icon != null)
{ {
this.iconBox.Image = ConvertToolTipIconToImage(_icon.Value); this.iconBox.Image = ConvertToolTipIconToImage(_icon.Value);
} }
alexhorner commented 2024-12-21 06:10:11 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
mshafer1 commented 2024-12-21 11:07:16 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
if (this.timer != null) this.tbTitle.Text = title;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.tbMessage.Text = message;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// setup timers
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.displayTimeoutTimer != null)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{ {
alexhorner commented 2024-12-21 06:10:16 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
mshafer1 commented 2024-12-21 11:07:29 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
this.timer.Stop(); this.displayTimeoutTimer.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.timer.Dispose(); this.displayTimeoutTimer.Dispose();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.updateTimer != null)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Dispose();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
if (timeout_ms > 0) if (timeout_ms > 0)
{ {
this.timer = new System.Timers.Timer(timeout_ms); this.displayTimeoutTimer = new System.Timers.Timer(timeout_ms);
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
timer.Elapsed += handleTimeout; displayTimeoutTimer.Elapsed += handleTimeout;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.timer.Start(); this.displayTimeoutTimer.Start();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progress = 100;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer = new System.Windows.Forms.Timer();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
updateTimer.Interval = 100;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Tick += this.UpdateProgress;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Start();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.shownStopwatch = new Stopwatch();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.shownStopwatch.Start();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progressBar1.Visible = true;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.lbTimeout.Visible = true;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this._timeout = timeout_ms;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
this.tbTitle.Text = title; else
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.tbMessage.Text = message; {
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.lbTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// ok, show the window
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2025-01-11 05:00:52 -05:00 (Migrated from github.com)
Review

Nitpick: One liner & newline

SetWindowPosition();

if (playNotificationSound) PlayNotificationSound();
Nitpick: One liner & newline ```csharp SetWindowPosition(); if (playNotificationSound) PlayNotificationSound(); ```
mshafer1 commented 2025-01-11 09:58:06 -05:00 (Migrated from github.com)
Review

applied

applied
this.Show(); this.Show();
this.SetWindowPosition(); this.SetWindowPosition();
} }
private void UpdateProgress(object? sender, EventArgs e)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.shownStopwatch == null)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
return;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progress = (int)((this._timeout - this.shownStopwatch.ElapsedMilliseconds) * 100 / this._timeout);
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.lbTimeout.Text = $"{(int)(this._timeout - this.shownStopwatch.ElapsedMilliseconds) / 1000}";
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
protected override void SetVisibleCore(bool value) protected override void SetVisibleCore(bool value)
{ {
this.SetWindowPosition(); this.SetWindowPosition();
@@ -99,12 +154,7 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private void handleTimeout(object? sender, EventArgs? e) private void handleTimeout(object? sender, EventArgs? e)
{ {
alexhorner commented 2024-12-21 05:58:07 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
mshafer1 commented 2024-12-21 10:58:32 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
if (this.timer != null) // check if the timer has already been disposed this.cancelTimer();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.timer.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.timer.Dispose();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.timer = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.InvokeRequired) if (this.InvokeRequired)
{ {
// on a background thread, so invoke on the UI thread // on a background thread, so invoke on the UI thread
@@ -159,5 +209,47 @@ namespace ntfysh_client
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
public const int AW_SLIDE = 0x00040000; public const int AW_SLIDE = 0x00040000;
public const int AW_BLEND = 0x00080000; public const int AW_BLEND = 0x00080000;
} }
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private void window_MouseDown(object sender, EventArgs e)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.cancelTimer();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
private void cancelTimer()
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.InvokeRequired)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// on a background thread, so invoke on the UI thread
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.Invoke(new Action(() =>
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.lbTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}));
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
else
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
// in the UI thread, invoke directly
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.lbTimeout.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.progressBar1.Visible = false;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.displayTimeoutTimer != null) // check if the timer has already been disposed
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.displayTimeoutTimer.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.displayTimeoutTimer.Dispose();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.displayTimeoutTimer = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.updateTimer != null)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer.Dispose();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.updateTimer = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
if (this.shownStopwatch != null)
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
{
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.shownStopwatch.Stop();
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
this.shownStopwatch = null;
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
}
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
} }
} }
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:02 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:38 -05:00 (Migrated from github.com)
Review

Nitpick: One liner? if (this.shownStopwatch is null) return;

Nitpick: One liner? `if (this.shownStopwatch is null) return;`
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:57:57 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 05:59:25 -05:00 (Migrated from github.com)
Review

What's the purpose of this override?

What's the purpose of this override?
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:00:03 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:02:43 -05:00 (Migrated from github.com)
Review

This is a great candidate for the new switch expression syntax, and then it can be turned into a lambda

private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch
{
    ToolTipIcon.Info => SystemIcons.Information.ToBitmap(),
    ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(),
    ToolTipIcon.Error => SystemIcons.Error.ToBitmap(),
    _ => null
}
This is a great candidate for the new `switch expression` syntax, and then it can be turned into a lambda ```csharp private Image? ConvertToolTipIconToImage(ToolTipIcon icon) => icon switch { ToolTipIcon.Info => SystemIcons.Information.ToBitmap(), ToolTipIcon.Warning => SystemIcons.Warning.ToBitmap(), ToolTipIcon.Error => SystemIcons.Error.ToBitmap(), _ => null } ```
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:03:45 -05:00 (Migrated from github.com)
Review

Nitpick: Lambda one liner

Nitpick: Lambda one liner
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:35 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:05:39 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter title casing without underscores

Nitpick: Naming convention is capitalised first letter title casing without underscores
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:06:34 -05:00 (Migrated from github.com)
Review

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section

Nitpick: convention is use of _ for private variables to avoid the use of this. Goes for all others in this section
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:17 -05:00 (Migrated from github.com)
Review

This appears to be set but never read outside of the progress getter

This appears to be set but never read outside of the `progress` getter
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:08:39 -05:00 (Migrated from github.com)
Review

Could this just read this.progressBar1.Value instead?

Could this just read `this.progressBar1.Value` instead?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:01 -05:00 (Migrated from github.com)
Review

Any reason we're wrapping this? Is it protected usually?

Any reason we're wrapping this? Is it protected usually?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:09:43 -05:00 (Migrated from github.com)
Review

Does this need thises?

Does this need `this`es?
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:00 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:06 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:10:24 -05:00 (Migrated from github.com)
Review

Nitpick: newline

Nitpick: newline
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:11:04 -05:00 (Migrated from github.com)
Review

Nitpick: Naming convention is capitalised first letter

Nitpick: Naming convention is capitalised first letter
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:14:19 -05:00 (Migrated from github.com)
Review

Nitpick: timeout_ms should be timeoutMilliseconds

Nitpick: `timeout_ms` should be `timeoutMilliseconds`
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:07 -05:00 (Migrated from github.com)
Review

immediate?

immediate?
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
alexhorner commented 2024-12-21 06:16:43 -05:00 (Migrated from github.com)
Review

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.

I try to rename my elements to match the TitleCase naming convention. Not a major one, just a nice-to-have. I appreciate this isn't consistent within the application anyway.
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 08:42:00 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:07:45 -05:00 (Migrated from github.com)
Review

I'll change the comment to better explain the desired intent

            // don't animate, immediately "close"

rationale:
if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).

I'll change the comment to better explain the desired intent ```suggestion // don't animate, immediately "close" ``` rationale: if a user click the x button, they expect the window to go away "now". My observation is that general Windows users are about 50% split on whether a going away animation in response to telling a window to close is annoying or "fine" (and only a few people "prefer it"). Because of this, I intentionally implemented the button close handler to immediately close the pop up (don't animate, and don't wait for the timeout).
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 09:10:55 -05:00 (Migrated from github.com)
Review

I think this is just left over from my first attempts at getting the animation to work.

I think this is just left over from my first attempts at getting the animation to work.
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:42 -05:00 (Migrated from github.com)
Review

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).

I went through and attempted to add a blank line before every if statement that was not the opening statement of the parent scope (and if preceded by a comment, the blank line went before the comment).
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:57:52 -05:00 (Migrated from github.com)
Review

changed

changed
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:58:24 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 10:59:02 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:02 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:11 -05:00 (Migrated from github.com)
Review

updated

updated
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:00:17 -05:00 (Migrated from github.com)
Review

swapped

swapped
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:37 -05:00 (Migrated from github.com)
Review

removed

removed
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:04:52 -05:00 (Migrated from github.com)
Review

yes, I originally thought there would be more to the setter. Removed.

yes, I originally thought there would be more to the setter. Removed.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:05:59 -05:00 (Migrated from github.com)
Review

Not in the end. Removed. (I had originally though the UI would be .SetInfo(...); .Show() or something, but the way it is now has a better expandability and doesn't use this.

Not in the end. Removed. (I had originally though the UI would be `.SetInfo(...); .Show()` or something, but the way it is now has a better expandability and doesn't use this.
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:22 -05:00 (Migrated from github.com)
Review

no, that's just what style I was used to back when I last worked in C# (removed all)

no, that's just what style I was used to back when I last worked in C# (removed all)
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:06:56 -05:00 (Migrated from github.com)
Review

This got changed to timeoutSeconds to deal with corresponding comment in MainForm.cs

This got changed to `timeoutSeconds` to deal with corresponding comment in `MainForm.cs`
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:20 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:23 -05:00 (Migrated from github.com)
Review

I added a blank line before the if statement

I added a blank line before the if statement
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:07:45 -05:00 (Migrated from github.com)
Review

heh, wonder where that style came from...

heh, wonder where that style came from...
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:09:41 -05:00 (Migrated from github.com)
Review

settings dialog is using camelCase for everything....

I think the Pep8 guidance that "consistency within a file is most important" is a good point here.

I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.

settings dialog is using camelCase for everything.... I think the Pep8 guidance that "consistency within a file is most important" is a good point here. I opted to make the new things in SettingsDialogue always use camelCase, but changed the NotificationDialogue be TitleCase.
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
mshafer1 commented 2024-12-21 11:10:10 -05:00 (Migrated from github.com)
Review

renamed

renamed
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
alexhorner commented 2024-12-21 18:57:21 -05:00 (Migrated from github.com)
Review

@alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style?

So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.

> @alexhorner, is there a linter tool or editor config file that I can setup to check code against the desired style? So typically I use Rider (alternatively Resharper) whilst working and it picks out most of these things. As far as I know, what it works on is the microsoft standard convention, so I just use that as it's pretty universal and sensible.
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).
mshafer1 commented 2024-12-23 15:14:39 -05:00 (Migrated from github.com)
Review

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).

I installed an ran the Rider ide and looked through for additional style changes (and applied the ones that didn't seem to conflict with the previous comments).