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

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...

Colorado police identified the serial killer who murdered 4 women 40 years ago after exhuming his body to analyze a DNA sample

A scientist examines computer images of DNA models. Getty Images Police in Colorado have cracked the cold cases of four women killed 40 years ago. Denver PD said genetic genealogy and DNA analysis helped them identify the serial killer. He had died by suicide in jail in 1981. DNA from his exhumed body matched evidence from the murders. Police in Colorado have cracked the code on four murder cases that went unsolved for 40 years, using DNA from the killer's exhumed body. The cases pertain to four women killed in the Denver metro area between 1978 and 1981. They were 33-year-old Madeleine Furey-Livaudais, 53-year-old Dolores Barajas, 27-year-old Gwendolyn Harris, and 17-year-old Antoinette Parks. The four women were stabbed to death. Denver Police Commander Matt Clark said in a press conference Friday that there was an "underlying sexual component" to the murders but didn't elaborate further. In 2009, a detective reviewed Parks' case and picked several p...

Gemini vs. ChatGPT: Which one planned my wedding better?

I was all about the wedding bells after getting engaged in June, but after seeing some of these wedding venue quotes, it’s more like alarm bells. "Ding-dong" has been remixed to "cha-ching" – and I need help. I don’t even know how to begin wedding planning. What are the first steps? What do I need to prioritize first? Which tasks are pressing – and which can wait a year or two? I decided to enlist the help of an AI assistant. Taking it one step further, I thought it’d be interesting to see which chatbot – Gemini Advanced or ChatGPT Plus (i.e., ChatGPT 4o) – is the better wedding planner. Gemini vs ChatGPT: Create a to-do list I’m planning on have my wedding in the summer of 2026 – sometime between August and September. Besides that, I don’t have anything else nailed down, so I asked both Gemini and ChatGPT to give me a to-do list based on the following prompt: “My wedding is between August 2026 and September 2026. Give me a to-do list of things to do for the...