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
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Coding Horror

1235722

Comments

  • Registered Users Posts: 20 lowlifer


    Giblet wrote: »
    Another reason why
    13 == secondaryIndex
    

    is the master syntax ;)

    I hate it when my teachers are right. :mad:

    Anyway, I'd rather run into a blocker like this and lose 5 minutes on it rather than using the quoted syntax each and every single day.


  • Registered Users, Registered Users 2 Posts: 11,985 ✭✭✭✭Giblet


    Imagine it making it into production code on a falsey value which because truthy. You'd lose more than 5 mins. Anyway, you wouldn't use magic numbers, just comparisons against values that cannot be assigned to. (consts etc)


  • Registered Users Posts: 20 lowlifer


    I like to think it wouldn't, I test all my work meticulously; we also have internal standards about magic numbers and values that *should* keep us from getting in this situation.

    The problem with standards is that they're sadly not always followed and eventually we run into some guy's work who isn't even with the company anymore. But that's besides the point.

    I will take my chances with not using this ugly syntax.


  • Registered Users, Registered Users 2 Posts: 11,985 ✭✭✭✭Giblet


    lowlifer wrote: »
    I like to think it wouldn't, I test all my work meticulously; we also have internal standards about magic numbers and values that *should* keep us from getting in this situation.

    No such thing as meticulous testing, doesn't exist or is a fairy tale. Anyway arguing about syntax is low hanging fruit, it's what every tom dick and harry coder can argue about. The real issues are the ones to be solved, and this is one of them.


  • Registered Users, Registered Users 2 Posts: 9,559 ✭✭✭DublinWriter


    Not Coding Horror, per se, but Horror none the less.

    One of my clients, a very big organisation, had a small app developed by one of the 'Big 6' consultancies a while back.

    They needed to pull data out of the app to integrate it into another in-house app.

    They employed the original Big-6 consultancy to come in and code the work - essentially a SQL-statement piped out to a text file.

    The invoice came in last week for the work - €32,000. I kid you not.


  • Registered Users, Registered Users 2 Posts: 1,529 ✭✭✭zynaps


    They employed the original Big-6 consultancy to come in and code the work - essentially a SQL-statement piped out to a text file.

    The invoice came in last week for the work - €32,000. I kid you not.
    Ouch. Nice work when you can get it... :pac:


  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    The "consultants" for those big companies are just guys straight out of college not getting paid very much. Their managers/salespeople etc are the ones creaming it.


  • Registered Users Posts: 20 lowlifer


    How much do those "Big 6" charge for an hour?

    I hope the invoice was given before implementing. :D


  • Registered Users, Registered Users 2 Posts: 1,645 ✭✭✭k.p.h


    The Big 6 ..??? :confused: Could someone clarify/identify ..? Through PM if necessary.?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,246 ✭✭✭conor.hogan.2


    k.p.h wrote: »
    The Big 6 ..??? :confused: Could someone clarify/identify ..? Through PM if necessary.?

    I think they are talking about 6 of the bigger consultancy firms. Delloitte and Accenture being 2 of them afaik. A lot of them do accountancy/audit etc type work.


  • Registered Users, Registered Users 2 Posts: 2,029 ✭✭✭Colonel Panic


    It's also generally thought that they charge a lot but deliver very little and burn out junior developers very quickly.

    I've found some consultants from the big 6 seriously good, others not so much, much like anything.


  • Registered Users, Registered Users 2 Posts: 5,246 ✭✭✭conor.hogan.2


    Not a coding horror but doesn't fit into another thread:

    http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey()


  • Moderators, Politics Moderators Posts: 40,287 Mod ✭✭✭✭Seth Brundle


    Monkey is an emulator software used to stress test the application:
    http://developer.android.com/guide/developing/tools/monkey.html


  • Registered Users, Registered Users 2 Posts: 44,028 ✭✭✭✭Basq


    Not coding so much as design but..


    Hey Lidl...

    You really should have an option to hide that big blue ribbon, it's obscuring your offers and there's no option to hide it!

    :mad:

    Untitled_173.jpg


  • Moderators, Politics Moderators Posts: 40,287 Mod ✭✭✭✭Seth Brundle


    Basq wrote: »
    You really should have an option to hide that big blue ribbon, it's obscuring your offers and there's no option to hide it!
    ...except for the Close button (black rectangle with white text)


    edit: mmm garlic chicken Kiev


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 44,028 ✭✭✭✭Basq


    Ah jaysus.. just spotted that now. Still, it's hardly intuitive given it's distance from the ribbon..

    Was looking for something more like this:

    Untitled_174.jpg


  • Registered Users, Registered Users 2 Posts: 5,246 ✭✭✭conor.hogan.2




  • Moderators, Politics Moderators Posts: 40,287 Mod ✭✭✭✭Seth Brundle


    "Quicktime needs your permission to run" - get to f...


  • Moderators, Education Moderators, Technology & Internet Moderators Posts: 35,100 Mod ✭✭✭✭AlmightyCushion



    What? You mean you don't like it when text follows your cursor across the screen.


  • Registered Users, Registered Users 2 Posts: 5,246 ✭✭✭conor.hogan.2


    What? You mean you don't like it when text follows your cursor across the screen.

    I don't like any of it. It is the worst website I have seen by far :(

    Even the source is annoying. The music is only minorly funky, not funky enough to warrant auto playing….


  • Advertisement
  • Moderators, Education Moderators, Technology & Internet Moderators Posts: 35,100 Mod ✭✭✭✭AlmightyCushion


    I don't like any of it. It is the worst website I have seen by far :(

    Even the source is annoying. The music is only minorly funky, not funky enough to warrant auto playing….

    I've seen worse, but they were ones that were deliberately awful. I did see one that was worse than that (and it was a lot worse) but I can't remember the link. :(


  • Registered Users, Registered Users 2 Posts: 5,246 ✭✭✭conor.hogan.2


    I've seen worse, but they were ones that were deliberately awful. I did see one that was worse than that (and it was a lot worse) but I can't remember the link. :(

    I saw a few that were worse but as you say I then found out they were deliberately bad for one reason or another.

    This looks 100% genuine as far as I can tell.


  • Registered Users, Registered Users 2 Posts: 1,529 ✭✭✭zynaps


    Now that's a classy website! Not in the least bit tacky and 1998. With these Ferrero Rocher you're really spoiling us...


  • Registered Users, Registered Users 2 Posts: 3,992 ✭✭✭Korvanica


    Kill it with fire !

    Am I the only one who played with the text for a few minutes? :pac:


  • Registered Users, Registered Users 2 Posts: 44,028 ✭✭✭✭Basq


    The most hideous site I've seen recently is the official website for 'Game Of Thrones' author George R.R Martin.

    george-r-martin.jpg

    Surely with the surge both in sales and visitors due to the TV series, someone who represents him would do something with it.

    Varying hues of purple.. really?!


  • Registered Users Posts: 43 allaboutclicks


    I know as web designer I shouldn't admit this - but I really like that design. It's so 90s. I think it's cute out.


  • Registered Users, Registered Users 2 Posts: 7,719 ✭✭✭StupidLikeAFox


    I found the little text following the cursor a sorta cool. Probably wont be seeing it on Google, Amazon or Facebook or anytime soon


  • Registered Users, Registered Users 2 Posts: 7,518 ✭✭✭matrim


    ColHol wrote: »
    I found the little text following the cursor a sorta cool. Probably wont be seeing it on Google, Amazon or Facebook or anytime soon

    When I first learned JavaScript back in about 1999, that was one of the first things I learned and I thought it was so amazing


  • Moderators, Politics Moderators Posts: 40,287 Mod ✭✭✭✭Seth Brundle


    matrim wrote: »
    When I first learned JavaScript back in about 1999, that was one of the first things I learned and I thought it was so amazing
    I learnt it about then too. Never thought it was cool though!


  • Registered Users, Registered Users 2 Posts: 3,615 ✭✭✭Mr.Plough


    So for my masters thesis I picked 5 topics and got my 4th choice, which involves developing a coordinate system using the Xbox kinect. My degree is mechanical engineering why is this even an option. It sounded a hell of a lot easier than it is and I have just about zero programming experience.

    Has anyone worked with the Kinect SDK here?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,791 ✭✭✭John_Mc


    Mr.Plough wrote: »
    So for my masters thesis I picked 5 topics and got my 4th choice, which involves developing a coordinate system using the Xbox kinect. My degree is mechanical engineering why is this even an option. It sounded a hell of a lot easier than it is and I have just about zero programming experience.

    Has anyone worked with the Kinect SDK here?

    Not really the thread to post this, would be better to post it in it's own so it gets attention from people who may be experienced with it.


  • Registered Users, Registered Users 2 Posts: 1,717 ✭✭✭Raging_Ninja


    Mr.Plough wrote: »
    So for my masters thesis I picked 5 topics and got my 4th choice, which involves developing a coordinate system using the Xbox kinect. My degree is mechanical engineering why is this even an option. It sounded a hell of a lot easier than it is and I have just about zero programming experience.

    Has anyone worked with the Kinect SDK here?

    its the design tool of the future. kinect has lots of uses outside of gaming in many various fields, from a learning tool for mentally challenged kids, to assisting in surgery, to designing structures.

    it'll be a good project, sounds interesting and will stand by you in the future.


  • Registered Users, Registered Users 2 Posts: 3,615 ✭✭✭Mr.Plough


    Mr.Plough wrote: »
    So for my masters thesis I picked 5 topics and got my 4th choice, which involves developing a coordinate system using the Xbox kinect. My degree is mechanical engineering why is this even an option. It sounded a hell of a lot easier than it is and I have just about zero programming experience.

    Has anyone worked with the Kinect SDK here?

    Got a 1st :eek: Turned out to be quite enjoyable once the panic stage was over.


  • Registered Users, Registered Users 2 Posts: 1,529 ✭✭✭zynaps


    Mr.Plough wrote: »
    Got a 1st :eek: Turned out to be quite enjoyable once the panic stage was over.
    Excellent, nicely done! I'm sure the skills you picked up will come in handy in future :)


  • Registered Users, Registered Users 2 Posts: 1,889 ✭✭✭evercloserunion


    Something very endearing about that GRRM site.


  • Closed Accounts Posts: 3,609 ✭✭✭Boards.ie: Danny


    So we had a problem on Boards I'm working through fixing where we update a thread prefix, rebuild the cache but the cache still has the old phrase. I've narrowed it down to a function, but the docblock has made me wonder if I should look within at all

    [php]
    /**
    * Reads a language or languages and updates the language db table with the denormalized phrase cache
    *
    * @param integer ID of language to be built; if -1, build all
    * @param integer Not sure actually... any ideas?
    */
    function build_language($languageid = -1, $phrasearray = 0)[/php]

    If the programmer doesn't know what a parameter does, do I really want to fix this? Thanks vBulletin


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 92,450 Mod ✭✭✭✭Capt'n Midnight


    If the programmer doesn't know what a parameter does, do I really want to fix this? Thanks vBulletin
    phrasearray ?

    LOL reminds me of ye olde Netware - hadn't realised that Vaxen used too

    FIRE PHASERS 3 TIMES


  • Closed Accounts Posts: 3,513 ✭✭✭donalg1


    Basq wrote: »
    The most hideous site I've seen recently is the official website for 'Game Of Thrones' author George R.R Martin.

    george-r-martin.jpg

    Surely with the surge both in sales and visitors due to the TV series, someone who represents him would do something with it.

    Varying hues of purple.. really?!

    :eek:

    I can only do the most basic sites using HTML and CSS learned in the evenings through W3 Schools and a few other books and all I can say is wow that site is awful, what the hell are they thinking.


  • Registered Users, Registered Users 2 Posts: 2,021 ✭✭✭ChRoMe


    So we had a problem on Boards I'm working through fixing where we update a thread prefix, rebuild the cache but the cache still has the old phrase. I've narrowed it down to a function, but the docblock has made me wonder if I should look within at all

    [php]
    /**
    * Reads a language or languages and updates the language db table with the denormalized phrase cache
    *
    * @param integer ID of language to be built; if -1, build all
    * @param integer Not sure actually... any ideas?
    */
    function build_language($languageid = -1, $phrasearray = 0)[/php]

    If the programmer doesn't know what a parameter does, do I really want to fix this? Thanks vBulletin

    You are working in PHP, not knowing what that param does is the least of your problems tbh.


  • Advertisement
  • Closed Accounts Posts: 3,609 ✭✭✭Boards.ie: Danny


    ChRoMe wrote: »
    You are working in PHP, not knowing what that param does is the least of your problems tbh.

    Without PHP you wouldn't have anywhere to write that post, lets leave the language wars for another thread?


  • Registered Users, Registered Users 2 Posts: 1,889 ✭✭✭evercloserunion


    Without PHP you wouldn't have anywhere to write that post, lets leave the language wars for another thread?
    I agree about leaving the language wars to another thread, but it's hardly the case that if PHP did not exist nobody would write online forums.


  • Closed Accounts Posts: 3,609 ✭✭✭Boards.ie: Danny


    That's not what I was implying at all. My point was (and is) that for 12 years now boards has been running on PHP, clearly it's not all a coding horror.

    But again, this begins to fall into a language debate so I'll bow out of this discussion :)


  • Administrators Posts: 54,087 Admin ✭✭✭✭✭awec


    People who write:
    if(var == true) { return true; } else { return false; }
    

    should have their nipples wired to an electric fence.

    I've also recently seen:
    public string MyFunc()
    {
        try
        {
             DoWork();
             return "success";
        }
        catch(Exception e)
        {
            return e.Message;
        }
    }
    
    and then with a nice:
    
    if MyFunc == "success"
    


    Le sigh....


  • Registered Users, Registered Users 2 Posts: 2,029 ✭✭✭Colonel Panic


    Big time. Another one is functions/methods that return a boolean for success that look like this
    bool GodClass::MakeTheMagicHappen() 
    { 
    	/* loads of stuff with no error checking or exception handling */ 
    	return true; 
    }
    

    Except marks when the function takes no params and touches lots of member variables and a couple of globals too.


  • Closed Accounts Posts: 2,930 ✭✭✭COYW


    awec wrote: »
    People who write:
    if(var == true) { return true; } else { return false; }
    

    should have their nipples wired to an electric fence.

    That is an absolute belter, I have to admit. I just finished on the most demoralizing project ever. Stuck with a lead who only ever learned .Net 2.0 and thinks all future frameworks, generics, programming against interfaces and LINQ are "a load of sh1te". They were Agile too, meaning that they documented nothing. I was told not to comment my code, as it was a "waste of time". Apparently, that is classic Agile!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    COYW wrote: »
    Apparently, that is classic Agile!

    I'm glad it has a name.


  • Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,241 Mod ✭✭✭✭L.Jenkins


    COYW wrote: »
    I was told not to comment my code, as it was a "waste of time". Apparently, that is classic Agile!

    Hide the simplest of error with a code segment and send him on a goose chase. Drive commenting into him!


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


    COYW wrote: »
    They were Agile too, meaning that they documented nothing.
    If I ever go postal, I suspect that this may well play a major role in why.

    ObHorror from my past, paraphrased for NDA reasons:
    ...
    // Using if/then here instead of switch as it's more efficient
    if () 
    {
    ...
    } 
    else if ()
    {
    ...
    }
    else if ()
    ...[b][i]repeats for approximately 14,000 lines of code[/b][/i]...
    

    Not a typo. Fourteen Thousand Lines in an if/then/else structure, done because an earlier programmer thought that that was more efficient than switch().

    There wasn't a brick in a sock large enough to beat them with...


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 92,450 Mod ✭✭✭✭Capt'n Midnight


    Sparks wrote: »
    Not a typo. Fourteen Thousand Lines in an if/then/else structure, done because an earlier programmer thought that that was more efficient than switch().

    There wasn't a brick in a sock large enough to beat them with...
    I had to change a switch to nested if

    But that was in Power Basic back in 1990 and needed to run on an 8MHz 8086.


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


    I had to change a switch to nested if
    But that was in Power Basic back in 1990 and needed to run on an 8MHz 8086.
    BASIC?

    #define ALLBETS 0 /* :D */

    But my horror was in C++ (well, C---- really)


  • Advertisement
Advertisement