Shop OBEX P1 Docs P2 Docs Learn Events
Poll: Lanuage Confusion — Parallax Forums

Poll: Lanuage Confusion

crgwbrcrgwbr Posts: 614
edited 2008-03-13 00:04 in General Discussion
The other day, after writing a fairly sizable block of code (in python), I got to a point where I could test it. So I saved and pressed run, only to find out that throughout the whole thing, I had used 'repeat' (as in SPIN) instead of 'for' and 'while.' This was quite simple to fix, but it got me wondering.

1) How many languages do you program in on regular basis?
2) How often do you make stupid mistakes that combine several languages, like using 'repeat' instead of 'for'?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen

I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.

"Failure is not an option -- it comes bundled with Windows."

Use The Best...
Linux for Servers
Mac for Graphics
Palm for Mobility
Windows for Solitaire

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2008-03-11 19:27
    crgwbr,

    1. Try to limit regular use to two or three languages ( Pbasic, SB, ladder logic), especially on paying jobs!
    2. Its only a stupid mistake if it gets shipped! I guess it makes sense to focus on a couple of languages and get very proficient in them.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • crgwbrcrgwbr Posts: 614
    edited 2008-03-12 01:34
    "It compiles, SHIP IT!" lol definitely not a rule to live by. Anyway, I guess you kind of misunderstood my question. I normally do fine with switching between PBASIC, Python, SPIN, and learning Java. I was just how often others made stupid little mistakes like this.

    Regards,
    Craig

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen

    I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.

    "Failure is not an option -- it comes bundled with Windows."

    Use The Best...
    Linux for Servers
    Mac for Graphics
    Palm for Mobility
    Windows for Solitaire
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-12 01:40
    I certainly make dumb mistakes. Who doesn't? The hope is that they don't happen very often and have little in the way of consequences. That's where testing comes in and the use of tools that help you catch these errors early.
  • UghaUgha Posts: 543
    edited 2008-03-12 04:41
    The other day I spent about two hours making up a program for my BS2-powered robot... only to realize
    I'd written the entire thing in C without even thinking about it.

    Considering how completely different the two languages are... I had to scrap the whole thing and start over.
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-03-12 06:57
    I have done programming in several languages but at the moment I am only using Spin and C (and a little VBA for some macros that can get rather annoying).

    And I make a lot of stupid mistakes and not all of them are related to switching between different languages.smile.gif What I find more often is wondering why something is so easy in one language and so harder in the other.
  • pwillardpwillard Posts: 321
    edited 2008-03-12 18:06
    The number once reason why I adopted PERL as my language of choice for simple admin tasks is that it is actually an amalgam of many other languages I already knew.· I know what you mean though. I swap between BASIC, C, Perl, PHP, Python and Unix Shell and DOS shell.· It's tough to keep straight somedays.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.
  • UghaUgha Posts: 543
    edited 2008-03-13 00:04
    Pwillard: Woot... awesome to see I'm not the only person in the world who still makes dos-based applications using the
    shell and batch files [noparse]:)[/noparse]
Sign In or Register to comment.