What is the percentage of borrowed code in the source code of an average website? Are all these functions that are written in solid text borrowed?

What is the percentage of borrowed code in the source code of an average website? Are all these functions that are written in solid text borrowed?

Developing Your Trading Strategy on Quantopian

Previous questionWhat to invest a little money in if you study and work as a waiter?
Next questionWhere did the trend of musically grimacing girls on Instagram come from and why does it look so stupid?

answers (2)

Answer 1
June, 2021

Quite a difficult question about code borrowing. On the one hand, there are some standards by which modern browsers work, so you can't write anyhow. On the other hand, there are a large number of open-source libraries, the authors of which invite everyone to use their code. This is more "reuse" than "borrowing" in terms of plagiarism.

If we talk about direct borrowing like "Copy + Paste", then this can only be on small sites and with a short lifetime / development ... To quickly do something right now, to show something. Then in the code you can find exactly the same class names, the same variables, files.

Any large project focused on long-term development contains very few direct borrowings, because it is difficult and time-consuming to maintain a code that is conceived differently, every time you need to do something solid, this code will get in your way. The fact is that the code does not live in a vacuum by itself, but is associated with a bunch of other fragments, then such spontaneous bugs will pop up in the most unexpected places. Therefore, for any serious project, it is better to write code internally, and not try to pull on pieces and heap everything. It may work once, but it will cost much more to support.

By the way, there is a fear of remote developers on this topic when you ask them to do their test task - they say, now I will do a test task, and they will now take my code is free. As I said, for a large, serious project, this is meaningless. Here, reputation factors are added to purely economic factors.

Answer 2
June, 2021

Usually these are all sorts of scripts and modules (for example, jquery.js) and CSS styles from frameworks. In principle, icon libraries and plug-in fonts can also be considered "borrowed code". What is "written in solid text" is not necessarily "stuck" from somewhere, it is just a compressed form (allows you to save a certain amount of bytes when loading), or it can generally be, say, a description of an svg image embedded in the text pages, data from some google maps and in general, whatever. It's hard to say about the percentage of borrowed code in the "average site", because it's not clear how to count. Is the page added through the admin panel "original" or "borrowed" html? What about dynamically generated content?

Related question

How are statistics collected in the match, all these hundreds of passes, the percentage of possession?

Read more

What are the advantages of creating a website for a business if the pages on social networks in general have all the necessary functionality?

Read more

All programs on computers are created by writing code, but how were programs created with the help of which other programs are written?

Read more

HOW TO SHOW UP ON GOOGLE SEARCH - Photography Marketing 101

In the diploma of an IT security specialist, what is written in the profession column?

Read more

Is it true that Windows 10 collects an unprecedented amount of data about a user, including all the texts they enter, all files, and so on?

Read more

Most serious programmers disdain their PHP counterparts. However, almost all great sites are written in PHP. Why is that?

Read more

What percentage of the diamonds mined by mankind is used in technology, and what percentage is used in jewelry?

Read more

Why does Facebook have an average rating of "2.5" in the App Store, what are users dissatisfied with?

Read more

Intro to Web Scraping with Python and Beautiful Soup

What is the 3D heating function in a multicooker for? What are the advantages of this?

Read more

Is it true that GCC generates the slowest and most sub-optimal machine code of all available C / C ++ compilers?

Read more

How much will the document "weigh" if all the books that have been written over the entire period of human existence are digitized?

Read more

In the heading of Ivan Urgant's show "A Look from Below", the children themselves answer the questions, or are all the answers written in advance in the script?

Read more

What is the essence of the conflict between Larin, Khovansky and Poperechny? Who are all these people?

Read more

Rust meetup - Using C Libraries in Rust

What percentage of all users on this site (the question) comes from the troll factory?

Read more

What percentage of the future income of the business usually gets to the creator of the idea, if all the money for the business is allocated by investors? And is there such a practice in general?

Read more

What are the main functions of robots that engineers are currently working on?

Read more

Who are all these people who buy all kinds of in-game stuff with huge price tags in online games?

Read more

What is the appeal of the iPhone? After all, this is a serial gadget with the usual set of functions.

Read more

MLH Fellowship: Writing Words about Writing Code with Jacob Herrington

Who are all these people who create torrent distributions, and what is the benefit to them?

Read more

How many people are in the crew of a fire engine, what are their functions?

Read more