Skip to main content

Posts

Showing posts with the label ?.

Latest Post

How to Set Up Two-Factor Time-Based One-Time Password (TOTP) Authentication on iPhone Without Third-Party Apps

Unlocking an additional layer of safety to your iPhone is less difficult than you might suppose. With Two-Factor Time-Based One-Time Password (TOTP) authentication, you may bolster your device's protection and other website safety without relying on 1/3-party apps. Here's how you could set it up:

Safe Navigation Operator (?.) in salesforce

 Now we have a useful operator in salesforce to avoid the null exceptions. Use the safe navigation operator  (?.) to replace null checks. it's very useful to reduce lines of code and increase test class performance.  Before Safe Operator String profileUrl = null ; if ( user . getProfileUrl ( ) != null ) { profileUrl = user . getProfileUrl ( ) . toExternalForm ( ) ; } After Safe Operator String profileUrl = user . getProfileUrl ( ) ?. toExternalForm ( ) ; instead of 4 lines Now we can make one line for this. Code looks more  readble.