We’re in the throes of winter here at Stack Overflow headquarters but the Q&A sites are full of hot questions. This week, we’re wondering if syntactic sugar makes code sweeter, wishing upon a galaxy, and digging into two Scala functions that do basically the same thing but at different speeds.
When I wish upon a star, does it count extra if it’s a galaxy? Because I’ve been trying find the optimal wish pattern without having to wish for more wishes. Genies are such sticklers for rules.
Our question asker is wondering if overfitting a model is worth the 1% extra results. It depends on what kind of data you’re modeling. Speech recognition? That 1% may matter. Everything else? Maybe not.
Can you speed up operations just by putting the word ‘fast’ in the name of the data type? Because I would like to schedule an appointment with the fast_doctor.
Turns out Euclid and C++ don’t agree on what ‘norm’ means. I always thought it was a guy who sat at the bar in Cheers.
How can similar Scala functions perform the same task at such different speeds? You’d think that they would be equally zippy.
How many syntactic sugars do you take in your code? Or do you like your code like your fancy coffee, verbose and full of multiple elements?