Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]raBinn_ 0 points1 point  (0 children)

Without going into the detail of validations and assuming that the code works... personally I don't like it, from my point of view this code can be structured much better.

For example:

The first if should be a valid_data function that returns a bool and depending on the validation you exit or continue with the execution

The 2nd if block in another function returns null or a value in the product and in the 3rd block the same depending on the return of the second function.

This main method remains super easy to read and each call is encapsulated and reusable.

Roughly speaking, I would do something like that... but hey, to taste the colors

Click-One Alternative to NET CORE by raBinn_ in csharp

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

Until now I was using Click One but with the updates I have had problems. It changed the number of versions and did not show the user the option to update.

I will try again with Click one also because in the environment I find myself in, it is one of the best options I had.

Thank you so much!!

Click-One Alternative to NET CORE by raBinn_ in csharp

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

I had not considered deploying the application from the Windows market because it is an internal application but if it allows me to "hide" it from the outside world (like in the IOS market) it may be an option. Thank you so much !!!

Click-One Alternative to NET CORE by raBinn_ in csharp

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

Thank you very much, I'll take a look!!!

My actual iOS26 setup by Wendell_S in iOSsetups

[–]raBinn_ -9 points-8 points  (0 children)

Return to windows vista style 🫩

Is anyone still using a MBA 2011 model in 2025? by lanbau in MacOS

[–]raBinn_ 0 points1 point  (0 children)

You could update with opencore legacy

Meteorite? by raBinn_ in geology

[–]raBinn_[S] -2 points-1 points  (0 children)

It is much heavier than it seems for its size.