Jump to content

Coding speed - lines/hour


Recommended Posts

Posted (edited)

Thanks guys for the replies. I now understand that it is totally irrelevant. However, I would like clarification on why in freelancer website and such, people ask for a fast programmer that could type like ~80WPM. Also, as an advice, do I need to plan and write down an algorithm step by step of how the script should work before coding or just normal thinking?

Edited by andrewboss
Posted

I try to complete one line of code per hour.

Here's an example cow killer.

getNpcs().getAll().stream().sorted(Comparator.comparingDouble(a -> getMap().distance(a))).filter(npc -> "Cow".equals(npc.getName()) && Stream.of(npc.getActions()).anyMatch("Attack"::equals)).findFirst().ifPresent(npc -> npc.interact("Attack"));

 

  • Like 6
Posted
3 minutes ago, andrewboss said:

Thanks guys for the replies. I now understand that it is totally irrelevant. However, I would like clarification on why in freelancer website and such, people ask for a fast programmer that could type like ~80WPM. Also, as an advice, do I need to plan and write down an algorithm step by step of how the script should work before coding or just normal thinking?

Are you sure that it's for programmers and not typists?  When it comes to scripting I can't give advice since i'm a beginner but generally if you properly think through a program and design it before actually implementing it, you end up with higher quality code with less bugs. It's hard to think of the working of the full program when you're writing it line by line.

Posted
20 minutes ago, Night said:

Lines/hr is a very poor quantifier of skill. Industry expects as little as 50-500 lines of code a day from professional programmers with CS degrees. That being said, this code is far less likely to need to be debugged than the 200 lines/hr that comes out of a beginner.

Haha, your right. Even if 100-200 is the code I write per hour, then I usually stare for 2 hours to fix bugs :D 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...