r/learnprogramming • u/Celiuu • Jun 12 '21
3 things that has nothing to do with programming that made me a better programmer
Hi,
Been talking to a friend who studies computer science at Harvard university. He is the best programmer I know, faster than most seniors at my work in terms of coding challenges. I spoke to him about wanting to be a better programmer, and I asked him what I could do to speed up my learning process as I'm already familiarizing myself with techniques such as Vim and upping my typing speed to 150 wpm.
He told me that in order to be a better programmer, other than just programming, you need to have 3 skills.
Take long walks without a phone
What he really meant was learn to be patient. Take long walks for an hour or preferably longer with your own thought. Focus on your breath, think about life and learn to be patient. The further from home the better. Just don't think about work or problems.
2. Make art
He told me that you need to be creative. Programmers tend to be very analytic and sometimes stay in the box due to their lack of creative thinking. He suggests activating your right brain. Whether this is through music, painting, sculpting or any other form of creativity does not matter he suggests.
3. Work out
There are multiple studies that prove that working out intensively 3 hours per week or longer can enhance memory significantly. I suggest going to PubMed and read the articles for yourself as there are tons that back this claim.
Don't force yourself to do anything. I found his 3 ''rules'' to be true, and I also feel happier. Hope you learned something.
135
Jun 12 '21
This reads like a linkedin post.
0
Jun 13 '21
[deleted]
24
u/fomorian Jun 13 '21
I think they mean it to be derogatory, but i think they're being overly dismissive. There are great points here that are not often brought up in the discussion of how to learn programming.
16
u/149244179 Jun 13 '21
There are great points here that are not often brought up in the discussion of how to learn programming.
Maybe because they have literally nothing to do with learning programming.
I would hesitate to trust someone using typing speed as an indication of being a good programmer as well.
7
u/Headpuncher Jun 13 '21 edited Jun 13 '21
There has always been a trend in technology to "geek out" or "be a nerd". Geek culture that was at a peek and led to shit like Sheldon whatever, and even now, in 2021, Zoe's Shit Playlist (premiering on HighBodyOdour). Like, if you don't spend all your free time in the science museum or licking the soles of Einstein's boots that you bought from eBay, you don't belong here! Go get a job in insurance, loser!
The idea that a good programmer is an introvert with an interest in maths, sitting alone and idolizing himself -for how smart he is (yes, deliberately gendered sentence), is harmful to the profession and the individual.
Instead of being a self-congratulatory, self proclaimed intellectual, self proclaimed genius, self proclaimed OMG super nerd AMIRITE!, you should do the things OP says in their post and also maybe meditate.
Geek culture was a lie when it was at its height, and it's a lie now too. Strive to be a well-rounded individual, not a fuck-nut in a basket.
This isn't aimed directly at the person I replied to, just a rant on geek culture in general. You can program and exercise, program and walk away from tech for a few hours a day, program and plant flowers.
-2
u/shine_on Jun 13 '21
I'm clutching at straws here, but if you can type faster then it won't take you as long to document your code/project, and we all know how much of a chore that is.
-10
u/Celiuu Jun 13 '21
The reason why I wrote typing speed / Vim is because it does give you an edge. Sure it doesn't help you solve problems but it can speed up your progress.
6
u/Subtle_Omega Jun 13 '21
it's not about typing speed. being the fastest typist wouldn't help you if you couldn't solve the leetcode problem.
-2
u/Celiuu Jun 13 '21
No but a combination of it would. I mean take William Lin for example.
4
u/Subtle_Omega Jun 13 '21
Yes he's fast but you shouldn't focus on becoming a faster typer. You should focus on becoming faster at solving problems and creating clean code. Typing should never be a skill that you should focus on developing because that will just come naturally as you keep programming.
-1
u/Celiuu Jun 13 '21
I believe that every 1% matters.
4
u/Subtle_Omega Jun 13 '21
What's your wpm at right now? If it's above 50wpm, you're literally fine. It's your logic and problem solving that needs to be worked on, don't waste time on practicing typing.
→ More replies (0)2
u/lolsai Jun 13 '21
diminishing returns boss, that time spent on practicing to go from 140wpm to 145wpm will take so much effort without really providing a worthwhile result
that time would be better spent elsewhere without a doubt
13
2
u/antiproton Jun 13 '21
Anyone who has been a professional coder will tell you that the speed your type is useless. 75% of my time is spent thinking about the problem and planning my approach in my head.
It's one of the reasons I don't understand the fixation with vim. Dancing you're fingers over a keyboard like you're in a 90s movie about hackers might make you feel important, but you aren't really any more efficient.
If you think about the problem thoroughly first, the rest of just writing down the solution.
1
u/Celiuu Jun 13 '21
I disagree. It's not useless at all. It's a 1% rule. Every 1% counts and typing faster is one of those 1% additions.
355
u/Vanterax Jun 12 '21
Another thing I do:
Sleep on it.
Numerous times when I faced a challenge and not sure how to solve it, the answer or crackpot idea that lead to the answer came while sleeping. Unfortunately, that also means waking up at 2am with a "Eureka!" moment and being unable to go back to sleep. :)
68
u/Feguri Jun 13 '21
This also happens to me on the shower, and when I sleep on a problem I end up dreaming about code.
17
u/Not-an-Uchiha Jun 13 '21
It's called Einstellung. Brain starts forming new connections after some rest if it was stuck before.
16
u/emanuelbravo Jun 13 '21
I do a similar thing, after one hour or more of trying and don't getting anything, I leave it to the next morning, and as soon as I wake up I can fix the bug or find something that passed by the last day, that solves the problem immediately
0
Jun 13 '21
[deleted]
1
u/emanuelbravo Jun 14 '21
wow, nice, i "discovered it" by myself, specially in difficult games that I spent the whole night trying and only passed the next day, and then happened the same while programming
13
u/Upacesky Jun 13 '21
Actually it's quite normal. Your brain can work in focus mode or in diffuse mode. In diffuse mode, it broadens and connects patterns, creating bigger chunks of knowledge.
And that happens when you're not "thinking" actively. Daydreaming, meditation, a walk outside, working out or being creative are ways to achieve this.
There are great courses/videos about learning that day just this
5
u/BestRyzeEu Jun 13 '21
Codeacademy has a course on this, called “learning how to learn”
1
u/NoCommittee7301 Jun 26 '21
Umm I couldn't find it, will you be please kind enough to give me a link ?
EDIT : found it, it's on Coursera.
1
u/BestRyzeEu Jun 26 '21
I am sorry, i meant coursera https://www.coursera.org/learn/learning-how-to-learn
3
u/Anup_Kodlekere Jun 13 '21
A lot of the problems I solve is when I'm not at the computer and am busy doing other stuff. I've had ideas in the shower, I've had ideas when I'm on my morning run, I've had ideas when I'm about to doze off. It's amazing how it works.
1
u/CycloCyanide Jun 13 '21
This happens to me alot. And sometimes i'll be having a shower, and suddenly an idea materialisez.
1
Jun 13 '21
i always thought that's bogus but lately just before i wake up in the morning i dream about problems I'm facing in coding and when i wake up suddenly i can solve problems i thought i will never be able to, also i read about this some time ago and was surprised to see that the most famous scientists made discoveries on their dreams
1
u/SomethingWillekeurig Jun 13 '21
This really works. I read "why we sleep" from Mathew Walker and this definitely explained why. He is a neurologist and it's a good read. So it is also proven that this works.
1
u/pixelsOfMind Jun 13 '21
I do this so often when I get stuck on some code. I tell my boss "I need to sleep on this one" and somehow can always solve it really easily the next day.
1
u/BroodjeAap314 Jun 13 '21
A mind for numbers explains this. It’s because your mind has two modes, focused and diffuse. If you spend a lot of time on a problem and then do something different, your mind will find a solution while you’re not concentrating on the problem.
1
u/Low-Pay-2385 Jun 15 '21
Im a begginer and what happens is that when i struggle with something i just ignore it and after a few days i just understand it
0
u/Fleaaa Jun 13 '21
This is literally becoming a routine for me!
Got stuck? See it on next morning and viola
Time sensitive shit but confusing as hell? Sleep right now for 10 minutes and it magically got sorted out 8 out of 10
Sleep is amazing, I can't expalin how though..
393
Jun 12 '21
If you weren't already into it I would have suggested: 4. make friends with programmers in your area.
183
Jun 12 '21
Instructions unclear: made friends with doctors from the other side of the world.
52
Jun 13 '21
They asked about how many kidneys do you have?
18
u/sc2heros9 Jun 13 '21
They asked me to send pictures of my privates to make sure I was healthy. I got a clean bill of health!
39
7
12
Jun 13 '21
Inctructions unclear: made friends with astronauts
37
u/theInfiniteHammer Jun 13 '21
Instructions unclear: made friends with hot singles in my area.
6
3
3
0
6
21
Jun 13 '21
who needs friends when you could be reading technical documentation
7
Jun 13 '21
Is that code for Stack Overflow?
5
1
-2
Jun 13 '21
from datetime import timedelta
from datetime import date
"""
timedelta object is another new type of object that lets you deal with spans of time
You can add a span of time to a date/time object or subtract.
In addition, it allows you to store the span of time that's returned when you subtract
one date time object from another.
Because the timedelta constructor needs a few of seven possible arguments, it is
useful to use named arguments
"""
#timedelta([days][, seconds][, microseconds][, milliseconds][, minutes][, hours][, weeks])
six_days = timedelta(days=6)
three_weeks = timedelta(weeks=3)
two_hours_thirty_minutes = timedelta(hours=2, minutes=30)
time_span = timedelta(weeks=2, days=3, hours=8, minutes=14)
print("Some Basic Timespan Objects:",three_weeks, two_hours_thirty_minutes, time_span, sep="\ntimeSpan\n")
#syntax for subtracting and adding timedeltas
three_weeks_from_today = date.today() + three_weeks
print("\n")
print(f"{three_weeks_from_today + three_weeks + six_days}")
timespan = date(2021, 7, 30) - date.today()
print(f"Finished with classes in {timespan.days} days! Congraduations!")
"""
Attributes:
days - Number of Days
seconds - Number of seconds in addition to days
microseconds - Number of microseconds in addition to days and secods
There are no attributes for hours or weeks or milliseconds
Methods:
total_seconds() - returns total number of seconds and microseconds - (seconds.microseconds) presumably a decimal of sorts
"""
#print(time_span.days)
1
8
Jun 13 '21
How does one do that?
2
Jun 13 '21
Be social. Go out and do things.
5
3
u/littletray26 Jun 13 '21
Is there some kind of pub for developers no one has told me about? Are you guys having fun without me??
1
9
u/ComfortableEye5 Jun 13 '21
Unfortunately, ads are showing that I only have milfs in my area
2
u/nickeljorn Jun 13 '21
If this page is any indication, porn stars have hobbies too, so maybe one of those milfs is actually a programming expert.
2
71
u/-CJF- Jun 13 '21
I'm 5+ years and a Bachelor's Degree into my programming journey, and there's three major things that were game changing for me so far.
Realizing that most of my problems with programming are not with programming, they're with problem solving. Programming itself is deceptively simple.
Learning to understand and separate libraries, frameworks and languages. I used to think they were all one and the same. This was huge for me because the languages themselves are very simple, but frameworks and libraries like the STL and WPF are enormous which can make the task of learning something like C++ seem insurmountable.
Truly understanding what makes programming hard. I'll elaborate below.
What makes programming hard (for me) is that it's a series of abstractions. By abstractions I mean that we're dealing with generalized models with an arbitrary level of complexity. x86-64 Assembly is an abstraction on machine code. C++ is an abstraction on x86-64 Assembly. Java is an Abstraction on C++. The layers of abstraction are virtually never-ending. Thrown in this mix are all the standard libraries that languages come with. When you're given a code base or a specific API to work on, you're dealing with other people's abstractions with all of their own quirks and you have to learn how they work based on how they were designed. Because of this, you'll never truly learn everything, you'll feel like a fraud and you'll always be learning.
13
u/istarian Jun 13 '21
Honestly problem-solving and programming sort of go hand in hand since you have to both devise a general solution and then tell the computer how to go about it.
10
u/CycloCyanide Jun 13 '21
I have come to realize i just will not be able to remember every single quirk, syntax, methodology, structure, library and or other team members code. Whats important is the problem gets solved and the company makes money. I used to feel helpless and usless as i just could not understand every single library i was using, I would waist hours and days learning something and then never use again . I am slowly coming around to the fact that there is just too much to learn and or know. And even if someone has an amazing memory and knows how or what many of the libraries everyone else has made is doing. It does not mean that person is creative enough to pull all those libraries together to make a good solution. I may not fully understand every part of the code I use. And thats okay. As long as I understand what i want out of it, and can make it do what I need it to do.
Programing can be like writng a novel. You need to be both analytical and creative and you need to break the problem down into steps. Solve the problem chapter by chapter. Sometimes you got to go back and rewrite a chapter. Even change it completely.
2
1
u/Cyril_OSRS_WSB Jun 13 '21
If I may add a 4th point (or maybe 1b):
Programming, like maths and like languages, is also a problem of translation. You must know what you want to say. Once you've worked out how to describe what you want in plain and simple language, then you can translate it.
We forget how much adjusting we do on the fly when we speak and write. We rarely say what we mean first time around. That issue is compounded dramatically when you're unfamiliar with the language you're using. So, work it out in the language you know, then translate.
9
u/gramdel Jun 12 '21
Anecdotal evidence is pretty much no evidence and this certainly doesn't suggest any kind of causality.
-16
u/Celiuu Jun 12 '21
Anecdotal evidence
Except if you do research for even a little bit you'll find it to be true.
5
2
u/joedev2 Jun 12 '21
I would say whole these things may help him perform optimally, his optimal performance level would be higher than most because of natural intelligence and previous work/study
-2
u/WestXD Jun 13 '21
Dudes from Harvard what u expect. U just can’t compare these guys to normal people
128
u/botCloudfox Jun 12 '21
I mostly agree with the 3 "skills" he listed, but faster != better. Sure he can type super fast (apparently faster than seniors), but can you write clean, good code? Can you think through problems? Those skills are more important to me than something like typing speed.
3
u/onbehalfofthatdude Jun 13 '21
I cannot imagine being such a fast thinker that I am bottlenecked by typing speed lol
3
u/earthqaqe Jun 13 '21
well you're right, but there is no real good measurement for that. what does it mean if you said "he is so good, he writes CLEAN code". Coding challenges are more or less the only real programming competitions that are measureable. And nothing about the listed skills indicates that they should improve your coding speed.
8
u/botCloudfox Jun 13 '21
I think you can measure it from the code a person writes. I tend to evaluate whether my code is readable and reusable. The first part can be extracted by someone scanning my code: is it easy to grasp? The second part requires more digging: could any code be abstracted or generalized? Are two functions similar?
Also I know the listed skills didn't say you should improve your coding speed, which is why I said I mostly agree with them. I was talking about the implications of the first paragraph.
-3
u/earthqaqe Jun 13 '21
yeah I know that you can measure code quality by looking at some code... just saying that it is not really something you tell others if you want to tell them how good of a programmer someone is and is also hard to quantify. Coding challenges can be quantified in the time used for them. I know this is not a good metric on how good a programmer would be in an actual work field, but it's still an easy, recognizable metric to talk about.
Tell someone in one sentence how good of a programmer he is - "uh I saw his code and it looks nice" doesn't ring that well. Meamwhile "he ranks highly in competitive programming challenges" sounds better, even though the first one is probably a better programmer for a team.
And I don't really see any implications in his first paragraph tbh.
Sorry if this sounds like I am defending him to my death, I just think this is generally pretty decent advice for everyone, so I don't really get all the negativity and nitpicking in this comment section.
9
u/botCloudfox Jun 13 '21
Tell someone in one sentence how good of a programmer he is - "uh I saw his code and it looks nice"
I can do this too. Tell someone in one sentence how good of a programmer they are - "uh they type really fast." I don't understand what this one sentence thing is about, it proves nothing. I think it's fine to say "they write readable code." There's no negativity here, I just don't want OP to get caught up in how fast they can code.
-2
u/earthqaqe Jun 13 '21
The "one sentence thing" was me trying to give you an easy to understand example on how you cant really form a quantified statement about code quality. If you want it to be a direct comparable example with the post: "He can write code that is really readable. even more readable than some sr. devs" is just nothing that holds any value. Readability and Code Quality and everything like that is subjective and therefore hardly measureable and/or comparable. Problem solving speed is measurable and there is a competition around it so it holds (some) value in an argument about skills.
Also I don't see OP beeing caught up on typing speed. Him mentioning that he is fast in challenges doesn't indicate anything. They are more or less telling the exact opposite, as none of the tips actually focus on speed but more about mental health which does make a lot of sense if your work is related to your mental fitness.
7
u/botCloudfox Jun 13 '21
I agree that many would not be impressed by the statement "they write readable code," although it holds value for me. I think you can just say "they write high quality code." But saying that they're fast at solving challenges is just not as important--to me, at least.
I spoke to him about wanting to be a better programmer, and I asked him what I could do to speed up my learning process as I'm already familiarizing myself with techniques such as Vim and upping my typing speed to 150 wpm.
I interpreted this as OP believing that upping their typing speed would make them a better programmer.
3
u/earthqaqe Jun 13 '21 edited Jun 13 '21
we are on the same page then actually. readable and clean code is something that is way more important to me too. I would say speed is nothing that is important to me in any way. It's still impressive though. If you haven't, look up on youtube some vids about coding competitions (I know there are some from Google) - they are really impressive to watch :)
Here is one for example: https://youtu.be/uGrBHohIgQY
Edit: I interpreted it as OP thinking it was relevant to then be led on a different path by someone who CAN type fast, who says that it doesn't matter that you are fast. But I guess that part is - as we both say - open for interpretation.
8
u/CrepuscularSoul Jun 13 '21
The problem is you can quickly bang out garbage code that successfully solves the code challenge, but when another requirement is added, it's hard or impossible to change the initial code. All being good at code challenges means is that you're good at code challenges, it doesn't mean you write good code.
2
u/istarian Jun 13 '21
Eh.
It probably does mean you can come up with workable solutions quickly. That's valuable, but not the most important thing.
2
u/CrepuscularSoul Jun 13 '21
I'll agree it says something about problem solving skills, but if you're solving with brute force long term that gets you nowhere
1
2
Jun 13 '21
I don't think typing ability makes you a good coder but I think spending many hours a day in front of a keyboard is a must for most good coders and those people also tend to type well. I wrote this whole response without looking at my keyboard.
1
35
u/ChaosCon Jun 13 '21
upping my typing speed to 150 wpm.
I don't at all mean to rip on OP or anything, but in the grand scheme of software a fast typing speed will do very, very little to make you a "better" programmer. The bottleneck in software design is almost never how quickly you can slam out the code, but how quickly you can develop a useful abstraction and communicate it to other people, and that occurs on far, far, far longer timescales than just typing code in.
11
u/BradChesney79 Jun 13 '21
If you can become proficient even at ~40 WPM that is good enough. Agreed. I took typing on a typewriter with paper before I started writing any code at all-- because I am old. I cannot imagine the day to day frustration of anyone being a hunt and peck kind of person working in IS/IT.
7
u/TheBlueSully Jun 13 '21
My dad had a fantastic and lucrative career as a 4 Finger hunt&peck typer.
But he started programming in the early 80s.
1
11
u/DestituteDad Jun 13 '21
Scott Hanselman recommends "Read other people's code".
I'll say "Get capable people to do code reviews of your code".
14
u/carcigenicate Jun 12 '21
For 1, it doesn't need to be near that long. Just leave the house. I routinely go for 20-minute walks when problem solving, and many times, I'll have it figured out literally as I'm walking out the door.
I think simply changing your environment is the key.
13
14
Jun 13 '21
Overall I think to be productive and good at work you need to have the three pillars of health: 1) sufficient sleep 2) exercise 3) healthy diet. Those are the basic human needs and unfortunately many people neglect it. So many programming students don't do those things and are very unhealthy and as a result they can't code as well as they potentially could.
10
u/AMA_About_Rampart Jun 13 '21
4) healthy social life
We're social animals; the need for social connection is ingrained in us and we can't thrive without it.
7
u/Rocky87109 Jun 13 '21
Lol typing speed to 150? Do people even code enough in long enough spurts for that to matter? No. Also, a very tiny percentage of people could get 150 on average.
7
u/aneasymistake Jun 13 '21
In over twenty years of professional programming I’ve never encountered a situation where typing speed has affected an outcome to any significant level. It can be helpful to navigate code quickly, but actually typing code in fast enough has never been a limiting factor because the job is so much more about thinking, understanding and planning than just typing stuff in.
I’d suggest you can stop worrying about your typing speed.
5
5
u/randomtrip10 Jun 13 '21
Omg this is like a clickbait article lol
You can replace “programmer” with literally any profession
9
u/philipjames11 Jun 13 '21
This is a troll post right?
-1
u/Mundosaysyourfired Jun 13 '21
How so?
4
u/Poddster Jun 13 '21 edited Jun 13 '21
One student asking another for advice is
blondblind leading the blind.5
0
u/Mundosaysyourfired Jun 13 '21
There are 18 year olds striaght out of highschool taking 1st place at google code jams. Are they not qualified either because they are still students?
1
u/Poddster Jun 13 '21
Competitive coding has almost nothing to do with day to day software engineering. I'd go as far as saying it's counterproductive.
-1
u/Mundosaysyourfired Jun 13 '21 edited Jun 13 '21
Yet if you want to get hired at google or any of the big companies, what questions do they ask you?
Competitive programming has its place and it's not counterproductive. For you to say it's counterproductive means you don't know that there are constraints placed upon solving problems in competitive programming. Your algorithm is too slow and not using good fundamental algorithm techniques? Not going to pass the test cases.
This inherently shows that you know how to assess dynamic problems, and come up with a reasonable approach to solving the problem. These are attributes that are beneficial, not counterproductive.
1
u/Poddster Jun 13 '21
Competitive programming has its place and it's not counterproductive. For you to say it's counterproductive means you don't know that there are constraints placed upon solving problems in competitive programming.
For me to say it's counterproductive means I know about those "constraints" and know that they don't matter. Real world software also has to hit constraints, but also has to keep a high bar for quality.
Most code produced during competitive programming is pure dog shit.
0
u/Mundosaysyourfired Jun 13 '21 edited Jun 13 '21
Depends on the product and dataset size if those "constraints" don't matter.
No constraints matter if your dataset size is small enough. Would it matter if you have 109 entries to process? What about more?
Do you think financial services products don't require optimal response times?
What about big data companies whos sole product is to collect and process massive amounts of data? Then to sift through that data and show the user what they want to see?
0
u/Poddster Jun 14 '21
Do you think financial services products don't require optimal response times?
Financial service products, at least in the UK, are regulated and audited and must conform to various coding standards. You have to prove to auditors that you code is secure, and dog shit "competitive programming code" won't fly there because that kind of thing is hard to prove.
source: I used to work in fintech.
What about big data companies whos sole product is to collect and process massive amounts of data? Then to sift through that data and show the user what they want to see?
I've never worked there but I imagine dog shit "competitive programming code" won't fly there either.
Why do you think competitive programming is so important? Have you found it important when working professionally as a software engineer? What about your manager, do they find it important and look for those kills when hiring the rest of your team?
0
u/Mundosaysyourfired Jun 14 '21 edited Jun 14 '21
Of course, the code is dog shit. They have hours to solve multiple problems not days, weeks, or months to design or architect a system.
Find me a good CT programmer that's shitty at his regular dev job? It doesn't exist, because CT skills show a fundamental understanding of analysis, thinking of the appropriate tool, and applying a solution with the little time they have.
Writing off CT programming as having no transferable skills is ignorant, just because they write "dogshit code" in hours that solves a problem is just the surface. To write that "dogshit code" and place high in CT you need to know your stuff.
It may not be the end all be all. I'm sure there are good devs out there that don't set foot in CT at all but to say that CT is counterproductive or has no transferable skills is IMO just plain wrong.
→ More replies (0)
10
15
u/Dekzen Jun 12 '21
3 things to do tocbecame a better programmer
1st: have a sex
..nevermind. Not going to read the rest
12
7
Jun 13 '21
My three things?
Music. Often metal. Sometimes hip hop. Occasionally twangy country.
Alcohol. Nothing makes programming more fun than some moonshine - paired with the above (obviously not on company time)
Sleep. Lots.
1
u/SlinkiusMaximus Jun 13 '21
I hate how helpful a bit of alcohol can be sometimes (at least while its positive effects are still ongoing).
2
Jun 13 '21
Yeah... I should state "in moderation" as a stipulation. So you get the good effects - relaxation and better mood... Without the blurred vision and hangover. :)
1
1
Jun 13 '21
and i thought i was the only one who gets super creative and chill when i drink alcohol and try to learn something
1
u/darkecojaj Jun 13 '21
Serious question that I really don't get, why does boosting your typing speed important to be a better programmer?
Alot of the time I spend programming I am thinking and doing small bits of programming. I am not typing thousands of lines or needing to write hundreds of lines of code an hour. Beyond being able to type an okay speed (60wpm) without looking at the keyboard, is there really a large benefit?
0
5
2
Jun 13 '21
Physical exercise is good, and something completely unrelated to computers to let your brain recharge. Having a stable sleep/waking schedule is good too. Never done art - programming in itself is art :) but doing the business around programming such as sales or marketing can be helpful too
2
Jun 13 '21
Another one is read fiction novels
I only read informational books/articles for years and switching it up and reading fiction has really helped with my social skills and has gotten me out of my head
2
Jun 13 '21
So, what's the big deal with Vim, anyway? It's a command line text editor, right? I see people mention it all the time, but what makes it better than any other IDE?
2
u/Updatebjarni Jun 13 '21
Vim is a screen editor, not a command-line editor. You might be thinking of sed. People who like Vim (and all the variants of Vi), usually like it because it's lightweight and flexible, runs in a terminal, and is available absolutely everywhere. Anyway, if you want to find out what editor you like best, just try a few. If you ask why people prefer this or that editor, they're all just going to sound the same.
If you're asking about sed, the reason people want command-line editing is that it can be used in scripts to automate simple text editing procedures needed to convert text formats or extract bits of text to report, etc. It's not something you use interactively to edit files.
2
u/onbehalfofthatdude Jun 13 '21
It has a unique system of navigating around and operating on a text file, which is pretty dang nifty
2
u/Biuku Jun 13 '21
Amazing points. I work as a 'creative' today (but analytical by background), working to transition to software development. I'm basically unable to access my creative brain when 'in the flow' of 100's of lines of code, trying to solve a problem.
If I need to access it, I have to go for a walk, or a drive, and just think it through -- and almost always an original angle to it pops into my head.
1
u/board3659 Jun 12 '21
I agree, especially with your 2nd point. I tried learning javascript before and had a difficult time getting interested again. Now I am trying again and I made a drawing in about 2-3 hours using code (I spent at best 1 hour before)
1
u/DestituteDad Jun 13 '21
You can make a drawing with JS? Link please?
2
u/board3659 Jun 13 '21
well I made it through khan academy hour of code since I am still a novice though I did it without any direction. Can't link it because it's not finished yet though it's close
2
1
1
u/apoleonastool Jun 13 '21
walks are to be takrn literally, imo. I've solved many problems on my lunch walks.
1
1
u/devMechanic2020 Jun 13 '21
Repetition, repetition and repetition. I have some classmates that the instructor explains the sql tables or some C#. And they act like we got it and when is time to make the project they start to asking 1000 of questions how to make the tables or some simple function
1
Jun 13 '21
what if you do all that but are still terrible at it and are paying over 50k a year to learn it
1
u/alexfoohc Jun 13 '21
Thanks for the tips! Definitely the long walks have been helping me out to solve problems from a different perspective!
1
1
u/SirDempster Jun 13 '21
I feel like number 1 can be interpreted differently. It allows you to think. That’s how you solve problems in life and programming
1
Jun 13 '21
These are basic life things everyone needs to do no matter the profession:
Meditate, exercise, express yourself/have hobbies
1
1
u/conalter Jun 13 '21
well, I have done all these things for the past few years and I'm still a terrible programmer...
1
Jun 13 '21 edited Jun 13 '21
I don't do any of those things because I don't really enjoy working out or making art and I'm no programming sloth. I get this post is just trying to help people but guys, if you don't enjoy an activity, don't do it. Lmao. It's not going to magically make you a world class programmer. Programming a lot is going to make you better, as long as you sleep and eat well and that's all there is to it.
Programmers aren't typing super fast 24/7 because some problems require you to actually stop and think. Nice to have, sure but not the end of the world, as long as you're solving important problems.
1
Jun 13 '21
Working out has been amazing for me in the past. It always felt that grasping technical concepts when also being physically active was a lot smoother.
1
u/barbaroremo Jun 13 '21
You should drum while cycling to do all of the 3 things at once so you can have more time to be even more productive!!
1
Jun 13 '21
You're basically improving mental health and creativity with these 3. I confirm these helped me a lot too.
1
1
Jun 13 '21
I think 1. is probably meditation, or specifically walking meditation. I think any type of meditation is good.
1
u/nazgul_123 Jun 13 '21
I think that being good at abstractions makes programming comparatively easier. I know some mathematics students who picked up programming like it was second nature to them.
0
0
0
Jun 13 '21
I’d add learn to touch type. It’s not essential but being able to look at the screen whilst working (rather than your fingers) has been the single most impactual thing in removing friction for me. Mostly as I spot the syntax error myself.
0
u/Conscious_stardust Jun 13 '21
These are good tips not just for programming but for overall mental heath as well. Thanks for providing them!
-7
u/Cheesecake9788 Jun 13 '21
There should be a 4th one up there, prayer! God bless you all!🙏🏾💕☀️
1
u/istarian Jun 13 '21
I don't think God is going to hand you the solution to a programming problem, just saying.
-1
-1
u/Rocky87109 Jun 13 '21
God bless all the starving people and people born with life destroying illnesses. Doubt.
0
u/Cheesecake9788 Jun 13 '21
Yes, absolutely God bless them. God only gives us what he knows we can handle. Once again God bless you.🙏🏾
0
u/onbehalfofthatdude Jun 13 '21
Does "can handle" include dying young in horrible pain or having a complete mental breakdown? Because He gives people stuff that causes those things. What would qualify as something someone "can't handle?"
-1
Jun 13 '21 edited Jun 13 '21
Highly informative post. Thanks.
I am not sure with the typing speed. But Vim, Git and incorporating Shortcuts have really made my problem-solving process faster.
It's like changing from manual screwdriver to the electric one.
-2
-2
u/FreshCheekiBreeki Jun 13 '21
About 2nd rule, it could be something as crazy as email pranks. Just imagine how much there are crazy stuff to message businesses of the world about!(using secondary mail acc of course). Ever wanted to act as insane entrepreneur that owns an underwear rent for bums company that needs help with boosting washing machine productivity? Or maybe you are asking for furniture delivery straight into sewers? What if your friend is a gangster and saved by canned food from a bullet? Or you represent pharmacy PR company that offers exclusive age-strict promotional packages of vitamins for Covided people in hospitals?(cruel capitalism)
The possibilities here are enormous, just need to think about it a bit. Try to message as many similar businesses as possible to get the funniest manager responses. It’s cool as long as it’s not intentional fraud. I’ve got over 45 of such ideas, message me if you’re interested;)
31
u/tonyoncoffee Jun 13 '21
What does Vim and typing speed have to do with being good at programming?
Every single company would be putting their employees through typing training and buying the best keyboards.