New Reply

The Source Code!

 
Share Thread Thread Tools
Feb14-13, 01:57 AM   #1
 

The Source Code!


Do any of you look at source codes from websites, do you write source codes?
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Heat-related deaths in Manhattan projected to rise
>> Dire outlook despite global warming 'pause': study
>> Sea level influenced tropical climate during the last ice age
Feb14-13, 09:22 AM   #2
 
Mentor
Quote by Tenshou View Post
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?
 
Feb14-13, 12:50 PM   #3
 
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.
 
Feb14-13, 01:11 PM   #4
 
Admin

The Source Code!


Looking is definitely OK.
 
Feb14-13, 03:33 PM   #5
 
Cool. :) I have just been so paranoid since all of these strange laws have been passed by the U.S congress.
 
Feb14-13, 04:31 PM   #6
mfb
 
Mentor
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).
 
Feb14-13, 10:05 PM   #7
 
I guess it is javascript code, I just open up the source code tablet and start trying to analyze the code .
 
Feb15-13, 06:26 PM   #8
 
Blog Entries: 1
Recognitions:
Gold Membership Gold Member
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.
 
Feb16-13, 10:00 AM   #9
 
Look for copyright or reverse-engineering restrictions if you intend to reuse somebody else's code.
 
Feb17-13, 02:47 AM   #10
 
Quote by Borg View Post
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?
 
Mar6-13, 07:12 PM   #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.
 
Mar7-13, 05:09 PM   #12
 
so what good is it then if it can be deciphered?
 
Mar8-13, 04:22 AM   #13
mfb
 
Mentor
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.
 
Mar8-13, 06:13 AM   #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.
 
Mar8-13, 06:16 AM   #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.
 
Mar19-13, 03:43 PM   #16
 
Quote by Tenshou View Post
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.
 
New Reply
Thread Tools


Similar Threads for: The Source Code!
Thread Forum Replies
What does the following lines of C source code mean? Engineering, Comp Sci, & Technology Homework 7
compiling source code Engineering, Comp Sci, & Technology Homework 5
Least Squares source code in C++? Linear & Abstract Algebra 5
Source code of Games!!! Programming & Comp Sci 8
pac man source code wanted Computing & Technology 0