Operador tilde, esta deprecado y con pocos usos efectivos ['ESP','ENG']
Muchos de los nuevos programadores no son de indagar en el lenguaje de programación que utilizan porque es mejor ver resultados que saber que ocurre por detrás, a mí en lo personal me gusta entender que hace el código porque en el futuro puede requerir cambios más específicos.
Este operador es algo antiguo y esta deprecado porque realmente no hay usos que justifiquen su aparición en el código; parece más una función matemática inventada para un momento especifico y nada más.
Many new programmers do not delve into the programming language they use because it is better to see results than to know what is happening behind the scenes. Personally, I like to understand what the code does because in the future it may require more specific changes. This operator is somewhat old and deprecated because there are really no uses that justify its appearance in the code; It seems more like a mathematical function invented for a specific moment and nothing more.
-(n + 1)
This method fulfills the mathematical function previously written, which seems to serve no purpose other than converting negative values into positive ones and adding one to them.
Hay un caso particular en el cual este método simula a uno los métodos actuales de los arrays “includes”, en el cual podemos comprobar si el valor existe dentro de la cadena u no.
There is a particular case in which this method simulates one of the current methods of the “includes” arrays, in which we can check if the value exists within the string or not.
Bueno, según las documentaciones, el operador bitwise not, es decir, ~ definitivamente tiene usos, especialmente si tienes que trabajar manipulando bits directamente. Podrías denotar la función así: f(n) = -(n+1)
Si pero con tema de que ahora todos hacen cursos de desarrollo web para salida laboral rápida ni casi se da, por eso decía que tiene usos específicos. Puse un ejemplo en particular que se pueda entender que hace
Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.
It's interesting to learn about the reasons behind this decision and the potential implications for developers. As technology evolves, it's important to adapt and embrace more efficient alternatives that can enhance code readability and maintainability. Your post serves as a great reminder for programmers to stay updated and consider the best practices in their coding endeavors. Great job on providing valuable insights!
Thanks i like a lot learn how it works from behind the code not just npm install the new tech and create a project; i heard the github it was made it with pure javascript "without libraries or framworks" i dont know if it is true :D