Work structure | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Work structure

One question on work structure: i have a working method and need to upgrade the code to integrate a new aspect. Do I change the function and integrate it or do I write a check and a second method? (I had recently a lot of trouble with the first procedure ;-) )

4th Sep 2020, 5:49 AM
Stefan Nohn
Stefan Nohn - avatar
1 Answer
+ 3
u could make a wrapper: a 2nd function with new aspect that calls first one.
4th Sep 2020, 6:23 AM
Oma Falk
Oma Falk - avatar