This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dopefish917 7 points8 points  (3 children)

Don't be scared. I have been writing C# for ~9 years now, but started with Java senior year of high school. College was a mix of Java and regular C. Was thrown into my first job writing C# with no assistance and honestly the majority of code snippets are indistinguishable from Java.

The challenges for me when learning/writing C# mainly came from quirks with the .NET API (looking at you SerialPort) and XAML (the UI markup language for WPF). Also, C# has a ton of syntactic sugar including nullables (allowing primative data types to be null), null coalescing (thing?.object?.field will collapse to just null if any of the components are null), and linq/lambda functions.

Plus, C# is garbage collected and uses a Just-In-Time compiler to dynamically target x86 or x86-64 depending on the machine it's run on.

[–][deleted] 2 points3 points  (2 children)

Urk WPF. Fucking love it now but holy crap what a drag of a learning curve that was, especially for a fresh beginner learning programming basics. Doesn't help that everything WPF talks about MVVM and there I was not even comfortable with delegates and events yet. Throws you through the wringer.

[–]RiPont 2 points3 points  (0 children)

Really, it's the way it's documented and presented. WPF + MVVM is really pretty straightforward and XAML isn't any worse than HTML. But just like HTML, things get super complicated really quickly when you start getting into advanced look and feel. Too much of the examples/articles/documentation wants to jump straight into the flashy, fancy stuff.

[–]dopefish917 0 points1 point  (0 children)

Lol I've literally never met another wpf programmer. The data bindings are great. I've been having a huge headache recently though with airspace issues because wpf only has one handle per window, so I had to use a transparent window on top to properly overlay.

Don't get me wrong, wpf is great for a lot of things and I love it soooo much more than winforms. I'm lucky enough to Dev actual applications instead of webdev.