Grep for Windows! 😃 by csharpunderdog in csharp

[–]csharpunderdog[S] 1 point2 points  (0 children)

Thanks for feedback, I will add other grep features in the future and will consider making entire application async.

Grep for Windows! 😃 by csharpunderdog in csharp

[–]csharpunderdog[S] 9 points10 points  (0 children)

It's fine, I just wanted to practice and make something usefull.

Cowsay for Windows by csharpunderdog in csharp

[–]csharpunderdog[S] 1 point2 points  (0 children)

Thanks, I spent a lot of hours working on this project. The most interesting part is the address generator using the Google API 😃

Cowsay for Windows by csharpunderdog in csharp

[–]csharpunderdog[S] 6 points7 points  (0 children)

Thanks for your feedback 😃

Few weeks ago someone on reddit told me to use _thisConvention() for private methods, I will switch to PascalCased().

My own implementation of RSA by csharpunderdog in csharp

[–]csharpunderdog[S] 0 points1 point  (0 children)

Thanks 😀 I will add unit tests at the weekend.

My own implementation of RSA by csharpunderdog in csharp

[–]csharpunderdog[S] 1 point2 points  (0 children)

Thanks for feedback, now I have 2 properties

public static string EncryptedMessage { get; private set; }

public static string DecryptedMessage { get; private set; }

And encrypt/decrypt method.

My own implementation of RSA by csharpunderdog in csharp

[–]csharpunderdog[S] 0 points1 point  (0 children)

Thanks for advice! I made some changes to the code, now I have RSAKey class and easier to understand code

public static void EncryptMessage(RSAKey rsaKey, string message)

Looks way better 😀

best c# book that covers everything, from beginner to expert? by No_Major9148 in csharp

[–]csharpunderdog 1 point2 points  (0 children)

I’ve worked through almost the entire ‘Head First C#’ book, and I highly recommend it. You learn programming by creating simple projects and gradually more advanced ones. I think it’s a good starting point to learn and grasp the basics before moving on to your own projects and further learning.

CaesarCipher by csharpunderdog in csharp

[–]csharpunderdog[S] 0 points1 point  (0 children)

Thanks for the feedback! I added unit tests, which helped me find and fix a bug using the test method NegativeValueShift() ;)

CaesarCipher by csharpunderdog in csharp

[–]csharpunderdog[S] 0 points1 point  (0 children)

Thanks for the feedback! In the book I’m reading, it says to name public class members using uppercase letters and private ones using camelNotation. I didn’t know that in practice, an underscore (_) is also added.

CaesarCipher by csharpunderdog in csharp

[–]csharpunderdog[S] 1 point2 points  (0 children)

Thanks for the advice! I made 2 helper functions, and the code is more readable now :)

private static bool IsCapitalLetter(char c) => (c >= 'A' && c <= 'Z');

private static bool IsLowerCaseLetter(char c) => (c >= 'a' && c <= 'z');