arion
way to check if a string contains only alphabet
Regarding what the best way to do so is, that well, it depends.
Is your interpretation of "best" speed? memory usage? how many lines of code?
Linq is nice on the lines of code but there are memory implications and it might not be the fastest.
You can try to write your own implementation to try to beat System.Linq's
.All
5 replies
Any WPF Guides?
Hope I can bring some insight here. I'd recommend that during your exploration that you not use AI assisted coding tools, in many cases during learning they can hurt your experience
To get to mvvm, it's basically a separation of concerns, to prevent spaguettification of code. You don't need your systems so intermingled that you can't see a difference anymore.
View in its basic form is the UI (User interface) or the UI layer (some code that gets used by the UI)
The model is a bit complicated since it encompasses many things but basically it's something that isn't connected to your UI. Ideally it's something like a DTO.
View Model in its basic form connects well, the view and the model. It's the code that makes the model compatible with the UI, most of your app's code should live in these (except of course the XAML)
Try looking at other people's projects that use MVVM and had a lot of stars on their GitHub (I'm hoping that many stars means they use MVVM correctly)
12 replies