beginner coding tip: write down the input and expected output before writing the function.
"build a search feature" is a big instruction. a few examples make the next decision much smaller.
Imagine a tiny search box for a list of app names. Before choosing a library, decide what a match means.
Start with ordinary cases:
Then decide the awkward cases:
There isnt one universal answer. These are choices about how your app should behave. Writing them down stops you from accidentally making those choices halfway through the code.
Now describe one small function in plain language:
Input: a list of app names and a search query. Output: the names that match the rules you chose.
Build that piece first. Check the result against your examples. Connect it to the search box after it behaves the way you intended.
If youre using an AI coding assistant, give it the same examples. Ask it to point out any missing decisions before it writes the implementation. Review the result yourself.
Keep the examples. A few can become tests that help you notice when a later change breaks the behavior. You dont need dozens of tests to make the first decision clearer.