r/learnprogramming • u/Successful-Life8510 • 2d ago
Topic Why is coding on paper so much easier than studying on a computer screen ?
I can concentrate and understand things much better when I'm studying with pen and paper. But when I try to study the exact same material on my laptop, everything suddenly feels harder to process.
This also affects my ability to code. I find it easier to write code by hand, analyze it, and understand the logic on paper. But when I try to do the same thing directly on my laptop, I struggle to concentrate and think clearly. it feels hard to do big projects and I rely on AI to write the code.
Does anyone else experience this ? Is there a reason why studying on paper feels so different from studying on a screen ? And how did you overcome it, especially if you're a programmer ?
Edit:
I'm seriously asking. I've had this problem for years, and I wear prescription glasses. So please, I'm asking for respect and no trolling and joking comments. If you don't like the post, just ignore it. If I had someone to ask in real life, I wouldn't be posting about it on Reddit.
95
u/Quito_ArmandoEsteban 2d ago
Because writing with slow methods (paper mostly) gives your brain more time to process. You gotta read slower
48
u/YXTerrYXT 1d ago
For me it's the opposite. I have to experiment and see the code in action to actually understand it. My high school class taught coding 90% of the time on paper & blackboard and I effectively learned nothing. Should've dropped out of the class.
16
u/a3th3rus 2d ago
Pen (especially multi-colored pen) and paper are extremely helpful tools even for experienced programmers. You can draw anything on paper with ease, but you may have hard time drawing them on your computer even with good software like draw.io because you have to think how to draw a thing with that software, but you draw it on paper by instinct. I always keep a multi-colored pen and a stack of paper at hand when I program.
10
u/SLOOT_APOCALYPSE 1d ago
read the book about the memory champions.
writing adds more pointers to the memory in your head. A higher motor function is used when writing vs tapping a known space on a keyboard, which requires more focus and involves more senses and has the benefit of you saying the words as you write them adding more markers to find the memory and make it stay! Science
Now read that memory book
9
u/ButterscotchSea2781 2d ago
I worked as a software developer and left to work in operations in renewable energy. I still get to put those skills to use and build a series of automations for the team.
When I was learning code, when I worked as a dev, and even now I'll still use pen and paper or just word vomit my thoughts into a notepad.
Can't advise on overcoming it. I know many far more talented programmers than myself have no need for it but I've always found if I get stuck or if I'm struggling to concentrate then doing this frees up my mental bandwidth to get a solution into my head much quicker.
But the more you do it, and the more you recognize patterns, the less you'll feel the need to track your thinking on paper like this.
5
u/cammievip 1d ago
idk im literally the complete opposite
4
u/iqisoverrated 1d ago
The more modalities you include in your learning (sight, audio, haptics, smell, ...whatever) the better you retain information. Using pen and paper gives you the haptics (and possibly even the audio) of writing that staring at a screen does not.
2
u/SardScroll 1d ago
I think there a couple things here
For paper vs computer, I'd ask are you "actually coding" on paper? I suspect not, which is a non-trivial part of issue. I do write on paper semi-regularly, but I'm never "actual coding" but rather some variant of psuedo code. Which is very useful, but can lead to difficulties. I often psuedo code in my IDE, then implement the pseduo coding. Why? Because it breaks up a problem into parts: Logical pathing, and specific implementation.
So it may be that actual implementation is the hard part for you. I'd recommend trying to psuedo code first, and see if that part is easier for you, and "solves" the problem.
The other possibility is habituation. If you (as I did) use your laptop for fun, gaming, etc. then that can carry over as a habit when it comes to work. I try to make my "work set" very different than my non work setup. Different room or location if possible, full lighting, different posture, etc. Make a distinction for your brain, and don't "cross over". if possible. One thing that I'm trying now is to have all of my own stuff in dark mode, and keep my work IDE in bright mode.
2
u/SerenityNow31 1d ago
It isn't for me. I was so lost the first time I saw coding because the computers weren't ready yet. Once I could sit down at a computer and run the code, it all clicked for me.
2
u/marrsd 1d ago
I have to admit, I'm perplexed. I'd have thought it would be easier to use your laptop because you can run the code on there.
It sounds like it's an issue with the medium more than anything else.
Perhaps the screen is causing you fatigue? I would strongly recommend that you work against a dark background anyway. I use green text on a black background as a base, and my colour scheme for code is similar to that. After that, make sure your monitor isn't too bright.
What's your typing like? It should come naturally to you. If you're thinking about what keys to hit then you obviously aren't thinking about the programming problem itself. Learn to touch type if you can't already. The easiest way to do that is to write prose. Use all of your fingers and look at them while you type. Start to look away once you're confident you know where the letters are. If you start making mistakes, look back at the keys until you're confident of them again.
That's about all I can think of right now. FWIW, learning to write code out by hand is a good skill to master. You'll probably find that you write fewer bugs than other people as a result of doing the up front thinking. Once you overcome your issues with using a laptop, you might find that all the practice at writing by hand will have actually given you an advantage.
2
u/mmahowald 1d ago
It…it isn’t.
1
u/desrtfx 2d ago
Apply a hybrid approach:
There is absolutely nothing wrong with planning or sketching, scribbling notes, logic ideas, etc. on paper (personally, I switched to an e-ink tablet for this purpose as I work on different locations all the time - carrying paper became too tedious).
1
u/RedAndBlack1832 2d ago
Writing notes/charts/logic out on paper can help write code. I keep a notebook at my desk lol. What are you using to write code? Having syntax highlighting, a readable font, and larger text / bigger spacing might help.
1
u/deadc0deh 1d ago
I "code" on a whiteboard before I touch a computer. Its far easier to define your algorithm, data structures, and interfaces using diagrams you can draw and erase and only THEN implement it (incidentally this is part of the idea of MBSE that INCOSE likes to push, with less formalism); than it is to write things without doing the upfront work.
This also means when I am writing the code itself I am focused kn how to verify and not create bugs.
1
u/PromptAudit-Dev 1d ago
Writing on paper removes the entire feedback loop: no syntax errors, no compiler warnings, no missing semicolons, and no distractions from tools or browsers. You focus purely on the logic and architecture rather than the implementation details. It forces you to think before you write.
1
u/tonsil-stones 1d ago
you and me, same twin.
1
u/huuaaang 1d ago
Can you give an example? I don't think I've ever even written real code on pen and paper before. What kinds of things are you analyzing? Like an if statement or a for loop? Trying to figure out how a recursive function works? Or are you actually writing out whole programs on paper?
1
u/Amuro_Ray 1d ago
I think that's normal. I can't empathise with coding by pen and paper, it's too slow for me and the code isn't something I can keep in my head that way.
I definitely find pen and paper let's me be more reflective and learn/write better
1
u/FlatwormOk811 1d ago
No joke here because I actually do half my architecture on notebooks before touching an editor.
1
u/addenrock001 1d ago
Screen glare with glasses is brutal and drains focus fast.
1
u/Educational-Paper-75 1d ago
Pretty normal I'd say. Programmers often want to show off how fast they can code without having to think hard beforehand. Working on paper allows one to focus on coming up with alternative solutions and think things true and select the best approach. But perhaps it's a forgotten art and not impressive enough.
1
u/ironicperspective 1d ago
Can’t rely on AI when you’re using pen and paper so you actually use your brain and take in what you’re working on.
1
u/Sad_Shop4 1d ago
when u use pen and paper, u can't depend on AI. It forces you to think for yourself, engage your mind, and truly understand what u are working on
1
u/cammievip 1d ago
i feel like it's the opposite for most people. when i used to have coding exams in C it would be wayyy harder than if i got to use my ide like vscode. just something about coding on paper that makes it harder
1
u/Available_Safe1818 1d ago
> it feels hard to do big projects and I rely on AI to write the code.
That's probably the reason why you have these problems.
1
u/betarage 1d ago
Maybe It is because when you try to run the code on the pc you find out that you forgot some details and it doesn't work.
1
u/timpkmn89 1d ago
There's more to eye conditions than just glasses. If you have trouble while looking at screens beyond this, you should see an opthalmologist (not an optometrist).
1
u/Desperate_Dot9434 1d ago
paper removes autocomplete, syntax highlighting, and browser tabs, your brain isn't splitting attention between thinking and managing tools
1
u/zinsuddu 1d ago
My most important work has been done on 11" x 14" or larger sketchpads and a 3 foot x 5 foot white board with plenty of room for not only writing the code (usually pseudo-code first) but also drawing state transition diagrams, data structure layouts, and architectural block diagrams -- Lots of arrows all over and accumulated little side notes; it's messy by wow do ideas become clear and implementable.
Thanks for reminding me to go back to the old media. I've been getting frustrated trying to find software with a good free-form canvas for diagraming and developing code "on screen". Engineers/Programmers tempted to experiment with paper may want to try going bigger and work on BIG sheets or a BIG white board if you have space for one.
When working with composable languages I found it really focused my discipline to work on a tiny screen with only 16 lines of code and force myself to make the ASL so expressive that every nameable chunk of code could be written on that one screen. That's fun too. But a big white board on the wall is really liberating...
1
u/compoundlearning 1d ago
i went through this exact phase last year. realized my laptop was letting me 'code' without actually thinking. i'd hit ctrl-space, see options, pick one, move on... zero retention. switched to hand-writing complex algorithms first. it sucks because it's slow, but that slowness is the point. it forces u to hold the entire structure in working memory before writing a single line. when u finally type it out, you're just transcribing thoughts you already validated, not guessing at syntax. totally different cognitive load.
1
u/dld2517 1d ago
You might have some slight dyslexia or vision issues. Have you tried high contrast and or accessible views?
1
u/Kadabrium 1d ago
learn typing
1
u/gm310509 1d ago
Back in the "good 'ol days", people used to have to write down their programs on a specially designed template as per the examples here: https://mdhughes.tech/retro/coding-sheets/
As the author said, doing so made people think about what they were going to submit - as opposed to submitting human slop. This was important as computer time was limited and expensive, so you sort of had to do your best to get it right on the first go. Coding sheets helped with that.
Indeed, often you didn't even type it in your self. Computer terminals were expensive and in short supply. So, often you had to hand the sheets to a keypunch operator who would type it in for you. There skill was that they could type faster and more accurately than you and thus get more through on the very expensive terminal.
That said, everybody I knew hated them. They were a PiTA and took a lot of time to write out and difficult to edit when you found a mistake.
Once the program was entered people could access the code - typically through an online terminal which was usually limited to just 24 or 25 lines of text in 80 columns. This isn't very much and made it difficult to see the "big picture" - especially if it took a second or two to scroll to the next/previous page.
Consequently people would print out the program onto fan-fold paper where it was much easier to read. As you have observed.
Nowdays we (or most of us) have large high resolution monitors and so the "big picture" issue has kind of gone away. Before, I had to rely on the printout, now I just use my multiple monitors to get the views into the code that I need and it is much faster than paper.
You didn't describe your setup - but maybe the issue is that you don't have enough screen real estate - with modern IDE's and all of their information panels (which are also really helpful IMHO) you can sometimes be left with what I called a "postage stamp" sized code window - which is akin to the 24/25 x 80 terminals of the good 'ol days.
If that is your environment, then yes, printing it out makes a lot of sense.
If on the other hand you have an environment like mine (3 high resolution large format monitors) then it could be some other issue - which I can't imagine from the information you have provided.
From a different perspective, if I am designing something that is moderately to very complex, I will often get a pencil and paper and map things out. For me, this is a better approach than reaching for a graphical design tool from the get go (no matter how much screen space there is) because for me, driving the tool interferes with my creative and problem solving thought processes. In this scenario simpler tools (pencil, paper and rubber/eraser) are much more efficient. IMHO.
I hope this helps.
1
u/et_theextratestic1e 1d ago
I used to code in my notebook while riding the bus to work. It was great for fleshing out logic.
But it was hell to debug.
1
u/Outrageous-Permit372 1d ago
Yes, 100%, it's great while you're learning. I also print off the code and study it away from the computer. And I think the reason why it works is because every line of code on paper has a physical location in space. I'm not scrolling up and down looking for things, I'm seeing functions that live on page 2 and get called on page 3, etc. Just like reading a book on paper instead of a Kindle, you can flip back to a spot in the book where something happened, even if you can't remember the exact page or chapter.
1
u/Dazzling_Music_2411 1d ago
I'll agree and disagree.
Early stage design, when concepts are still a bit cloudy in may head? - Pen and paper every time!
Once everything starts appearing a bit clearer, or needing refactoring? - Editor. So much neater and easier to marshal. Maybe my handwriting is too crap, also 😄
Overcome what?? It doesn't seem like there is something that needs to be overcome here. Sorry, but thus sounds more like a question that bots like to pose.
1
u/roger_ducky 1d ago
If you’re used to pen on paper it makes sense.
In the old days, it’s “pseudocode on paper, typing it out next”
In other words, get the high level design in order before worrying about syntax.
If you start concentrating on syntax when typing stuff in an IDE then that’s probably why you’re more effective on paper.
1
u/ClassKlutzy7633 1d ago
Part of it is that paper has nothing else on it. On a laptop the editor, the browser, notifications and the AI tab are all one click away, so your attention keeps getting split even when you don't act on it. Something that helped me was planning on paper first, writing the steps or pseudocode for one small function, then typing just that piece and running it before moving on. Turning the AI assistant off while you do that also helps, because otherwise the hard thinking quietly gets handed off and the screen starts to feel harder than it is.
1
u/DragonfruitGrand5683 1d ago
Because when you write with your hands your using tactile feedback that's slow and different, it engages your brain more.
When you type you can type faster and your not getting the same tactile feedback as writing as the keys are the same.
1
u/kadiotelki 1d ago
You are the first person I have heard say this
1
u/assetburn 1d ago
I was this way for awhile when I taught myself asm, I’d scribble code and diagrams on reams of printout paper and scrap paper and the most satisfying part was when I finally sat down at the computer the code ran on the first try. But now I have the best of both worlds using an apple pencil, ipad mini and Onenote.
1
u/laradvil 1d ago
what do u mean? every software has haters in this community.
1
u/swagchicken75 23h ago
Answer: brain
1
u/Mango-Fuel 22h ago
do you type a lot? maybe you don't? maybe you think better with writing than with text? for me almost all I do all day is type; emails, message boards, coding, etc. writing actual code on paper is extremely alien to me. always hated doing it on exams. (drawing curly braces is the worst).
1
u/Ormek_II 22h ago
The paper offers nothing else than its content. I signal to myself: this is the content you shall focus on now. Even if I reject the actual distraction from the laptop, my brain might still wonder if it should check emails or …
When I wrote my doctoral thesis I did so on paper to focus on content creation instead of procrastinating with image layouts.
Programming is a different matter.
But I feel you.
1
u/ComputerWhiz_ 21h ago
There are lots of factors here:
But I think the biggest thing is just social conditioning. Most people who use any device have been conditioned to skim and scroll through stuff quickly. Like think of social media, how people just scrolling super quickly without reading everything. Your brain just goes into that mode when you look at a screen.
1
u/Full-Interaction2024 10h ago
i agree. my focus feels very different, depending if i have a backlit screen or not, and what shape that screen is. weirdly, having a paper notebook under my arm helps my focus feel more like im using a book to learn
oh, and my iPad screen is COMPLETELY different in feel to my laptop, and can serve as my notebook as well
1
u/tuannmdo 2h ago
Someone once told me that the act of writing things down stimulates our thinking. Perhaps it's because we've spent so many years learning with a pen in our hands, and our brains have developed that connection.
It's similar to other connections within our bodies. For example, moving your hands while giving a presentation can help you express yourself more easily. Chewing helps with digestion, and walking around can help your brain come up with new ideas.
1
u/coursespine 2h ago
Paper won't run anything, so you have to work out the logic before you write a line. On a laptop it's easy to start typing and let the editor or AI fill the gaps, so you skip that step. You don't have to drop paper. Sketch the logic there first, then type it in and run it one small piece at a time.
-2
u/rake66 2d ago
Go to a doctor and check your eyes bro
-1
u/ToneCautious6611 1d ago
Congratulations, you’re officially ready for an Indian university computer science exam. Ha ha ha ha 😂
0
u/Heiwa99 21h ago
First of all, I'm not going to say it as joking about your issue, because in a similar but maybe different way, I understand what you're experiencing. I have HSP (highly sensitive person). It basically means that my brain processes the information (internal information from my thoughts, and external information from what I see, hear, touch, my feelings and so on (basically information coming from my five senses and my thoughts) are more deeply processed by my brain (and by the brain of other people who have HSP). This means that oftentimes I get overwhelmed and overstimulated by a lot of things.
You may experience something similar (I'm not saying it's that you have HSP, since you may have something else), and it doesn't mean that it's something bad. As some people pointed out, working on an IDE or with something like Visual Studio Code, your brain may be faced out with a lot of visual information, which may overload your brain (sometimes I experienced something like that when I had to read and see too many informations at the same time, and it was not about programming, which made me unable to think properly and do what I wanted to do). And writing on paper has only the white paper, without all the unnecessary additional visual informations, so your mind was much clearer.
My advice is to take breaks more often when you try to code something which is complex, during the breaks, don't do things that may make your brain think. Breathe when you start to feel the way you said you feel when coding. To make your working environment much more simplistic than it already is. And try to write just a few lines of code before breaks, and after a short break, return to the computer and write again a few lines of code and then take again a break and so on. Over time, your brain may get more used to writing code on a computer, but don't expect it to work overnight, since it may take a long time, or a short time (you're unique, so how long it's going to work depends, and it may not even work, since there is no guarantee). And continue to write code on paper, as also other people suggested (try to first write the code on paper, and only afterwards on the computer).
P.S. I'm also not saying that you have HSP, I don't know you, so I can't make such assumptions. By talking about HSP, I only said that sometimes I experienced something similar to you.