DuxTell's Programming Resources

If it's relevant to Futurecraft, it goes here.
Forum rules
- This area is for general discussion; ideas and ships go elsewhere. Offending threads will be removed without prior notice.
- Unnecessary topics will be deleted or locked without warning.
Post Reply
User avatar
Dux_Tell31
Midshipman
Midshipman
Posts:100
Joined:Thu Dec 06, 2012 12:22 pm
Affiliation:Tellrim
IGN:tell31
DuxTell's Programming Resources

Post by Dux_Tell31 » Tue Jan 14, 2014 1:11 pm

This is a collection of downloads and other stuff to help the new dev team learn programming. Please note that most of this was designed for use with VB, however the concepts carry over well.

Powerpoints Cheatsheet Programs
Spoiler:
Last edited by Dux_Tell31 on Wed Jan 15, 2014 3:12 pm, edited 1 time in total.
"This is Minecraft, sir. We don't make physics, we ruin them." -Fr0stbyte124
"We are made of the elements out in space, in essense we are the universe discovering itself" -Neil Degrasse Tyson

User avatar
Keon
Developer
Posts:662
Joined:Thu Dec 06, 2012 7:09 pm
Affiliation:Inactive
IGN:ducky215

Re: DuxTell's Programming Resources

Post by Keon » Tue Jan 14, 2014 5:57 pm

This is a video series. It is fantastic, but it doesn't have any exercises so it's kinda static. http://thenewboston.org/list.php?cat=31, and just in case you watch all 87 of those videos, here's forty more: http://thenewboston.org/list.php?cat=25
- I can be reached as ducky215 on minecraft forums -

User avatar
Iv121
Vice Admiral
Vice Admiral
Posts:2414
Joined:Fri Dec 07, 2012 3:40 pm
Affiliation:UTN
Location:-> HERE <-

Re: DuxTell's Programming Resources

Post by Iv121 » Wed Jan 15, 2014 12:35 am

Well here's an exercise for you then - what is the differece between static and non-static variables and functions ? :P
They're watching ... Image

"I am forbidden tag" -CvN

User avatar
Keon
Developer
Posts:662
Joined:Thu Dec 06, 2012 7:09 pm
Affiliation:Inactive
IGN:ducky215

Re: DuxTell's Programming Resources

Post by Keon » Wed Jan 15, 2014 1:42 pm

Iv121 wrote:Well here's an exercise for you then - what is the differece between static and non-static variables and functions ? :P
For me?
Spoiler:
A static function or variable is called using the class. For example, Math.cos().

A non-static function is only used in the context of an instance. For example, other.setDead() (Is that a thing? It's been a while. Other instanceof EntityLiving, btw.)
- I can be reached as ducky215 on minecraft forums -

User avatar
Iv121
Vice Admiral
Vice Admiral
Posts:2414
Joined:Fri Dec 07, 2012 3:40 pm
Affiliation:UTN
Location:-> HERE <-

Re: DuxTell's Programming Resources

Post by Iv121 » Wed Jan 15, 2014 1:55 pm

Well you don't have to call it using the class, you can call it from INSIDE the class if you wish. What is important is that once a static variable or function is declared it will only ever exist in ONE instance and all modification made to it will effect the program as whole.
They're watching ... Image

"I am forbidden tag" -CvN

User avatar
fr0stbyte124
Developer
Posts:727
Joined:Fri Dec 07, 2012 3:39 am
Affiliation:Aye-Aye

Re: DuxTell's Programming Resources

Post by fr0stbyte124 » Thu Jan 16, 2014 9:56 pm

A static function, class, or variable is something that only one exists of and only one will ever exists. You can think of it as a global scope but the implications are more far reaching than that. The more you use them, the more you will get a feel for what role they play. Frequently, they are used to centrally manage instanced objects, such as counting how many instances there are or keeping track of the references to each so you can access them again.

The Vector and BoundingBox classes in Minecraft, for instance, keep a static pool of pre-instanced objects to avoid the overhead of reallocating memory each time you need a new one.

Other times, static functions simply exist because there is no reason to allocate memory for an object containing something like a Sqrt() function.

Post Reply