1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How many hours can you code maximum?

Discussion in 'General Programming Chat' started by MoneyIsTheGod, Mar 1, 2015.

  1. MoneyIsTheGod

    MoneyIsTheGod Jr. VIP Jr. VIP

    Joined:
    Oct 26, 2013
    Messages:
    755
    Likes Received:
    439
    Occupation:
    Software Developer
    Home Page:
    How many hours can you code per day?

    Coding is a stressful job, so how many hours should we work on a project a day to stay safe and healthy?
     
  2. JhonConzix

    JhonConzix Junior Member

    Joined:
    Oct 27, 2014
    Messages:
    116
    Likes Received:
    68
    I code for like 5-6 hours daily, 3 in the morning and 2-3 afternoon
     
  3. biglia

    biglia Regular Member

    Joined:
    Jun 28, 2008
    Messages:
    212
    Likes Received:
    38
    nine-to-five, like a day job
     
  4. tiyowan

    tiyowan Regular Member

    Joined:
    Aug 7, 2013
    Messages:
    250
    Likes Received:
    136
    I'm productive for four hours in a day. If I write code for longer than that then I usually end up having to refactor it the next day.
     
    Last edited: Mar 1, 2015
  5. MoneyIsTheGod

    MoneyIsTheGod Jr. VIP Jr. VIP

    Joined:
    Oct 26, 2013
    Messages:
    755
    Likes Received:
    439
    Occupation:
    Software Developer
    Home Page:
    What's the hardest part of programming, in your opinion?
     
  6. Elderio

    Elderio Newbie

    Joined:
    Feb 27, 2015
    Messages:
    7
    Likes Received:
    2
    Most people, including myself, that I've worked with are the most productive within the first 5 hours. After that productivity usually declines quite sharply. However, there are times when you need to code for much longer. I've had to code for 16 hours on several projects. If you are to embark upon a long coding session, make sure you take proper breaks and other health and safety procedures.
     
    • Thanks Thanks x 1
  7. 2Strikes

    2Strikes Newbie

    Joined:
    Mar 12, 2014
    Messages:
    20
    Likes Received:
    1
    Well I've been up for the past 3 days. Not all the time was spent coding, but a majority of it was.
    I can normally do 20 hours straight till I need an hour break.
     
  8. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    129
    Likes Received:
    62
    I've got 18-20 hours plenty of times, minus some small breaks to use the washroom, eat, etc.

    It gets hard when you start to get tired though. It's almost like being drunk! You can't think straight and you start to make lots of mistakes
     
  9. MoneyIsTheGod

    MoneyIsTheGod Jr. VIP Jr. VIP

    Joined:
    Oct 26, 2013
    Messages:
    755
    Likes Received:
    439
    Occupation:
    Software Developer
    Home Page:
    What kind of tools do you create? I generally create desktop based web bots. So I don't need to spend much time per day on a project though.
     
  10. linuxoiad

    linuxoiad Junior Member

    Joined:
    Sep 20, 2013
    Messages:
    111
    Likes Received:
    11
    I know times when i coded entire day and even my head is burning out i didn't quit :) ..

    I'm proud on myself
     
  11. kaptain1

    kaptain1 Junior Member

    Joined:
    Jan 30, 2015
    Messages:
    102
    Likes Received:
    16
    Occupation:
    Freelance
    i code everytime, i just dont have anything else to do except eating and sleeping :D
     
  12. MoneyIsTheGod

    MoneyIsTheGod Jr. VIP Jr. VIP

    Joined:
    Oct 26, 2013
    Messages:
    755
    Likes Received:
    439
    Occupation:
    Software Developer
    Home Page:
    You could do it in 2 days by dividing the work, why didn't you do it?

    That doesn't look like a healthy lifestyle. Breathe some fresh air sometimes. What tools do you create if you don't mind me asking?
     
  13. PolitikZ

    PolitikZ Newbie

    Joined:
    Nov 26, 2014
    Messages:
    39
    Likes Received:
    22
    Location:
    ~/
    Even though I stay at computer more than 10 hrs a day, I code about 1 hour max. In the past it was different story.
     
  14. kaptain1

    kaptain1 Junior Member

    Joined:
    Jan 30, 2015
    Messages:
    102
    Likes Received:
    16
    Occupation:
    Freelance
    yeah i feel it sometimes but i like aggression towards my work. i do take a 10-20min walk to refresh myself
    and its has been alot of time doing it so i have ready made codes for almost everything..
    desktop / websites/ mobile applications / linux scriptings / algorithms etc... anything related to computer
     
  15. naskootbg

    naskootbg Power Member

    Joined:
    Nov 8, 2010
    Messages:
    645
    Likes Received:
    221
    Home Page:
    I'm codding for relax - long range from the daily stress. Sometime 10 hours sometime 10 minutes. In my case depends from alcohol quality and quantity. For me the codding is like fishing (real offline fishing).
    If the codding is your daily job than it is all about stress (excepting the cases when your boss allows drinking, which seems impossible) just like each other brain work.
     
  16. bbrez1

    bbrez1 Power Member

    Joined:
    Feb 21, 2009
    Messages:
    675
    Likes Received:
    2,362
    I work freelance. Some days I don't feel like coding at all; and on some days I can work the entire day (I have pushed 20 hour days a couple of times - it's really not that bad if you take breaks).

    So I just work like that. Whenever I 'feel it' and I have no issues and everything runs smooth I just try to push out as much as I can (if a deadline is close then I usually do the crazy 20 hour days), but otherwise I'm usually maxing 12 hours on good days. When I don't move anywhere I usually just take a break for a while or don't code that day at all. Just trying to minimize stress this way. Working good so far.

    In the end I push around 200 - 300 hours per month. (But I'm working like crazy. So many projects, so many ideas. There is no stopping)

    I work on freelance and personal side projects.
     
  17. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,251
    Likes Received:
    3,516
    Occupation:
    Full time IM
    I used to do coding "marathons" where I coded for over 24 hours straight. But after that I chilled for a week :) Realistically it is impossible to work and focus for more than 4-6 hours/day consistently. Regardless of the job.
     
  18. aleksandara

    aleksandara Newbie

    Joined:
    Feb 24, 2015
    Messages:
    5
    Likes Received:
    0
    To me 6-7 hours of productive work including coding is the sweet spot. Over the years, I have been able consistently to work that hours easily. You then have some free hours to go to gym, socialize, etc.

    It also depends if the project is "hard" or "easy", when I'm less experienced with the project or task, I have to spend additional effort to learn, solve problems, communicate with the team, etc. While on the other hand, I can spend 10 hrs working on the easy tasks without even blinking ;).
     
  19. Diplomat

    Diplomat Jr. VIP Jr. VIP

    Joined:
    Oct 25, 2011
    Messages:
    948
    Likes Received:
    440
    Home Page:
    I think it's healthy to do 6-7 per hour max.. otherwise you are burned out within 1-2 weeks which means low productivity + tons of retarded decisions that make you rewrite your code in the future.
    Also every time when you get out of your zone, take a break.. like 10 min or so (yes then it takes like 10-20 min to get back to the zone, but it's worth it).

    I have done some crazy marathons, but it's not worth it.. you start making stupid mistakes and you later waste your time rewriting stuff.
     
    • Thanks Thanks x 1
  20. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,409
    Likes Received:
    3,057
    Gender:
    Male
    Frankly speaking, 2-3 hours a day. I am too good in copying codes lol. I am a full-time programmer and yet, I spend most of the time studying new technologies rather than intense coding, but I can code upto 10-12 hours in a day.