Programming Help with the logic and theory behind it also all of these unseen Variables, Methods or Functions.?







Hello Yahoo Community, Thank you for arriving and reading this post.
I am in College and I am Programming, the problem is I cannot think like a programmer and just make something. I cannot even think about how to ask this..
OK, These Predefined methods and Variables that keep popping up everywhere leave me confused as hell sometimes, I am thinking that they are inside the System predefined already, Such as in C# Rect(variables)
So should I just print an entire system predefined functions and methods page and memorize it? I will sometimes see for example these variables undefined and such or methods or classes or not previously defined before.
Another Thing that annoying me is stuff as this from Microsoft Tutorial Pages:
Why the hell do they divide the screen or multiply and -1, I read the comment and understand what it means but I do not get the logic behind doing that.
public void Update()
{
// Update the positions of the background
for (int i = 0; i < positions.Length; i++)
{
// Update the position of the screen by adding the speed
positions[i].X += speed;
// If the speed has the background moving to the left
if (speed <= 0)
{
// Check the texture is out of view then put that texture at the end of the screen
if (positions[i].X <= -texture.Width)
{
positions[i].X = texture.Width * (positions.Length - 1);
}
}

// If the speed has the background moving to the right
else
{
// Check if the texture is out of view then position it to the start of the screen
if (positions[i].X >= texture.Width * (positions.Length - 1))
{
positions[i].X = -texture.Width;
}
}
}
}


Does anyone recommend a good book or free source I can use to think like a programming in the abstract sense of thinking such as Errors and try or catch functions?
Also anyone recommend another book for web programming functions and other thing to understand stuff like this source code? (Yahoo Page: Thanks Yahoo!)
/J=1329499271706719/K=0Ufj5yciXza_abCMF512Vg/A=5856909/R=1/SIG=10uacnjgh/*http://www.yahoo.com/bin/set", set_hp_firefox_instructions:["Drag the \"Y!\" and drop it onto the \"Home\" icon.", "Select \"Yes\" from the pop up window.", "Nothing, you're done."], close_this_window:"Close this window", set_hp_alternative_instructions1:"If this didn't work for you see ", detailed_set_hp_instructions:"detailed instructions", set_hp_alternative_instructions2:""};return set[str];};YAHOO.one.uh.accountOptions=[{text:"Profile",url:"http://global.ard.yahoo.com/SIG=15oor9db1/M=650008.12773054.13811804.8356343/D=know/S=396545039:HEAD/Y=YAHOO/EXP=1329506471/L=55I3JUS00iZl6KSWTz6MOBOWuAUTAU8.jIcACEmp/B=bGeaBEoGYqg-/J=1329499271706719/K=0Ufj5yciXza_abCMF512Vg/A=5856909/R=2/SIG=000000000/*http://pulse.yahoo.com/y",className:"first-child"},{text:"Updates",url:"http://global.ard.yahoo.com/SIG=15oor9db1/M=650008.12773054.13811804.8356343/D=know/S=396545039:HEAD/Y=YAHOO/EXP=1329506471/L=55I3JUS00iZl6KSWTz6MOBOWuAUTAU8.jIcACEmp/B=bGeaBEoGYqg-/J=1329499271706719/K=0Ufj5yciXza_abCMF512Vg/A=5856909/R=3/*http://pulse.yahoo.com/"},{text:"Account Info",url:"http://global.ard.yahoo.com/SIG=15oor9db1/M=650008.12773054.13811804.8356343/D=know/S=396545039:HEAD/Y=YAHOO/EXP=1329506471/L=55I3JUS00iZl6KSWTz6MOBOWuAUTAU8.jIcACEmp/B=bGeaBEoGYqg-/J=1329499271706719/K=0Ufj5yciXza_abCMF512Vg/A=5856909/R=4/SIG=15fb7hfov/*https://edit.yahoo.com/mc2.0/eval_profile?.done=http://answers.yahoo.com%2fquestion%2fask%3ftitle%3dProgramming%2bHelp.%26submit-go%3dContinue&.src=knowsrch&.intl=us"},{text:"You are signed in as:<span class='yid' title='" + h.aliasid + "'>" + h.shortaliasid + "</span>",title:h.aliasid,className:"last-child"}];YAHOO.one.uh.Search=['ygmasearchInput', 'sat'];};if("undefined" !==typeof YAHOO && "undefined" !==typeof YAHOO.one && "undefined"

Thank you for Reading once more and pleasant day.



Answer
Lots of source code isn't going to help you right now. You are biting off too much, already. You need to start slow and easy, first. You are getting ahead of yourself.

One of the best ways to understand things is to do it by hand. When I first learned programming, all I had was a thing called the Cardiac Computer by Bell Labs. It was a foldout bit of hardstock paper with tiny pockets to hold a stick of paper shaped like a ladybug that was the "program counter." I wrote a program by hand-writing instructions in the little areas next to each pocket. And I worked the program from position to position by hand, doing the operations by hand, and generating the output myself. I wrote and tested my own program to calculate the digits of PI, this way, in fact. And the process taught me extremely well how to "think like a computer."

As far as graphics and animation go, you are in the deep end of the pool. (I'm not saying the above code is all that complex -- it isn't.) But to fathom the whys and wherefores of one snip or another snip of code, you need to understand why and how on a smaller scale. So, for example, you should try your hand at something simple and write your own simple and small "engine" on your own. If you set your goals low enough, you will actually get the work done and see how it works as you work through your problem issues one at a time to complete it.

As far as "Errors" and "Try or Catch Functions" go, this is an interesting and sometimes complex thing. But if you delve into something called an "activation frame" and into "thunks" I think you will find much of related interest there. However, it requires some background to follow. There is nothing quite like writing your own compiler or doing hand-coded assembly to get these points across well. (I've done a lot of both.) I've written some try-catch source code in C (which doesn't have them) that could illustrate one method -- but it uses setjmp and longjmp and to truly understand what is going on you need to see the assembly code of those and the detailed structure used to mediate the process, too. The simplest method of try-catch "unwinds the stack" looking for a try-catch vector at each activation frame as it unwinds, invoking those it sees. Microsoft uses a much more sophisticated method in its .NET framework, though.

I have lots of books I have enjoyed. But without knowing a lot more about you and your experiences and skills, I can't honestly say which would be well-targeted for you. You have a long way forward and I'm just left without much to say in suggesting which direction for you right now.

Help with yahoo mail?




Murdawg


At times when I open my inbox or an email the mail will open an then suddenly go to a page saying
"Internet Explorer cannot display the webpage." This does not happen everytime but most of the time. It is no specific email, it happens with any of them. It seems to be trying to load a page with the following address:

Comments :

0 komentar to “Programming Help with the logic and theory behind it also all of these unseen Variables, Methods or Functions.?”
 

Sexy Lace Bikini

Leave little to the imagination in this super sexy booty short bikini transparent lace. Adjustable triangle top with peek-a-boo slits ties at neck and back. Matching ruffled booty shorts leave so little to the imagination! 90% Nylon 10% Spandex. Four way stretch means one size fits most. Unlined. Club Wear by Body Zone Read More

LG Scarlet

This event, which was attended by more than 200 media from Middle East and Africa, followed earlier events in Los Angeles and in London that drew celebrities for a mock premiere event to reveal the secret of “Scarlet, The Hit New TV Series,” which had been promoted through broadcast and online trailers.