Hoy pude volver a retomar mis estudios en este lenguaje de programación y a pesar de ser un poco desorganizado mi estudio me centro en hacer proyectos con tutoriales de YouTube para captar más rápido lo que necesito aprender. En el tutorial que estuve viendo me encontré que hay muchas maneras de capturar componentes dentro de pantallas y utilizarlos dinámicamente ya sea para establecer nuevo contenido o modificar el existente.
Today I was able to resume my studies in this programming language, and despite being a bit disorganized, I'm focusing my studies on projects with YouTube tutorials to more quickly grasp what I need to learn. In the tutorial I watched, I discovered that there are many ways to capture components within screens and use them dynamically, either to create new content or modify existing content.
Este método funciona como una especie de variable global que encierra a toda la aplicación y permite iterar a través de cada componente por su identificador tal cual como si fueran objetos nativos lo cual me resulta muy práctico y fácil de trabajar.
This method works as a kind of global variable that encloses the entire application and allows you to iterate through each component by its identifier just as if they were native objects, which I find very practical and easy to work with.
Me asesoré con inteligencia artificial para ver cuál es la diferencia entre trabajar a la manera antigua con respecto a este nuevo método que descubrí y la diferencia son pocas. En términos simples la manera clásica no requiere configuraciones extra pero en proyectos muy escalables se vuelve tedioso de mantener y los errores suelen aparecer cuando la aplicación ya está generada caso contrario con este nuevo método si se elimina algún archivo de manera errónea el error aparece en el momento de desarrollo y se evita que la aplicación produzca problemas una vez instalada en el celular.
I consulted with artificial intelligence to see what the difference is between working the old way and this new method I discovered, and the differences are few. In simple terms, the classic method doesn't require additional configurations, but in highly scalable projects, it becomes tedious to maintain, and errors often appear when the application is already generated. Otherwise, with this new method, if a file is accidentally deleted, the error appears during development, and the application is prevented from causing problems once installed on the phone.