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

California Gov. Newsom vetoes bill SB 1047 that aims to prevent AI disasters

California Gov. Gavin Newsom has vetoed bill SB 1047, which aims to prevent bad actors from using AI to cause "critical harm" to humans. The California state assembly passed the legislation by a margin of 41-9 on August 28, but several organizations including the Chamber of Commerce had urged Newsom to veto the bill . In his veto message on Sept. 29, Newsom said the bill is "well-intentioned" but "does not take into account whether an Al system is deployed in high-risk environments, involves critical decision-making or the use of sensitive data. Instead, the bill applies stringent standards to even the most basic functions - so long as a large system deploys it."  SB 1047 would have made the developers of AI models liable for adopting safety protocols that would stop catastrophic uses of their technology. That includes preventive measures such as testing and outside risk assessment, as well as an "emergency stop" that would completely shut down...

If only your bike had a trunk. Oh wait, now it does.

Just to let you know, if you buy something featured here, Mashable might earn an affiliate commission. Biking is one of the best ways to get around, especially if you live in a city. It's quick, it's eco-friendly, and you get a bit of exercise.  If you already commute on two wheels or are thinking of starting, there's a storage device you kinda need. SEE ALSO: This bamboo keyboard combo adds a touch of tranquility to your workspace The Buca Boot is a pretty magical two-in-one hybrid: It’s a super secure storage box for your bike that works like the trunk of a car. You can lock your helmet or whatever else in it and leave it safely behind. It’s also a basket—open it up, and you can carry a bouquet of flowers and a baguette like the picturesque cyclist of your dreams.    Read more... More about Storage , Car , Bicycle , Trunk , and Cyclist from Mashable http://ift.tt/2eHNwLB via IFTTT