New answers tagged speed
1
I'd like to distill some of the great suggestions from above and summarise it from the perspective of someone who is maths-heavy and code-lite like you, but codes every day.
You have a very strong skillsket for understanding the concepts behind the code. This makes your strength understanding the problems and understanding the language in how it works. ...
1
I would guess you have a problem with coding rather than programming (you know what to program but not how to structure the code?). I'm surprised no one has mentioned programming competitions as a fun way to improve.
There are several aspects to speed-coding, including knowing the algorithm, implementation tricks, and general implementation ability. If ...
0
You might be slow because it isn't clear to you how to solve the problem.
Maybe start by spending some time thinking about how you will solve the problem using some kind of diagram notation, like UML, or by writing down a todo list of all the steps you will need to do in order to complete the tasks.
4
I'm a former college instructor as well as someone with a bit over 10 years as a software developer...
Don't let efficiency concern you too much as a student. Some of my most successful students came to me with stories of how they spent days on stuff I could hammer out on a lunch break. (Do this for ten years and I promise you, you'll make most "fresh outta ...
1
Don't repeat yourself = duplicate code should be avoided (and duplicate thinking too)
Don't reinvent the wheel = use a good framework (get your tasks done with fewer lines of code)
Say good by to "not invented here thinking" and use all the goodies available out there (I bet you find solutions for allmost all tasks in the web)
use the best code editor you ...
1
Since you are a student, you're working on problems that others are working on as well, so try and compare your code to theirs.
Are you writing more or less code to solve the same problem?
Are your solutions more complicated?
Are you working on the solution the whole time or are you stuck on problems and staring at the screen?
Things you can do:
take ...
2
Practice will definitely help. If you're practicing right, it should feel difficult and you'll struggle to understand what you're doing. If you're comfortable with the practice and feel it as too boring and repetitive, then you're not learning anything new. Set the bar a little higher, so that you're always uncomfortable.
There's a theory that learning to ...
3
Although your main concern is about your coding speed, my advise would be to focus on making sure that when programming, you are solving the right problem, in the most efficient way possible. Speed is not the most important aspect in programming. Many programmers quickly produce buggy applications and are not abble to maintain it on daily basis. Your ...
13
Some great advice in the other answers already. I am also facing the same challenge.
Things that have helped me the most are:
Get as fast as you can at typing - do typing lessons, make sure you can touch type, even buy a better keyboard if it helps
Learn keyboard shortcuts and let go of the mouse. Keyboard shortcuts make me orders of magnitude more ...
7
Several of the other answers on this page jump to providing solutions without first understanding the problem. In my view, this is a mistake.
As as CS student you undoubtedly know that, in order to optimise code, you need to:
Determine where the bottlenecks are so you can target your efforts where they'll be most effective.
Use objective measures so you ...
2
Suggesting on the basis of what I do;
For fast reference/look up
Prepare a library (a project) contains usage of all libraries you know technically.
Prepare a library (a project) contains highly moduler, generic, customizable code, and algos. So you can copy paste them in your any other code
For fast recall
Above practice makes you habitual of copy ...
1
Try doing the work with a friend who is better in coding.. You'll soon learn to think quickly or think similarly..
For me, I was also slow in the beginning, but i realized i am much better now with some practice in error checking.. I mean i tried to find and rectify errors in my friends' code and guess that helped me...
And sure there is no substitute for ...
Top 50 recent answers are included
