Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
User Journal

Journal SolemnDragon's Journal: no phone; sammiches; ren faire; skittlebrau; edjimication 43

Gah. Where do i start?

Sometimes, the mind just boggles. Mine hasn't been doing that much, lately- it's my life that has. Not much you can do when the shaking isn't you, and the fog isn't in your head. (Except wait and work. We'll get to that.)

Still no phone. This is blinder's department, since he has the cell phone to call verizon. They SWEAR they're working on it. i say we roast 'em, just to be sure, but he says we should be merciful.

My conservative mum has shingles, so i don't get to see her for a bit. But that's oke, we have a lot going on and a wedding to attend next week, blinder's best friend's wedding, in fact. I might dig out a frock coat and some charcoal trousers and a white cravat, but on no account am i wearing a dress. I am pretty much tired of dresses.

Well, blinder has a habit of announcing that i get a prize, for random stuff. I do the same to him, but he's better at it. He said i could have a toy. I asked for one of the little foreman grills. It's charming and works great for stuff. We don't eat any meat, so we're grilling mushrooms and things.

We found this GF bread at the whole foods up on Route 16. Nowhere else, just that one store. We've checked 3 other Whole Foods stores. But the bread is corn bread that is actually a white bread vaguely reminiscent of wonder bread but with more body and texture. Very light, still. Perfect for... toasting and using for sammiches! My first sandwich in an appallingly long time was a portobella (portabello? one is a road, the other's a mushroom, but they might have the same name. I have trouble remembering.) with monterey jack cheese. Lactose intolerance made this a bellyache, but SOOOOO yummy.

i danced.

So, "sandwich" in our home means, "vegetables or cheese in science bread."

