Friday, February 24, 2012

The If Sentence

Source

If you have done any programming whatsoever, you should have the basic knowledge of the if sentence, possibly the single most important command that a computer possesses.  If you don’t know it, fear not, for I am here to enlighten you.

First, some theory.  The basis of AI is essentially if sentences (okay, it’s not nearly that simple, but it’s an important building block).  If this situation happens, react in this manner.  Therefore, knowing the if sentence will enable basic AI.

The basic syntax for an if sentence is : if <the condition> = <the result> then <command>

Now, an example.  Say you’re writing in Quick Basic (the only language I know deeply).  You are told to write a program in which a name and password is checked, a basic version would be this (everything after //s is comments by me and would not be read by the program):

Print “Please input your name and then your password:” //this puts the text in the quotes on the screen
input name$  //This is simply a command that prompts the user to type something and then records the letters in the variable name$
input password$ //same as above
if name$ = “Jake” and password$ = “ender” then print “You gave the correct name and password!”  // this checks whether the variable name$ contains the text “Jake” and if at the same time password$ contains “ender”.  When both these are true, the command print “…” is performed.

And that’s that!

There are more advanced things like “else” and nested ifs, but that’s for later.

Wednesday, February 22, 2012

3 Ways to Harness Your Power as a Writer

As a writer, you have a power that few other people have.  You are a controller of minds and emotion.  Here are three ways in which you can harness that power:
Copyright Nintendo.  Source

Make your readers cry
Livia Blackburne did an awesome post about this a while back.  In short, you need familiarity with the character for whom is to be cried.  You’ll be hard-pressed to get readers to cry on page one.  First, the reader must learn to care for the character and then to make them cry.  Check out the post for details.

A way to harness this is by changing the chronological order of your story.  Don’t start with the death of a loved one.  Start after the death and reveal bits of information until you crescendo with the big emotional death scene.  (Better yet, read Livia’s post)

Make your readers miss appointments
Donald Maass says that the thing that keeps people turning the pages is tension.  That’s what makes them forget to walk the dog and miss appointments.  As horrible as that sounds, that’s exactly what you want to happen.

A way to harness the tension is by posing knowledge gaps.  The gap drives people crazy if they care about the subject.  So reel them in and then leave them hanging to keep them turning the pages.  Don’t let them have all the answers until they get to “The End”.

Make your readers think
A good book, like a good movie, stays in your mind for a long time after you’ve finished it.  You’ll know what I mean if you can remember the thrum in your head as thoughts about the book or movie was flying around in your brain.  No matter how insignificant the thoughts may seem, they grabbed you and that means that the writer did something right.

Things that are relevant to you are always noted first and remembered best, so the way to make your readers think is by making use of universal themes.  Emotion is always a winner.  E.g. Brothers reunited after a long struggle, or on the other side of the spectrum, the horror that isolation makes a person do.  Also, leaving the reader with a question will make use of the knowledge gap and leave them thinking, e.g. should there be limits to where science goes?, or does that madness lurk in everyone’s mind?


Strangely enough, making people degenerate socially, cry and endlessly obsess does not put you in their bad books, but rather entices them more.  Why is that?  That’s another topic entirely.

Monday, February 20, 2012

Quotation of the Week

Every week, I’ll put up a quotation related to writing or creation and tell you a little bit about the person who said it.  I’ll try to vary the speakers as much as possible.

"There are no dull subjects. There are only dull writers." - H.L. Mencken

Mencken, born and deceased in Baltimore, Maryland, was a German American writer, journalist, critic and scholar.  He is regarded as one of the most influential writers of the 20th century, earning him the nickname “Sage of Baltimore”.  Mencken was also the man behind the bathtub hoax, in which a fictitious history of the bathtub was printed in New York Evening Mail in 1917.