sir, why do i need to append since i could just go and re-write or add what ever addition i needed to add to the code which is more easier, why the stress of appending?
@itbasicsondemandАй бұрын
This is a very good question! When we develop applications, a few things we keep in mind are: we are not developing for ourselves, we also want our codes to be maintainable, we want to automate processes and make it easy for us as developers to take off the monopoly of using the application. In most cases, we don't know the entire list of whatever we are dealing with. For instance, the employees in an organization keep growing, you don't know that list ahead of time, and you don't want to continually modify your code directly to add a new employee, hence, we provide an interface to do this. Appending allows you to add new elements to a list without altering the existing content, making it useful for preserving data and maintaining sequences. It's efficient and simpler to implement compared to rewriting or inserting elements, which can be more complex and error-prone. Appending supports dynamic growth, which is essential when dealing with data of unknown or variable size. I will answer this question in detail in a video. Please, remember to turn on your notification bell after subscribing to the channel, that way, you get notified when new videos are released. Thank you!