{"tag":"code quality","articles":{"blog\/technology\/rewarding-for-loc":{"key":"blog\/technology\/rewarding-for-loc","type":"article","published":true,"meta":{"createdAt":"2017-04-28T19:44:05+02:00","publishedAt":"2016-12-30T17:43:00+01:00","group":null,"category":"blog","subcategory":"technology","slug":"rewarding-for-loc"},"content":{"pl":{"slug":"rewarding-for-loc","title":"Rewarding for LOC","intro":"\u003Cfigure\u003E\n                \u003Cnoscript\u003E\n                    \u003Cimg src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_small.png\u0022 alt=\u0022\u0022 class=\u0022border-bottom\u0022 width=\u0022480\u0022 height=\u0022270.14492753623\u0022\u003E                \n                \u003C\/noscript\u003E\n                \u003Cspan class=\u0022hide-noscript\u0022\u003E\u003Cimg src=\u0022data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAUCAYAAADlep81AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAHX0lEQVRIiY2WyZIcSRGGv4iMjFxqX7q6epHUUksjYZqBMU5cuGCceBoegRtPwLtw4sCFA4yxDEhCJqkldVV3115ZWZmVW2Rw6GEwwwwzfr95mJu7\/x4Rv4vf\/u4P1grFdpeSpAc8z6csShylUEoipYMVMI9KytKAFSAAQEoH13WQUoIQWBwKY9COQ1mWaM8DoLZQ5DnW1mBrHCmpa3MfBwTa4YvzFh9nbxHv\/vzemsBS1zlJusPEEUG7jxASISy1yACF67pUdY\/z8xFZVvDx3QeOxyNWm5LxcUCRzwnKIUVQ02y3SdOSdRKxKWc8O3qGpxQAnz7NOTnp0e22yKqS608Tmjrk+OyIyWaFGp2OqNwKK2qyyscrj+mPLwDYbla0wpDlbI4OXIwRNEOF5xqO+g3y3LKzM7x1k22U4OsMk2nE9RppD7T7bV74l0z\/eoXUNVIF2KBCOgOCIEBWLuvlhiquaCYNOoGPmryfYjuC1WpGud0yHnfIapeqMnh+g\/1kha0kdW2ZzWNMJSiKktnccPmsiWd80uiawDZ5fHHCbBkzPJMo5aFcgVR7VH\/LsD\/A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perCedu+p416mLFAWFVW+Y3E1IRUJySFC5pbTB8\/JDgfmsyk4bQBurhf0Rj2Czn\/G8L8gBFyePGXwoPdfJ5bbyTXi7sPEald9VwYI5SOEQ1UZsizBHip09z5xst+g8NgsIhKxoSoclMoYui3c74T0\/4H0A4QvwUKn1\/leZOM0Q6Tx2mrtcjP5jKddesMxjm7w+dMKXxY4VY3bvf+nPn\/+SCfsMj4dk+UFlZV4dUQtuyjtYKuc\/ewTm0gimoKHj55jqpx4u8IN+tRWU5clDfcOG55TFgVKuaRZQpoeEEKipA4pS8t+EbAiJdpck+aa5cLw+MJl1O7i+vcMSimoiwVZ1Wd\/KNDCcLXc0ejmhLpLGHh0nnxJ\/P4jvcDh3etXQMLJ+BQrLMtVTJVk+He\/x3v+E1wdsN+n4PdQQrHd7BA312urXUW02lLHGbmTE+9iRg+OOBqfIQ\/3o3SV4na1xDsYrM7IipQtS8IiRLRqtPbxgybau79HWZTzcfqGRtNjNDqjyA7Euxm+bpFuE1S7R5lUmIODdB32RYp0DGK9jq3WijwvkHvYbucEA0WVLajdJsq6xKni5GzE9e1ndF1RS4lgwPAoIPAVWSFZXmfE0RS\/aTg9vgQlcHyLcu4bqqoa5Up28zmvkyte9B5iCsXJwwvquma73VJVBnHIcutplzQ5cHN7SxbP6R6dY21BuQZdpwyeP6auHRbRHRIfIWqMkYClMjXJ\/kCytwRhjVICgaS2NbayhIEPCLIyx7ElMksZXDwGBFJYBoP\/PP8kSRG\/\/PVvbEe6SC8kEBXznWWbugS+piwMQoDn+9jvTGof5dxvkxiLqSxlXoIAIQRlZRBWYK1BOwqhJIcqJS9LsAIpaqTjEgQernIQJsXXYKoKY2r+BZhY4dSc6tPoAAAAAElFTkSuQmCC\u0022 data-src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_small.png\u0022 alt=\u0022\u0022 class=\u0022border-bottom\u0022 width=\u0022480\u0022 height=\u0022270.14492753623\u0022\u003E\u003C\/span\u003E\n                \n            \u003C\/figure\u003E\u003C\/p\u003E\n\u003Cp\u003EI stumbled upon a company that rewards their developers for the number of committed lines of code, and generally for the number of commits. What an utterly idiotic idea!\u003C\/p\u003E\u003Csvg xmlns=\u0022http:\/\/www.w3.org\/2000\/svg\u0022 style=\u0022display: none;\u0022\u003E\u003C\/svg\u003E","content":"\u003Cfigure\u003E\n                \u003Cnoscript\u003E\n                    \u003Cimg src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_big.png\u0022 alt=\u0022\u0022 class=\u0022border\u0022 width=\u0022960\u0022 height=\u0022540.28985507246\u0022\u003E                \n                \u003C\/noscript\u003E\n                \u003Cspan class=\u0022hide-noscript\u0022\u003E\u003Cimg src=\u0022data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAUCAYAAADlep81AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAHX0lEQVRIiY2WyZIcSRGGv4iMjFxqX7q6epHUUksjYZqBMU5cuGCceBoegRtPwLtw4sCFA4yxDEhCJqkldVV3115ZWZmVW2Rw6GEwwwwzfr95mJu7\/x4Rv4vf\/u4P1grFdpeSpAc8z6csShylUEoipYMVMI9KytKAFSAAQEoH13WQUoIQWBwKY9COQ1mWaM8DoLZQ5DnW1mBrHCmpa3MfBwTa4YvzFh9nbxHv\/vzemsBS1zlJusPEEUG7jxASISy1yACF67pUdY\/z8xFZVvDx3QeOxyNWm5LxcUCRzwnKIUVQ02y3SdOSdRKxKWc8O3qGpxQAnz7NOTnp0e22yKqS608Tmjrk+OyIyWaFGp2OqNwKK2qyyscrj+mPLwDYbla0wpDlbI4OXIwRNEOF5xqO+g3y3LKzM7x1k22U4OsMk2nE9RppD7T7bV74l0z\/eoXUNVIF2KBCOgOCIEBWLuvlhiquaCYNOoGPmryfYjuC1WpGud0yHnfIapeqMnh+g\/1kha0kdW2ZzWNMJSiKktnccPmsiWd80uiawDZ5fHHCbBkzPJMo5aFcgVR7VH\/LsD\/A5AeurqZEWnPz5jM4Au369J922SYLOmqAOjobMNvNsMbQ8xPGp8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bQBurhf0Rj2Czn\/G8L8gBFyePGXwoPdfJ5bbyTXi7sPEald9VwYI5SOEQ1UZsizBHip09z5xst+g8NgsIhKxoSoclMoYui3c74T0\/4H0A4QvwUKn1\/leZOM0Q6Tx2mrtcjP5jKddesMxjm7w+dMKXxY4VY3bvf+nPn\/+SCfsMj4dk+UFlZV4dUQtuyjtYKuc\/ewTm0gimoKHj55jqpx4u8IN+tRWU5clDfcOG55TFgVKuaRZQpoeEEKipA4pS8t+EbAiJdpck+aa5cLw+MJl1O7i+vcMSimoiwVZ1Wd\/KNDCcLXc0ejmhLpLGHh0nnxJ\/P4jvcDh3etXQMLJ+BQrLMtVTJVk+He\/x3v+E1wdsN+n4PdQQrHd7BA312urXUW02lLHGbmTE+9iRg+OOBqfIQ\/3o3SV4na1xDsYrM7IipQtS8IiRLRqtPbxgybau79HWZTzcfqGRtNjNDqjyA7Euxm+bpFuE1S7R5lUmIODdB32RYp0DGK9jq3WijwvkHvYbucEA0WVLajdJsq6xKni5GzE9e1ndF1RS4lgwPAoIPAVWSFZXmfE0RS\/aTg9vgQlcHyLcu4bqqoa5Up28zmvkyte9B5iCsXJwwvquma73VJVBnHIcutplzQ5cHN7SxbP6R6dY21BuQZdpwyeP6auHRbRHRIfIWqMkYClMjXJ\/kCytwRhjVICgaS2NbayhIEPCLIyx7ElMksZXDwGBFJYBoP\/PP8kSRG\/\/PVvbEe6SC8kEBXznWWbugS+piwMQoDn+9jvTGof5dxvkxiLqSxlXoIAIQRlZRBWYK1BOwqhJIcqJS9LsAIpaqTjEgQernIQJsXXYKoKY2r+BZhY4dSc6tPoAAAAAElFTkSuQmCC\u0022 data-src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_big.png\u0022 alt=\u0022\u0022 class=\u0022border\u0022 width=\u0022960\u0022 height=\u0022540.28985507246\u0022\u003E\u003C\/span\u003E\n                \n            \u003C\/figure\u003E\u003C\/p\u003E\n\u003Cp\u003EI stumbled upon a company that rewards their developers for the number of committed lines of code, and generally for the number of commits. What an utterly idiotic idea!\u003C\/p\u003E\n\u003Cp\u003EThe thing is, it\u2019s \u003Cstrong\u003Enot that hard to write a code that works\u003C\/strong\u003E. It\u2019s not hard to write \u003Cem\u003Ea lot\u003C\/em\u003E. With enough hard work and enough attempts everybody can achieve it. But the true skill, and the reason that qualified programmers are so well-paid, lies in the ability to write \u003Cstrong\u003Egood code\u003C\/strong\u003E. Clear, simple, short, without duplication, understandable without any comments or introductions.\u003C\/p\u003E\n\u003Cp\u003EWriting some repeatable code in ten places makes you earn 10x more LOC than just wrapping it in a reusable function. But if you ever need to come back to that code, understand it and modify it, having it abstracted to a function makes it 10x faster and easier.\u003C\/p\u003E\n\u003Cp\u003E\u003Cstrong\u003EGood design and maintainability\u003C\/strong\u003E are worth so much more than just a sheer number of lines.\u003C\/p\u003E\n\u003Cp\u003EAnother example: every serious developer knows that dependencies shouldn\u2019t be included in the repo. We have Composer, Bower, NPM, Gem and so many others to handle the dependencies! But imagine your boss pays you for LOC, and you could \u201cearn\u201d millions of them just by commiting all the external libraries to the repo... Could you resist?\u003C\/p\u003E\n\u003Cp\u003EIn the and, the \u201cmost active\u201d programmer in that company turned out... not to be a programmer at all! He just set up all the new projects with bootstrap code. Surprise, isn\u2019t it?\u003C\/p\u003E\u003Csvg xmlns=\u0022http:\/\/www.w3.org\/2000\/svg\u0022 style=\u0022display: none;\u0022\u003E\u003C\/svg\u003E","tags":["code quality","developer","experience","lines of code","loc","motivation","programmer","programming","spaghetti code"],"hasMore":true,"image":"https:\/\/avris.it\/image\/rewarding-for-loc_small.png","introLite":"\u003Cfigure\u003E\u003Ca href=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_big.png\u0022 target=\u0022_blank\u0022 rel=\u0022noopener\u0022\u003E\u003Cimg src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_mini.png\u0022 alt=\u0022\u0022 width=\u0022240\u0022 height=\u0022135.07246376812\u0022 loading=\u0022lazy\u0022\u003E\u003C\/a\u003E\u003C\/figure\u003E\u003C\/p\u003E\n\u003Cp\u003EI stumbled upon a company that rewards their developers for the number of committed lines of code, and generally for the number of commits. What an utterly idiotic idea!\u003C\/p\u003E","contentLite":"\u003Cfigure\u003E\u003Ca href=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_big.png\u0022 target=\u0022_blank\u0022 rel=\u0022noopener\u0022\u003E\u003Cimg src=\u0022https:\/\/avris.it\/image\/rewarding-for-loc_mini.png\u0022 alt=\u0022\u0022 width=\u0022240\u0022 height=\u0022135.07246376812\u0022 loading=\u0022lazy\u0022\u003E\u003C\/a\u003E\u003C\/figure\u003E\u003C\/p\u003E\n\u003Cp\u003EI stumbled upon a company that rewards their developers for the number of committed lines of code, and generally for the number of commits. What an utterly idiotic idea!\u003C\/p\u003E\n\u003Cp\u003EThe thing is, it\u2019s \u003Cstrong\u003Enot that hard to write a code that works\u003C\/strong\u003E. It\u2019s not hard to write \u003Cem\u003Ea lot\u003C\/em\u003E. With enough hard work and enough attempts everybody can achieve it. But the true skill, and the reason that qualified programmers are so well-paid, lies in the ability to write \u003Cstrong\u003Egood code\u003C\/strong\u003E. Clear, simple, short, without duplication, understandable without any comments or introductions.\u003C\/p\u003E\n\u003Cp\u003EWriting some repeatable code in ten places makes you earn 10x more LOC than just wrapping it in a reusable function. But if you ever need to come back to that code, understand it and modify it, having it abstracted to a function makes it 10x faster and easier.\u003C\/p\u003E\n\u003Cp\u003E\u003Cstrong\u003EGood design and maintainability\u003C\/strong\u003E are worth so much more than just a sheer number of lines.\u003C\/p\u003E\n\u003Cp\u003EAnother example: every serious developer knows that dependencies shouldn\u2019t be included in the repo. We have Composer, Bower, NPM, Gem and so many others to handle the dependencies! But imagine your boss pays you for LOC, and you could \u201cearn\u201d millions of them just by commiting all the external libraries to the repo... Could you resist?\u003C\/p\u003E\n\u003Cp\u003EIn the and, the \u201cmost active\u201d programmer in that company turned out... not to be a programmer at all! He just set up all the new projects with bootstrap code. Surprise, isn\u2019t it?\u003C\/p\u003E","words":250,"readTime":null,"lang":"pl"}}}}}