Monthly Archives: February 2007

Some lazy coding…

I made a simple bench marker… it runs some complicated math problems and rapidly saves stuff to ram, reads it, compares it to another location in memory, and clears the space. It can be downloaded at the link below (both x86 and x64 versions included). The archive is a 7zip file so you need a program that can extract it (google it if you don’t know what it is). My computer’s rating is: 905890 (the higher the better).

Download me!

Correct Coding Style

There is a correct way to write code in C++ (and any other lang but it’s different for each) and their is a wrong way. Both produce programs that work – and may work as fast. The correct way creates code that is easy to read – the wrong way creates code I refuse to read. For anyone that cared – this is what I say the right way is…

Spaces, spaces, spaces! - Place spaces before and after every operator!

Right:

if (foo == bar)

moosecow = hotshit + ass;

Wrong:

if (foo==bar)

moosecow=hotshit+ass;

Call in support we have Brackets! – Never place brackets on the same line as if/class definition!

Right:

If (moosecow == hey)

{

ADD CODE HERE

}

Wrong:

if (moosecow == hey) {

ADD CODE HERE

}

Those are the major ones; I agree almost 100% with this site (google cache).

TSEACUS… wrrr…

Well… I have an assignment to write one simple paragraph so I guess I shouldn’t be complaining… but… we need to follow this annoying format my teacher created. I mean, I guess the format “works” so to speak – as it does make us write decent body paragraphs – but it makes me do something as apposed to just writing off what I remember because we need to put two quotes per paragraph.

The format:

  • T – Topic Sentence; The topic sentence states the main idea of the paragraph. It is the writer’s promise to the reader to stay on topic and prove a point.
  • S – Summary; Putting the text (quote) into your own words (paraphrasing)
  • E – Evidence; A quote taken directly from the story (text) that proves your opinion. A quote is any word, phrase, or sentence that comes from the story (text).
  • A – Analysis; Breaking something into parts to understand it more clearly and to identify the deeper meaning or purpose.
  • C – Coherence; Details are arranged in a logical order and thoughts move smoothly from one sentence to another.
  • U – Unity; All sentences relate to and prove the topic sentence.
  • S – Style; An author’s flair; technique
    • Sentence variety
    • Use of figurative language
    • Sentence Structure
    • Word Choice

I just realized I could have had the paragraph done by now…

New Pages

I created a few new pages (see left) that outline some of the programs I was/am working on that will be released to the public soon.

Alert Zee Internets!

I fixed the SVN!

It’s quite a happy occasion for the people here at Valde Games. I fixed the SVN. I just started work on the game again – I just added code for “nade charging” the longer you hold fire, the farther the nade will go. Hopefully the rest of the team will get motivated… or come back… or something.