classRequest{static_debugEnabled=false;static_routes=[];enableDebug(){}disableDebug(){}debugEnabled(){}addRoute(){}addRoutes(){}setRoute(){}setRoutes(){}hasRoute(){}hasRoutes(){}deleteRoute(){}deleteRoutes(){}getRoute(){}getRoutes(){}storeResponse(){}// only for writing in filereadResponse(){}// only for filesdisplayResponse(){}displayErrors(){}}
Am not a code nazi so methods that do not display or CRUD can be named normally:
classRouter{get(){}post(){}listen(){}// this one }
plural for arrays:
For Vue component gets "item" if sub components:
I try to stick with this as best as I can to keep consistancy 😅
(really need to write those somewhere...)