« first day (3853 days earlier)      last day (1081 days later) » 

12:00 AM
Our country has plenty of good five-cent cigars, but the trouble is they charge fifteen cents for them. (source)
 
 
5 hours later…
4:56 AM
nods off
 
 
3 hours later…
Zoe
8:18 AM
2 messages moved to Trash can
 
9:02 AM
is it ok if I catch a 'checked' exception and throw an 'unchecked' exception ?
like if I catch an 'IOException' I will throw a RuntimeException instead
like this
try {
// sumthing that will throw IOException
} catch(IOException e) { throw new RuntimeException(e) }
 
Zoe
Free country. There's some times reasons not to throw at all, but it really depends on your program
 
9:20 AM
ok thanks for the insight
Actually im just fixing some issues by third party software that will check our codes for vulnerabilities
 
keep in mind that if you want to fix those, you actually have to fix them
 
theres like a thousand issues under 'Overly broad throws' where in codes that just throws Exception
 
you cant just say "oh, it wont be able to detect the vulnerability if I put a comment above it, so I 'fixed' it by placing the comment above it"
 
Zoe
Overly broad throws isn't a security vulnerability tho
 
^
it is a code smell though, and often bad practice
 
9:22 AM
its under bad practices I think
 
but you should fix it by providing a custom class that describes your purposes
 
^ I initially thought of this
 
replacing one generic exception type with another generic exception type wont really fix it
 
dude the code im touching is like 14 years old now
Theres some class that if I change the exception, I will have to change bunch of classes as well
 
true
perhaps you shouldnt look for code smells in a 14 year old project then
/shrug
 
9:27 AM
¯\_(ツ)_/¯
 
Im working on a project of a certain government
and they require to have this issues resolved before PROD deployment
 
i see
 
 
6 hours later…
3:32 PM
solves P vs NP
 
 
6 hours later…
9:32 PM
doodles
 

« first day (3853 days earlier)      last day (1081 days later) »