stackoverflowknows January 17, 2020

This week, #StackOverflowKnows syntactic sugar, overfit or nah, and the definition of norm

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.  A star or a galaxy?…

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. 

A star or a galaxy?

physics.stackexchange.com

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.

What would I prefer – an over-fitted model or a less accurate model?

datascience.stackexchange.com

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. 

Why are the fast integer types faster than the other integer types?

stackoverflow.com

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. 

Why is the norm of a complex number in the C++ complex library actually the square of the norm?

softwareengineering.stackexchange.com

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

Why is zipped faster than zip in Scala?

stackoverflow.com

How can similar Scala functions perform the same task at such different speeds? You’d think that they would be equally zippy. 

When to use / not use syntactic sugar

softwareengineering.stackexchange.com

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?

Podcast logo The Stack Overflow Podcast is a weekly conversation about working in software development, learning to code, and the art and culture of computer programming.

Related

newsletter September 4, 2020

The Overflow #37: Bloatware, memory hog, or monolith

September 2020 Welcome to ISSUE #37 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. Thrill to the veteran Stack Overflow engineer who walks like a noob! Gasp at the 2000-year-old temperature reading! Marvel at the GitHub README that writes itself!…
newsletter August 17, 2020

The Overflow #34: WYSIWYG style

Welcome to ISSUE #34 of the Overflow! This week, we explore how to build a full-text search engine, ways to get involved in open source development, and how to force a right-click on a website that doesn’t want you to. Plus, the debut of Articles, a new form of post in Stack Overflow for Teams.
Avatar for Medi Madelen Gwosdz
Content Strategist
newsletter July 24, 2020

The Overflow #31: Fresh data

July 2020 Welcome to ISSUE #31 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. This week, we’re chatting about diversity at Stack Overflow, wondering whether it’s wise to use your face as a password, and exploring the origin story of…
newsletter August 28, 2020

The Overflow #36: Community-a-thon

August 2020 Welcome to ISSUE #36 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. In the US, it’s the dog days of summer, which we imagine dogs are excited about. Read on for personal development nerds, creating secure voting systems…