DORSETRIGS
Home

comparator (7 post)


posts by category not found!

Why do we use the new operator to access the nested static class in Java?

Understanding the Use of the new Operator for Accessing Nested Static Classes in Java In Java classes can be defined within other classes resulting in the conce

2 min read 20-09-2024 43
Why do we use the new operator to access the nested static class in Java?
Why do we use the new operator to access the nested static class in Java?

Comparison in Kotlin

Understanding Comparison in Kotlin A Comprehensive Guide When programming in Kotlin a common requirement is the ability to compare values Whether you are checki

2 min read 15-09-2024 56
Comparison in Kotlin
Comparison in Kotlin

Using Comparable for multiple dynamic fields of VO in Java

Sorting Value Objects VOs in Java with Dynamic Fields A Practical Guide Imagine you re building a student management system You need to represent student inform

2 min read 06-09-2024 68
Using Comparable for multiple dynamic fields of VO in Java
Using Comparable for multiple dynamic fields of VO in Java

Why do I need to add 'const' in the custom comparator?

Understanding const in Custom Comparators A Deep Dive When working with algorithms like upper bound in C you might encounter the need to provide a custom compar

2 min read 02-09-2024 62
Why do I need to add 'const' in the custom comparator?
Why do I need to add 'const' in the custom comparator?

sync cmp and pwm with xbar IMXRT1024 for zero cross BEMF detection

Zero Cross Detection with XBAR in IMXRT 1024 Synchronizing CMP and PWM for a Noise Free BLDC Driver Introduction Implementing a robust BLDC motor driver with th

3 min read 31-08-2024 57
sync cmp and pwm with xbar IMXRT1024 for zero cross BEMF detection
sync cmp and pwm with xbar IMXRT1024 for zero cross BEMF detection

Why does this simple custom-comparator of tuples crash even with strict-weak ordering?

Unraveling the Mystery Why Your Tuple Comparator Crashes This article dives into a common issue faced by C programmers when working with custom comparators for

2 min read 31-08-2024 69
Why does this simple custom-comparator of tuples crash even with strict-weak ordering?
Why does this simple custom-comparator of tuples crash even with strict-weak ordering?

Does it make any sense to define operator< as noexcept?

Does it Make Sense to Declare operator as noexcept When working with containers like std set std map and algorithms like std sort a well defined comparison oper

2 min read 30-08-2024 64
Does it make any sense to define operator< as noexcept?
Does it make any sense to define operator< as noexcept?