clean-code tag

3 questions


1 answers
90 views
0
Which is better, using multiple overlapping functions or using them one by one?

id = camelCase(toParse( upper(id) ));Is this better?id = upper(id);id = toParse(id);id = camelCase(id);Is this better?I only did three right now. On the premise that the overlap can increase further a...


2 answers
118 views
0
What are the criteria for creating methods in the class?

Is it better to write a method and function from the top and have an api function that has a lower stack as you go down? Conversely, is it better to write an important api function first and put it at...


2 answers
88 views
0
Can I change this code more concisely?

try { if (!videoFile.exists()) { videoFile.createNewFile(); } } else { videoFile.delete(); videoFile.createNewFile(); } if (!cnFile.exists()) { cnFile.createNewFile(); } } else { cnFile...

2 years ago

© 2024 OneMinuteCode. All rights reserved.