Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Some programmers scare me

Options
  • 26-07-2000 8:06pm
    #1
    Registered Users Posts: 21,264 ✭✭✭✭


    I'm eating lunch in the local mall and heard from the other table.

    P1: We can't call our function that it's a reserved word.
    P2: Java is case sensitive how about we just it Proper case the name then?

    rolleyes.gif

    Someone please tell me this is bad programming. It sounds bad to me.


Comments

  • Registered Users Posts: 12,309 ✭✭✭✭Bard


    Sounds like a bad lunch conversation to me... can these guys not get away from talking about programming for a while and just enjoy their lunch break ??? confused.gif Sheesh!

    Bard

    |home page|scary éire

    [This message has been edited by Bard (edited 26-07-2000).]


  • Registered Users Posts: 332 ✭✭spod


    Hey

    It could've been a pair of XP practicers.
    http://www.xprogramming.com/Practices/PracPairs.html

    XP is an interesting development methodology I read about briefly, whilst reading the rather
    excellent (so far) "thinking in c++" available in electronic form (and safely downloaded to my palm
    pilot for bus etc. reading when I get sick of palm sim city) from http://www.bruceeckel.com/

    Seriously though, Programming in pairs does sound like a good idea...


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    are you on drugs? smile.gif

    I'd never be able to work with someone watching me.

    How is this an advantage over peer review or QA code review?



  • Closed Accounts Posts: 2,203 ✭✭✭Excelsior


    where'd u get palm sim city? will it work on a 3c? i'm getting one on august 7th. along with the sexy fold out keyboards. ahhh, technology urges sated... for another 3 months.

    It is so lonely here in my indecipherable tower of speech impedimency


  • Closed Accounts Posts: 492 ✭✭Pretence


    Originally posted by spod:
    "thinking in c++"


    Excellant book, indeed, downloaded it there a few weeks ago. It has an excellant approach to OO design which is the frame of mind you need to approach C++.


    I dunno about programming in pairs, I'm not knocking it, I just never really did it.



  • Advertisement
  • Moderators, Social & Fun Moderators Posts: 10,501 Mod ✭✭✭✭ecksor


    Originally posted by Hobbes:
    I'm eating lunch in the local mall and heard from the other table.

    P1: We can't call our function that it's a reserved word.
    P2: Java is case sensitive how about we just it Proper case the name then?

    rolleyes.gif

    Someone please tell me this is bad programming. It sounds bad to me.

    I'd think it is, why not just come up with a name that isn't likely to confuse someone later?



  • Registered Users Posts: 332 ✭✭spod


    Originally posted by Excelsior:
    where'd u get palm sim city? will it work
    http://www.atelier.tm/palm/scc.html

    or mail me when you get your palm smile.gif



  • Moderators, Social & Fun Moderators Posts: 28,633 Mod ✭✭✭✭Shiminay


    Imagine being the muppet that has to support that code after it's been released???

    That's what I do from time to time (when I actually do some work).

    We had one guy who was a ninja programmer, but NEVER commented anything. Because he was so good - he fixed everything that didn't work (which was quite a bit wink.gif).

    Now I try to fix something that's gone wrong and there's loads of variables a, b and c popping up all over the gaff! People who do this should be killed at birth tongue.gif


    All the best,

    Dav
    @B^)
    My page of stuff

    [This message has been edited by Kharn (edited 27-07-2000).]


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    reminds me of a really old job. The person who bought the program I wrote was particully obnoxious (basically trying to screw me out of money) and his head developer was a muppet too.

    They eventually agreed to pay for the source.

    So I wrote program which removed all the nice names I gave for functions+varibles which changed them to "a,b,c,...,aa,ab,ac,...A" and so on.

    Looked an absolute mess but compiled perfectly. biggrin.gif


  • Registered Users Posts: 16,413 ✭✭✭✭Trojan


    Originally posted by Hobbes:
    Looked an absolute mess but compiled perfectly

    Very bold Hobbes!! smile.gif

    http://www.ioccc.org/

    Al.

    --

    amdsoft.com


  • Advertisement
  • Registered Users Posts: 332 ✭✭spod


    ouch!

    Hobbes you bstard!

    Reminds me of a story about Talliesin I heard.

    He did a mad big javascript front page for our site when he was still working where I am now.

    Monstorous was the word.

    He had two versions.

    the proper version with comments, well named variables, decent function names etc. and the production version which had single or double letter identifiers, no comments, no formatting and as little white space as possible to minimise download time.

    Skimmed a couple of k off the download, but no one except talliesin could maintain it wink.gif

    I rememember helping a friend with a program she wrote in college aages ago. She was starving when she wrote it so every variable was something like burgers, chips, eatChips()etc. etc. Took ages to get my head around it. In the end we had to go through it and find and replace all the variable and function names with sensible ones smile.gif

    And then there's the old php class $boom = explode($dynamite);
    Have to get that into every script smile.gif


    Oh, in a desperate attempt to stay on topic, according to the Official Java coding guidelines ( http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html ) as well as any general identifier naming conventions for oop they're way off.

    Firstly, never use case to differentiate identifiers.

    According to the conventions Java methods should be verbs, in mixed case, with the first letter lowercase, and the the first letter of each internal word capitalised.

    eg. run(); runFast(); getBackground();



  • Closed Accounts Posts: 2,203 ✭✭✭Excelsior


    thanks spod.

    It is so lonely here in my indecipherable tower of speech impedimency


  • Moderators, Social & Fun Moderators Posts: 28,633 Mod ✭✭✭✭Shiminay


    Hobbes - you should be burnt at the stake for that!!! I love it wink.gif

    I'd do things like that here at work, only I know I'm the one who has to maintain it (the joys of being a Hell Desk Developer).



    All the best,

    Dav
    @B^)
    My page of stuff


  • Registered Users Posts: 2,660 ✭✭✭Baz_


    Thats some pretty bad **** boyos, tut tut.

    Hobbes next time you here or see them muppets (if you ever will) give 'em a smack from me, ta.


  • Registered Users Posts: 4,676 ✭✭✭Gavin


    hey ! that sim city looks really cooll...
    i still am playing subhunt on my visor frown.gif

    /me wanna good game

    Gav


  • Registered Users Posts: 9,557 ✭✭✭DublinWriter


    Hobbes wrote: »
    I'd never be able to work with someone watching me.

    How is this an advantage over peer review or QA code review?

    You get your typos fixed in real time.


  • Registered Users Posts: 92 ✭✭jgh_


    I'm glad the stuff I work on is not so trivial I spend my lunch hour pondering over the name of a method.


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    You get your typos fixed in real time.

    Not that 'real time' given the previous post is almost 13 years old :D


  • Moderators, Technology & Internet Moderators Posts: 11,015 Mod ✭✭✭✭yoyo


    Excelsior wrote: »
    where'd u get palm sim city? will it work on a 3c? i'm getting one on august 7th. along with the sexy fold out keyboards. ahhh, technology urges sated... for another 3 months.

    It is so lonely here in my indecipherable tower of speech impedimency

    Lol I had a Palm IIIc all those years ago, nostalgic! :P

    Nick


  • Closed Accounts Posts: 799 ✭✭✭Logical_Bear


    oldest zombie thread I've ever seen.EVER!!


  • Advertisement
  • Registered Users Posts: 92 ✭✭jgh_


    oldest zombie thread I've ever seen.EVER!!

    Holy smokes, I was wondering why everyone was talking about Palms lol.


  • Registered Users Posts: 40,038 ✭✭✭✭Sparks


    green12-zombie-hand-0409-10162228.jpg

    I think we can close this one safely :D


This discussion has been closed.
Advertisement