r/learnprogramming • u/expresscost • Apr 11 '21
Dopamine
So recently I came to conclusion that we are constantly stimulated with media, music other distractions that makes it harder to focus and learn programming or anything at all.
I remember that time I had pretty much 0 entertainment no media, no music, limited ability to go out somewhere or talk with someone. After a week or so I found a c++ book, I had attempted learning c++ before, but it didn't make sense, but this time it was different, it was my only source of entertainment, the only escape from reality and learning c++ was just as enjoyable as watching a great movie or listening to music.
I hope this will help someone
52
u/Hapablapablap Apr 11 '21
Very relatable! The first programming I did was in 2000. The internet was still not that much of a time suck. Netflix streaming was not a thing. YouTube wasn’t a thing. I was visiting my boyfriend for the summer in Massachusetts and while he was in his summer classes I started reading his Sam’s Teach Yourself C in 24 Hours for entertainment and built little programs like Simpsons Trivia quizzes and a checkers program that didn’t work but you could move a piece around the board lol.
It was much easier to get engrossed in learning back then. Our lives are architected around to distractions now, cell phones, text messages, apps, notifications, immediate access to information. Sometimes I go to silent meditation retreats and I really get a healthy dose of how addicted I am to these things. The retreats have no phones, no reading, no writing, no music, just focused work. The first few days all I want is my cell phone and Netflix it’s rough.
Thanks for sharing!
5
2
u/swiftfastjudgement Apr 12 '21
Semi related comment here. I have a very demanding job that requires some sort of TLC 15 hours a day M-Fr and half time on Sat. It’s not labor intensive as I’m maintaining clients, etc, however is very taxing mentally.
So I’ve dubbed Sunday as my non screen day. No tv, phone, video games, etc. Only occasionally cheat with a Disney movie for the kids. It’s only 1 day a week but It really makes a difference with resetting your mental state with life.
2
u/Hapablapablap Apr 12 '21
This sounds wonderful. It’s easy for me to ignore screens when I’m with someone, but I live alone, no kids or partner, worked from home for 10 years... it’s made me pretty isolated. On the weekends I try to read, write, and listen to podcasts which is about as screen-detoxed as I get. It’s great to have a regular disconnection ritual.
31
u/derrick88rose Apr 11 '21
Dopamine addiction is absolutely real. Ever since I've shut down all social media except for reddit, and pulled back on all short form entertainment, I've been not only happier but vastly more productive.
It takes discipline but if a smooth brained ape like myself can do it, then I bet anyone can.
7
u/corruptedOverdrive Apr 11 '21
This helps a lot.
I've done the same thing by dialing everything back. I have a few freelance projects, but I want to start some more complex projects which itself has created the old "paralysis by analysis" syndrome. Picking what technology I want to use is whats killing me. I get going with one JS library, and I get frustrated, then switch to another. I'm using Vue right now and for some reason it's clicking better than React. I'm also itching to try something with Svelte but I keep telling myself to finish this Vue project first.....
But thanks for encouragement, I need it!!
4
u/derrick88rose Apr 12 '21
I get like that too. It takes time and patience, but making sure you finish the current project before you touch anything else sets the goal. Best of luck to you!
2
u/Smyles9 Apr 12 '21
What exactly about vue makes it seem like it’s clicking better? I’m starting with react and it makes a little bit of sense but it’s definitely hard learning how to use components and jsx when so far my only experience has been with vanilla js. I’m wondering if vue or Angular might be better for me to start.
1
u/corruptedOverdrive Apr 17 '21 edited Apr 17 '21
Jeez man, I'm sooooo sorry, I thought I had responded to you and I never did.
I hope this helps man. . .
The one thing I always likes about Angular was how they scoped their components. It was super easy to create a component: ng generate component <component name> and Boom! You have a component file with your CSS, HTML and TS file where you can set your template, and style urls. React? Naw, you have to do all that manually. Most of the React tuts you see half the tutorial is about setting up your folder structure for your components and getting everything tied together whereas in Angular, you get all that out of the box.
This is one of the key differences between Angular and React. Angular is a full blown framework. React is a view library. You want routing? You have to couple React with React Router - Angular already has a router built in. Http client? Have to add Axios to React. Angular already has it. Yeah Angular has a steeper learning curve than React, but it seemed more straightforward to me for some reason. You didn't have to worry about choosing a particular library to couple with Angular, it had everything you needed right out of the box. For that, yeah its a bigger framework and that will no doubt effect performance, but overall, it seemed more straight forward where you could get up and running faster and create components and have them interact with each other much easier.
Now Vue? For me it was a lot of the same thing. If you already know HTML/CSS and JS like yourself, you'll pick it up really quick. Vue is similar to React in that its just a view library and you have to combine it with other libraries to get a full framework, but for the front-end of things, its insanely powerful.
How to start with Vue:
<!-- development version, includes helpful console warnings --> <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>Create a JS file:
var app7 = new Vue ({ el: '#app7', data: { groceryList: [ { id: 0, text: 'vetables'}, { id: 1, text: 'cheese'}, { id: 2, text: 'whatever elese'} ] } });Create an HTML file:
<div id="app7"> <ul> <todo-item v-for='item in groceryList' v-bind:todo='item' v-bind:key='item.id' ></todo-item> </ul> </div>Clean separation between markup and presentation. No trying to decode html in js and all that jazz like with React. No need for a thousand NPM modules and build commands. They do have an NPM version, but when you're just starting out, its nice to just have something simple to use and not have to worry about dependencies and build errors. Will it always be this easy with a large scale app? Certainly not, but for me, it just seemed more in line with the vanilla js I have always been used to. This is totally my opinion, Angular and Vue just seemed to click with me better than React for some reason. The Vue documentation is really good IMHO. The Angular documentation can get a little verbose on stuff and you kind of have to wade through it and do some additional googling, but the community is huge and there are tons of articles. The huge downside I've found with Angular is they're putting out full versions every six months. They move so fast. One of the last apps I built with Angular was with Angular 6. That was just about two years ago. Angular is prepping for v.11 right now. In two years they've put out 4 full version releases!! By comparison Vue was on 2.6.3 in 2019. As of this writing (2021) they're on 2.6.11. Yeah, a lot of minor releases, but they haven't gotten to V3 yet so its easier to keep up with the minor changes as opposed to Angular.
Anyways, just my opinion on the basics of why I like Vue and Angular over React. There are many other specific reasons like handling state, but that's for another day. My advice is just keep working with a library/framework you like and stick with it. If React is not clicking, switch to something else. There are SO many options out there. Svelte (https://svelte.dev) is getting a lot of traction so I'd recommend you check it out too.
I hope this helps.
1
u/SlinkiusMaximus Apr 12 '21
Yeah I do very little social media or even video games anymore, and it’s helped a lot. Maybe not for everyone, but I’m guessing it helps many.
1
u/taknyos Apr 12 '21
Ever since I've shut down all social media except for reddit
Cutting Reddit too did wonders for me. I get benefits from it too (like some other social media) but still feel the exact same negatives as well.
Having it on my phone makes it too easy to access
1
132
u/DopeAppleBroheim Apr 11 '21
This is also called a Dopamine Fast for anyone wondering. Definitely helps reset your dopamine system. It kinda sucks at first if you’re constantly consuming media like phones, tv, video games, etc.
22
u/WasdMouse Apr 12 '21 edited Apr 12 '21
This is pseudo-science. Read this.
Edit: The original work is fine, but beware about what people tell you about Dopamine Fast. There's a lot of pseudo-science about the work.
12
u/kafircake Apr 12 '21
The article isn't criticizing the original work. It's pouring cold water on people taking the metaphor of fasting and running with it to maladaptive ends.
Did you actually read it? It's a really quick read.
5
u/WasdMouse Apr 12 '21
Did you actually read it? It's a really quick read.
I did. I was referring to his other comment where he said to "YouTube dopamine fast". There's a lot of clickbait titles, videos, and articles about what dopamine fast actually is. The original work is fine but should be taken as a guideline and not be taken to the extreme. I was fearing a lot of people would fall for that. In the article, Sepah even says that the "title should not be taken literally."
6
u/DopeAppleBroheim Apr 12 '21
I think the author of this article is out of touch. I’ve literally seen no one mention “fasting” from social interactions, food, exercise, etc.
The whole idea is replacing bad dopamine-releasing habits (video games, porn, drugs, etc) with good dopamine-releasing habits (reading, exercise, real social interactions, etc). Not cutting out any dopamine related activity, as that’s ridiculous.
It’s about rewiring your dopamine system and building healthy habits, not simply adding or subtracting dopamine from your brain.
1
u/WasdMouse Apr 12 '21
I’ve literally seen no one mention “fasting” from social interactions, food, exercise, etc.
There's literally a NY Times article saying that.
The problem is that the method isn't magical like a lot of people market it to be. It's okay to fast from social media and other unhealthy addictions but you should do that gradually like any other addiction. Any type of addiction is bad.
The original work is totally fine though, just keep in mind that is hardly a new idea.
3
u/paradigmx Apr 12 '21
No, it isn't pseudo-science, it's real science. It is just taken to excess by some organizations. It literally says that in the article you posted.
0
u/WasdMouse Apr 12 '21
Did you read my edit?
2
u/paradigmx Apr 12 '21
I did yes, but you're still calling it pseudo-science. It's not the science that's bullshit, it's how far some organizations will tell you to take it.
1
u/WasdMouse Apr 12 '21
I called his comment pseudo-science. He said it helps reset your dopamine level which just isn't true, that is not how dopamine works.
1
u/paradigmx Apr 12 '21
It's a reset on the way your brain processes the dopamine, which is essentially the entire point. You can't make any chemical in your brain fully "reset", but you can affect how your brain determines when and how to use that chemical. That's exactly the point of a dopamine fast.
1
u/WasdMouse Apr 12 '21
Fair enough. I think saying "reset your dopamine level" is misleading though and that's what he said.
1
u/paradigmx Apr 12 '21
In his defense. he says "reset your dopamine system" implying that it isn't the dopamine by itself that gets reset, but the entire neural system involved.
1
u/WasdMouse Apr 12 '21
True. I might have misread the comment. I still think my comment is relevant though because of the amount pseudo-science there is about the work on the Internet even though the original is totally fine.
1
u/Smyles9 Apr 12 '21
I don’t understand... I thought once you got addicted to heroin or something else, your dopamine system eventually gets permanently damaged to where it no longer functions healthily even after you’ve gotten rid of the drug addiction?
→ More replies (0)2
4
u/AmatureProgrammer Apr 11 '21
Interesting. I never heard of that till now. I will take a look into it.
3
Apr 12 '21
Innocent question: if you start feeling good from reading books and accomplishing a goal you had. Doesn’t that “feel good vibe” you get cause a surge of dopamine too? Only difference is; it’s from another source? A healthy one.
5
u/Solako Apr 12 '21
A value driven one. Rewiring your neurotic systems to develop synapses that excite you. Dopamine rushes may come when you get coding.
1
2
u/DopeAppleBroheim Apr 12 '21
Yeah, the point is to “fast” from bad dopamine-releasing activities. Not good ones. Don’t quote me on this, but reading a book isn’t going to release anywhere near the amount of dopamine as watching porn or doing drugs. That’s the whole point, basically replacing bad habits with good ones.
1
u/MC_Raw Apr 12 '21
I'd highly recommend going through a few resources to better understand dopamine:
0
Apr 12 '21
[deleted]
14
u/paradigmx Apr 12 '21
You want a super effective dopamine fast, look up Sensory Deprivation tanks, also called float tanks. For $40-$100 or so(depending on where you live and quality of tanks), you can lay in complete darkness in a soundproof chamber floating on 10 inches of body temperature salt water for an hour or so. I was skeptical until I tried it and ended up staying for a double session the first time I went. It is the ultimate dopamine reset button for me. I come out ready to get shit done every time. I've been doing it for a short while, but a partner of mine has been doing it for years. She absolutely swore by it and I finally gave it a shot. Totally worth it. I also have ADHD so dopamine is a serious daily problem for me. An hour a week is a life changing benefit for me.
5
0
u/Smyles9 Apr 12 '21
I’d love a sensory deprivation tank, just letting my own thoughts wander and calming my body and mind. Do you have any idea how much it’d cost to make one at home in the bathtub? From what I saw on stranger things, a ridiculously expensive amount of salt. Typically 3-4 days of not doing work and just playing games or watching movies is enough to bore me and get me reinterested in doing work.
4
u/paradigmx Apr 12 '21
I've looked into it and it's pretty much prohibitively expensive to do at home for most people. You would want an absolutely bare minimum of 50lb of salts in a regular bathtub on top of trying to make it soundproof and completely dark. Even a dim source of light out of your perception would be easily noticeable. Then you would probably want to save and recycle the water rather than dumping that much down the drain every time so you would need a filter system and storage barrel. You wouldn't want to combine it with your home water heating so you would have to run it through it's own heater. I'd say you're looking at $500 initial setup for a cheap barebones setup in a bathtub that could be used repeatedly. I know you can buy complete tanks for like $1000. My understanding though is that it's the upkeep cost that is the real money burner. Salt water eats everything and rust will quickly develop on most metal components. I did the math and decided that it wasn't doable for me, but you may have a different experience.
1
u/Good-Vibes-Only Apr 12 '21
Have you considered a simple meditation practice? Sounds like an exact fit for what you are looking for
10
u/iaowp Apr 12 '21
It's just common sense.
We have decided that feeling good is something we should strive for.
So we do stuff that makes us feel good. Whether it's drugs or TV or sex or making people feel bad (war lords, bullies, bosses, abusive spouses/parents, etc).
After a while we do it too much, so you can try to reset yourself by avoiding the stuff that makes you easily receive dopamine.
20
Apr 12 '21
No. Not “common sense”. There is no evidence to back up a dopamine fast and its benefits out there. Just pseudoscience
9
u/iaowp Apr 12 '21
If you take away the stuff that makes you happy easily, you really don't think that less interesting stuff will become more interesting instead?
Like I have never been "solitary confinemented" but I'm betting after three days in there, I'd gladly watch something as boring as the kardashians or super bowl or a lecture on macroeconomics 101.
6
u/bonerfleximus Apr 12 '21
People in 1800s must have been bored as shit with no Netflix /s
5
u/iaowp Apr 12 '21
People in the 1800s were more likely to read up on stuff. Or do household work, yes.
12
Apr 12 '21
Sure but this has nothing to do with dopamine in the sense that was laid out. Don’t believe me I’m a nobody. But read this article by Harvard med https://www.health.harvard.edu/blog/dopamine-fasting-misunderstanding-science-spawns-a-maladaptive-fad-2020022618917
9
u/paradigmx Apr 12 '21
It literally says in the article that dopamine fasting works and is a thing, it just doesn't work in the way a lot of people expect or believe it to.
Sepah recommends that we start a fast in a way that is minimally disruptive to our lifestyles. For example, we could practice dopamine fasting from one to four hours at the end of the day (depending on work and family demands), for one weekend day (spend it outside on a Saturday or Sunday), one weekend per quarter (go on a local trip), and one week per year (go on vacation).
3
u/zalgorithmic Apr 12 '21
Ok, but this article seems to just complain about health fad people taking it too far and too literally beyond the recommendation, not criticizing the original method.
0
Apr 12 '21
[deleted]
5
u/iaowp Apr 12 '21
Probably a little faster than normal, since it'll be more interesting. Assuming the knowledge is actually easy enough to understand.
Like if I showed you a diagram of the bones of the body and told you to memorize them while you were watching your daytime soap operas, you'd be uninterested and fail probably. But if you were in a cabin in the woods and bored out of your mind, it would be interesting and you'd maybe succeed.
Likewise if I threw you a book on pointers and structs in the C programming language, you likely wouldn't succeed until you read a book on the basics first.
But you might be able to still cite things like "a malloc returns a void pointer".
2
u/Rocky87109 Apr 12 '21
Lol people talking about dopamine when they are just distracted. All they did was remove their distractions. It's a good tactic for learning, I agree!
1
-3
u/paradigmx Apr 12 '21
Ok, I'll stop dopamine fasting, and when I can't sit still long enough to take shit because my ADHD brain just needs some kind of stimulation, I'll ask you what a good solution to that is.
2
u/TheTeralynx Apr 12 '21
I wish I could do this but 100% of my school assignments are online
1
u/jordan-stracener Apr 12 '21
Have you thought about using a browser extension that only lets you access your assignments?
3
Apr 12 '21
Its a well known effect in psychology that quick and easy rewards for tasks tend to be addictive, and make tasks that take more effort without immediate rewards less appealing.
This is how video game/social media additction works, and partly why all modern major release games went to shit. Ever notice how all competitive shooting games are now team games? Its so that when your team wins, even if you didn't really do anything, its still registers as a happy feeling, and it keeps you playing. And when your team loses, its easier to blame a shit team instead of realizing that you suck which also keeps you playing.
The hack to all of this is psychedelics btw. One good dose of LSD/Shrooms will reset your brain like nothing else out there.
0
u/DopeAppleBroheim Apr 12 '21
Yeah there’s a few videos on YouTube on this. Just YouTube Dopamine Fast and you’ll find some good info
19
u/randomtrip10 Apr 11 '21
This. It was so hard to self learn unity when I was smoking meth.
5
u/orbitalPadre Apr 12 '21
tell me about it, i was smoking catnip when i first started learning basket weaving
18
u/canowa Apr 11 '21
That's why the only game I keep on my computer is minecraft: it's relaxing enough when I need a break but also so much boring that forces me to get back learning :)
16
u/paradigmx Apr 12 '21
As someone with Severe ADHD, dopamine is the primary focus of my daily life. ADHD means that my passive brain doesn't produce Dopamine at the same rate that I need it, so I have to constantly find ways to either reduce the amount of Dopamine that I need, and find alternative sources of Dopamine. Without ensuring that I manage my Dopamine intake effectively, I will inevitably go on what could be considered a bender. Video games, candy, tik tok, porn. Whatever my brain can find to give it a fix. I honestly have no say in this when it happens. It's like a primal urge.
So to help myself stay on track, I need to have some routines. First of all, a new routine that has been a significant discovery for me is that I book an hour per week in a sensory deprivation tank. It's like power cycling my brain. The first part of it feels like withdrawals. My brain jumping around trying to find something to focus on, eventually I just drift off and I can focus my thoughts. Since I started that, my need for dopamine has dropped radically. Secondly, I set timers for everything and reward myself regularly for changing tasks when the timer goes off. This includes working, studying and gaming. Third. I let myself have a bender occasionally. I'll pick an evening where nothing is needed, pick up some junk food and follow the dopamine wherever it leads. Sometimes I pick up a hobby I forgot I had, sometimes I get 2 weeks of work done in 4 hours. Sometimes I sit there and binge watch something on tv or YouTube.
People that aren't ADHD will still always need to balance Dopamine to some degree, but for me it's a full time job. Learning how to manage distractions and reorienting myself are key to having any kind of productivity.
0
u/Smyles9 Apr 12 '21
Idk why but I feel like I’m being described in your comment like how you are describing yourself. I’ve had a sneaking suspicion that I have adhd for a couple years now but I feel like if I have symptoms, they aren’t nearly serious enough for them to equate to adhd. There’ll be days where if I’m on my phone and I need to do something, I’ll be on my phone until 3am and then finally I’ll do it(when I went on my phone between 9 and 11pm usually). There’ll also be days where I have zero motivation to do homework and I’ll just play games or talk to family or lay in bed instead on my phone. I also feel like there’s days where I binge eat way too much junk food(like almost a full pound of Cadbury mini eggs in a 24 hour time period). As for being able to focus on stuff, English is my hardest subject because I need much more focus in order to do it where Chem and bio are more interesting not only in the content but also that I can put on a movie while I’m doing homework for those classes. English homework it needs to be silent with minimal distraction and even then I have to force myself to do something that should only take an hour or two over 4-6 hours, like writing a literary paragraph analyzing 3 quotes and organizing my ideas for that and finding the quotes for it as well. Some days all I want are to lay in bed and not have to do anything or at least only do something fun or relaxing, but I haven’t gotten a day like that in around 3-4 weeks(mid March or something like that, I took 3-4 days off to recover from cramming and doing 12 hours of work(lectures included) a day for the two or three weeks before the break. I find that I feel good after finishing an English task, but also have difficulty doing more than one English thing per day.
2
u/paradigmx Apr 12 '21
It's possible you may be. I'm not a licensed anything though so maybe talk to an actual doctor. I know that I went completely undiagnosed for most of my life because I didn't portray the typical male ADHD signs and had a reasonable level of success in my life. When I went to get tested, the doctor asked me questions that I didn't even know were ADHD related at the time and watched him proceed to check off basically everything on the list as I responded. He didn't even question it by the end, in fact he told me he was fairly certain just based on my demeanor when I got there. For the record, he didn't profit even a dime by diagnosing me and told me he wouldn't prescribe me anything and that I would have to speak to my family doctor for that. He did recommend a few things though. I know some people like to say that doctors will diagnose anyone with ADHD just to sell them a prescription. This was not the case at all.
1
u/Smyles9 Apr 12 '21
Also, would you say (if you were prescribed medication by another doctor after you were diagnosed) that getting medication helped you deal with those issues or it was more just making you more aware of the situation so you could learn to manage it. I’m also worried that I’ve made stuff up in my head because I’m looking for some other reason for my lack of ability to focus other than being lazy or just not liking the work itself. Like when covid hit I started getting headaches and tried various things that didn’t seem to work and I crammed multiple assignments in the final week before the deadline for nhis. I’m now doing the same thing again but I think for other reasons that are my own fault. However when it comes to Chem and bio I really don’t procrastinate if there’s work I have to do making me feel like it’s just because of a dislike for the subject.
1
u/paradigmx Apr 12 '21
Medication isn't a silver bullet, but it can help. Don't expect to get on Adderall or Vyvanse and immediately be a more productive person. Knowing what your situation is will help you learn how to build daily and weekly routines to help you direct your focus. Good luck.
1
u/Smyles9 Apr 12 '21
Yeah, that’s partly why I’m reluctant to even bother as I’ve noticed my normal meds only give me a little bit more energy, but for the most part it doesn’t seem like they do anything. Even opioids didn’t seem to help much after my wisdom surgery(if anything they made it worse due to the constipation and stomach aches). Like if the meds aren’t going to help very much, what is the diagnosis itself really going to do... would the doc likely just point to resources for me to use if I had it to learn to manage it?
0
u/Smyles9 Apr 12 '21 edited Apr 12 '21
So you’d recommend going to a different doctor/a specialist to get tested for that specifically? I’ve also told myself it’s probably the headaches I get almost every day, and due to the number of genetic conditions I have I can hardly tell what’s causing which problem. I feel like it’s both something serious I should consider getting tested for because then I at least am aware of it and am given possible treatments if deemed necessary, as well as something not serious enough as my diagnoses haven’t really done too much to help me actually manage my diseases, it’s mainly just been something to scratch my curiosity itch. At what point do you think I should consider talking to my parents about it? I feel like one of my parents may also have it undiagnosed as well as a couple other problems like hoarding and ocd. At this point with the number of things I have I don’t even know if it’s worth getting tested for, if only to settle it and keep me from worrying about it in the future. I’ve considered asking for a therapist because I feel like I have an unnecessary amount of anxiety, and that due to all of my other things, I often either pretend my issues are no big deal as they seem normal, or overworry about something that really isn’t a big deal, like how I’m supposed to apply for disability income if Im even eligible for it once I turn 18 when thats months away and my current priority should be getting my English homework done so I know I’ll graduate high school, or getting a healthy amount of sleep.
1
u/paradigmx Apr 12 '21
Honestly, if you're still in school, ask to talk to the school's councilor. I don't know much about your specific situation so I don't really know what I can offer for advice. I'm in Canada so most of my process was covered by universal health care. The school may or may not have access to more affordable resources and may be able to direct you better.
1
u/Smyles9 Apr 12 '21
Yeah I’m in Canada as well thank god(idk how my fam would afford the dozens of doctors appointments I’ve had over the years as well as tests and medications). I’m still in school for 2.5ish months, I basically have a week left for this quarter including English, and then I start my final 2 courses. I have to drop my in person ones anyways so I might talk to her about that as well. However, I have to check in with my iep/case manager to give a laptop back that I’ve had for 9 years now, and my school messed up real bad when it came to my accommodations for ap exams so likely there will be a few discussions about that, moving on to university and such, and I’ll probably talk to someone at some point about me possibly having adhd and maybe even an anxiety disorder although it’s likely just my other problems in combination with covid and a dislike of English, and just natural worrying/stress.
39
u/technologysex Apr 11 '21 edited Apr 11 '21
Know the feeling. We removed our WiFi from our cabin a couple of years back and you really notice how entertaining anything you can get your hands on is. I try to not have my phone around me when i'm there and just reading a book it's so strange how i'll unconsciously take this breaks every couple of pages and reach for my phone. I'll get bored for a minute, staring out in the air, and then go back to the book because there's nothing else to do.
Old movies and TV shows that's been on my laptop for ages becomes a gold mine at night and i'll be super grateful to discover some old movie that would otherwise feel a bit like "work" to sit through.
All this stuff about dopamine and social media is obvious and a bit trite by now to most people, but it is still good to remind ourselves.
5
u/iTAMEi Apr 11 '21
I leave my phone upstairs Saturday/Sunday mornings and watch a bit of TV and it’s very much the same.
9
u/WeStanForHeiny Apr 12 '21
Decade long dev here,
I think it’s extraordinarily important for anyone getting into this field to find your zen. What I mean is, find the ideal set of conditions for you to completely concentrate and focus.
For me, I know that having a pair of sound cancelling headphones, my big spotify playlist, closing out everything unrelated to my task(s), and the ability to drum a little means I can absolutely crank through work. And even better, it doesn’t feel like work — and I get a dopamine hit for each little task I accomplish along the way. I also know I tend to get my best work done during the after lunch to end of day window.
This is just the particular formula that works for me, but I would extremely encourage any of you who are dipping your toes into this line of work to experiment with different things. Some folks like natural office ambience. Some like songs (with no lyrics).
You’ll know you’ve gotten your formula correct when you look down and back up and it’s been 4 hours without you evening realizing it.
Toy around with different setups until you find something that works for you. It makes success so much easier.
3
u/Smyles9 Apr 12 '21
I find that I do my best work from 6pm-10pm, although for music or movies, I feel like it depends on the nature of the task. If it’s difficult I need quiet, if it’s easy but tedious I need a movie or music to keep myself from getting bored and slacking off.
1
u/WeStanForHeiny Apr 12 '21
The important thing is simply recognizing what works for you. You’re on a good track.
Keep it up!
2
u/Keroseneslickback Apr 12 '21
Love me some music and work! :D
I'm still on the beginning of my journey. It's hard to buckle down and read/watch coursework to learn stuff. Essencial, yes, but I struggle through it. I'm always waiting for my break sessions.
But when I have a task to practice with or to build something that I know decently well, headphones and glasses on (I use IEMs), some tunes going, the time FLIES. I actually need to take breaks so I don't burn out too quickly. Oddly enough, I prefer rock music for programming (versus electronic stuff when I'm freelance writing).
22
6
u/babypunter12 Apr 12 '21
I've found in my personal experience that mornings are the key to having a productive day. For anyone reading this comment that OP's post applies to, I'd propose trying the below in the morning and see how it helps you. It's stuff you probably should be doing anyway to keep healthy outside of programming.
As soon as you wake up:
- Stretch
- Drink Water
- Do a Deep Breathing Exercise
For the first hour of the day:
- Don't open any digital sources of stimulation (social media, news posts, emails, etc.)
5
Apr 12 '21
You now understand why authors lock themselves In rooms or have cottage getaways in the woods with nothing but a typewriter.
Or how athletes isolate themselves from the world before a big game.
They're forcing concentration.
It's very difficult for us in our field simply because contact with the internet goes hand in hand with our craft and as of the last decade has also engulfed movies, music, and other forms of entertainment.
Though I know it's nearly impossible for us if you ever get the time off long enough I recommend going on a "media flush" basically it's a few days to a week where you only interact with electronics as completely mandatory. So no music, no videos, no websites, no reddit. If you can maintain this for a week or so it kind of resets your brain so you start feeling less of a need to use websites like reddit or youtube. You'll also learn pretty fast when you remove distraction you start doing productive things because the alternative is boredom.
Besides that if you're also capable another good recommendation is speration of work computer and research computer. So basically you could for example, have your laptop right beside you for programming/any other work that doesn't require the internet. That a device like(I prefer my ipad) for doing any actual internet research. So now you've separated your work tool from your research took. In order to mindlessly open a tab and use reddit you have to physically switch devices. Also having a internet disconnect from your main device makes it a lot easier to concentrate as you can't access the internet without moving your concentration off screen.
I know a lot of this is extremely difficult for most programmers but if you can find ways to work even some of this Into your life you will see benefits to your concentration and productivity.
4
4
u/memecoder Apr 12 '21
Try not to context switch too often. The more you context switch the more fatigue your brain. Learning actually causing stress in the brain. Top dop suppression is required to regulate the stress. Having good sleep, sunlight, exercise, and diet can play a role. And be prepared to fail and accept the feeling of failing. Accepting that feeling and be okay to not get it right. Motivation comes after action. Start small to remove the friction. Lose the expectation of the goal and only focus on what you can do now. Start with 10 minutes or reading a paragraph and summarizing and be content with that.
7
u/Victor_Quebec Apr 11 '21
So true! Distractions everywhere... Thanks for sharing!
After two unsuccessful attempts to learn C from tons of video tutorials out there to give something back to the FOSS and Linux community, I've finally got my hands on Deitel's "C: How to Program" in parallel with taking a CS50 course on the language. What a wonderful experience is trying to grasp the ideas gradually from a well-taught book and practicing each step along the way!
3
u/ValentineBlacker Apr 12 '21
Oh, I just program and watch videos at the same time. Efficient, fun, brain vibrating very fast, dopamine pooling at the bottom of my skull.
3
u/schnozzberriestaste Apr 12 '21
I recommend checking out Deep Work by Newport. Also Digital Minimalism.
2
u/Vanilla_mice Apr 11 '21
that's very true, that's pretty much my main goal right now, to learn how to time manage and actually focus. it's very easy to lose yourself with all of this.
2
u/Sad_Wendigo Apr 11 '21
More likely leads to a decreased overall level of seretonin than dopamine. Could be part of the reason everyone and their mother has to take Zoloft these days.
2
u/Allgaming20 Apr 12 '21
If they u are anything like me and ur brain just doesn't like silence due to your past, i recommend lo-fi music for programming so ur not sat in silence, don't use lyrical music while programming cuz it will become distracting
2
3
u/sachiewang Apr 11 '21
I quit social media (reddit is an exception) over 2 years ago for the same reason! It’s so much better too, less things to worry about. I’m glad you were able to pick that back up again! I get dopamine from learning to program too, but it’s a bit different in a sense that I feel it when I solve a problem I’ve been stuck on. We’re a bit similar! Good luck on your journey!
3
Apr 12 '21
I learned all the syntax in one week when i was doing dopamine fasting, it wasn’t fasting per say rather more like waking up at 5 am, eating breakfast, doing meditation for half and hour and then getting done with learning by 10 am. After that I used to reward my brain all day with dopamine. Only 4 hours of laser sharp focus for one week got me finish with syntax. One of the best week of my life.
2
Apr 12 '21
Yep. Dopamine Fasting is a thing. Mainstream websites will say its bullshit/pseudoscience but anyone who’s tried it knows the truth.
2
u/mplaczek99 Apr 12 '21
When the code finally works is the ultimate Dopamine rush
2
u/Smyles9 Apr 12 '21
Especially if it’s something other than styling an object, like a function for example thats interactive and you can finally interact with it.
1
1
u/macsimilian Apr 12 '21
I had the same experience with a C++ book. I didn't program in C++, still haven't really. But just working through that book slowly and absorbing every sentence, not moving on to the next until I completely understood the previous, was very satisfying. That's where I first figured out Generics, and probably other concepts. I carried that book around for a while. Definitely recommend Accelerated C++.
1
1
u/Smiling_Buddha1 Apr 12 '21
Me too, pretty much in two years of high school didn't have any form of entertainment( was in a hostel). I was good at Maths but terrible at science. 2 whole years did only science and maths, got really good scores after, since I had no source of entertainment, really understanding science was only source of mystery to me, it became fun then
1
u/Rocky87109 Apr 12 '21
There is a word for it already:
"distracted"
That's why when I was in college, even though I had my own computer and desk in my apartment, I would go to one of the libraries and learn shit. I don't really use phones as entertainment devices so that doesn't really distract me as much.
This is also an issue for me working at home.
1
u/Bot-Fyra Apr 12 '21
I had to stop playing pc games to focus on studying. Can only study at evenings before bedtime. If i could i would study whole day because i have found that i can get more focus at mornings and daytime.
1
u/Smyles9 Apr 12 '21
I read the documentation and mess around with the code in my project seeing what I can do. Getting to tinker with things and then see something work is awesome. If I get bored and I know what I’m doing I’ll put on a movie while I do it.
1
1
u/deadant88 Apr 12 '21
I get a massive hit of dopamine or whatever you want to call it every time I overcome a problem in coding. There is no sweeter feeling than closing all those browser tabs! Then you hit the next problem.
1
u/N4th4nN3v3r Apr 12 '21
Isn't it a waste spending all that time finding answers and then discarding them? Why not save them? If nothing else, to share with others, if/when they run into the same problem. I highly recommend using Tablerone for this kind of "I might need this some day again, but not sure" bookmarking: https://tabler.one/
1
1
1
1
1
u/WartedKiller Apr 12 '21
When I was in Uni, I was listening to the 5 same song while studying a subject. In the exam, when I wasn’t remembering something, I was “playing” those song in my head. It saved me a couple of time.
1
1
u/RoguePlanet1 Apr 12 '21
Reddit is addictive, but I'm glad to have subscribed to the subs like this. When I'm mindlessly scrolling, I'll find a video or recommendation that'll make me want to get into the learning mindset.
In fact, you just reminded me that I need to keep reading Eloquent Javascript......
1
u/Good-Vibes-Only Apr 12 '21
This reminds me of the time my mp3 player died while in the first 1/4 of a long run.. considered calling it quits right there and going home, but instead had the run of my life and haven't used headphones since
1
u/Riresurmort Apr 12 '21
When you spend a week trying to solve a coding problem, then you succeed, the feeling is better than sex!
1
u/KwyjiboTheGringo Apr 12 '21
If you do it right, music can help you get into a flow state while coding. I do have to mute sometimes for problems that are really tough, but usually I can listen to my playlist for hours and it helps to keep me hyper-focused.
learning c++ was just as enjoyable as watching a great movie or listening to music.
Took me a long time to realize that learning and using new skills can be fun. We get so used to instant gratification and low engagement with passive media that taking the path of least resistance becomes automatic. But after you spend enough time learning, you can rewire your brain to recognize when you're wasting time. It's okay to turn your brain off sometimes and binge-watch Netflix, but that should be a decision you consciously make, not a habit that you default to.
1
u/ArthurDeemx Apr 12 '21
I love programming, but I find it hard to relate to you, making software is stressing as hell, debugging, random issues, and when you simply can't make something work and you can't find an answer for it, I have one project that I stopped working on because I couldn't fix one of the issues after months of trying I gave up and started another project, not saying that you are lying but I doubt you ever coded an entire project if you see programming as something so entertaining.
1
Apr 12 '21
If you do activities that release high dopamine You will be accustomed to it.. You can't do activities which release low dopamine. So try dopamine detox (search about it, I watched video in YouTube)..
1
1
u/irukandji69 Apr 12 '21
Great point! It's like spending time in the joint and all you got is your books and jacking off.
I may have to partake in some "Dopamine Fasting" myself (As DopeAppleBroheim put it).
0
0
0
Apr 12 '21
"The Deep Work Hypothesis:
The ability to preform deep work is becoming increasingly rare at exactly the same time it is becoming increasingly valuable in our economy. As a consequence, the few who cultivate this skill, and then make it the core of their working life will thrive. "
The book Deep Work by Cal Newport is something I reflect on every month, and has unquestionably aided me by bringing quality focus to the deliberate tasks I choose to pursue in the short amount of time I have to pursue them. For sure worth a look at the book for those who are looking to master a skill faster and with greater depth than most people are willing or capable to commit to. Sit down, work. No media or even a hint of possible entertainment for long periods at a time. Deliberate and uninterrupted.
It's an old-school skill that seems mostly common sense, though not commonly possessed, especially in these days when attention merchants are fighting at every moment for your hard-earned free time. Worth a read.
0
u/JCBh9 Apr 12 '21 edited Apr 24 '21
Everyone learns this again when the power goes out
"OMG WHAT AM I GOING TO DO MY LIFE IS OVER"
next day: "Man... i'm kinda looking forward to reading a book on the porch until it gets dark then i'm gonna sleep goooood
AKA ... This too shall pass and human adaptability is very very high
0
-39
u/antiproton Apr 11 '21
So, you were so undisciplined that you couldn't force yourself to study unless you had literally every possible distraction involuntarily removed from your presence?
And you interpret this as some kind of great wisdom?
Proficiency requires work. In all things. If you cannot dedicate yourself to the work because you'd rather watch people on Youtube say soul crushingly stupid things or because you'd rather play another 8 hours of Overwatch, there's nothing we can do for you.
Life requires self control.
28
Apr 11 '21
You sound like a dick
20
u/TwinFoxs Apr 11 '21
Nah doesn't sound like one. Is one.
Gotta love the asshole i.t/c.s guy that loves to talk to down
11
u/Hapablapablap Apr 11 '21
Yeah, this is textbook overcompensating for feelings of inadequacy. How embarrassing.
6
u/TwinFoxs Apr 11 '21
I love love computers, love coding etc. I tried to read a 2k page book for a+ certification and cannot do it.
Learning coding and other stuff can be very very dry and boring. It's super hard to force yourself on something that's not 100% fun to learn. You can push yourself and be like much discipline but you'll burn yourself out if you don't have fun or take breaks.
11
4
u/s-ded-in Apr 11 '21
I have never seen a developer with thoughts like yours created something valuable. Maybe proficiency requires work but great results require right attitude and a lot of passion.
-17
Apr 11 '21
Stop trying to find excuses/reasons to do/not do productive things. Just fucking do it. And if that is somehow to hard for you, good luck making it through life
5
u/Sad_Wendigo Apr 11 '21
Not that easy for everyone. You have to get your head right first. That usually involves some treatment of medicine or therapy. Most people these days aren't lucky enough to be able to have both the clarity of focus and the resources to do what they love.
-4
Apr 12 '21
I disagree. I barely graduated high school. After one summer I had my priorities straight and I am now a straight A student pursuing a degree in mathematics. I’m talking about normal people without drug addictions. If I can do it, anyone can
4
u/Sad_Wendigo Apr 12 '21
First of all, I'm sorry, but it just doesn't work that way. Everyone is different.
Second, I didn't say a thing about drug addiction.
You are clearly extremely full of yourself, which is why you get downvoted so much. Watch the ego if you want to come across as a decent person.
-2
Apr 12 '21
you don't need to say sorry for stating your opinion. I know you didnt say anything about drug addiction, but I am bringing it into the equation because I believe unless you have an addiction to drugs or a serious mental health issue, you should have no problems getting off your ass and getting to work. I used my personal experience to back my point, if that comes off as me expressing my ego is there another example you would like? I could use examples from my peers in high school, is that ok with you? Because I certainly wouldn't want my "ego" to distract someone from the main argument. Yes, some people have issues that cannot be solved by "just doing it" but I would definitely argue that most people are lazy and like to blame their laziness on something out of their control. I don't like those types of people.
3
u/Sad_Wendigo Apr 12 '21
No, you used your personal experience to say, "If I can do it, anyone can."
I don't think most people are just lazy. I believe most people do their best with what they're given.
We will have to just accept that our opinions differ there.
2
u/Smyles9 Apr 12 '21
I would say I don’t put in 100% effort all the time, at least when there are undesirable conditions that make it hard to work, it removes some of the motivation I had to do work which gets restored upon conditions becoming desirable again. I’d rather take a mental and physical break when it’s undesirable to do work than to have to spend time during desirable conditions taking a break.
2
Apr 12 '21
I thought the statement "If I can do it, anyone can" was accurate because I see myself as a brain-dead baboon with very little resources and managed to turn my life around in one of the worst years humanity has experienced in the last 50 years. I am not good with words, sorry if I came off as an asshole. I actually tried to be more inspirational but I guess that was a flop. Let's agree to disagree.
1
1
u/Smyles9 Apr 12 '21 edited Apr 12 '21
I feel like it’s entirely normal to struggle with distractions, that’s part of what it is to be human, however it’s still possible to get to work. However, when you factor in things such as noise, regardless of what’s producing it, it can be very distracting for some individuals in that it makes it very hard for them to focus on their work. I’m in a noisy environment for a lot of my homework yet I have little control over the noise. I do what I can to mute the noise(noise cancelling headphones), but I still struggle with it, and sometimes due to the nature of the work I can’t always listen to music while I’m doing homework either, meaning I have to wait for the right conditions in my environment before I can properly focus on that specific homework assignment. This is the case for a lot of people once covid hit and were restricted to working at home where family members or room mates can easily distract them, especially if the living space is small and they don’t have enough room for dedicated offices for at least one or two people. Good for you for being able to drown out all noise and distractions in Any environment so you can do your work, say right beside the highway with several other people in your living space having a party with the tv on /s, but many people including myself can’t do that. It’s not simply, if you’re healthy you can drown out all noise and leave your phone and computer off while you do your work. That’s unreasonable to expect anyone to drown out all distractions. If you’re at a job though your phone is typically required to be in your locker or turned off and you’re busy anyways meaning you can focus on your work, but anyone doing a mentally intensive task for work or anyone who is a student cant always get into the environment they need in order to focus even if they wanted to. I for one am pushing through and trying to take advantage of the times when I’m able to concentrate on that work, even if I really don’t want to do that work anyways. I’ve put myself through a ton of undesirable situations and even if I struggle with doing work it doesn’t mean I’m lazy. Also, some people just have less energy than the average person and can’t tolerate as much, or can’t do as much work at any given time compared to others, but that doesn’t mean that because they aren’t just doing it that they are lazy, it’s their body that’s tired and they need to rest.
1
0
Apr 11 '21
[deleted]
55
Apr 11 '21
Adderall is prevalent everywhere cuz it works
0
Apr 11 '21
[deleted]
18
Apr 11 '21 edited Apr 12 '21
Absolutely. This shit can fuck you up and you should only take it if you really need it. Source: have been a psych patient for more than 20 years, taking similar medication among others.
4
Apr 12 '21
I'm curious about your experience with long-term effects. I'm struggling without it but also skeptical of taking it.
2
Apr 14 '21 edited Apr 14 '21
Sure, hope I can help.
Everyone's brain is different so you shouldn't take my words too seriously.
This happened in the course of 20 years so I cannot give a proper summary, but in my experience many if not most psychiatric medication will come with some kind of impairment or side effect. You should take these medications despite that, and only when you and your doctor decide that the benefits, in that particular case, greatly outweigh the negatives.
Amphetamines such as Adderall can increase anxiety, nervous tics, and also create dependence. One doctor told me she believes using amphetamines can make the person hyper anxious for live, even after they stop taking it. They can also help you work, study, and function in society.
Some antidepressants can make your dick go a little numb (nothing a helpful girlfriend cannot help with...). They can also prevent you from killing yourself and give a new meaning to life.
Antipsychotics can make you gain weight. They can also prevent delusion and instability.
Mood stabilizers such as lithium may also make you gain weight. They can also help you regain control of your personality.
Every psychiatric medication comes with its warnings. Like any medication, do not take them lightly. But, in the case that they are really needed, failing to do so may cost your life.
Just stay away from bupropion... that shit caused tinnitus for life on some people.
2
3
Apr 12 '21
I'm curious about the health effects of long-term stimulant use. I thought they were considered safe at therapeutic dosage.
4
2
u/mrd2689aaa Apr 11 '21
In your opinion how prevalent is it?
12
u/trizzle21 Apr 11 '21
Far more common in my experience in university/college than in the workplace.
I know a lot of people who did it in college for studying and exams and weren't prescribed for it. I don't really know anyone who does it for their 9-5 and isn't prescribed for it.
I'm sure there's cases where people are addicted or like the feeling, but for a salaried position it just doesn't really make as much sense.
2
2
Apr 12 '21
Adderall is a different version of meth so that is kinda disheartening
1
u/CoarseCriminal Apr 13 '21
This is really misguided, prescription adderall (amphetamine) may be chemically similar to methamphetamine but so are carbon monoxide and carbon dioxide. Prescription stimulant abuse is a very real thing but taking it at medically recommended amounts is not harmful (when you have a psychiatric need for it of course)
451
u/newguyonthecode Apr 11 '21 edited Apr 11 '21
It all comes with practice, to train your brain to be stimulated by things that actually are beneficial, have meaning and are productive. Its not as easy as it sounds, im struggling to get there. But god willing i will soon, pushing hard this time, i took a leap of faith at 29 to go back to uni for a second degree in CS. No turning back haha. Good luck man! Edit: spelling.