Thursday, March 06, 2014

Finally added some coding and ran it. And it worked out. Also got it soooomewhat running up on github as well and pushed it out. Again somewhat...lol. Honestly as i was typing the code out in visual studio i kept smirking at how the autocompletes work and i missed doing this type of stuff and was pretty damned happy about it. Everytime i looked at my e-mail i had an ssh key for my GitHub and it kept reminding me of what i had to do tonight. Felt pretty good i gotta say. So yeah got a program up and pushed out a repo...somewhat. Maybe it didn't sync up correctly? I don't know...

https://github.com/s0nlxaftrsh0ck/GlazerCalc

Very odd...yeah i still need to mess around with how to push stuff out to git hub. But heres the code of the first program from the book

1    +    using System;
2    +  
3    +    class GlazerCalc
4    +    {
5    +        static void Main()
6    +        {
7    +            double width, height, woodLength, glassArea;
8    +            string widthString, heightString;
9    +  
10    +            widthString = Console.ReadLine();
11    +            width = double.Parse(widthString);
12    +  
13    +            heightString = Console.ReadLine();
14    +            height = double.Parse(heightString);
15    +  
16    +            woodLength = 2 * (width + height) * 3.25;
17    +            glassArea = 2 * (width * height);
18    +  
19    +            Console.WriteLine("The length of the wood is " +
20    +                    woodLength + " feet");
21    +            Console.WriteLine("The area of the glass is " +
22    +                    glassArea + " square metres");
23    +        }
24    +    }
25    +    

Obviously not my code or anything modded about it. Just straight from the book.


By the way there are a lot of coders around the IT Department of me. And i see them coding and i'm like...man i wish i could do that right now. Yeah the Sys Admin stuff is fun but seeing those lines of code just looking so neat and perfect and the colors. yeah...i think i'm gonna have fun honestly.

-Ron

No comments: