Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Businesses Programming

Why Non-Coders Shouldn't Write Code 421

jfruh writes "Software firm FreeCause made a bit of a splash with a policy that requires all its employees — including marketers, finance, etc. — to write JavaScript code. And not just 'code to learn basics of what JavaScript can do,' but 'write code that will be used in production.' Phil Johnson, a tech writer and editor who himself once coded for a living, thinks this is nuts, a recipe for miserable workers and substandard code."
This discussion has been archived. No new comments can be posted.

Why Non-Coders Shouldn't Write Code

Comments Filter:
  • by crazyjj ( 2598719 ) * on Thursday September 20, 2012 @04:45PM (#41404319)

    function MarketingFunction(originalText)
    {
    var revisedText = new String(originalText + ", which will help build synergy and increase marketshare.");
    return revisedText;
    }

  • by olsmeister ( 1488789 ) on Thursday September 20, 2012 @04:48PM (#41404363)
    Or just use the Corporate BS Generator [atrixnet.com].
    Or, alternatively, here [sourceforge.net].
  • by Scott Swezey ( 678347 ) on Thursday September 20, 2012 @04:48PM (#41404365) Homepage

    The other side of the coin... why non marketing guys shouldn't write marketing materials:

    function MarketingFunction(originalText)
    {
    var revisedText = new String(originalText + ", which will help build synergy and increase marketshare.");
    return revisedText;
    }

  • by Sparticus789 ( 2625955 ) on Thursday September 20, 2012 @04:49PM (#41404369) Journal

    While they are at it, perhaps their accounting department should replace the plumbing in their office building, the secretaries should swap the engine in the CEO's car, and let's have the janitors install a new security system. What could possibly go wrong?

  • A recipie (Score:2, Funny)

    by Anonymous Coward on Thursday September 20, 2012 @04:49PM (#41404385)

    a recipie for miserable workers and substandard code.

    Which is why non-spellers shouldn't spell. Or something

  • by t4ng* ( 1092951 ) on Thursday September 20, 2012 @04:54PM (#41404431)
    Oh, oh... Executive Officers clean up overflowing toilets. Not so they get an appreciation of what is being done, but for the general entertainment of the rest of us!
  • by hawguy ( 1600213 ) on Thursday September 20, 2012 @05:02PM (#41404535)

    a recipie for miserable workers and substandard code.

    Which is why non-spellers shouldn't spell. Or something

    No, that's spelled correctly - it's recipie, shorthand for a recipe for a delicious pie. Which fits perfectly since miserable workers can't make a delicious pie, but if they had a delicious pie they wouldn't be so miserable.

  • by RenderSeven ( 938535 ) on Thursday September 20, 2012 @05:10PM (#41404617)
    Hardly a fair comparison. No one in sales/marketing/management could pass a Turing test to begin with.
  • by Githaron ( 2462596 ) on Thursday September 20, 2012 @05:42PM (#41405031)

    would add more exclamation marks, but Slashdot won't let me

    Make it recursive.

  • by CanHasDIY ( 1672858 ) on Thursday September 20, 2012 @05:45PM (#41405061) Homepage Journal

    do you think the marketing exec could pass the Turing test?

    Well, perhaps, if not for the satanic ritual that's part of graduating from marketing school, during which the individual's soul and humanity are removed and replaced with tapioca pudding.

    Before you ask, it's obviously because tapioca is the most evil of all puddings.

  • by Anonymous Coward on Thursday September 20, 2012 @06:05PM (#41405287)

    I would have hated to get heart surgery from one of their doctors.

  • Re:Stupid. (Score:2, Funny)

    by Anonymous Coward on Thursday September 20, 2012 @06:11PM (#41405341)

    What's fun is to write a script that produces a list of non-repeating random numbers. Especially when you don't know what the hell you're doing.

    First time around? I made a list by using a random number generator and then going over the numbers already in the array with an if statement in order to make sure that the random number wasn't in the list. Guess how fast that thing ran? Took like a minute and a half just to make a list of 100 non-repeating randomized integers with values from 1 to 100.

    Then I talked to one of my internet friends that had more of a clue, as he is an actual programmer. So I was told there was definitely a better way. Not how to find the better way (wasn't his job anyways), just that the code I had was ugly. (Which I expected, since I knew I wasn't that great at it.)

    Next time around? Looked more at how arrays work, since it was hinted at. First populated one array with sequential numbers, thus they didn't repeat. Then used a random number generator to pop items from one array to populate another. Result? Random numbers that again didn't repeat, and each time it looped the list of random numbers to choose from got a lot shorter. Waaay faster than the first time around, and it did what I wanted.

    Still I suspect it's not ideal from a statistical point of view (in the degree of randomness generated), but it's definitely workable. And it's likely I re-invented the wheel because there's some script library I don't know about. It's uses? Basically to scramble the order of a finite number of things where you don't want repeats. Quizes or card games are the first two things that come to mind.

    But my first example shows what's more likely to happen with a non-programmer coding. However if a programmer offers advice or insight, a non-programmer is able to re-do a better version. (Well at least if they understand that there's something wrong to begin with and are willing to work on that.)

  • by SomeJoel ( 1061138 ) on Thursday September 20, 2012 @06:28PM (#41405517)

    What if your targeted market is IT professionals?

    Then you have a failed business model since IT professionals, as a rule, have no budget.

  • by Fallingcow ( 213461 ) on Thursday September 20, 2012 @07:20PM (#41405951) Homepage

    Here, I fixed it for you:


    (function() {
            var MarketingFunction = new function (options, callback) {
                    var revisedText = new String(options.originalText + "!!!!");
                    callback(revisedText);
            }
            Function.prototype.toString = MarketingFunction;
    });

  • by HornWumpus ( 783565 ) on Thursday September 20, 2012 @10:42PM (#41407247)

    Each one is a live baby Tapioc. They scream in your stomach as the acid kills them.

  • by cowdung ( 702933 ) on Thursday September 20, 2012 @11:11PM (#41407363)

    Or just use the Corporate BS Generator [atrixnet.com].
    Or, alternatively, here [sourceforge.net].

    I prefer this site [foxnews.com] for my Corporate BS. Thanks.

"Can you program?" "Well, I'm literate, if that's what you mean!"

Working...