Posts by LeoColman • 191 points
4 posts
-
2
votes0
answers59
viewsQ: Where can I find the legislation/regulation/standard that defines the CPF?
I see a lot around the way to validate the CPF checker digit. I also see that the numbers 111.111.111-11, 222.222.222-22, ... are invalid and should be disregarded I also know that the ninth digit…
validationasked LeoColman 191 -
0
votes2
answers114
viewsA: Is it worth measuring performance between Java x Kotlin applications?
My personal opinion, as a very strong Java user throughout my career as a programmer, which today migrated to almost 100% Kotlin: There is no significant difference in performance. I have no data to…
-
1
votes2
answers3586
viewsA: How to initialize an array in Kotlin?
Since the question is not specifically for Int array, although it is included in the example, we create object arrays in Kotlin: val arrayOfStrings = arrayOf("A", "B", "C") val arrayOfFoo =…
-
3
votes1
answer155
viewsA: Use a Threadpool or just start a new Thread?
The allocation of Threads is a somewhat costly issue. Instantiating a new thread requires a call to the operating system and a memory allocation (each thread has its own stack). In addition to, if…