Programmers source code  | | |
February 21st, 2004, 09:59 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Georgia
Posts: 2,945
|
Can any of the people here describe how software source code appears to the eye?.. I had thought up until now that a source code would be some kind of plain but scrambled text..or maybe dots-dashes similar to the old radio/telegraph Morse code.
Now that Microsoft has said the code that has been slipped to the internet has profanity embedded in it but is not detectable to people looking at it has my curiosity running wild.
I would like to see a source code..or some kind of replica. I understand that Linux has an open source code...would that be in a similar format such as what MS would use?..if so, does anybody know where the Linux source code can be viewed.
Also, how does a source code fit into writing software?...without a source code...software cannot be written?
Thanks! |
| |
February 21st, 2004, 10:04 PM
|
#2 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
this is a part of the HTML source code of this page, before i posted: Code: </font>
</td></tr></form>
</table></td>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0"><tr>
<form action="search.php" method="post">
<td><font face="verdana,arial,helvetica" size="1" ><b>Search this Forum:</b>
<input type="hidden" name="s" value=""><input type="hidden" name="searchdate" value="-1">
<input type="hidden" name="beforeafter" value="after"><input type="hidden" name="forumchoice" value="3">
<input type="hidden" name="action" value="simplesearch"><br><input type="text" class="bginput" name="query"><!-- go button -->
<input type="image" src="images/go.gif" border="0"
align="absbottom">
</font></td>
</form>
</tr></table>
</td>
</tr>
</table>
<!-- /forum jump and timezone -->
</td>
</tr>
</table>
<!-- /Rate this thread -->
<br>
<!-- forum rules and admin links -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td><font face="verdana,arial,helvetica" size="1" ><b>Forum Rules:</b><table cellpadding="0" cellspacing="0" border="0" bgcolor="#5A7594"><tr><td>
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td bgcolor="#FFFFFF"><font face="verdana,arial,helvetica" size="1" >
You <b>may </b> post new threads<br>
You <b>may </b> post replies<br>
You <b>may </b> post attachments<br>
You <b>may </b> edit your posts
</font></td>
<td bgcolor="#FFFFFF"><font face="verdana,arial,helvetica" size="1" >
HTML code is <b>OFF</b><br>
<a href="misc.php?s=&action=bbcode" target="_blank">vB code</a> is <b>ON</b><br>
<a href="misc.php?s=&action=showsmilies" target="_blank">Smilies</a> are <b>ON</b><br>
<a href="misc.php?s=&action=bbcode#imgcode" target="_blank">[IMG]</a> code is <b>ON</b>
</font></td>
</tr>
</table>
</td></tr></table></font></td>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0">
<form action="postings.php" method="get"><tr><td>
<font face="verdana,arial,helvetica" size="1" >
<input type="hidden" name="threadid" value="101055">
<b>Admin Options:</b><br>
<select name="action"
onchange="window.location=('postings.php?action='+this.options[this.selectedIndex].value+'&threadid=101055')">
<option value="editthread" selected>-- Thread Options --</option>
<option value="openclosethread">Open / Close Thread</option>
<option value="move">Move / Copy Thread</option>
<option value="editthread">Edit Thread</option>
<option value="deletethread">Delete Thread / Posts</option>
<option value="merge">Merge Threads</option>
<option value="split">Split Thread</option>
<option value="stick">Stick / Unstick Thread</option>
</select><!-- go button -->
<input type="image" src="http://images.techimo.com/timo_images/forum/images/go.gif" border="0"
align="absbottom">
</font>
</td></tr></form>
</table>
</td>
</tr>
</table>
<!-- /forum rules and admin links -->
</td>
</tr>
</table>
<!-- /content area table -->
</center> the only problem is you have to understand the language!
of course this is nothing against the microsoft source code, it would be very hard to understand the whole source code! and most of the time you have to compile the source code, so the PC (CPU) understands what to do (assambly AFAIK)
Creatures
__________________ Canon EOS 450D | Canon EF-S 18-55mm 1:3.5-5.6 IS | Canon EF-S 55-250mm 1:4-5.6 IS | Canon Speedlite 430EX II |
| |
February 21st, 2004, 10:06 PM
|
#3 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,391
|
The "profanity" is a bit unprofessional but I guess since its propriatary they can do what they want *shrug*
The profanity would probably be more in comments of the code. Comments have zero funcationality to the actual program but only serve as to make comments on why a programmer did something in the manner they did.
It really depends on what language the programming language is in. If its in Assembly language the language is pretty cryptic and hard to read...
You have to remember there is possibly several hundred megs of text so finding the few bits of profanity would take quite some time unless you're looking for it specifically.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
February 21st, 2004, 10:09 PM
|
#4 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,391
|
Aw come on Creatures... HTML doesn't count
Here is some C++ I found on the net (just did a search for kernel.cpp  ) Code: // Set the application to run
// XXX: Should have protection here
void Kernel::setApplication(App* newApp)
{
vprDEBUG(vrjDBG_KERNEL,vprDBG_CONFIG_LVL)
<< "vjKernel::setApplication: New application set\n"
<< vprDEBUG_FLUSH;
mNewApp = newApp;
mNewAppSet = true;
}
void Kernel::checkForReconfig()
{
vprASSERT(vpr::Thread::self() == mControlThread);
// ASSERT: We are being called from kernel thread
// ---- RECONFIGURATION --- //
jccl::ConfigManager* cfg_mgr = jccl::ConfigManager::instance();
unsigned num_processed(0);
do
{
num_processed = cfg_mgr->attemptReconfiguration();
}
while (num_processed > 0);
// ---- APP SWITCH ---- //
// Edited by Vass.. Insert Profanity HERE
// check for a new applications
if(mNewAppSet)
{
if((mNewApp == NULL) || (mNewApp->depSatisfied()) )
// If app is NULL or dependencies satisfied
{
vprDEBUG(vrjDBG_KERNEL,vprDBG_CONFIG_STATUS_LVL) << "vjKernel: New application set,
dependencies: Satisfied.\n" << vprDEBUG_FLUSH;
mNewAppSet = false;
changeApplication(mNewApp); Anywhere you see
// some text... these are comments
OR
/* These are comments in between slash asterisks */
Last edited by vass0922 : February 21st, 2004 at 10:11 PM.
|
| |
February 21st, 2004, 10:09 PM
|
#5 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
|
lol vass
mentioned Assembly: Code: ;##### ---------- PROGRAM ----------#####
;S1: CJNE A,0EH,LED ;SELECT SWITH1 JUMP TO = LED
;JMP LED ;SHOW LED 7SECMENT RUN
; S2: CJNE A,0DH,UBON ;SELECT SWITH2 JUMP TO = UBON
;JMP UBON ;SHOW UBON
;S3: CJNE A,#0BH,WELL ;SELECT SWITH3 JUMP TO = WELL
;JMP WELL ;SHOW WELLCOME
;S4: CJNE A,#07H,ELEC ;SELECT SWITH4 JUMP TO = ELEC
;JMP ELEC ;SHOW ELEC
;#---------- SELECT SWITH 1 Show Ubon -----------#
Ubon: MOV DPTR,#0E04DH
MOVX A,@DPTR
ANL A,#0FH
CJNE A,#0EH,L1
START1: MOV B,#04H;
MOV R0,#00H;
MOV R1,#00H;
BB1: MOV A,R0;
MOV DPTR,#TABLE1;
MOVC A,@A+DPTR;
MOV DPTR,#0E001H;
MOVX @DPTR,A
MOV A,R1
MOV DPTR,#0E000H
MOVX @DPTR,A
CALL DELAY
INC R0
INC R1
DJNZ B,BB1
JMP START1
L1: small part of an assembly program, i donnu what it does, or if it works
Creatures |
| |
February 21st, 2004, 10:13 PM
|
#6 (permalink)
| | Go back to sleep
Join Date: Jul 2002 Location: Switzerland
Posts: 7,385
| |
| |
February 21st, 2004, 10:13 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
ohh ohh.. heres some for a inventory programmy im writing for a contest: Code: 'Code written on 2/15/04
'Author: Blaise J Barstow
'2003-2004 Business Professionals of America
'Franklin County Technical School, Massachusetts
'Software Engineering Team
Option Explicit
Private Sub Form_Load()
Dim cnMySql As New rdoConnection 'Dims the connection
Dim strInsert As String 'Dims the varible used for the SQL statement
Dim strIP As String 'Dims the varible used for the servers ip or friendly name
Dim strDRV As String 'Dims the varible used to identifiy the OBDC driver
Open App.Path + "/temp.dat" For Input As #1 'Opens the temp file
Line Input #1, strInsert 'Inputs the preconstructed SQL statement to be run
Close #1 'Closes the temp file
Kill App.Path + "/temp.dat" 'Deletes the temp file
Open App.Path + "/ip.dat" For Input As #1 'Opens the IP address file, to input the server's IP or friendly name
Input #1, strIP, strDRV 'Inputs the IP, and the OBDC driver sting
Close #1 'Closes the file
cnMySql.CursorDriver = rdUseOdbc 'Sets the cursor driver to use the ODBC settings
cnMySql.Connect = "uid=root;pwd=9662201;server=" + strIP + ";driver={" + strDRV + "};database=bdi;dsn='';" 'Connects to the database, using the ODBC driver
cnMySql.EstablishConnection 'Establishes the connection
cnMySql.Execute (strInsert) 'Sends the SQL statement to the database
cnMySql.Close 'Closes the connection
Unload frmWrite 'Closes this form
End Sub basically that is visual basic 6.0, connecting to a mysql database
any text you see after the ' is a comment
AHHH all my tabbing and spacing is gone... usually its much neater thatn thta...
Blaze
Last edited by Blazer06 : February 21st, 2004 at 10:37 PM.
|
| |
February 21st, 2004, 10:19 PM
|
#8 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Georgia
Posts: 2,945
|
Okedoke... I do a little simple HTML..so I recognised what you pasted in the first reply Creatures....Vass..as I recall reading what some MS engineer had to say about the profanity was..it was added by who ever had it to put into the wild...the profanity was not a part of the original Win2K source code.
Thanks for the effort guys.. I appreciate it.
__________________
It has been said that politics is the second oldest profession
I have learned that it bears a striking resemblance to the first.
|
| |
February 21st, 2004, 10:26 PM
|
#9 (permalink)
| | Ordained Mommy
Join Date: Oct 2001 Location: Big Sky Country
Posts: 4,259
| Quote: Originally posted by Blazer06 AHHH all my tabbing and spacing is gone... usually its much neater thatn thta... 
Blaze | My dear blazies, that is why when we insert code in here the forums that we do NOT use the Quote tags. We use the Code tags.
Code tags leave your formating intact. Quote: |
I inserted space here but it won't show up.
| Code: oh what
fun it is
to format however you wish! |
| |
February 21st, 2004, 10:26 PM
|
#10 (permalink)
| | Ordained Mommy
Join Date: Oct 2001 Location: Big Sky Country
Posts: 4,259
|
Using the code tags also can blow out the frames too.  |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |