Tuesday, October 29, 2013

^ Binary Search ^

Binary Search seems like an efficient search method, especially for large arrays. I wonder though when I would implement it in my own code. I can't think of a time I'd have a large list of non repeating numbers what I would need to quickly search. Although I can't think of a real world use for it, Binary Search is good to know, and perhaps I will find a use for it in my later programming career.

Monday, October 21, 2013

Re: Recursion

I never learned to use recursion when I taught myself programming. I'm finding it difficult to design with recursion in mind. I'd rather just solve any problem with loops. I don't see the benefit of using recursive methods. I find it hard to write them with the preset parameters, because they need to return a value. How am I supposed to modify a value recursively if I don't include it as a parameter?

Tuesday, October 15, 2013

Why Python? And Why it Sucks

Why are we learning Python?
No one actually uses Python in industry, and for good reason. It's a bad language. Everything is public, that's crazy! Any user can edit any aspect of your software written in Python. This makes Python useless for video games, security, and any professional program.

Why don't we learn a useful language like C++? The one that industry actually uses. Why should we learn Python exclusive quirks, if we will never ever use them? Some may say Python is useful because its easy to learn. Well why not just learn a useful language first? I learned C++ first.

Tuesday, October 8, 2013

OPP

Object-Oriented Programming is a programming feature that allows the coder to create objects. Objects are instances of a class that contain their own variables as fields. The object's class can have many useful functions. OOP revolutionized computer programming. Any modern, practice, and diverse programming language should have OOP capabilities. It is extremely useful for computer scientists. A real strength of OOP is combining it with inheritance. For example, in a video game, I could have a bad-guy class, a boss class that inherits from that class, and a boss object created from the boss class. I use objects all the time in game programming, for things like tiles, characters, items, etc.. In Python, every variable is aobject.

Recursion and Recursion and Recursion and Recursion

Recursion is solving a problem by the same method applied over and over to solve smaller parts. Coders can make recursive functions that call themselves. Recursion can be useful for computer scientists. Computer scientists should definitely learn recursion, but they need not apply it. Any problem solved by recursive functions can be solved alternatively say with loops. Recursion is especially useful for nested data such as with trees. I wait to see how useful recursion can be.