What structure, operator or other thing do you use most in your daily development?

Renan Ferro - Mar 7 - - Dev Community

Hey guys, how are you?!

Today I was developing some things and I realized that I was using something very frequently, this is wonderful because as I develop using Angular, when we have more repetition of components, for example, the better, as it becomes easier to create components and reuse structures!

In my case, I noticed that I use the Conditional (ternary) operator quite often (My heart aches to know that Clean Code indicates not to use If too often and at too high levels
🤣🥲).

Image description

Here are a simple example of the structure:

<h1 [ngClass]="titleForHomepage ? 'title-homepage' : 'title-internpage'">
  {{ title }}
</h1>
Enter fullscreen mode Exit fullscreen mode

Therefore, I'd like to talk to you and find out what you frequently use when developing?! It could be some validation structure, JavaScript operator or something else!

Share with us and let's talk!

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .