找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 152|回覆: 0

[BBC] Programmers who use spaces 'paid more'

[複製鏈接]

5351

主題

1

好友

3萬

積分

論壇元老

Rank: 8Rank: 8

發表於 2017-6-18 21:47:35 |顯示全部樓層
[BBC] Programmers who use spaces 'paid more'
Full story: <[url]http://www.bbc.com/news/technology-40302410>[/url]

Computer programmers who use spaces as part of their coding earn $15,370 (£12,000) more per year than those who use tabs, a survey of developers has revealed.

The survey found the salary difference stretched across different languages, countries and experience levels.

The debate over whether it is better to use spaces or tabs to indent code has raged among programmers for years.

Indents act like paragraph markers and help define how programs work.

The result was "surprising," said David Robinson, data scientist at Stack Overflow which carried out the survey of 12,400 developers.

'Pepsi or Coke question'

... more ....

Whether tabs or spaces were used could have an impact, he said, when hand-written code was turned into working software. This process is handled by a separate program called an interpreter or compiler. Some of these can crash if they encounter something, such as a tab, when they were only expecting spaces.

Professional developers typically set up their coding editor to use either tabs or spaces to show the relationships between functional elements, he said. Code can get harder to read if viewed in an editor expecting tabs and getting spaces or vice versa.


回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

回頂部