surwren
Explore posts from serversDeployment vs production environments
I am preparing for a .NET role and am wondering what some configurations/setups/tools I can look up or prepare for?
For context:
The company is using .NET and Azure. Development is done via login to a VMware portal (IDE and environment are setup inside said VM) and there are a series of CICD tools facilitating any code pushes within said VMware portal.
What deployment/production configurations or tools should I look into?
3 replies
What are some tools or methods for debugging microservices?
I am considering a microservices developer role and was wondering what some tools or strategies to debugging microservices are.
My friends told me to 'just do monolithic', but there has to be a way right? Not everyone uses monolithic and microservices are good job experience?
13 replies
✅ "Legacy Versions" of C# or .NET?
As per title, I was wondering what would be considered legacy stacks when looking up companies.
I am aware of what the Java equivalent tends to be (Java 6-8, JSP, etc) but I am unfamiliar with what indicators there are for legacy C# or .NET stacks in the industry. Is anyone able to provide some insight?
17 replies
How to check bandwidth of websocket connection?
As per title. I'm currently using websocket-sharp, but I'm wondering if there is a universal way to do it.
I am thinking of sending 5 * 30 fps data (so basically 150 fps) and don't know if my websocket connection can handle it.
4 replies
❔ The view 'GetModel1' was not found
Why is this happening?
I'm trying to call an async method (GetModel1) to access an api endpoint, which should then return the desired value to the view.
Code is as follows:
HomeController.cs:
Code for razor view:
13 replies
ASP storage use cases
So I'm aware there are several places to store data, which I will list as follows:
Serverside (application):
Sessionstate
AddSingleton
AddScoped
Clientside:
Cookies
LocalStorage
SessionStorage
I was wondering where specifically each of these 6 would be used, particularly for sessionstate, singletons and scoped?
13 replies
Why won't the second try-catch block propagate an overflowexception?
When anything over 2.147b is entered for the first try-catch block, it successfully automatically throws (and then catches) an overflowexception.
It does not need
But when anything over 2.147b is entered into the console for the second try-catch block, it does not automatically throw the overflowexception. Instead, it throws a formatexception.
The second block needs
to throw overflow. WHY?
Code below:
6 replies
When to use Null Forgiving (!) vs Non-Nullable casts
In this example, n needs to be cast from int? to int
My question is why null forgiving (!) syntax does not seem to work (new int[n!];] and where null forgiving syntax would actually be applicable.
112 replies
Casting and output
So take a basic example like
If you take the (double) cast out from num1, avg won't reflect the decimal point.
Is there a google keyword I can search for more information on how to ascertain that my numbers will be reflected as I would like them to be?
3 replies
Need help understanding lambda statements and delegates
I'm extremely confused about the syntax and it's hemorraging my ability to work on other stuff (LINQ, middleware)
How do I even begin comprehending the syntax? I keep rereading the MSDN documentation and watching youtube videos and nothing makes sense
198 replies
Which .NET, ASP and ADO BCL classes implement the IEnumerable interface?
Is there an exhaustive list or any other way to iterate through each of the three BCLibraries to identify which classes implement the IEnumerable interface?
AFAIK only List<> and arrays implement IEnumerable, but I'm curious which others there are
6 replies
Assigning Lambda to Delegate (PurposesReason)
Based on my (possibly incorrect) understanding, delegates are the variables to which lambda expressions are assigned.
https://stackoverflow.com/a/73819
Also based on my understanding (possibly incorrect), assigning a lambda to a delegate in this way makes it possible to pass said delegate/lambda expression into another method as an input parameter.
My question is, what are the advantages of passing lambda logic into other method with delegates?
Is it solely to promote reusability of code?
Or are there other advantages to it?
8 replies
[ASP.NET] Trying to understand the [HttpGet] and [HttpPost] tags
I understand that the tag is used to provide precedence to one action method over another where same URL is matched.
However, I notice that tagging a method with [Http..] invalidates access via normal <a href> links.
For example, this would NOT work
Whereas these two would work:
In this case, I am wondering if it is still good practice to leave methods untagged so that they can be called via <a href> buttons? Or could this pose any security issues?
23 replies