[Similarly, "Could you get me a cold one while you're in the kitchen?" refers to a caffeine-free diet pepsi (for him), virgil's root beer (for me), or shock and dismay (of any of our guests.) ]

By the way, blinder promised to journal about (but hasn't yet) the discovery he made the other day- we haven't had skittles in a long time, because they are GF but not vegetarian in the US. Well, then they came out with skittles gum. Same flavour, no gelatin. He chewed a whole box at once. It was charming and disturbing, i guess he hadn't had them in something like 14 years. The hard part is that it's a gum exactly like the candy but not meant to be swallowed, so i practically had to call the gum police to get us not to just eat the stuff.

"Hello, skittles company? What would happen if someone swallowed a WHOLE BOX of your skittles gum? No, not the box itself, but all the gum. Yes, all at once."

we went to the ren faire. Had to; i couldn't take one more day of packing and unpacking. Spent money we shouldn't have on things we don't need, like trinkets for me. It rained.

Still lots of stress, but it's getting less a little at a time. By the way, Hokie and RW, i can't find my thank you notes to send you one, but WOW. Hokie- scans will be forthcoming. RW- *dance of joy* i will put them someplace, thank you VERY much.

by the way.... blinder got tired of my complaining about not learning anything at work.

He bought me a java book and started assigning homework.

/**
  *This is my first attempt ever.
  */
public class HelloWorldApp {
        public static void main(String[] args) { // Display "Hello World!"
            System.out.println("Hello World!");
        }
}

Please Don't help or critique. I'm just sharing, i'm not allowed to get help till i finish trying it on my own.

but- Hello World!!!!

This discussion was created by SolemnDragon (593956) for no Foes, but now has been archived. No new comments can be posted.

no phone; sammiches; ren faire; skittlebrau; edjimication

Comments Filter:
  • ... do me a fav... put your open braces on a line all by themselves. You see... braces have feelings, and when you put them at the end of the line, they feel like they are there only because you have to put them there. They should be bold... they are opening scope for crying out loud! Show them that you are proud of them and they deserve a line to themselves, just like their evil twin, the close brace!!

    public class HelloWorldApp
    {
    _ public static void main( String[] args )
    _ {
    _ _ // D
    • I see we have an ANSI-block style elitist. Hmm. I might tell you (even though I typically code in ANSI style myself), that K&R compressed style is just as good, and in some cases makes things easier. Afterall... first chapter of nearly any Java (or C or Perl or C++ or *smack, get on with it*) book mentions that whitespace doesn't matter. So, really, it's just a point of personal style.

      You would really want to tell someone that their personal style is wrong?

      The only time it matters is when you

    • try the ecode tag.

      public class HelloWorld {
      public static void main (String[] args) {
      System.out.println ("Hello World!");
      }
      }

      also... yeah... i like the compressed style. every project i've worked on, that had estabilshed style guides have mandated the compressed style. but, to each their own. we'll see what the dragon does. she's pretty smart. she'll find a style that fits her needs.

      and yeah... no ejbs. not now, not ever. by the time we are ready to

      • Actually, everyplace I've contracted to that has a standard style usually calls for the open brace on its own line. Just easier to read, IMHO (and easier to read == easier to maintain).

        Anywho, I know most people adopt the style of their teacher, so I thought I'd show the option early, just in case ;)

        Knowing sol, her style is gonna be something so unique, I'll be able to recognize it anywhere. ;)
        • One function to view!

          Can require a certain compactness...

        • Unless you need to edit something someplace where vertical space is at a premium(like oh say, via a terminal window), in which case your style loses. Because there's no way you're seeing too much meaningful data at a glance when you go and waste a whole line on a brace. Additionally, It's just as clear to read so long as you're used to it and it's stuck to. It only becomes a problem when the non-initiated go off and divert from it. See anything that can be braced and you know it's going to be followed b
    • It's good to know someone else feels the same way I do regarding formatting in languages written in that way. I work mostly in C#, and it appears structurally similar. I'm the same way with JavaScript.

      I probably should know this, and asking probably demostrates a severe lack of reading comprehesion and information retention.

      What GF stand for?

      I'd reckon it's some kind of dietary requirement. But I can't for the life of me recall what that would be.
    • what part of 'don't critique' didn't you read??? *sigh* i'm going to ignore this until i've finished my homework, and then i'll come read your comment.

      I mean, cmon, what kind of example are you setting about reading the instructions??

      • (thank you anyway. )
      • It isn't really critiquing, just making a joke on how stylization is a big thing for some people (*raises hand*).
        Not saying you did anything wrong, just making a joke about the whole open brace thing.
        (Read this part after you get going with Java) For the record, I've got a unique style. Open parens between the opening paren and the first parameter, and between the last param and the close paren like so:
        private void foo( String param1, String param2 )
        This usually goes against most standards, but I can t
      • 1) Congratulations!

        2) It's a very nice Hello World program. (You didn't say, "no compliments". So there.)

        3) I've been programming for 25 years and I still write Hello World programs all the time, just to make sure everything is set up and working right, so it's a skill you'll be able to use for-evar!

        4) Burninate those who can't read directions!

        5) When programming as part of a group effort, put your little squiggly bits where everyone has agreed to put them. When programming by yourself, put them where it ma

      • I mean, cmon, what kind of example are you setting about reading the instructions??


        A /. kind of example, perhaps?
    • Warning: Holy Brace Wars

      Please DON'T do that!

      Opening braces on a separate line went out of style back in the early '90s.

      Now we're even seeing, for small functions, everything on 1 line:

      int do_this(int x, int y) { return (x||y); }

      ... a la perl.

      Also, (I use Kate or vim to code) in Kate, the brace folding (hiding the code between the braces so you just see the function name, etc) works better with opening braces on the same line.

      for vim, create a .vimrc (don't forget the leading dot) with the follow

    • Don't listen to FK. Blinder is right to teach you the "One True Brace Style". Within reason, the more code you can see in one screen the better. The indent level of the closing brace is more than enough to match it with its proper parent statement. And remember, when it comes to indent levels, you want 4 column indents, no more - no less. Anything else and the terrorists win.
      • 4?!

        You goddamn commie, 3 spaces is the sacred amount of spacing.

        Four? WTF, that's ridiculous.

        • Three spaces? You are the fallen. 3 is the indent of Satan.

          Just think about it for a moment. If you indent three, then your methods will be declared at column 3 and your method bodies will be declared at column 6. Do you really want all your method bodies at column 6?

          It is written in the sacred scripture "Thou shalt indent four. Four shalt be the number of columns thous shalt indent. Thou shalt not indent three, except when proceding to four. Thou shalt not indent more than four, eight being way out.
          • Do you really want all your method bodies at column 6?

            Damn skippy I do!

            Sol, don't listen to these zealots trying to shove their fascistic 4 column indents on you. If you just try it for yourself, you will find that three comes naturally, looks better and in fact will make your programs run much faster (Becuase you have 25% less space to compile, and as we all know Java is a horribly slow language, so you need any optimization you can get).

            (Disclaimer, fallen doesn't do Java so his opinion might be b

            • ...as we all know Java is a horribly slow language...

              I know we are all having fun here, but this is a popular myth. The early versions of Java were strictly interpretted and had very simple garbage collection mechanism. Both these translate into "slow". Modern java virtual machines fix both these problems and generally perform quite well, provided they have been configured properly.

              The first big optimization is runtime compilation. The JVM actively profiles the running code, compiling important se

              • Dear Java Guru, I am a happily married man in my mid twenties. We have one kid and another on the way, how can I make Lotus Notes and other Java desktop applications such as Open Office not suck so much?

                Aggravated in SC.

                • Dear Java Guru,
                  I am a happily married man in my mid twenties. We have one kid and another on the way, how can I make Lotus Notes and other Java desktop applications such as Open Office not suck so much?
                  Aggravated in SC

                  Dear Aggravated,

                  I hate to give you bad news, but Lotus Notes simply sucks. It sucked before it did anything with java, and it will continue to suck even if java was completely removed from the equation.

                  As for OO.o, it is primarily a C++ app. I have no first hand experience with us

    • Bah.

      I write in perl. If I can't write in perl (there are some reasons not to), it's bash. If THAT won't do, then I don't write it. ;)

      Can you tell I'm not a programmer by profession?
  • you know that box you sent me out of the house with this morning? yeah, its gone now.

    still have one box in reserve at home :)

    ugh, the phone. verizon said "have your building manager look at it, because it'll cost ya $110 for us to come out." grrrr!!!

    so i'm a gonna do that. stupid telephones.

    grilled sammiches! yum.
    • my guess? since the prev. tenant had no land line, there was a problem they never knew about, or it never initially got hooked up.

      we make them fix it.

      s
      • they are on the case.
        they were overly cheerful on the phone, like they were so excited to be needed! "oh! phones don't work??? we're sorry... but we'll create a service request!!!"

        i know when i hung up the phone, they, in the office, were like "hey everyone! we are needed!" the dance number starts... probably just wrapping up right now.
  • Red Stripe! Hooray Beer!

    oh wait.....wrong hooray.

    HOORAY!! HOORAY SCANS!!!
  • ...skittles...

    Oh how I miss skittles...not because of the gelatin (not that strict) but they hurt my teeth! Not just "ow" but searing pain as the sugar eats away...why does something so bad (gelatin) have to make things that are so good (skittles, gummi bears, putting things in pill form)...argh!
  • ...it loves portabello/portabella/whatever. Big and rich and tasty. And it especially loves cheese! However, it's rather skeptical to "science bread"...hmm...is it full of empty calories? ;-)
    • science bread is just as carb-loaded and calorific as regular bread, so your ring of fat won't be able to tell the difference- at least, that's what my ring of fat keeps saying.

      And my ring of fat is renowned for its love of breadlike stuffs, so i know the gluten-free fare available around here!

      only thing i haven't found? Gluten-free baklava. *sigh*

      i even managed to find GF, vegan marshmallows (don't ask me what they were made of, i just know they were safe for both blinder and i. Sawdust, i suspect, but i h
  • Hello World!!!!

    Hooray. You're already almost as good at programming as I am! *does a cheer*

  • import java.io.Writer;
    import java.io.PrintWriter;
    import java.io.OutputStreamWriter;

    public class HelloWorldApp {
    public static void main(String[] args) { // Display "Hello World!"

    // create an instance of this class
    HelloWorldApp instance = new HelloWorldApp();

    // In java InputStream/OutputStream objects
    // handle binary data and Reader/Writer objects
    // handle text.

    // Create a writer that wraps the System.out
    // OutputStream object
    Writer out = new OutputStreamWriter(System.out);

    // pass the w

    • heh... this is a wee bit beyond where the dragon is... give her a few weeks of study and practice... and we'll start talking about streams and wrapping objects (and getting into things like singletons and buffering and all that jazz).

      so... for now, we start with the basics.
      • The thing I wanted to demonstrate real early on was that any place one could use a Writer, one can also use anything that subclasses Writer.
        • yeah, exactly... and that is an excellent point, and one that will become important real soon. she needs to get her first program compiled and run, and she is reading the tutorial book to get into those concepts.
  • For Blinder's "best friend"? Didn't he say something about Sol being his best friend in the 69 questions thing?

    You guys are getting married, aren't you?

    Yeah, you can't fool me. I'm not falling for the "girl in Boston" thing again.

    Braces go on their own lines.

    Yeah, you hide a relationship from the Slashdotters, but then expose yourself as a beginning Java coder. Silly priorities you have. ;)
    • er, blinder's OTHER best friend, patrick.

      And not to blinder, either.

      What's wrong with being a beginner?

      And my braces is my business!!

      Don't worry. I started the coding ages ago, too, but was so bad at it that it wasn't worth saying anything.

      Heh. You think i tell you guys everything? What kind of dragon would i be?

      you'll know more of what i'm up to when i get around to talking about it.

      Er. I mean, i'm not up to anything, and when i am, i'll post nonsense until you forget what i'm talking about, in runon sente
  • [pardon me one second, Sol]

    [FLAME]
    Oy! Everybody that had (coding) commentary, critiques, suggestions, or even random fluff about which implementations of Java to use can now go to the corner without supper, no dessert, and NO BISCUIT! Except for those sick firps that are into that kind of thing (no doubt many of you), because you will be publicly lambasted for forwarding an obviously fake virus scare warning (Good Times, anyone?!). And anybody into BOTH of those will simply get massive points deducted on
  • ::hug::

    Sweet kickin' Hello World programme, comrade.:D

    Python would be more appropriate/fun than Java, but... n/m ;)

    P.S. FortKnox is misguided. Same-line braces forever!:D

Competence, like truth, beauty, and contact lenses, is in the eye of the beholder. -- Dr. Laurence J. Peter

Working...