Contact Form

 

One Gigantic Puzzle

Now I haven't really decided what this blog is going to be. My life lessons, or my coding lessons, or what not. Maybe both. I don't know. 

So as soon as I started actually implementing the features that were required, that was when things got really interesting. Because programming to me (especially using libraries that I have never even seen before) is like a gigantic problem solving question. A gigantic puzzle. And you go through different functions that bring you to other functions, that bring you to the first function that explains why something happens the way it does in the code (Side note, thank God for VAssistX). So not only was there the coding dialog, but the GUI which was separate, and which I had absolutely no idea about. So as soon as I was SEMI done with implementing features it came to GUI, and man there were a lot of lessons to be learned there. 

See the thing is, I jumped into this having never extensively worked with Visual Studio, not knowing C++, not knowing remotely anything about GUIs--let alone what OpenGL even was. I mean.. the least I could say is that I learned a bunch. Thankfully I was practically refactoring and pulling out code that already existed.. sort of. I mean, a lot was done already but I still felt like my task was pretty daunting. 

I'm not sure if knowing that the common libraries couldn't be touched helped me or not. Like I knew they couldn't be touched, so either I had to adjust my code, or just not implement it in that way. Sometimes it was even harder for me to use the existing code because of the crazy coupling. I mean pulling one source file out just wouldn't do. And the software I'm making isn't supposed to be so huge. So instead, I sometimes had to pretty much reimagine how I'm going to implement something because how the main program did it just wasn't going to work in this case. For example especially with the Display Singles for the 3D viewports. Also fun fact about OpenGL for the future Jiana: If you want to change the color of the drawing, make sure that you call the positioning function right after in order for it to take effect. 

Example:
glColor3d(1.0, 1.0, 0.5);

glRasterPos2d(-0.95, nStart);

I mean things like this are obvious to some people, and it may sound stupid of me to even mention but I feel like these are the type of things that trip me up. I think definitely something I need to work on is doing all of the learning, and the processing, and the thinking before I actually jump into a project. I find that I usually just jump right in, and don't even read about everything I needed to know. For example, if I had read a detailed book about OpenGL, or about C++, or about MFC, or even about Visual Studio in the first place, I honestly think more than half of my problems wouldn't have even arisen. And if they did, then it wouldn't be so hard for me to know how to deal with them. That's definitely something I need to work on as a programmer. 

But I really felt like my experience in second year Computer Science at U of T really did wonders for me. Like I learned more than I learned in the past 3 years before that on everything. Learning C really gave me a muuuuch better grasp on concepts and ideas and it explained a lot about what goes on behind the scenes. Starting with a high-level language like Java didn't do me much good in really understanding the science behind things. Anyways, thanks U of T. 

Total comment

Author

Jiana Javier

0   comments

Cancel Reply