Is Open Source Code Truly Beneficial Despite Its Accessibility?

  • Thread starter Thread starter Tenshou
  • Start date Start date
  • Tags Tags
    Source Writing
Click For Summary

Discussion Overview

The discussion revolves around the legality and implications of accessing and analyzing source code from websites, particularly focusing on JavaScript and server-side languages. Participants explore the benefits and drawbacks of open source code accessibility, as well as personal experiences with coding.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation

Main Points Raised

  • Some participants express concern about the legality of viewing website source codes, questioning if they violate any laws.
  • Others assert that looking at source code is permissible, noting that browsers inherently display HTML and JavaScript code.
  • A participant mentions that while JavaScript can be obfuscated, it remains accessible to end users, which raises questions about its security and usage.
  • There is a discussion about the purpose of JavaScript, emphasizing that it is not meant to be secretive but rather to enhance website interactivity.
  • Some participants highlight the educational value of viewing source code, as it allows them to learn from others' coding practices and improve their own skills.
  • Concerns are raised about the potential for code theft and reuse without permission, particularly regarding JavaScript.
  • Participants note that the visibility of JavaScript has influenced the development of web-based games, leading to a preference for technologies that obscure code.
  • There is mention of the open-source nature of many web technologies, with some participants discussing the implications of using and modifying open-source code.

Areas of Agreement / Disagreement

Participants generally agree that viewing source code is acceptable, but there are differing opinions on the implications of this accessibility, particularly regarding security and code reuse. The discussion remains unresolved on the best practices for handling and utilizing open-source code.

Contextual Notes

Some participants express uncertainty about specific legal restrictions and the implications of using open-source code, highlighting the need for clarity on licensing and redistribution rights.

Tenshou
Messages
153
Reaction score
1
Do any of you look at source codes from websites, do you write source codes?
 
Technology news on Phys.org
Tenshou said:
Do any of you look at source codes from websites, do you write source codes?
That's a very silly question to ask in a forum section that is devoted to programming and computer science.

Speaking for myself, I spend a good part of my workdays looking at and writing source code (not source codes) in a number of languages, but primarily C#, JavaScript, and jQuery these days.

What's your point in asking?
 
I am just wondering it is illegal to look at websites source codes, like is there some type of freedom of information law I am violating >.< . Although I do have a hard time reading it I think the ability in reading it is getting better the more I do it.
 
Looking is definitely OK.
 
Cool. :) I have just been so paranoid since all of these strange laws have been passed by the U.S congress.
 
Do you mean the HTML/Javascript code? Your browser does this anyway.
PHP code? Normally, you should not have access to this (unless the site made it public or you manage that site in some way).
 
I guess it is javascript code, I just open up the source code tablet and start trying to analyze the code .
 
I look at source code all the time. That's how I know what parts of sites I want to block. I also find it interesting to see how clean code is from one site to another. Attention to detail says a lot about the programmers.
 
Last edited:
Look for copyright or reverse-engineering restrictions if you intend to reuse somebody else's code.
 
  • #10
Borg said:
I look at source code all the time. That's how I know what parts of sites I want to block. I also find it interesting to see how clean code is from one site to another. Attention to detail says a lot about the programmers.

I do agree! Although I am still an amateur in coding I do wish to be come better can you guys give me some tips on becoming a better programmer?
 
  • #11
The fact is, Javascript source code cannot be hidden from end users. It can be obfuscated and compressed, but with patience, an end user could always decipher it in the end.

This is one reason why server-side languages may sometimes be used for computations instead of Javascript.
 
  • #12
so what good is it then if it can be deciphered?
 
  • #13
The purpose of JavaScript is not to do something in secret. JavaScript helps to create active elements in websites, it can calculate things for you and so on.
Database access and similar things must be done somewhere else (like php scripts, for example).

It can be an issue that you can steal code, and re-use it on other sites.
 
  • #14
The visibility of Javascript code to end users is why, these days, few games are developed and distributed using Javascript, although technically, it is a decent platform for games. Instead, web-based games (at least for some years) were developed using Java applets or flash or other technologies instead, because the code was harder for end users to get at.
 
  • #15
In many ways, the visibility of Javascript code is good, because, as noted above, people were able to see how others did things, like image rollovers, and then go and do them on their own sites. Nowadays, production environments will use a library such as jQuery instead of raw Javascript, because the library will take care of ensuring that browser differences are compensated for. jQuery is the most popular, and for anything other than very minor web page tweaking, a Javascript library should be used.
 
  • #16
Tenshou said:
so what good is it then if it can be deciphered?

Most of the web now is open source. People give their code away with some restrictions, as it allows others to build on top of it.

This forum is vbulletin (source code available) which is written in php (source code available) and hosted on Linux servers (source code available). I don't know what the license for vbulletin is (I think it's proprietary in that you get the code but can't redistribute it), but php and linux are both fully open source: you may modify the source code to use in your own projects and redistribute those projects.
 

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
11
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K