DΣX
How do I go about making a project in c#?
assuming you know c# already, start looking into the mvvm pattern, then get familiar with WPF as a ui-framework (its tmk still the most stable one)
When you want to work with another framework later on, it won't be hard to switch on the next project, as many also use xaml.
when you educated yourself on these two, and feel ready to start any project, make yourself a little design for the frontend you want to have. (make an actual drawing with paint, visio, drawio or similar. just a scribble is good enough)
and then just start building it.
the rest will come along the way
13 replies
Trying to learn how to use return variables, is this a good practice exercise?
in fact it also helps when adding strange if else blocks that are sometimes making the methods harder to understand
so instead of
you can write
ps: i know these are simple cases and especially the first one can be written soooo much shorter. these are just meant to be an example
12 replies
Trying to learn how to use return variables, is this a good practice exercise?
i try to keep my methods short.
but when i have the need for a result, i call that variable 'result'
in fact when i start writing a method it became a standard pattern to write this
and then just add modifications to result between the initialization and the return
this way you will have a valid result no matter what
12 replies
Why does this require a cast?
ok just wanted to point out :
null != true and null != false and true != false
the nullable bools has exactly 3 possible values, and if you compare against one, the others are false. and if you compare against "not one" there are 2 positive results (just negated).
whichever one it is
23 replies