Wednesday, March 12, 2014

Oops..kinda forgot i was supposed to be practicing in java...

Wellll i kinda forgot i was going to be refining my skills and helping my friend code for a potential game he may be doing? I'm going to be freelancing it of course So at the moment this is going to be my final C# project for now. Honestly i'm glad i stopped early enough to not be in toooo deep with C#. So after this we're going back into java!!!

GlazerCalcUltra

https://github.com/s0nlxaftrsh0ck/GlazerCalcUltra

This is a heavily modified version of the original GlazerCalc in that it adds const which is a static value that is can never be changed. It's honestly a very handy tool to use for when you add final type values throughout your program. If an enemy is only 100pts and you have to code that 100pts 300 times...you don't wanna go and change 300 lines of code.

No, so all you have to do is make the const and change the const value and everything else in your coding that correlates to that const value is changed.

This also includes a do -- while loop which does an action while it is still valid. One thing i have noticed in programming is to code in reverse. It's that i have to code for what i DON'T want not what i want it to do.

So in this case instead of searching for values within my range i look for values OUTSIDE of my range which is easier to catch and a little bit neater from the looks of it. But that is something i really should take into consideration however. Sometimes you gotta see from the reverse...or make it an impenetrable fortress perhaps? But yeah. So for now...that is my last C# project.

At least with C# this taught me some fundamentals that i was a little hazy on before. Like operands and expressions, variables. And the likes. But yeah. Good times!

-Ron

No comments: