Subscribe to Stuck in an Infiniteloop        RSS Feed
- - - - -

Gravitational Effects on a Particle in 3D Space

Icon 2 Comments
Consider a point in 3D space, i.e. a 3D vector. We have x, y, and z coordinates, however for the purposes of the following snippet, it is easier to picture a 2D graph with X and Z axes since I won't be doing any changes on the Y value.

In a video game, collision detection is very important. In fact, it makes or breaks a game. You want that...
- - - - -

Passing By Reference (C++ vs. Java)

Icon 5 Comments
At some point, I imagine you have had the need for functions to communicate with one another. It usually takes the form of function parameters since global variables are not good programming practice. A basic version looks like:

...
- - - - -

String Permutations in Java

Icon 1 Comments
I'm sure we all have had to do this at one point or another and it is especially handy in courses like Linear Algebra. A permutation is the arrangement of items within a set of data. Typically it is a string and thus the characters that comprise the string. It could also be numbers (bit matrices/parity error checking comes to mind). We want to...
- - - - -

Multiple Inheritance in C++ and Java

Icon 2 Comments
C++
Consider the following base class:

//base classclass Animal {protected: //derived classes get these	int age;	string name;public:	Animal() {};};


This in and of itself is slightly worthless. In our world we have all sorts of animals with all sorts of particular quirks and abilities.

...
- - - - -

Overloading Operators in C++

Icon 4 Comments
One neat thing you can do in C++ that is not present in Java is the ability to overload operators like * / + - % ^ & | ! , = < > <= >= ++ -- << >> == != && || *= /= %= ^= &= |= += -= <<= >>= -> ->* [] () new delete.

Here, I'll go over a few common ones: =, +...
- - - - -

Technology Expo

Icon Leave Comment
Technology Expo

I went to a technology expo hosted on Fort Hood today and I had a pretty good time. There were over 30 various companies there ranging from IBM to an office supply dealer. I saw some very interesting (possibly "new"?) technology. Not to mention the free stuff. :-) Pens, notepads, you name it. I found it quite beneficial...
- - - - -

Software Engineering

Icon Leave Comment
I got an 81% on my Principles of Software Engineering Test. :(

Depressing....
- - - - -

Java 1.5 Enumerations

Icon Leave Comment
Awesome new java tutorial up here!

Comments, criticisms, concerns, etc.... are greatly appreciated.
- - - - -

3 2 1 Initalization

Icon Leave Comment
A trend today has been not initializing values before using them. Now, the compiler will normally throw an error or warning so you get a heads up before seeing:

2 x 3 = 2111157549437

Which is a horrible feeling. And the strong urge to repeat grade school math.

The particularly nasty culprit is Mr. Array. Consider the following:

...
- - - - -

Turn a Code [Trick]

Icon 1 Comments
This was a post on another blog I have, but it was soooooo funny I want to share it again:

I entered a programming contest today. My first. +POP+

Those of you who weren't completely grossed out by that please continue reading:

It was a weird experience. I felt like a whore. I was coding for money. Correction: I was coding for the chance at...

  • (16 Pages)
  • +
  • « First
  • 13
  • 14
  • 15
  • 16

February 2020

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    1 user(s) viewing

    1 Guests
    0 member(s)
    0 anonymous member(s)