Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Obviously he's wrong
What does sr. stand for?
Senior? Serious? Sir?
Anyway, the serious engineer got it all wrong -
All such titles are overrated. Junior/senior/principal...most of the time, it’s all bullshit.
-
Update: It appears I was wrong, and the senior guy was right.
When trim is applied before setting state in a controlled component, two word (or more ) search terms can't be used.
😔 -
@saintograph Thats not what JavaScript trim does.
This:
" askdj asdasd ".trim()
Results in:
"askdj asdasd"
I was told today by a sr. engineer that applying JavaScript's trim() to a string before executing search is wrong.
His reason? Because certain search terms have spaces in the middle;
i.e "Science Fiction"
😯
rant