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 itself w

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

Axeleo Capital raises $51 million fund

Axeleo Capital has raised a $51 million fund (€45 million). Axeleo first started with an accelerator focused on enterprise startups. The firm is now all grown up with an acceleration program and a full-fledged VC fund. The accelerator is now called Axeleo Scale , while the fund is called Axeleo Capital . And it’s important to mention both parts of the business as they work hand in hand. Axeleo picks up around 10 startups per year and help them reach the Series A stage. If they’re doing well over the 12 to 18 months of the program, Axeleo funds those startups using its VC fund. Limited partners behind the company’s first fund include Bpifrance through the French Tech Accélération program, the Auvergne-Rhône-Alpes region, Vinci Energies, Crédit Agricole, BNP Paribas, Caisse d’Épargne Rhône-Alpes as well as various business angels and family offices. The firm is also partnering with Hi Inov, the holding company of the Dentressangle family. Axeleo will take care of the early stage in