Hi Hiep, I hope you're doing well. Good explanation of the pattern 👍. However, I have a concern with this implementation, related to the very specific names we can handle in the switch statement, I mean, if a customer would had used a different combination of capital letters, their search wouldn't had matched anything.
Do you know an elegant solution that allows our application to recognize different ways of writing a product names and match the desired product?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Hiep, I hope you're doing well. Good explanation of the pattern 👍. However, I have a concern with this implementation, related to the very specific names we can handle in the switch statement, I mean, if a customer would had used a different combination of capital letters, their search wouldn't had matched anything.
Do you know an elegant solution that allows our application to recognize different ways of writing a product names and match the desired product?