r/learnjava • • Jan 11 '20

Why is so much programming open source? Are there no “secret recipes” in the programming world?

I’ve noticed so many projects are open source, and if you post anything on other code related subs, everyone begs for the source code, and it seems to be looked down on to not provide it. Doesn’t that just leave your stuff open for someone to copy and market themselves? Is everything always expected to have the source code made public?

42 Upvotes

15 comments sorted by

36

u/ChucklingBoy Jan 11 '20

No, many projects and programs are kept private.

38

u/seanprefect Jan 11 '20

So there are closed source applications. Those exist, and people in this sub want your source code to help teach you we don't beg for it it's simply a necessity to do our purpose here.

That said if you think having the source is only a small part of the overall picture, maintenance, understanding, documentation feature expansion and support make up the large day to day.

The truth of the matter is , while every once in a while there might be some brilliant trick done, it's fairly rare, and almost any professional programmer could figure out a way to do something similar to any feature.

Architecture , api design , method design, database structure are all also important.

1

u/Koean Jan 11 '20

Especially true for things like government. No source code access to the public, else a fighter plane would give all it's secret capabilities for example if a FINALMAXSPEED parameter existed

1

u/hugthemachines Jan 12 '20

Especially true for things like government.

Goverment is not that special in the code showing aspect, it is quite common that companies do not want you to publicly show code used in their products if they are not open source.

5

u/AngelOfLight Jan 11 '20

This is actually the way it used to be. For the first few decades or so, paying for software was something of a strange concept, especially in the hobbyist community. Obviously, large companies like IBM leased their software to big companies for equally large sums of money, but the home computer movement was built around the concept of freely available and shared code. In fact, in 1976 Bill Gates famously wrote an open letter to the community in which he reminded them that some software was supposed to be licensed.

We're seeing something of a return to that now. Increasingly, more and more high quality software is being released as open source or proprietary but free. A very large percentage of the web runs on completely open source software, and pretty much all large companies run Linux servers and use free or open source compilers and IDEs for much of their work. Even Microsoft got in on the act and has now released community versions of much of their development toolchain.

Increasingly, more companies are making money from selling services rather than software. For example, you can build a distributed application on AWS using pretty much only open source tools. You pay for compute time and storage, but much of the software is free (obviously, you can use Windows EC2 instances and Oracle RDS if you want to, but you don't have to).

It's a pretty interesting time to be a dev.

5

u/WikiTextBot btproof Jan 11 '20

Open Letter to Hobbyists

The Open Letter to Hobbyists was a 1976 open letter written by Bill Gates, the co-founder of Microsoft, to early personal computer hobbyists, in which Gates expresses dismay at the rampant software piracy taking place in the hobbyist community, particularly with regard to his company's software.

In the letter, Gates expressed frustration with most computer hobbyists who were using his company's Altair BASIC software without having paid for it. He asserted that such widespread unauthorized copying in effect discourages developers from investing time and money in creating high-quality software. He cited the unfairness of gaining the benefits of software authors' time, effort, and capital without paying them.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28

5

u/restlessapi Jan 11 '20

Think about a distributed messaging system like Kafka. 100% open source. Literally anyone can stand up a Kafka instance at will. Anyone can take the Kafka code and modify to suit their needs. However, just because you stand up a Kafka instance doesn’t magically mean you start getting value out of it. How did you configure it? What systems talk to it? What kind of messages are you sending? Etc. Its the business logic that companies value. Very rarely is it the underlying tech.

Also, if you are really concerned about people stealing your source code and making their own markets, you can attach a really copy left license or proprietary license and make it really unattractive legally to steal your code, with the intention of making a profit off of it.

4

u/i_ask_stupid_ques Jan 11 '20

Most of the open source stuff in Java is mostly libraries. The applications built are mostly kept private. And that is why it is important choose open source libraries with a liberal license .

6

u/trisul-108 Jan 11 '20

The argument for open source is compelling, so much progress has been made because a large number of people and ideas intermix and combine to such an extent that even companies such as Microsoft have been unable to compete.

In essence, new ideas arise all over the world at more or less the same time and are implemented in code. Whoever produces proprietary code is really stealing ideas from researchers and other programmers and then exploiting it. Having worked on such projects, I know we searched through research articles, as well as looking at open source code, taking the best ideas and crafting our next version ... maybe not stealing directly, but definitely influenced by them.

2

u/TheMartinG Jan 11 '20

I don't think its "begging" for the sake of using it for themselves, but more for learning. On top of that people who post things are usually looking for a critique, and its hard to critique a project without the source code. It may look great on the outside but be inefficient af under the hood.

1

u/emmg90 Jan 11 '20

I am gonna add to what others have already said that just because it's open sourced it doesn't mean that companies can just download and use it. Licenses are very important for companies. Legal departments are getting involved and there are even utilities that you can have running with your build pipelines and check if some developer decided to use a new library that violates the licence. In addition many developers may publish libraries/tools for free and then offer additions for money.

1

u/scrottie Jan 11 '20

There's a lot to this. People have described it as "scratching an itch". Just like if you figure out how to make some thing work... some complicated config or getting some large product to do something difficult or so and you share how to do that on a blog to save other people grief, you might share code that lets you accomplish something.

Often things start out small... people code the simplest thing that does something that doesn't exist yet because they need it and can't buy it. When it's a few hundred lines of code, it doesn't make much sense to market it, and for software, money charged for it has a lot more to do with the support that comes with it and the polish on it so objectively while it has value, it isn't marketable.

Then people start sending in patches... which is really nice. Seeing a whole community spring up and people do all kinds of things that you didn't even imagine is just an amazing feeling. And that is something you definitely can't charge money for.

0

u/[deleted] Jan 11 '20

[deleted]

2

u/WikiTextBot btproof Jan 11 '20

The Cathedral and the Bazaar

The Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary (abbreviated CatB) is an essay, and later a book, by Eric S. Raymond on software engineering methods, based on his observations of the Linux kernel development process and his experiences managing an open source project, fetchmail. It examines the struggle between top-down and bottom-up design. The essay was first presented by the author at the Linux Kongress on May 27, 1997 in Würzburg (Germany) and was published as part of the book in 1999.

The illustration on the cover of the book is a 1913 painting by Liubov Popova titled Composition with Figures and belongs to the collection of the State Tretyakov Gallery.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28