News for hackers. Stuff that matters.
Re:Teeing, a hidden gem in the Java API by throwaway4good on Monday May 10, 2021 @09:33AM (#27105803)
The method getPrice is not really correctly named if it did the things you describe. Naming things carefully will give you far more productivity than "unrolled loops, toggleable debug logging and comments on why stuff is done the way it is".
Re:Teeing, a hidden gem in the Java API by theshrike79 on Monday May 10, 2021 @02:19PM (#27109100)
Functions aren't always refactored to their perfect names, for multiple reasons.

getPrice might start up as something that just gets the price, after 5-10 years it might be a complex process accessing some ERP systems.