Deciphering It : A Freewrite

in #hive-16115528 days ago

image.png
This usecase strange cus people wey really know regex don die,everybody now just understands what it does, then they ask ai to generate regex or Google it,

You just slap library as usecase?Is that now better code?Syntax is peculiar to every programming language,combination of syntax ,makes up ur logic fr a languageShould I use zustand for loading state?No one complains bout understanding regex...its a better code, na u just no no am..not the codes faultI don give u about 3 shorter code..you de say na syntax...

If the loading state is affecting more than one component.. The zustand will handle it with shorter code that reduxAnother use case is using 4 states for four input fields, when you can use one stateContext will handle better without having more dependencies in your project.

No need to know what zustand isAnother usecase is having so many argument past to a function when you can use the rest operatorLol...dependencies n better code na the same thing?, n it has only one dependency... Which won't affect the performance of your codeAnother use case na having a lot of if else statement..

When u should use switch statementsMany of the examples you're giving is like knowledge of syntaxA lot makes up a better codebase...but in this context we are talking bout longer lines vs shorter lines..if shorter lines give u the same performance as the longer one..then should you use the longer one?