• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle






  • Agreed except for the variables. You can pry the iterators i, j, k, the pointers p and q, and the temporary buffer buf, from my cold, dead hands.

    Short variable names increase code clarity, particularly when the functions employing them are concise and named appropriately. There’s not much worse than using something like sourcedata[databufferiterator] instead of src[i]. It reminds me of authors who think that big words make them sound more intelligent. Needing or advocating auto complete in IDEs is a symptom of this kind of code smell, IMO.

    Code should be clear and concise; it’s also why I fight for 8 character indentation; if your code is creeping across the screen it’s a damn good indication that the function might be too complex and should be broken up.


  • This. Trying to find anything in a brick and mortar store in the last decade has been such a godawful experience that I don’t feel the least bit sorry for them. Groceries are largely delivered (not using Instacart, but the store’s own delivery or pickup service), tech stuff is all aliexpress or amazon, clothing I still largely go in to buy, but don’t buy very often. Appliances? Research the shit out of it online and usually order online from a local retailer with a decent website. Heck, even hardware is online through Home Depot and auto stuff is either rockauto or similar.