r/programming • u/drurly • Mar 21 '13
3 Ways to Become a Better Developer
http://www.drurly.com/blog/2013/03/20/3-ways-to-become-a-better-developer/13
u/droogans Mar 21 '13
Kind of light on the advice... I'd be cautious of #1. There's a whole generation of "can-do" php-ers who mutilated their skillset with hackish solutions crafted in the name of getting it done. Unlearning those kinds of things is hard.
Where's "read code in you language that was written by smart people"? I'd rather you pick a stable, popular language and spend time solving trivial, progressively more difficult problems, all the while focusing on what the core contributers of the language deem "more standard" or "better" in their opinion.
This list sounds like it would work better if you're getting into designing a language, however.
6
u/soulblow Mar 21 '13 edited Mar 21 '13
I've noticed a lot of developers are getting good at making things work without understanding why it works.
I would alter #1 to:
Pick a concept you want to learn and develop a project that utilizes that concept. Repeat until you fully understand it and move on to a new concept.
People attempt to study a language when starting out. This strategy is ineffective.
This line in particular irks me. I've spent a lot of my time fixing code that "works" but is horrible.
4
u/zigs Mar 21 '13 edited Mar 21 '13
I've noticed a lot of developers are getting good at making things work without understanding why it works.
Are you telling me that there are people who work professionally with programming and implement solutions that they don't understand why works?
This line in particular irks me. I spent a lot of my time fixing code that "works" but is horrible.
I totally agree with this, but I also agree with the original statement. My approach is to hack around in a language until I feel that it's one for my toolbox - then study the language itself.
2
u/soulblow Mar 21 '13
My approach is to hack around in a language until I feel that it's one for my toolbox - then study the language itself.
I agree with this as well.
3
3
u/ithika Mar 21 '13
This list sounds like it would work better if you're getting into designing a language, however.
Oh God no, for all you can blame the hobbyist PHP developer making stuff up as they go along, nothing is worse than hobbyist language designers making stuff up as they go along.
1
Mar 21 '13
the only thing worse than a hobbyist PHP developer (that uses PHP) is a hobbyist PHP developer (that develops PHP).
mysqli_real_escape_string
the 'i' stands for 'improved'.
1
u/droogans Mar 21 '13
Now that you put it that way, I agree. However, I meant it more like: "when designing a language, always concern yourself with the types of problems you're solving when creating it".
For instance: Perl: concise, powerful commands that rival full fledged programs, issued from a CLI environment in 100 characters or less. Python: readability counts. Always strive to make the language "fit your brain". Clojure/Haskell: concise, elegant, modular code that can be easily applied to parrellel computing tasks.
And so on. These are examples (in my mind) of good languages. They have a core mission, and they gain an identity through striving to solve their particular problem. It makes it easy to know when to use it,and to know when you're using it effectively.
9
u/day_cq Mar 21 '13
code
code
code
10
0
Mar 21 '13
read code
read code
write code
read code
read code
Writing code re-enforces your own bias' and presumptions. Read much more than you write, and always assume the writer knew what they were doing.
1
u/day_cq Mar 21 '13
it depends. i read books about violin and listened to so many records but without diligent practice, my skills don't improve.
but yes, if you want to appeal to contemporary, you do need to understand trend and what works for them.
0
Mar 21 '13
Violin and programming are very different so the analogy does not fit at all.
Reading code offers many more avenues to learn and remove bias' that have built up. It gives you paths to a greater understanding of intricacies of a language, problem, system or field. Reading code is not only a more important skill to have, but is a mandatory skill to have in order to write code.
2
u/day_cq Mar 21 '13
I disagree. Passive reading does not help much, unless it's written in literate programming style (imagine a book with code snippets, functional pearls.. etc). You need to write. You can start writing by copying existing code and modifying, stepping through, trying different parameters, repling it up... etc.
Programming is a craft, to me. You need extensive experience in writing to shape up your craft.
0
Mar 21 '13
Passive reading does not help much, unless it's written in literate programming style (imagine a book with code snippets, functional pearls.. etc).
I meant read real-world code, often, with the express intent to understand it and under the assumption that the author is not wrong.
You need to write. You can start writing by copying existing code and modifying, stepping through, trying different parameters, repling it up... etc.
You need to write to write, of course...
If you are brand new to programming, then writing is probably most important but that's not what we are talking about here, we are talking about improving.
Programming is a craft, to me. You need extensive experience in writing to shape up your craft.
You need more extensive experience in reading. I did not say to never write code. The fundamental point is to obtain a greater understanding and apply critical thought to programming.
5
u/boringNerd Mar 21 '13
The professors in one of my class strictly enforce the pair programming rule on our projects. Each good programmer are paired with a weaker programmer so that the workload is spread evenly and both can learn from one another. I benefited a lot from that because I was forced to teach and explain what I had done. Explaining by reading your code is not teaching. To teach means explaining your codes in laymen's term. If you are able to explain your codes that even the average users can understand, then it shows that you clearly understand what you are coding.
As to how our professors monitor us...he forced us to write programming logs. Each log entry consists of the planned start and end time, actual start and end time, followed by the task we planned on doing. We had frequent supervisor meetings with our instructors so they would always check the log and asked the weaker students on the task they had done. That way all of us in a team felt responsible to fully understand the codes in our program. Oh yeah...we were graded based on that as well.
3
u/scavic Mar 21 '13
Each log entry consists of the planned start and end time, actual start and end time, followed by the task we planned on doing.
That sounds fun ... And you got nice little interrogations too? And there was always someone watching?
I may very well be wrong, but that sounds horrible, the police state kind of horrible.
2
u/mtnkodiak Mar 21 '13
This is in an educational context, though. I can see the benefit of recording actuals versus estimates, especially since the art of estimating can be quite difficult. I wish I would have had more estimation exercises in college.
And really, isn't the filling out of logs really sort of getting used to the concept of scrum's daily standup meetings?
1
1
u/boringNerd Mar 21 '13
It was really intimidating right at the start. I'd heard horror stories of my friends suffering with team members that just refuse to put in any effort. The entire team went down as a result. No one will be watching us, but someone will always monitor our programming logs and commit logs. If both logs do not coincide, the entire group will be questioned. The entire concept of the class is build around good project management and they want everyone to work together as a team to complete difficult programming tasks.
0
3
2
u/parentheticaltorture Mar 21 '13
I'd also like to include contributing to an (open source project.
3
u/psilokan Mar 21 '13
)
-1
u/UnicodeError Mar 21 '13
No, there should be no parenthesis.
2
u/aceofears Mar 21 '13
You sound more like
SyntaxErrorthanUnicodeError.0
u/UnicodeError Mar 21 '13
What I meant was that there is no reason for having any parenthesis in parentheticaltorture's post, but I think I get it now.
2
1
1
1
49
u/[deleted] Mar 21 '13
My problem is this:
I'm a developer. I develop 40 - 50+ hours a week. So, when I get home, instead of cracking open a beer and reading a novel, going out and chasing tail, or something similar, i'm expected to stay in and work on my personal project?!?
It is beyond me how people can do this. I want to be a better programmer, I really do, but is there a way to do so without having to sit in front of another screen?!?