Improving legibility on conditional statement
问题 I am building a HTTP server for my android device. I am using a lot of IF-ELSE statements to handle differnt requests. As I will be sharing my code with other people for later use, I will have to make it as legible as possible. Right now, I can't even read my code with ease. I think the problem comes from using a lot of IF-ELSE statements in one class. For example. if(purpose.equals("readProfile"){ ..... } else if(purpose.equals("writeProfile"){ ..... } .... I tried classifying them in