« first day (4492 days earlier)      last day (456 days later) » 

2:42 AM
Funny type: HashSet<DbNull>
 
 
1 hour later…
mr5
4:11 AM
TIL: Apple uses Kotlin to build their Xcode Cloud
 
mr5
4:56 AM
They said, code refactoring is good every time you work on a feature or bug fixes.
At the same time, they said, you should only submit pull/merge request with little code changes.
But code refactoring would produce a lot of changes so it seems this two guidelines is contradictory.
 
 
2 hours later…
7:02 AM
Good moaning
 
 
1 hour later…
8:07 AM
good morning
 
 
1 hour later…
9:25 AM
> hey said, code refactoring is good every time you work on a feature or bug fixes.
nope
dont refactor and introduce/remove stuff
separate refactoring from other stuff
a good refactor has no behavioral changes, your tests have to assert that no behavior changed
while when working on features or bug fixes, you intend the behavior to change
 
9:50 AM
 
 
2 hours later…
12:17 PM
refactor is usually necessary on legacy code to begin with. I think that is predecessor to work on new features / bug fix. This part still doesn't modify the behavior. But the new reader able to read the code
 
12:57 PM
'sup
 
1:43 PM
Hello All: Monning
ExcelUtlity obj = new ExcelUtlity();
System.Data.DataTable dt = ConvertToDataTable(ProductPriceList);
I'm exporting the datagrid to excel, exporting to excel works the changed values inthe datagrid not updated in the file. What should i need to do? thanks
 
2:37 PM
Please ignore my message, fixed it with UpdateSourceTrigger=PropertyChanged.
 
3:13 PM
Can 500 Error Code is considered as generic/unknow error? I need to show one HTTP Status Code error for any unknown error/generic error caused at try catch .
 
sure
500 means "something went wrong, but we cant tell you how to solve it, either retry or wait for feedback from the devs"
 
Is it good approach in that case to provide only exception message without status code in API failure response.
 
you may or may not want to share exception messages to end users
it might have sensitive data
 
No sensitive data, I am already showing exception message.
 
> SqlException: Login failed for user 'admin' and password 'welcome2023'.
 
3:22 PM
I got it .
 
generally speaking, I always use a special model containing a few useful properties:
- errorCode (a code that is unique per error type)
- errorMessage (a description of what went wrong)
- (some linking data to reference other resources so it is easier to see what the error related to)
if you see the service is returning 500 errors, then you should look at the logging to see what the issue is, not the output of the service
keep in mind that when a user gets a 500 error, you also need to be able to see that something went wrong without having to ask that user to send you the response they got
 
500 also means Internal Server Error, My only concern is when i use 500, Web page always showing as Internal server error unlike Unknown Error/Something Went Wrong with HTTP Request
I handled almost 10 HTTP Status codes specifically , but when it comes to inside catch before final block, I am confused to use 500 error code or something that makes sense to client
 
4:23 PM
Hello all,
AutoMapper question:
Can I reference a map from a profile in another?
A very direct question that seems easy to solve, but I didn't get any help from my Google-ing!
 
[Hector] sup
[Hector] today I'm bringing you guys a weird question
[Hector] Should I sanitize a desktop app's textbox?
[Hector] But before you say "yes of course you dumb fuck", listen up
[Hector] this is a text box that has a path in it. All I'm doing is, if the path exists, I will set it to the installation path. if it doesn't exist, it warns the user to select a correct path for installation
[Hector] you literally get to select the path from the default windows path selection dialog, but I also give the user the option to copy-paste and it gets validated, because it has to point to the right place
[Hector] Snyk is complaining this is some sort of high level arbitrary code execution leak/arbitrary path discovery check
[Hector] I mean, it's not mistaken, but how is it going to help someone to enter a path in their own PCs and discover if that exists
 

« first day (4492 days earlier)      last day (456 days later) »