FestivalDelGelato
FestivalDelGelato
CC#
Created by LastExceed on 1/21/2025 in #help
When should/shouldn't I split off code into a separate lib project?
rather than start immediately worrying about - IDE performance - compile time - binary size - runtime performance i would first analyze the designing part if a project/library is isolated it means it is a dependency, so it has a version, so it is to maintain in all these aspect, which could be a good thing or a bad thing it depends how many libraries there are, how many people will maintain it, and so on, so i would complete a general study on that and then take decisions
76 replies
CC#
Created by João Paulo on 1/17/2025 in #help
Windows Forms
i may be wrong but i think that's because of the appearance of the buttons maybe touching the borders could 'adjust' this a little
12 replies
CC#
Created by iskander on 12/28/2024 in #help
✅ how should I deal with common/similar data types between the backend and front?
the issue here is it's not clear what ShopItemDTO is being used for because if it's a creation model, for example, it shouldn't have an id if it's a viewing model maybe you don't want to give all the fields or maybe you want to add more fields that could be useful like an image so it could be useful to have a shared abstract class (or even interface) for some 'core' fields, but most probably there will be fields dedicated to the specific feature
12 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
no
218 replies
CC#
Created by glacinefrox on 12/25/2024 in #help
✅ c# websocket i want to disable utf8 validation on `WebSocketMessageType.Text`
yeah i don't believe you can change encoding, utf-8 is probably the standard for the protocol
63 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
so it's not structured data
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
wouldn't it make more sense to compare json for example don't know which data you have but still..
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
bunch of reason, security for example, people shooting themselves in the feet, compatibility between versions i believe also
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
(simplest way would be compiling for .net 7, although i wouldn't call it a 'solution')
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
if you want to use unsafe context, get a pointer, and then write the size of the object, i believe you can if you really wish to do so (to a limited extent) (keeping in mind this should not be used in a production environment, BinaryFormatter has been removed for a reason)
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
consider there's to write the address/name of the fields, loops because there will be arrays, eventually types signatures if you used generics, and so on (nested types, whatever)
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
it's not human readable, so good luck to find the structure of the data again if there's a bug in the algorithm that writes it
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
you can take all the private fields of an object and write them in a file (and then do the reverse procedure when reading the file), but it's risky because if you screw up something then data is unreadable, and also if framework gets updated that data is unusable
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
you could even just zip a json
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
that's a list too long to know, there are too many you could even write your own
218 replies
CC#
Created by Tracer on 12/25/2024 in #help
Serialize HashSet into a binary file
you have to choose a binary format, bson for example
218 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
i think you worry too much, anyway i doubt number of objects would make a difference
14 replies