Choose Your Theme
Warren Shea

Damn you syntax! Why you gotta be all…similar but different

Wednesday, May 12th, 2010 at 11:59 pm

ELSEIF or ELSE IF?

do IF statements need END IF or can you just use parenthesis { }

OR or || ?

AND or && ?

!= or <>?

NOT(statement) or !(statement) ?

Why is x=y sometimes a comparison, not a declaration (it might be just VB that does that?)

VB uses &, PHP uses ., JavaScript uses +…C# uses…I don’t remember… + I think? Why must concatenation have so many different methods

” or \” or “” ?

<!–– ––> or <%-- --%> or /* */

‘ or // ?

Don’t get me started on Arrays! Sometimes Dynamic, sometimes size is fixed…then there’s ArrayList…

I just want to code but I always get caught up in incorrect syntax. I should really finish my Coding Language Reference. It’s really frustrating knowing what to code but getting caught up on “grammar”.

Like, I know how to eat and apple but I don’t know how to cut it or bite into it or liquefy it…or…that’s a terrible analogy

I’m feeling a dry spell of good posts lately. This is no exception.

2 Responses to “Damn you syntax! Why you gotta be all…similar but different”

  1. Karol says:

    If the is supposed to be an html comment it’s with two dashes. I don’t think 1 dash works.

  2. warrenshea says:

    nice catch…actually, i did what u did and wrote <!–– ––>
    and it didn’t render at all (like in your comment)…so then i fixed it to &lt;!–– ––&gt;

    and i actually used 2 dashes but it’s rendering as one….i don’t know why…cuz the
    <%–– ––%> beside it shows 2…

    ah the mysteries of life.

    btw to get the dashes working, i had to write &ndash;

Leave a Reply