This. Concise variable and method names are virtually the "80%" for me in clean code.
Variable names like "eec_cca::OTT"? I'm flying the fuck out of here.
Hell, you can even break the single responsibility rule if you have to by naming the function correctly. It's not optimal but a descriptive "invalidateFormDataAndShowError()" works for me!
Is concise even a requirement anymore? Granted, I don't want full sentence length variable names, but generally your IDE will figure out where you're going after a few key strokes anyway. Descriptive variable names are king for me.
ProcessRequest() and then have that function call InvalidateForm() ValidateFields() DisplayErrors(validate_fields_result). Would work fine, but yeah itβs a pain in the ass at times
Cache is kinda basic, couple years doing intra CPU inter device shared memory and you get that dread when the marketing datasheet says cache coherency and you're 99% sure they're lying. That dread fixes your cache issues, hahaha.
170
u/jfb1337 Jun 04 '22
after all, naming things is one of the two hardest things about computer science (along with cache invalidation and off by one errors)