As a beginner I concentrate for 1-2hrs in the morning. Loving learning to code. Thinking of assisting the coding sessions at my kids school. Having my guitar close is good for having short breaks.
am from africa and coding is one of my favorite things to do this days since i am a beginner thanks for being frank and all that but as for me its all about pushing ur comfort zone for now i code for 1-2hrs but eventually i know with alot of determination i will reach the four hours thanks though
How anyone can simply start coding without learning the concept of any programming language or framework. Understanding the concepts is more important than simply shooting in the dark.
agreed...I think people tend to forgot that important concept....this is why one should not ONLY read or watch tutorials... they should read/watch-tuts WHILE coding along with the author....pause the video and or stop reading....do a few examples until you understand the concept and repeat( making up your own examples to really drive the new concept home)...its down-right impossible to code for for even a few minutes without understanding the fundamentals...once you've completed a book or tutorial , you should put what you learned to work in either multiple small projects or one big one fitting in all the concepts you learned to REALLY drive it home.
While this is true, many people never apply what they learn. Coding is about solving problems, and eventually you will not know something technical (it happens to the very best), because you will never know everything. I mean, granted some basics should be understood but you can give someone a text game to make, or some other CS 101 type project to get them making things. If you don't make anything what have you really done, and how can you validate that you understand?
Most people on the internet make it seem like you can bypass that slump of productivity but, this was an honest video. Four hours of programming seems really nice! Thanks for making this video!
I have to agree with 4 hours on average. My personal preference is to sit down for one 12 hour session and taking 1-2 days easy days for planning and billing and such tasks. This works well for me when I am in a coding/hacking mood. I think it depends for everyone. It's also important to know that sometimes you have to take a break so that you can think CLEARLY. After 9 years programming I still get the occasional typo/logic glitch that takes 1-2 hours to fix!
I have 2 kids, my wife has a third. I'd say he's about spot on. I will add though that in a prior video I heard him say if all you have is 15-20 minutes a day that will benefit you. I took his advice and many days I only get 15-20 minutes. I still benefit a lot from that over time. So 4 hours is great if you have it but to all those dad's out there 15-20 minutes can be good too!
Really nice to find a video with some aged wisdom, I'm learning to code now, just passed my final HTML project today!! My problem is all I want to do is learn more and more, 4 hours of learning is like a third of what I feel like I can do before I get tired.
My actual recipe: 2h C++ 1h ASM 2h PHP 1h 3D Math 1h Math I should do some English too because all I know is from playing games :) I found that trying to advance too much in one discipline (and finish it and doing another one) makes me to forget too much after a few weeks. Small steps is better, and doing so I have time to learn many languages in the same time. It is no conflict between them, actually some help other. For example ASM prepares a foundation for every other language.
Interesting, it's always when I take a break that a solution comes to me for a problem I was struggling with while I was sitting there trying to solve it.
I work 6hr/day in 3 periods of 2hrs with long intervals between. It's easy & productive, I try my best in these small working periods. But sometimes I feel it's useful to work more than 2hrs to go deeper, then I can work 3 or even 4 hrs in a period. This what I learned from my own experience
The best way to program is to take 1 or 2 hours to prepare what you are going to write before you write it and then 4-5 hours of programming. The preparation before you write code is key. If u don't prepare it may take 4 days to finish compared 1 day with preparation
I can tell you bois that what this man is saying is indeed true i just did like 8 hours of coding and trust me after like 3 hours the rest was just wasting time because i did so little
I thought I was just being a slacker, because I output the most between 8am to 12pm. Then after that my focus and attention capacity is -40%. And the anytime I spend trying to code just feels like a waste. I'm glad to see this is normal. I now need to pay attention to how many hours I need to recharge.
I'd recommend commenting your code Yeah, yeah, you're smart, and you don't need commenting. I hear ya. Help yourself by reading faster through the program w/ human language, it helps find bugs.
If you write the clean readable code then you don't need much comments. The careful selection of function, class and variable names should be enough to understand the code. The comments are good for high level overviews or for todos or some hidden properties of the code or in some rare cases where code is a bit more complex.
It always goes the same way, when you write it everything seems completely understandable and readable because it's fresh in your brain, a week later things get fuzzy, a month later half of it doesn't make sense, a year later you won't believe it was actually made by you.
I never comment my code. I spend too much time thinking of what I should write in the comment or when I should comment, so I just don't. So far even scripts I've written years ago I have no problem reading. My shit too clean.
What to do when you have a tight deadline? My problem is, I think and write program very slowly, and if I encounter a coding problem while building a web app/plugin, then I have to search in google and need to learn something quickly. That will need more time. So, thinking and writing code slowly == can't meet even my own deadline for a day == need a lot of time to finish a (simple)task.....do you have any suggestion?
oh how true. Im new to programming and the first month put in 300 hours the second month...mmm 200 hours..third month..well yesterday I coded lying on my side while watching youtube and today all I've done is comment on youtube videos. Ill try to get an hour or 2 in eventually. though part of that Is also the resources I am using. ..soooo many terrible programming resources...the only good ones I've seen are for css and html I am assuming that is because those people are used to thinking about the user experience. As a teacher bad education drives me crazy! I wonder if Stefan feels the same way coming from psychology.
I found that if you change the language you can do another few hours. So, 3 hours a language, 2 another language, 3 some math. So, you can use the time to learn something new. If you are web developer, you can try developing games if you think you'll like more to do that. G.H. Hardy said the same, 4 hours of Research in math per day is the maximum time possible.
I code 8-12 hrs a day lol. I almost fainted yesterday cause I was dizzy af but I don't have any problems focusing at all. Yet again, I'm not sure if I was doing some "serious coding"
Lol, my friend coding 16h straight like a machine when he does freelance work... i personally am learning to code.. i spend aroudn 8-13h a day.. im not essentially coding something but learning, reading a lot about stuff and watching tutorials, doesnt make me get mental fatigue...(so far) : )
Hi Stefan, is it better for a beginner to specialize or to be more general? For example if I want to be a Front end developer I should know UX, HTML, CSS, JavaScript, Jquery, Responsive design, Bootstrap, React, Sass. It feels overwhelming as a beginner. Would I be better off focusing on say ONLY JQuery, so I can get REALLY good at JQuery and be known as "The Jquery Guy"? I mean would I make more money focusing on 1 technology to be an expert at vs 9 topics to be pretty good at? Cuz theres no way I can be an expert at 9 topics but if I focus I can be an expert at 1. Or maybe it is better to know a little bit of everything
Being the jQuery guy only works working within a company - not too much freelance work only doing jQuery. But you don't need to be an expert in everything! So don't worry about Sass, React for now. Be sure you are comfortable with HTML5, CSS (with responsive techniques) and basic JavaScript. Then learn the basics of jQuery and understand WHEN you would use it. Then learn only the grid system in Bootstrap ... again, just functional skill is enough. When you get a gig that requires deeper jQuery or Bootstrap skills, you can quickly learn it because you know the basics and because you are comfortable with the core languages behind it all: HTML5, CSS and JavaScript. Again, you don't need to be an expert in all, just have a working knowledge. Anyway, in a few years, you will forget a lot ... but that's why you have google and training courses to refresh your mind. I've personally forgotten most of what I knew. But I could relearn it in 1-2 hrs. Stef
Thank you Stefan. You take time out of your busy day to give lots of great advice to beginners. I'm very grateful for your channel and real world advice so I don't have to make bad guesses with my career lol :) thank you
What about 4 hours and then a 1 hour break and then another 4 hours? Or what about 3, 3 hour sessions with 1 hour breaks between. Or what about 4 hours to code followed by 1 hour break followed by 4 hours to study say linear algebra or machine learning?
I can't think of a job I've had where I've had enough "non-coding light work" to meet these guidelines. Everywhere I've worked, you code 8 hours except for your legally-mandated breaks; there's no other work TO do.
I sometimes binge code, then get a code hangover :D That is, I will do about 10 hours then take the next day off. I'm glad you reported this 4 hour ideal though. I've found this to be my mode of averages. I kind of felt lazy for doing so little hours compared to other professions, but feel better now that I know it's common among programmers. It's a shame companies in general don't share this insight. I actually applied to a company recently who were advertising for full time coders, and mentioned I would really be open to working part time. This kind of attitude would probably go against me though, as HR would see this type of attitude as lazy, while I see it as getting the best bang for your buck.
I do learn coding 4 hours a day maybe 4 hours 30 minutes but is that 4 hour of just pure coding(project planning, typing code) or does watching tutorials and reading other code account for the optimal time span?
Realistically I know you are correct. But when starting out or with deadlines, we are tempted to do more. So.... the question becomes.. how do we reset the clock? Is walking away for lunch and 45 minutes of exercise enough? Short sleep?
The biggest problem is to resist the temptation that pulling all-nighters will help. I've read or seen a documentary about Microsoft, where, during release cycles, people literally slept under their desks, accruing ~100 hours per week, but they also said that at 35 or so, people were so burnt out that they fired them and hired fresh graduates. They used to pay you big bucks, but you also pay, with your physical and mental health.
What even is pure hardcore coding? Would that include having to pull back to do a google search and read through the documentation to figure out how to do something?
"Massage the code" lol. Not too long ago developed a client's web app in CodeIgniter. Requirements kept changing and codebase got so messy that it forced me to scrap the old code and rebuild using Laravel and VueJS. It paid off as the code became alot easier to work with and update. Would you consider that a good move?
Well if it worked out, it was a good move. When I talk about being reluctant to rewrite a codebase, I am talking about a codebase that is functional. In your case, clearly it was not. So good move!
4 ? common man .. no .. when im working on an important project i work for around 14 hours a day and trust me im productive and fast (if im motivated cause if im not it's a whole other story) 1:10 not all people are equal ..
You are weather lousy coder or bullshit talker. I spoke with google developers etc. They say most of the working hours we think and 3-4 hours we code. And it is almost impossible to code more then 4 hours. Other thing is to build application with basic logic something like REST application where you need to connect Request-Response. In this case you can work for 15 hours because it is routine without thinking.
I'm 21 years old and I haven't started college. Is it really worth it to spend 5 years in university if I don't see myself having a job after 30. I plan to be self employed after 25.
I would recommend you not go to college if that's your plan and you're willing to pull it off. Spend that time and money investing in yourself and whatever venture you wish to chase.
if you want a JOB then having a CS degree is a big plus on your resume. Also I find at least learning in a college environment might be more friendly when learning the basics. Once you understand OOP, RDBMS, and, have a good grasp on what a Programming Language can do. Then you honestly could drop out and buy a couple books to take you the rest of the way. I went the 2 year technical route and now I am working through 2 books and will be beginning freelancing in 6 months. Angular.JS book and a ASP.NET MVC C# book. I figured both of those technologies would be useful to know and be nice to add a couple dummy sites to my portfolio as well as build a couple real world projects with them.
When it comes to web development in specific it's probably a better idea to invest in specific courses for your purposes than an overall university degree that will take forever to pay back. If you're serious enough you could shorten the 5 years into 2 with your own curriculum and without the pain of tuition. Of course, though, if you're not motivated enough maybe investing 6 figures into a college degree will force you to put in the work to get your money's worth. Whatever you see fit.
The mathematician Hardy says that 4 hours of research work per day is maximum possible. He occasionally did some math for fun in the evening with his friends but this was not considered a research work.
I'm still learning it (I'm only 15). It's summer and I really would like to play games and at the same time learn coding. How long do you recommend for me to code a day ? Thanks :)
I follow this principle with any mentally intense work. My psychology background (majored in it,) taught me that our brains can only work at peak levels for a limited time. 4hrs hours is a rough number, depending on individuals. Experiment and figure out what works for you.
It's harder when you're still (mostly) learning. Once it's somewhat automatic, it's easier to put in more time. That being said, if you're suffering from chronic health issues, it can be hard to do it for extended periods of time.
Im try to code 12+ hour and 7.30 is down 4.30 hour left..m very exhstd to be honest but it works u learn at least somthing first 4 hours are amzing and then u slow down yess you sloww down but u r still moving and thts matter...
Hello. 4hour of serious dev coding ? ok. But how many hours for training ? For example today I'd like to take the day to read Laravel documentaion & video tutorial & trying to code a few lines with Laravel . . . would you recomand to learn tutorials during only 4hours ? Would you agree that it's okay to learn tutorials more than 4 hours ?
I wrote this random JS program: var Person; function setup() { createCanvas(200, 200); } function draw() { background(0) fill(155, 0, 0); rect(100, 100, 60, 60); } function initializePerson() { Person = Person(); } initializePerson(); function showAlerts() { Alerts(); } showAlerts(); function Person() { document.write("Santiago Gonzalez: I know how to code in JavaScript!!"); } function Alerts() { alert("I'M SANTIAGO GONZALEZ AND I'M A PROGRAMER!!"); alert("CODING IS THE BEST NOOB!"); } print("Page");
I think if you code for 4 hours and then take a 2 hour break for lunch and can re-charge you can do 2 more hours or maybe even 4, although your productivity may go slightly down with enough recovery you should be okay. Going for more than 4 hours at a time will greatly reduce productivity however. I also believe it's important to code/work on at least one of your weekends even if it's just for 2 hours.
You said 4 hours everyday. I found I spend a lot of time reading coding text book instead of sitting in front of my computer. Does reading time count?? Or you just mean you spend 4 hours in front of your computer??
Nope. You also need to practice. Practice is key. Take it from a pro which only read books and do not practice. It sucks as even though reading is good, and you should keep doing that, it would not help and retain the knowledge with practice. Plus it would train the brain better with writing codes. As they say "With practice you would become perfect"
emails, planning what code you will write tomorrow, looking at medium and long term considerations for the app's code. Documentation, subtle refactoring, commenting. Go over the app and take notes on where usability could be improved.
I find studying uses up more of my brain power. I assume that would fit into that 4 hours as well? Or would it be fine, seeing as you are not writing shitty code while watching videos/reading documentation?
This is the anti-clickbait. He answers the question both in the thumbnail and within the first ten seconds. Thank you, Stefan, for being so pure.
yep that's something i really like in this guy
This is infinity war level of to the point.
Very yes
I do 2 hours a day, 4hrs on my 1 day off. With work, family and health, this is already more than enough
Pomodoro techniques can help
Stephan, Wow! Thanks for the inputs. Good to hear real life experience in coding. Manny form Puerto Rico
Love the videos, keep it up!! I also really appreciate that you don’t try to be someone else like others who try to be all energetic and fake.
As a beginner I concentrate for 1-2hrs in the morning. Loving learning to code. Thinking of assisting the coding sessions at my kids school. Having my guitar close is good for having short breaks.
Thank you for giving a straight answer at the very beginning!!!
I love this straightforwardness.Answering the question within the first 10 seconds.
This is one of the most reliable resource. Stefan shares real experience not like other youtubers with so much useless talk.
thank you for your advice. More power.
Thanks!
am from africa and coding is one of my favorite things to do this days since i am a beginner thanks for being frank and all that but as for me its all about pushing ur comfort zone for now i code for 1-2hrs but eventually i know with alot of determination i will reach the four hours thanks though
Thank you. This is helpful in aiming.
How anyone can simply start coding without learning the concept of any programming language or framework. Understanding the concepts is more important than simply shooting in the dark.
agreed...I think people tend to forgot that important concept....this is why one should not ONLY read or watch tutorials... they should read/watch-tuts WHILE coding along with the author....pause the video and or stop reading....do a few examples until you understand the concept and repeat( making up your own examples to really drive the new concept home)...its down-right impossible to code for for even a few minutes without understanding the fundamentals...once you've completed a book or tutorial , you should put what you learned to work in either multiple small projects or one big one fitting in all the concepts you learned to REALLY drive it home.
With enough muzzle flash, there's no such thing as shooting in the dark.
While this is true, many people never apply what they learn. Coding is about solving problems, and eventually you will not know something technical (it happens to the very best), because you will never know everything. I mean, granted some basics should be understood but you can give someone a text game to make, or some other CS 101 type project to get them making things. If you don't make anything what have you really done, and how can you validate that you understand?
Most people on the internet make it seem like you can bypass that slump of productivity but, this was an honest video. Four hours of programming seems really nice! Thanks for making this video!
Welcome.
Thanks a lot sir.
Welcome!
awesome awesome.... I had been looking for this kind of answer
Liked & Subscribed Sir
Thanks. Glad I could help. Stef
so good to hear, ive just done about 6 and my brain is burnt out, glad to hear im not the only one
I can do 4. I need to get up to 6!
I have to agree with 4 hours on average. My personal preference is to sit down for one 12 hour session and taking 1-2 days easy days for planning and billing and such tasks. This works well for me when I am in a coding/hacking mood. I think it depends for everyone. It's also important to know that sometimes you have to take a break so that you can think CLEARLY. After 9 years programming I still get the occasional typo/logic glitch that takes 1-2 hours to fix!
I can't do four hours a day, I try to do 1-2 hours on my work days and 4-6 hours on my days off.
I have 2 kids, my wife has a third. I'd say he's about spot on. I will add though that in a prior video I heard him say if all you have is 15-20 minutes a day that will benefit you. I took his advice and many days I only get 15-20 minutes. I still benefit a lot from that over time. So 4 hours is great if you have it but to all those dad's out there 15-20 minutes can be good too!
Really nice to find a video with some aged wisdom, I'm learning to code now, just passed my final HTML project today!! My problem is all I want to do is learn more and more, 4 hours of learning is like a third of what I feel like I can do before I get tired.
" just passed my final HTML project today!! " Congrats! Then keep going if you have the energy. Everyone is different.
HTML is easy. Wait until you do OOP in Java, or Dynamic memory allocation in C.
My actual recipe:
2h C++
1h ASM
2h PHP
1h 3D Math
1h Math
I should do some English too because all I know is from playing games :)
I found that trying to advance too much in one discipline (and finish it and doing another one) makes me to forget too much after a few weeks. Small steps is better, and doing so I have time to learn many languages in the same time. It is no conflict between them, actually some help other. For example ASM prepares a foundation for every other language.
Interesting, it's always when I take a break that a solution comes to me for a problem I was struggling with while I was sitting there trying to solve it.
I work 6hr/day in 3 periods of 2hrs with long intervals between. It's easy & productive, I try my best in these small working periods. But sometimes I feel it's useful to work more than 2hrs to go deeper, then I can work 3 or even 4 hrs in a period. This what I learned from my own experience
Thank you so much
The best way to program is to take 1 or 2 hours to prepare what you are going to write before you write it and then 4-5 hours of programming. The preparation before you write code is key. If u don't prepare it may take 4 days to finish compared 1 day with preparation
Thanks for the thumbnail. Saved my 5 odd minutes.
I can tell you bois that what this man is saying is indeed true i just did like 8 hours of coding and trust me after like 3 hours the rest was just wasting time because i did so little
I thought I was just being a slacker, because I output the most between 8am to 12pm. Then after that my focus and attention capacity is -40%. And the anytime I spend trying to code just feels like a waste. I'm glad to see this is normal.
I now need to pay attention to how many hours I need to recharge.
What would be some exceptions where it would be favorable to re-write code from scratch? Surely it has to be necessary on occasion
I'd recommend commenting your code
Yeah, yeah, you're smart, and you don't need commenting. I hear ya.
Help yourself by reading faster through the program w/ human language, it helps find bugs.
10% coding , 90% debugging > )
If you write the clean readable code then you don't need much comments. The careful selection of function, class and variable names should be enough to understand the code. The comments are good for high level overviews or for todos or some hidden properties of the code or in some rare cases where code is a bit more complex.
Small amount of commenting is good. Too much of it is worse than badly written code.
It always goes the same way, when you write it everything seems completely understandable and readable because it's fresh in your brain, a week later things get fuzzy, a month later half of it doesn't make sense, a year later you won't believe it was actually made by you.
I never comment my code. I spend too much time thinking of what I should write in the comment or when I should comment, so I just don't. So far even scripts I've written years ago I have no problem reading. My shit too clean.
What to do when you have a tight deadline?
My problem is, I think and write program very slowly, and if I encounter a coding problem while building a web app/plugin, then I have to search in google and need to learn something quickly. That will need more time.
So, thinking and writing code slowly == can't meet even my own deadline for a day == need a lot of time to finish a (simple)task.....do you have any suggestion?
"non decaf coffee" meaning … coffee?
god damn, i got an answer in first ~20 sec of the video, thanks a lot
THANKS NICE VIDEO FOR BEGINNERS
oh how true. Im new to programming and the first month put in 300 hours the second month...mmm 200 hours..third month..well yesterday I coded lying on my side while watching youtube and today all I've done is comment on youtube videos. Ill try to get an hour or 2 in eventually. though part of that Is also the resources I am using. ..soooo many terrible programming resources...the only good ones I've seen are for css and html I am assuming that is because those people are used to thinking about the user experience. As a teacher bad education drives me crazy! I wonder if Stefan feels the same way coming from psychology.
This is so spot on, soo many trash resources out there!!!
I found that if you change the language you can do another few hours. So, 3 hours a language, 2 another language, 3 some math. So, you can use the time to learn something new. If you are web developer, you can try developing games if you think you'll like more to do that.
G.H. Hardy said the same, 4 hours of Research in math per day is the maximum time possible.
I code 8-12 hrs a day lol. I almost fainted yesterday cause I was dizzy af but I don't have any problems focusing at all. Yet again, I'm not sure if I was doing some "serious coding"
We all have difference aptitudes!
Is this four hours outside of work even if I have a job as a programmer or just 4 hours in general?
Lol, my friend coding 16h straight like a machine when he does freelance work... i personally am learning to code.. i spend aroudn 8-13h a day.. im not essentially coding something but learning, reading a lot about stuff and watching tutorials, doesnt make me get mental fatigue...(so far) : )
How did that turn out?
Hi Stefan, is it better for a beginner to specialize or to be more general?
For example if I want to be a Front end developer I should know UX, HTML, CSS, JavaScript, Jquery, Responsive design, Bootstrap, React, Sass.
It feels overwhelming as a beginner.
Would I be better off focusing on say ONLY JQuery, so I can get REALLY good at JQuery and be known as "The Jquery Guy"? I mean would I make more money focusing on 1 technology to be an expert at
vs
9 topics to be pretty good at?
Cuz theres no way I can be an expert at 9 topics but if I focus I can be an expert at 1.
Or maybe it is better to know a little bit of everything
Being the jQuery guy only works working within a company - not too much freelance work only doing jQuery. But you don't need to be an expert in everything! So don't worry about Sass, React for now. Be sure you are comfortable with HTML5, CSS (with responsive techniques) and basic JavaScript. Then learn the basics of jQuery and understand WHEN you would use it. Then learn only the grid system in Bootstrap ... again, just functional skill is enough. When you get a gig that requires deeper jQuery or Bootstrap skills, you can quickly learn it because you know the basics and because you are comfortable with the core languages behind it all: HTML5, CSS and JavaScript.
Again, you don't need to be an expert in all, just have a working knowledge. Anyway, in a few years, you will forget a lot ... but that's why you have google and training courses to refresh your mind. I've personally forgotten most of what I knew. But I could relearn it in 1-2 hrs.
Stef
Thank you Stefan. You take time out of your busy day to give lots of great advice to beginners. I'm very grateful for your channel and real world advice so I don't have to make bad guesses with my career lol :)
thank you
Glad to help. Thanks for the comments.
Cool, thanks!
What about 4 hours and then a 1 hour break and then another 4 hours? Or what about 3, 3 hour sessions with 1 hour breaks between. Or what about 4 hours to code followed by 1 hour break followed by 4 hours to study say linear algebra or machine learning?
I can't think of a job I've had where I've had enough "non-coding light work" to meet these guidelines. Everywhere I've worked, you code 8 hours except for your legally-mandated breaks; there's no other work TO do.
I sometimes binge code, then get a code hangover :D That is, I will do about 10 hours then take the next day off.
I'm glad you reported this 4 hour ideal though. I've found this to be my mode of averages. I kind of felt lazy for doing so little hours compared to other professions, but feel better now that I know it's common among programmers. It's a shame companies in general don't share this insight.
I actually applied to a company recently who were advertising for full time coders, and mentioned I would really be open to working part time. This kind of attitude would probably go against me though, as HR would see this type of attitude as lazy, while I see it as getting the best bang for your buck.
Noah Nobody Yeah man HR are the most pathetically useless thing ever invented.
I do learn coding 4 hours a day maybe 4 hours 30 minutes but is that 4 hour of just pure coding(project planning, typing code) or does watching tutorials and reading other code account for the optimal time span?
Ah.. this month my productivity just gous dooooowwwwnnn.. yeah.. brain tired as f... will try this in next week.. :) thanks ;)
Realistically I know you are correct. But when starting out or with deadlines, we are tempted to do more. So.... the question becomes.. how do we reset the clock? Is walking away for lunch and 45 minutes of exercise enough? Short sleep?
All three!
The biggest problem is to resist the temptation that pulling all-nighters will help. I've read or seen a documentary about Microsoft, where, during release cycles, people literally slept under their desks, accruing ~100 hours per week, but they also said that at 35 or so, people were so burnt out that they fired them and hired fresh graduates. They used to pay you big bucks, but you also pay, with your physical and mental health.
What even is pure hardcore coding? Would that include having to pull back to do a google search and read through the documentation to figure out how to do something?
Does this principle apply to learning how to code or do you do less hours so you can retain more info?
4hrs max when learning to code ... in terms of learning NEW concepts. It is a function of the brain's capacity.
Hey Stefan... Do you find coding more strenuous than learning to code? I find after 5 hours I'm shot regardless of which I'm doing.
Take break Martin. No more than 4hrs. Brain looses capacity at around 4 hrs of intense mental work. Take breaks!
Tell this to greedy companies who want you to work hard for 8 hours.
"Massage the code" lol.
Not too long ago developed a client's web app in CodeIgniter. Requirements kept changing and codebase got so messy that it forced me to scrap the old code and rebuild using Laravel and VueJS. It paid off as the code became alot easier to work with and update.
Would you consider that a good move?
Well if it worked out, it was a good move. When I talk about being reluctant to rewrite a codebase, I am talking about a codebase that is functional. In your case, clearly it was not. So good move!
Stefan Mischook Thanks for the prompt reply.
Your welcome.
*you're
Sometimes, short videos are cool :)
4 ? common man .. no ..
when im working on an important project i work for around 14 hours a day and trust me im productive and fast (if im motivated cause if im not it's a whole other story)
1:10 not all people are equal ..
You are weather lousy coder or bullshit talker. I spoke with google developers etc. They say most of the working hours we think and 3-4 hours we code. And it is almost impossible to code more then 4 hours. Other thing is to build application with basic logic something like REST application where you need to connect Request-Response. In this case you can work for 15 hours because it is routine without thinking.
Always comment you code. Have fun guys!
I'm 21 years old and I haven't started college. Is it really worth it to spend 5 years in university if I don't see myself having a job after 30. I plan to be self employed after 25.
Not if you pay MIT fees of $200,000.
I would recommend you not go to college if that's your plan and you're willing to pull it off. Spend that time and money investing in yourself and whatever venture you wish to chase.
I recommend getting the four year computer science degree, not having a degree shortens your potential job pool and makes you less competitive.
if you want a JOB then having a CS degree is a big plus on your resume. Also I find at least learning in a college environment might be more friendly when learning the basics. Once you understand OOP, RDBMS, and, have a good grasp on what a Programming Language can do. Then you honestly could drop out and buy a couple books to take you the rest of the way. I went the 2 year technical route and now I am working through 2 books and will be beginning freelancing in 6 months. Angular.JS book and a ASP.NET MVC C# book. I figured both of those technologies would be useful to know and be nice to add a couple dummy sites to my portfolio as well as build a couple real world projects with them.
When it comes to web development in specific it's probably a better idea to invest in specific courses for your purposes than an overall university degree that will take forever to pay back. If you're serious enough you could shorten the 5 years into 2 with your own curriculum and without the pain of tuition. Of course, though, if you're not motivated enough maybe investing 6 figures into a college degree will force you to put in the work to get your money's worth. Whatever you see fit.
Yeah my job has lots of interruptions. If I get in just 1 hour of straight coding, consider me lucky.
Hey Stef, just curious and don't mean to offend you where are you from?
Canada.
i code 10hrs a day sometimes i cant go to school because of my passion that is coding :)
The mathematician Hardy says that 4 hours of research work per day is maximum possible. He occasionally did some math for fun in the evening with his friends but this was not considered a research work.
@@lufenmartofilia5804 Of course deadlines are bad for learning. :)
4 sometimes ismt enough
you're right, if your into meth 4 isnt enough
I'm still learning it (I'm only 15). It's summer and I really would like to play games and at the same time learn coding. How long do you recommend for me to code a day ? Thanks :)
5hr is golden maximum
Do you follow this principle also when working with web-dev?
I follow this principle with any mentally intense work. My psychology background (majored in it,) taught me that our brains can only work at peak levels for a limited time. 4hrs hours is a rough number, depending on individuals. Experiment and figure out what works for you.
Whats the age curve for this peak times ?
4.3 hours is 4 hours 18 minutes
I can hardly do it 1-2h
Then just do that. No worries.
dont be too hard on yourself, make it a hobby 1st, build stuff you enjoy using. then slowly go from there! happy coding!
It's harder when you're still (mostly) learning. Once it's somewhat automatic, it's easier to put in more time. That being said, if you're suffering from chronic health issues, it can be hard to do it for extended periods of time.
I think I am doing too much.
Like 10 hs per day or more.
Im try to code 12+ hour and 7.30 is down 4.30 hour left..m very exhstd to be honest but it works u learn at least somthing first 4 hours are amzing and then u slow down yess you sloww down but u r still moving and thts matter...
If it doesn't demotivate you later on then that's good
Did he just said 4? Wasn't it supposed to be 3?
Hope you get the reference. Love your vids....
Hello.
4hour of serious dev coding ? ok.
But how many hours for training ? For example today I'd like to take the day to read Laravel documentaion & video tutorial & trying to code a few lines with Laravel . . . would you recomand to learn tutorials during only 4hours ? Would you agree that it's okay to learn tutorials more than 4 hours ?
Do it until you get brain-tired. Makes sense?
That's what I usually do. Every day from 8h to 17h. Thank you for having answered to my question.
You're welcome
thank you for this advis !
Do you think coding will be replaced with services ..ie facebook ..instagram
Nope
I wrote this random JS program:
var Person;
function setup() {
createCanvas(200, 200);
}
function draw() {
background(0)
fill(155, 0, 0);
rect(100, 100, 60, 60);
}
function initializePerson() {
Person = Person();
}
initializePerson();
function showAlerts() {
Alerts();
}
showAlerts();
function Person() {
document.write("Santiago Gonzalez: I know how to code in JavaScript!!");
}
function Alerts() {
alert("I'M SANTIAGO GONZALEZ AND I'M A PROGRAMER!!");
alert("CODING IS THE BEST NOOB!");
}
print("Page");
Anonymous LEL fucking cringe
After 4h alone coding start pair progamming.
What is pair programming? Like how do you code with someone
Will robots take over codeing in the future ps. "I hope not" what do u think???
I wanna coding 20 hours daily....but it's low efficacy
What about 4 hours and then a nap?
I think if you code for 4 hours and then take a 2 hour break for lunch and can re-charge you can do 2 more hours or maybe even 4, although your productivity may go slightly down with enough recovery you should be okay. Going for more than 4 hours at a time will greatly reduce productivity however. I also believe it's important to code/work on at least one of your weekends even if it's just for 2 hours.
how long did it take you to learn your first language?
To be honest, it is so long ago I can't remember. You can learn the basics in a couple of days thought.
play @ 1.25 X
You said 4 hours everyday. I found I spend a lot of time reading coding text book instead of sitting in front of my computer. Does reading time count?? Or you just mean you spend 4 hours in front of your computer??
Mohammad Aslam no, reading doesn't count 🙄. Reading about coding isn't coding.
J Andrea the emoji though 😂😂😂
Reading will feed into what you code so no harm done.
Nope. You also need to practice. Practice is key. Take it from a pro which only read books and do not practice. It sucks as even though reading is good, and you should keep doing that, it would not help and retain the knowledge with practice. Plus it would train the brain better with writing codes. As they say "With practice you would become perfect"
what about if your 10? or in your teens
Do what you can ... even 20 minutes every two days. As long as you do just a little on a regular basis you will learn.
Stefan Mischook I spend my hole day learning
psych code
4 hours in one day and 6 days duringe the week?
4-5 days a week
dafuq? 4 hours? you have at least 14 left to go...
If you're not sleeping you're not learning
4 hours? I work as a front end developer and after work I still improve my skills around 5 hours a day at least
4 hours a day at Microsoft, Google and Facebook?
.. OF hardcore coding. As I say in the video, spend other time doing light work.
Stefan Mischook What kind of light work besides coding?
emails, planning what code you will write tomorrow, looking at medium and long term considerations for the app's code. Documentation, subtle refactoring, commenting. Go over the app and take notes on where usability could be improved.
I find studying uses up more of my brain power. I assume that would fit into that 4 hours as well? Or would it be fine, seeing as you are not writing shitty code while watching videos/reading documentation?
Justin Justin
1. That's not coding, but scripting.
2. Incorrect syntax.