Omnissiah
Omnissiah
CC#
Created by on 11/21/2024 in #help
Null check
really i use is not <type> rather
12 replies
CC#
Created by on 11/21/2024 in #help
Null check
but mostly is int and .HasValue nowadays i believe
12 replies
CC#
Created by on 11/21/2024 in #help
Null check
i use all three tbh
12 replies
CC#
Created by on 11/21/2024 in #help
Null check
you could also use if (maybe.HasValue) {}
12 replies
CC#
Created by The Fog from Human Resources on 11/15/2024 in #help
How and what to Test
you could have low level single class tests up to high level integration tests, but i mean if you want to learn on the argument if you look maybe not courses but even only introductory videos at least you would have some basic knowledge about it
14 replies
CC#
Created by Lupusregina Beta on 11/6/2024 in #help
Control getting resized when adding to FlowLayoutPanel
if all controls are of the same size tbh even a TableLayoutPanel would do you just put 1 column, set autoscroll, then you just tlp.Controls.Add(new YourUserControl())
4 replies
CC#
Created by nullpointer on 11/11/2024 in #help
how to delegate on static method
eh one should know some stuff about godot
3 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
if SqliteConnection is in a microsoft package are you sure it's not already managing a connection pool for you? there should already be doc somewhere to do this
25 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
i would wager GC is pretty stable at this point
25 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
at this point the ball falls in sqlite's court
25 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
my fault, i remembered wrong from a discussion here not much time ago
25 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
Lazy<T> is no thread safe, it has a parameter in the constructor for that either that or you put a synchronization primitive in the lazy method but even before that i would in general reconsider using lazy or in general having db in multiple threads like, do you really need this, are you sure
25 replies
CC#
Created by Jasonnn on 11/12/2024 in #help
Threading and Microsoft.Data.Sqlite
can you print thread id inside QueryDatabase? i'm not actually sure this is using that many threads
25 replies
CC#
Created by candrd on 11/11/2024 in #help
✅ Separate C# Dll
ok but that looks to me like you have to split the code in two dlls, one that doesn't change and is verified by ingenico and the other which is update more often you would have to find a way to make them communicate tho
58 replies
CC#
Created by L150X on 11/10/2024 in #help
Overlapping sounds with mediaplayer?
i think you either have to go slightly lower level and use winmm PlaySound or you make your own mixing system (or use a third party system), i am not sure you have another choice
25 replies
CC#
Created by surwren on 11/8/2024 in #help
Refactoring Similar Network Requests
how much to refactor also depends from what are you building
93 replies
CC#
Created by surwren on 11/8/2024 in #help
Making Concurrent API calls Asynchronously (Is this Correct?)
this is ok (although you could use var)
HttpResponseMessage response1 = await task1;
HttpResponseMessage response2 = await task2;
HttpResponseMessage response1 = await task1;
HttpResponseMessage response2 = await task2;
but then this calls are in sequence...
var responseJsonList = new List<JObject>
{
await ProcessServerResponse(response1, userInfoUri),
await ProcessServerResponse(response2, getUserInfoUri)
};
var responseJsonList = new List<JObject>
{
await ProcessServerResponse(response1, userInfoUri),
await ProcessServerResponse(response2, getUserInfoUri)
};
12 replies
CC#
Created by Manu on 11/8/2024 in #help
Pokemon Game SRP
also i believe it depends on what the rules for taking damage are
23 replies
CC#
Created by surwren on 11/8/2024 in #help
What is the quickest way to copy API structures (headers, payload, response) from browser inspector?
wait, you have their swagger json?
9 replies
CC#
Created by Wrenpo on 11/5/2024 in #help
Safely getting a result from a async method within a sync method
good luck i guess
37 replies