-
How to wait for a reactive vue component like tooltip ?
How to wait for a reactive vue component like tooltip ? That`s a tricky one, especially while everything is rendered dynamically and we really need to know where to look… or how to wait… Testing asynchronouse components Vite waitFor Wait for the callback to execute successfully. If the callback throws an error or returns a rejected promise it will continue to wait until it succeeds or times out. Vite waitUntil This is similar to vi.waitFor, but if the callback throws any errors, execution is immediately interrupted and an error message is received. If the callback returns falsy value, the next check will continue until truthy value is returned. This is useful…
-
!! operator in vue components
!! operator (double negation) transforms values into boolean values. This ‘!!’ operator converts any value to TRUE if it’s “truthy“, meaning it’s not a falsy value (such as false, 0, empty value, null, undefined, NaN), otherwise it converts to FALSE. !! operator examples : For example, if you have a variable myVar, and you want to check if it’s “truthy” or “falsy”, you can do it using the !! operator like this: Another example is when the !! operator helps to validate any optional variables. Somethimes we really have no idea what we will get, this can vent some issues if we need to check for a truthy or falsy…
-
Locality of Behaviour
Locality of Behaviour is a great principle that should help with maintaining the code. This is the characteristic of the code that enables a developer to only read a small portion of code to understand its function. Without the need to skip, skim, read, jump all over multiple files. I love that rule cause it DOES MAKE SENSE. I can see many places where we would benefit from it but not always do it that way because of the ‘standard’. Which, in the end, nobody knows what it is anymore cause everyone is mixing patterns, antipatterns and the number one performance metric is how fast you can deliver… maybe i…
-
Scala pipe operator “|>”
Scala pipe operator “|>” passes the result of the left side to the right side method/function as the first argument. t is, one might argue, “yet another arrow”, that provides “something” to be put “somewhere”. This is absolutely true but in addition it provides readability. Scala pipe operator “|>” source code It is just a simple fancy looking generic function : IThis operator shines if Your code at least tries to follow rules written down by Uncle Bobo and his clean code mentality. This allows you to chain function calls in a more natural left-to-right order, which can sometimes be more readable than nested function calls. Just don`t get overboard…
-
Commonly used sentence in AI NLP speech recognition ?
The commonly used sentence in AI NLP speech recognition is The quick brown fox jumps over the lazy dog AI for everyone The curiousity about that particular sentence is that it containes every letter in the alphabet, from A to Z. It is also called a pangram or a holoalphabetic sentence. Uses every letter of a given alphabet at least once. Pangrams serve various purposes as showcasing typefaces, testing equipment, and honing skills in handwriting, calligraphy, and typing.
-
How to set empty array in dijon using scala
There is a simple method that allows to set empty array in dijon and You will not find it on the main page of dijon repository. dijon.`[]` This is actually a byte array in the end. Oh… and remember that jsoniter will by default remove the empty variables on any kind of DTO when serializing …












