Re: newbie question on cobol syntax



Pete Dashwood wrote:
"LX-i" <lxi0007@xxxxxxxxxxxx> wrote in message news:_N6dnZOqIvKHN7PbnZ2dnUVZ_vWtnZ2d@xxxxxxxxxxxxxx

But, it wasn't my conversation, so I stayed out... :) Today, I was coding away at my new Java job, and found myself creating a setter method...

public void setDescription(final String psDescription) {
move psDescription to msDescription
}

I got to the "c" in "msDescription" and realized what I was doing! Oops...


Wait 'til you start writing (in COBOL...)

wsvalue = ws-number.ToString(); :-)

It took me about two weeks of intensive coding in C# before I stopped making the kind of error you describe...

So far, it hadn't happened. Of course, I'm just starting to get into the meat of it. Between Java and C#, though, I'd have to say I prefer C#'s syntax, especially when it comes to properties.

Our system uses Apache, Struts, and Velocity, along with Java and Oracle. I like the way it's laid out, but there are a lot of different pieces in different places. I'm beginning to understand MVC, but it seems that C# is a little more straightforward in that as well.

These days it doesn't happen... :-)

So there's hope for me yet - cool! (Of course, this will probably be my last "hands in the code" assignment, especially if I make E-7. That'll put me into management at that point.)


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Albuquerque, NM! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Who is more irrational? A man who believes in a God he doesn't see, or a man who's offended by a God he doesn't believe in?" - Brad Stine
.



Relevant Pages

  • Would ruby be easy to code in using voice recognition?
    ... I was interested in giving ruby a try. ... I have been coding for years ... and makes coding less fun. ... For Java, I just kept getting annoyed that certain features weren't ...
    (comp.lang.ruby)
  • Re: Why C/C++ errors are SO obscure/devious??
    ... Development Environment for Java does things a little like this -suggesting at coding time what could be wrong with your code, giving alternatives on a popup textbox to change the type of your variable,. ... and although it's far too face-licking and tail-wagging for my taste I must admit it's nice to have a red squiggle appear when I call isWhiteSpace() instead of isWhitespace. ...
    (comp.lang.c)
  • Re: CSharp
    ... Both SUN and MS has published coding conventions. ... I follow SUN coding concvention for Java and MS coding ...
    (microsoft.public.dotnet.languages.csharp)
  • **JOB POSTING** US-OH-Columbus - Java Developer - PERM
    ... Java Developer ... Able to work on programming projects with little supervision, ... design, unit coding, testing, debugging, and integration. ... Design and code applications from specifications. ...
    (comp.lang.java.programmer)
  • Re: Why C/C++ errors are SO obscure/devious??
    ... Development Environment for Java does things a little like this -suggesting at coding time what could be wrong with your code, giving alternatives on a popup textbox to change the type of your variable,. ... ideas had proven naive, I think that a C "pre-preprocessor" looking for errors and making some guess based on coding style and common error sources and tries to suggest possible causes could eventually be useful... ...
    (comp.lang.c)