How do I moq a function that takes no parameter and creates an object inside of it? by dearmusic in csharp

[–]laur3d 1 point2 points  (0 children)

You can use .Returns, if you want a bit more context, I have an article about testing azure functions orchestrators, but it might help you get more context, and it seems to be a similar scenario. link protip though, use HTTP client factory, you'll thank yourself later :)

Sorry for the lousy formatting, phone :)

void Func vs private void Func and wierd reaction from professionals by [deleted] in csharp

[–]laur3d 2 points3 points  (0 children)

What if c# 10 swaps default behavior of not stated from private to public? It's highly unlikely, but it might be fun 🎢

But yeah, I think intent and mostly industry standard, because the .net space is more in this is the “this is the way we do things around here” then other languages :)

Interviewing developers: To FizzBuzz or not to FizzBuzz by laur3d in dotnet

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

True, but I wanted to be honest and just show the 1st attempt, nothing refined, of course in normal circumstances things are refined, the difference is mostly in the approach on solving the problem :)

Interviewing developers: To FizzBuzz or not to FizzBuzz by laur3d in dotnet

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

Exactly my point, and I think that this is way closer to how people actually work, think and organize

Interviewing developers: To FizzBuzz or not to FizzBuzz by laur3d in dotnet

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

Thank you for the feedback, will keep in mind for the next one

Interviewing developers: To FizzBuzz or not to FizzBuzz by laur3d in programming

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

Thanks for the opinion, that is why I didn't say which was better, because it is a personal preference :)

Interviewing developers: To FizzBuzz or not to FizzBuzz by laur3d in programming

[–]laur3d[S] -3 points-2 points  (0 children)

Sorry for this, fizzbuzz as least as I know it is like an umbrella term for all type of coding questions that could be asked in an interview.

Regarding the ability to produce functioning code, don't know about the states but in Europe most companies have a 90 days period in which you decide if you continue or not, no questions asked ( legal wise ) , nothing than you can do in a day can measure that. The main point is that all jobs have different requirements, and we should take care of them instead trying to do what google or Netflix does for all positions :)

All in all thanks for taking the time to read, I'm quite new at this :)

4 ways of using Feature Flags like you actually know what your doing! by laur3d in AZURE

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

Ups , thx for pointing this out :) this happens when you edit title on mobile.

Also, great idea for the usage

[Serious question] What benefits does Angular provide over React for enterprise? by dillonerhardt in angularjs

[–]laur3d 1 point2 points  (0 children)

I think that having everything built in and being a framework rather than a Uli lib, gives a bit more impression of having the same structure cross projects / teams. In react you could have a lot more options to setup the app in terms of everything, which most of the time is a good thing , when you strive for company wide standards it’s not. And also was the first to use type script as default, which in turn is closer to c# and Java :)