Skip to main content

Bill Gates weighs in on one of the oldest, biggest battles in programming (MSFT)

 

 

Bill Gates tennis

  • Bill Gates prefers using tabs to spaces when he programs.
  • Tabs vs. spaces is one of the most popular and enduring debates among programmers. 
  • Recent research indicates spaces might actually be more popular — and, oddly, more lucrative.


Bill Gates on Tuesday weighed in on the long-lasting debate over the best way to format software code.

For the record, the Microsoft cofounder is a tabs guy. That's sure to annoy the other side of the debate — the advocates of spaces.

"When I code I use tabs because you want the columns to line up," Gates said in his annual Reddit AMA (Ask Me Anything) session. "For some Word documents I use tabs. You want things to adjust when you go back and edit them, and tabs help."

Tabs fans cheered having one of the most famous coders on their side. At the time of writing, Gates' answer had almost 14,000 "upvotes," making it one of the most popular posts in his AMA session.

The debate over tabs and spaces has raged for years. At stake is the aesthetics of code — what it actually looks like when it's examined line by line. 

Advocates of tabs argue that putting one after each new line makes code more readable. Spaces fans say pushing the space bar a few times instead offers a more flexible layout.

Despite all the "upvotes" on Gates' post, he and fellow tabs fans may actually be in the minority.

In 2016, a Google research analyzed a billion files across 14 terabytes of data and found that in almost every programming language developers used spaces far more often than tabs. Meanwhile, a study last year found developers who use spaces get paid more than those who use tabs.

The whole tabs vs. spaces debate is so well-known and widespread that it was memorably lampooned in a 2016 episode of HBO's "Silicon Valley" in which Richard Hendricks ended his relationship with a Facebook engineer over her programming style.

That scene is below:

SEE ALSO: A Googler analyzed a billion files to settle the programming dispute made famous by HBO's 'Silicon Valley'

Join the conversation about this story »

NOW WATCH: How Bill Gates makes and spends his billions



from Tech Insider http://ift.tt/2HTjEsQ
via IFTTT

Comments

Popular posts from this blog

The Nintendo Switch has been the US’s bestselling console for 23 straight months

Photo by James Bareham / The Verge It’s been a good two years for the Nintendo Switch. According to Nintendo, the gaming tablet has been the bestselling console in the US for 23 straight months. And according to data from the NPD Group, it just had its best October ever, moving 735,926 units of both the Switch and Switch Lite in the US. The company says that represents a 136 percent increase compared to last year. To date, the Switch has sold 22.5 million units in the US, and last week Nintendo revealed that more than 68 million units have been sold globally . “We’re excited about our momentum,” says Nick Chavez, Nintendo of America’s SVP of sales and marketing. Chavez puts the company’s big October down to two main factors. One is a better supply of stock; this year in particular, it’s often been hard to find a Switch on store shelves. This has only been exacerbated by increased demand due to a combination of the pandemic and the breakout success of Animal Crossing: New Horizons . ...

Instagram accidentally reinstated Pornhub’s banned account

After years of on-and-off temporary suspensions, Instagram permanently banned Pornhub’s account in September. Then, for a short period of time this weekend, the account was reinstated. By Tuesday, it was permanently banned again. “This was done in error,” an Instagram spokesperson told TechCrunch. “As we’ve said previously, we permanently disabled this Instagram account for repeatedly violating our policies.” Instagram’s content guidelines prohibit  nudity and sexual solicitation . A Pornhub spokesperson told TechCrunch, though, that they believe the adult streaming platform’s account did not violate any guidelines. Instagram has not commented on the exact reasoning for the ban, or which policies the account violated. It’s worrying from a moderation perspective if a permanently banned Instagram account can accidentally get switched back on. Pornhub told TechCrunch that its account even received a notice from Instagram, stating that its ban had been a mistake (that message itse...

Marvel teases Zodiac spy thriller. Heres what fans are theorizing.

Marvel's whiplash New York Comic Con announcements have brought fans disappointing cancellation news, sneak previews, and, of course, more secrecy. Taking to the stage Oct. 8, Marvel execs announced the end of Daredevil: Born Again , which will conclude with its third season next year. The team also gave attendees a taste of the upcoming third season of X-Men '97 and VisionQuest , the last installment of the Scarlet Witch's television saga. But the online buzz is all about its mysterious new show, Zodiac , set to debut in 2028. SEE ALSO: What's new to streaming this week? (Oct. 9, 2026) Flashing the new logo on the big screen, Marvel Television head Brad Winderbaum wouldn't say much about the show's plot or characters — perhaps some meta marketing for what is being dubbed a Marvel universe spy drama — but he did hint there was more than meets the eye. "If you're a fan of the comics, there is a ...