📜 ⬆️ ⬇️

Big brother peek into your code

Who among us knows the joy of stealing a couple of lines of someone else's code from the Internet? Whether you learn to program, save your precious time, or save your brain for a final breakthrough in correcting errors, everyone will find their own reason for themselves. And representatives of large corporations and happy. IBM, Intel and Sun Microsystems, Google - everyone writes more open code so that you can earn money normally using Ctrl + C, Ctrl + V. You come to get a job, show open source code of some Java virtual machine and say proudly that, well, my! Students are delighted, take on work and for a good salary. And the authors-programmers, oppressed by capitalists, are happy - they will help you with advice on the mailing list, they will praise you, they will thank you for honoring the code with their attention.




But any pre-crisis freebie comes to an end when grandmothers end. When it comes time to count every penny, lawyers and accountants of giants are seriously thinking about whether or not to receive a dividend from those who used their free code. And that's because everything, as if on purpose, was tweaked! Using a big brother, the hands of innocent students and the good name of the Apache Software Foundation, corporations make insidious plans to look at the lines of your source code and string constants, find naive lambs who have no doubt dragged in other people's intellectual property protected by patents and copyright, and ask for a round sum for out of court settlement. Think about it, or maybe copying someone else's code, even if it is free, have you put an end to your financial well-being and have become a slave of American corporations?
')
For those who do not understand English, I will spend a few lines, explaining what is the cunning plan. We take your program, which you wrote a long time ago and laid out in open access, we run a sliding window on its code. At first, the window contains only the first word of the program, then begins to expand to the right until Google Code Search is able to find a piece of text somewhere in another's code. At some point we will find the largest piece stolen. If the piece is uninteresting - it does not contain, say, words with spelling errors, exact quotes from your comments and is very small - only two or three words, then we throw the leftmost word out of the window and continue to try to enlarge the window to the right. If we found a authentically stolen piece of code, go to a lawyer to sue the thief. Just look at it first, but didn’t the thief write your code before you? And as if the embarrassment would not work out, and would not have to pay for his old love for other people's lines.

Source: https://habr.com/ru/post/56180/


All Articles