Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
Crayon Shin Chan
Minister of Gerbil Affairs
Topic Author
Posts: 2313
Joined: Fri Sep 06, 2002 11:14 am
Location: Malaysia
Contact:

What does it mean to be a good programmer?

Thu Jun 13, 2013 10:23 am

I'm not a poet, but I can appreciate some poetry. I've been thinking about how people appreciate beauty in all forms, but for programming I don't think there is much you can do to be a good programmer.

What is really beautiful (as in any language) are the concepts expressed through the language - so perhaps you'd find something like a haiku in a mathematician's code for HPC programs. But in most programming tasks, there's really nothing beautiful. It's boring stuff like setup this box here, setup this checkbox there, link that to that, make sure input is tolerable... so what makes a good programmer? Is it the whitespace?
Mothership: FX-8350, 12GB DDR3, M5A99X EVO, MSI GTX 1070 Sea Hawk, Crucial MX500 500GB
Supply ship: [email protected], 12GB DDR3, M4A88TD-V EVO/USB3
Corsair: Thinkpad X230
 
tfp
Grand Gerbil Poohbah
Posts: 3413
Joined: Wed Sep 24, 2003 11:09 am

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 11:03 am

A short list:

Attention to details, being able understand the system you are working in, understanding the impact to the system when you make changes, understanding the scope of your work, being able to debug, understanding how to design a feature, being able to conform to a coding standard/style for the current code you are working in, being able to work with others.

You list sounds like how a fresh out or college student would look at a homework assignment or a response from someone that has nothing invested or pride in the work they are doing.
 
danny e.
Maximum Gerbil
Posts: 4444
Joined: Thu Apr 25, 2002 3:09 pm
Location: Indonesia/Nebraska/Wisconsin

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 11:53 am

I think there are two sides to your question.
Content vs Style. It seems like you're really asking about what makes someones style unique & "good".
A "good programmer" in my book would be someone who covers both.

Good Progammer:
Uses elegant design. Simple over complex where possible. (no over-engineering)
Uses readable code. Commented. team code style compliant. Good variable names - don't be schmuck and use short/dumb abbreviations. It's 2013.
Tests their own code. I know several knowledgeable programmers who do not test their own work. Knowledgeable programmers who do not test their own work still = bugs.
Unit tests their own code. All logic should be code covered by unit tests.
A doer not a talker.
Thinks "big picture". time zones. globalization. performance. scalability.
I like to think that programmers can be "good" without having all the knowledge - as long as they understand not to change / design what they don't understand. IE - gain the knowledge when necessary - always learning.

I'd rate myself a 6/7 on scale of 10 for content/knowledge... and a 9.5 out of 10 for style. :D
Last edited by danny e. on Thu Jun 13, 2013 1:07 pm, edited 1 time in total.
You don't have to feel safe to feel unafraid.
 
steelcity_ballin
Gerbilus Supremus
Posts: 12072
Joined: Mon May 26, 2003 5:55 am
Location: Pittsburgh PA

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 12:17 pm

Writes readable a reusable code, uses design patterns where applicable, comments appropriately, unit tests appropriately, understands their languages' weaknesses and strengths, recognizes their own weaknesses and strengths, works well alone and with others, admits to and fixes their own mistakes. The last one especially. I cannot tell you how frustrating it is fixing someone else's work when you flat out ask them to their face " DID YOU X THIS Y?" and get lied to, only to find out with certainly they did. I'm human, and I'm not even a great programmer. Own your mistakes so that the project and other people don't suffer because of your ego.
 
notfred
Maximum Gerbil
Posts: 4610
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 12:23 pm

I think you are missing that in every programming puzzle there are many solutions. A good programmer implements a truly beautiful solution that is concise and simple enough for other programmers to not only understand easily but see clearly that it covers all possible corner cases and is obviously correct.

There are very few of these works of art out there, but they sure make you feel humble when you stumble across one in someone else's code.

A bad programmer implements a tangled web of complexity that other programmers can smell the stench of bugs in just a single glance. It's probably 10x-100x the number of lines of code and requires note taking to keep the context whilst trying to work through the simplest cases including many dead ends that make you go WTF!

Unfortunately there are many of these heaps of excrement out there, and they sap your soul when you have to work with them.
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 12:53 pm

There is a ton that you can do to be a good programmer. Generally don't be an a**hat or make everyone else's job harder. For instance, comment what you write and write actual documentation that is useful.

In a broader sense, being good is all about attention to detail and understanding how things work. It's the little things that matter, like checking input and error handling, and it's the little details that really set products apart. Unfortunately, the details are also tedious, but the results are amazing when everything is taken as a whole. Understanding how things work means explaining the design decisions and how the decisions cascade down through the stack. Like why using pointers is preferable to just passing a variable, or why passing a pointer is a bad idea and the extra few CPU cycles should be spent on the memory store.

To find beauty in programming, you really need to distill it down it's base math and mechanics. There is a lot of other stuff that goes into building a program, like checking input and building GUIs (if you go that route), and that stuff is necessary for a program, but it's not the cool stuff. The cool stuff is the algorithms and how, as well as why, they run, or don't run, efficiently, or tuning code to minimize wasteful calls. The fun stuff is the low level stuff, which your not going to get to do if you're just starting out.

The programming language also helps. C/C++ will let people manipulate pretty much everything. Something like Python or Ruby are more about productivity since the point is to abstract a lot of the work and let the programmer concentrate on getting the job done.
 
sschaem
Gerbil Team Leader
Posts: 282
Joined: Tue Oct 02, 2007 11:05 am

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 2:09 pm

"But in most programming tasks, there's really nothing beautiful"

In most, but their can be beauty when merging mathematics & computer languages for example.

I seen people express amazing feeling in a few lines of code that even a page of poetry couldn't touch.

This Audio/Video is the capture of a 4000 character program. Watch it on a projector and you are transported to another dimmension.
https://www.youtube.com/watch?v=cjSJc2eCetE

What make a good programmer is not the 'white spaces' but the transformation of idea/concept into code (the quality of that code is another thing).

Sometime people discover amazing concepts that only a computer can interpret and feed the result back to us.
Human appreciate visual & audio stimulation, but their is also beauty in pure logical or mathematical algorithm and how they are expressed.
Example making a fast version of anything usually require skills
http://badassjs.com/post/1298940200/stackblur

People that like code poetry hang out at site like this, they write a page or two of code and share with peers.
https://www.shadertoy.com/view/lsf3RH

Their is plenty of good programmers, but very few great ones :)
 
jihadjoe
Gerbil Elite
Posts: 835
Joined: Mon Dec 06, 2010 11:34 am

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 2:56 pm

I remember a John Carmack anecdote...

One one particular project, ID was looking to outsource programming of parts of a game. So they got a quote, which basically said that a team of programmers would do it in 30 days. Carmack says **** that -- too long, and does the entire thing himself in 3 days.
 
JohnC
Gerbil Jedi
Posts: 1924
Joined: Fri Jan 28, 2011 2:08 pm
Location: NY/NJ/FL

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 4:26 pm

Crayon Shin Chan wrote:
I'm not a poet, but I can appreciate some poetry. I've been thinking about how people appreciate beauty in all forms, but for programming I don't think there is much you can do to be a good programmer.

What is really beautiful (as in any language) are the concepts expressed through the language - so perhaps you'd find something like a haiku in a mathematician's code for HPC programs. But in most programming tasks, there's really nothing beautiful. It's boring stuff like setup this box here, setup this checkbox there, link that to that, make sure input is tolerable... so what makes a good programmer? Is it the whitespace?

There is no "beauty" in programming (certainly no "timeless" beauty which can still be appreciated by many people not related to programming even after a few centuries)... As for being a "good programmer" it all comes down to being able to finish your assigned tasks during the assigned time period, that is all :wink:
Gifter of Nvidia Titans and countless Twitch donation extraordinaire, nothing makes me more happy in life than randomly helping random people
 
PenGun
Gerbil Elite
Posts: 893
Joined: Fri Jun 18, 2004 1:48 pm
Location: BC Canada
Contact:

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 5:25 pm

JohnC wrote:
Crayon Shin Chan wrote:
I'm not a poet, but I can appreciate some poetry. I've been thinking about how people appreciate beauty in all forms, but for programming I don't think there is much you can do to be a good programmer.

What is really beautiful (as in any language) are the concepts expressed through the language - so perhaps you'd find something like a haiku in a mathematician's code for HPC programs. But in most programming tasks, there's really nothing beautiful. It's boring stuff like setup this box here, setup this checkbox there, link that to that, make sure input is tolerable... so what makes a good programmer? Is it the whitespace?

There is no "beauty" in programming (certainly no "timeless" beauty which can still be appreciated by many people not related to programming even after a few centuries)... As for being a "good programmer" it all comes down to being able to finish your assigned tasks during the assigned time period, that is all :wink:

Au contraire. The ones who just finish their assigned tasks are generally lesser beings. A real monster will write elegant code that often is a small fraction of the size of what your "good programmer" who does their tasks in the framework you have placed them in will produce.

Go read some code. Alan Cox is a good place to start.
Fuji X-E1 Leica Elmar 135 4 XF60mm 2.4 Macro | Zeiss FE 35mm 2.8
http://carnagepro.com
"Everything ... they eat everything, and fear is their bacon bits."
 
Saber Cherry
Gerbil XP
Posts: 303
Joined: Fri Mar 14, 2008 3:41 am
Location: Crystal Tokyo
Contact:

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 8:28 pm

A good programmer is like a good compiler;
The output is perfectly efficient and utterly unreadable.

Being unreadable adds to the mystical, inscrutable image and has no drawbacks;
Since it was perfect already, it will never need modification.
 
danny e.
Maximum Gerbil
Posts: 4444
Joined: Thu Apr 25, 2002 3:09 pm
Location: Indonesia/Nebraska/Wisconsin

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 8:48 pm

JohnC wrote:
There is no "beauty" in programming (certainly no "timeless" beauty which can still be appreciated by many people not related to programming even after a few centuries)... As for being a "good programmer" it all comes down to being able to finish your assigned tasks during the assigned time period, that is all :wink:

I know you're joking. But that is the exact type of answer that would immediately rule a person out if I were interviewing them.
You don't have to feel safe to feel unafraid.
 
ludi
Lord High Gerbil
Posts: 8646
Joined: Fri Jun 21, 2002 10:47 pm
Location: Sunny Colorado front range

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 9:02 pm

The beauty of good code may not be obvious to someone outside of the trade, but anyone of ordinary skill in the art can tell instantly whether the coder was within their depth, or not. Simple, elegant solutions will show evidence of an organized problem-solving process that gets the job done and makes adequate provisions for the future.

My college-level experience with software coding resulted in enough bowls of spaghetti to open an Italian restaurant, upon which I concluded that I am not a good programmer. So, I abandoned the task to more able hands than mine. But I did end up doing some of my work in an engineering field that has similar characteristics -- analog control systems -- and the same principles apply. A well designed system has a beauty that greatly surpasses a convoluted "good enough, it works" approach.
Abacus Model 2.5 | Quad-Row FX with 256 Cherry Red Slider Beads | Applewood Frame | Water Cooling by Brita Filtration
 
Star Brood
Gerbil First Class
Posts: 189
Joined: Wed Mar 21, 2012 4:57 am

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 9:25 pm

Using mainstream coding formats and not trying to be innovative with how you lay out your code is a great start.
 
blitzy
Gerbil Jedi
Posts: 1844
Joined: Thu Jan 01, 2004 6:27 pm
Location: New Zealand

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 10:19 pm

in addition to what has already been said, a good developer will produce solutions with a focus on usability. There is a big difference between a program that 'does the job' or solves a problem, and a program that is intuitive, easy to use and elegant.

A lot of programmers have tunnel vision and can only see 'it works for me'
 
peartart
Gerbil
Posts: 43
Joined: Wed Mar 21, 2012 3:01 pm

Re: What does it mean to be a good programmer?

Thu Jun 13, 2013 10:53 pm

There is no easy definition for good code, and that is why it can relate to poetry.

Everything depends on context, so on that theme, here is an amusing story about unit testing.
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 1:55 pm

Here is a great post on Reddit about understanding the stack.

http://www.reddit.com/r/learnprogrammin ... nd/caisigg
 
cphite
Graphmaster Gerbil
Posts: 1202
Joined: Thu Apr 29, 2010 9:28 am

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 4:19 pm

The same thing it means to be a unicorn... a mythical being that everybody has heard of, but that no living person can reliably claim to have actually seen :wink:
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 4:32 pm

IMO the best programmers do the following:

1. Take the time and effort to understand the problem to be solved before making key architectural decisions or writing substantial amounts of code. This includes understanding the performance requirements of the application, and any constraints of the platform (hardware and software) being used. Occasionally, you may need to do a substantial amount of up-front prototyping to achieve a reasonable level of understanding; but you and your management both need to acknowledge that the prototype code may need to be thrown away, and allow for that in the schedule.

2. Structure the code such that it reflects the structure of the problem being solved, and factor the code to make it modular and maintainable.

3. Refrain from using tricky or clever constructs which hurt the readability/maintainability of the code, just for the sake of being tricky or clever. OTOH if there are good reasons (significantly better performance, resource usage, etc.), then by all means go for it; but carefully document your work so that others can maintain it if you get hit by a bus tomorrow.
Nostalgia isn't what it used to be.
 
superjawes
Minister of Gerbil Affairs
Posts: 2475
Joined: Thu May 28, 2009 9:49 am

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 4:47 pm

I would say that a good programmer writes good code, and good code is:

1. Functional
2. Easily Understood

As others have pointed out, there are language mechanics, hardware, and other factors to consider, but obviously, it has to work.

The second feature of good code can really apply to any language, but it is important to code because the "final" product is rarely the final revision. If it is to be reused or maintained at all, someone else must be able to understand it and potentially modify it.
On second thought, let's not go to TechReport. It's infested by crypto bull****.
 
Captain Ned
Global Moderator
Posts: 28704
Joined: Wed Jan 16, 2002 7:00 pm
Location: Vermont, USA

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 4:57 pm

just brew it! wrote:
1. Take the time and effort to understand the problem to be solved before making key architectural decisions or writing substantial amounts of code. This includes understanding the performance requirements of the application, and any constraints of the platform (hardware and software) being used. Occasionally, you may need to do a substantial amount of up-front prototyping to achieve a reasonable level of understanding; but you and your management both need to acknowledge that the prototype code may need to be thrown away, and allow for that in the schedule.

Working in an industry where all of my main heavy-duty applications are custom code created by gov't employees, I find that #1 never gets the respect it deserves. Several (extra, from the POV of the Project Manager) months spent in the "just exactly what are we trying to solve" phase would eliminate years of bug fixes, belated function additions, undocumented error codes, and catastrophic UI decisions made in a week because they had to meet a target date.

At least the next abortion I need to deal with is written in .NET and SQL 2008 R2 instead of the atavistic need to keep compatibility and try it in Access yet again. It still sucks, it's still harder to use than the original Access lash-up, and it's designed to "reduce paper". That never works.
What we have today is way too much pluribus and not enough unum.
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 5:45 pm

Captain Ned wrote:
and it's designed to "reduce paper"

I'm still waiting for that "paperless office" we were all promised back in the 1980s. IMO computer tech is still, on balance, more of a paper generator than a paper saver. Clicking the "Print" button is just too easy, and you have a lot of people who believe that *their* PowerPoint is important enough that everyone at the meeting will surely want their very own hardcopy.

And then you've got the utter insanity of printing out a document so you can sign the paper copy, scan it back into the computer, and e-mail it somewhere. :roll:

At least my co-workers don't print out all of their e-mails any more...
Nostalgia isn't what it used to be.
 
Captain Ned
Global Moderator
Posts: 28704
Joined: Wed Jan 16, 2002 7:00 pm
Location: Vermont, USA

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 9:38 pm

just brew it! wrote:
And then you've got the utter insanity of printing out a document so you can sign the paper copy, scan it back into the computer, and e-mail it somewhere. :roll:

Until earlier this month my bi-weekly time sheets and expense reports REQUIRED a physical signature because HR believed that an e-signature would not stand a legal test against the language on the forms about accuracy, perjury, misrepresentaion and all of that bit.
What we have today is way too much pluribus and not enough unum.
 
Waco
Maximum Gerbil
Posts: 4850
Joined: Tue Jan 20, 2009 4:14 pm
Location: Los Alamos, NM

Re: What does it mean to be a good programmer?

Fri Jun 14, 2013 11:10 pm

just brew it! wrote:
IMO the best programmers do the following:

1. Take the time and effort to understand the problem to be solved before making key architectural decisions or writing substantial amounts of code. This includes understanding the performance requirements of the application, and any constraints of the platform (hardware and software) being used. Occasionally, you may need to do a substantial amount of up-front prototyping to achieve a reasonable level of understanding; but you and your management both need to acknowledge that the prototype code may need to be thrown away, and allow for that in the schedule.

2. Structure the code such that it reflects the structure of the problem being solved, and factor the code to make it modular and maintainable.

3. Refrain from using tricky or clever constructs which hurt the readability/maintainability of the code, just for the sake of being tricky or clever. OTOH if there are good reasons (significantly better performance, resource usage, etc.), then by all means go for it; but carefully document your work so that others can maintain it if you get hit by a bus tomorrow.


I agree with this list. :)
Victory requires no explanation. Defeat allows none.
 
michael_d
Gerbil Elite
Posts: 569
Joined: Sun Dec 16, 2007 2:42 pm

Re: What does it mean to be a good programmer?

Thu Jul 25, 2013 11:03 pm

I have been working as a programmer for the past 6 months. Mainly debugging, implementing new features, changing app functionality. While everyone can conform to general rules each programmer's style is different and nothing can be done about it. I have colleagues with more than 10 years experience and they complain about each other's style because each problem has multiple solutions and every individual is bound to arrive to the solution differently.

Personally I strive to adhere to the following:
* Ensure that previously fixed issue never comes back to me.
* Spend hours analyzing old code (not mine) before starting working on a resolution.
* Attempt to not introduce new bug(s) while fixing current one(s).
* Take time to attempt to find more unknown bugs and fix them. It bodes well with management and results in fewer issues reported by customers which leaves good impression.

I do not agree with the thesis that code has to be "maintainable", without "tricky" or "clever" constructs. It does not mean anything useful to me. It sounds like programmer designed the app for the programmer and not the end-user. Always think how your work will impact customer and their business because in the end their success is your success.
 
Deanjo
Graphmaster Gerbil
Posts: 1212
Joined: Tue Mar 03, 2009 11:31 am

Re: What does it mean to be a good programmer?

Thu Jul 25, 2013 11:31 pm

Ahhh, this is actually a tricky question because the correct answer is who you are asking the question to. An end user (which makes up 99+% of computer users) doesn't care how it was coded just that it works and looks how they expect it to. They really could care less if it is code that is poorly commented, dirty hacks, etc. If you ask a coder, they will compare the code to what they think is ideal. This is where the war begins. Many coders don't give a crap about the actual end user of the code.
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: What does it mean to be a good programmer?

Thu Jul 25, 2013 11:47 pm

michael_d wrote:
Personally I strive to adhere to the following:
* Ensure that previously fixed issue never comes back to me.
* Spend hours analyzing old code (not mine) before starting working on a resolution.
* Attempt to not introduce new bug(s) while fixing current one(s).
* Take time to attempt to find more unknown bugs and fix them. It bodes well with management and results in fewer issues reported by customers which leaves good impression.

These are good "low level" goals. With experience, you'll also get a better feel for (and develop stronger opinions on) the higher level concepts as well.

michael_d wrote:
I do not agree with the thesis that code has to be "maintainable", without "tricky" or "clever" constructs. It does not mean anything useful to me. It sounds like programmer designed the app for the programmer and not the end-user. Always think how your work will impact customer and their business because in the end their success is your success.

Go back and read what I wrote before. I didn't say programmers shouldn't be tricky or clever; I said it shouldn't be done unless there's a good reason. If there's a straightforward way to do it that doesn't noticeably compromise performance or resource usage, then that method should be preferred over a "tricky" method.

Obfuscating the design of a non-performance-critical application just to improve performance by an insignificant amount isn't good programming; it misses the big picture. Someone else may be maintaining your code in the future; by avoiding unnecessarily tricky/clever constructs, you're making that person's job easier. By making that person's job easier, you're reducing the cost of maintaining the software, and reducing the odds that future modifications (or a port to a different OS, or a different platform...) will introduce new (and possibly subtle) bugs.

If anything, writing tricky code just for the sake of writing tricky code is the ultimate case of "coding for the programmer". End users don't even see it. It is basically a way of gratuitously tooting your own horn -- essentially, it says to other programmers who read your code in the future "Look at me! Look at how f**king clever I was!"

I will take modular, well-documented code with a well-thought out overall design over "clever" code any day.
Nostalgia isn't what it used to be.
 
Star Brood
Gerbil First Class
Posts: 189
Joined: Wed Mar 21, 2012 4:57 am

Re: What does it mean to be a good programmer?

Fri Jul 26, 2013 7:10 am

just brew it! wrote:
Obfuscating the design of a non-performance-critical application just to improve performance by an insignificant amount isn't good programming; it misses the big picture. Someone else may be maintaining your code in the future; by avoiding unnecessarily tricky/clever constructs, you're making that person's job easier. By making that person's job easier, you're reducing the cost of maintaining the software, and reducing the odds that future modifications (or a port to a different OS, or a different platform...) will introduce new (and possibly subtle) bugs.


If I have to choose someone to program with, I'd want someone like you. I've met way too many speed freaks who will spend hours gaining 0.5% efficiency in a snippet that might get used a couple times a month and only lasts a few milliseconds anyway. Speed freaking is the most unhealthy thing a programmer can get into.
 
FireGryphon
Darth Gerbil
Posts: 7729
Joined: Sat Apr 24, 2004 7:53 pm
Location: the abyss into which you gaze

Re: What does it mean to be a good programmer?

Fri Jul 26, 2013 7:22 am

Crayon Shin Chan wrote:
I'm not a poet, but I can appreciate some poetry. I've been thinking about how people appreciate beauty in all forms, but for programming I don't think there is much you can do to be a good programmer.

What is really beautiful (as in any language) are the concepts expressed through the language - so perhaps you'd find something like a haiku in a mathematician's code for HPC programs. But in most programming tasks, there's really nothing beautiful. It's boring stuff like setup this box here, setup this checkbox there, link that to that, make sure input is tolerable... so what makes a good programmer? Is it the whitespace?


In a human language, we say someone is 'good' at it when they can eloquently get their message across in as few words as possible and in a way that everyone can understand. The same goes for a computer language: a programmer's algorithms should be efficient and understandable.
Sheep Rustlers in the sky! <S> Slapt | <S> FUI | Air Warrior II/III
 
notfred
Maximum Gerbil
Posts: 4610
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: What does it mean to be a good programmer?

Fri Jul 26, 2013 12:29 pm

Star Brood wrote:
just brew it! wrote:
Obfuscating the design of a non-performance-critical application just to improve performance by an insignificant amount isn't good programming; it misses the big picture. Someone else may be maintaining your code in the future; by avoiding unnecessarily tricky/clever constructs, you're making that person's job easier. By making that person's job easier, you're reducing the cost of maintaining the software, and reducing the odds that future modifications (or a port to a different OS, or a different platform...) will introduce new (and possibly subtle) bugs.


If I have to choose someone to program with, I'd want someone like you. I've met way too many speed freaks who will spend hours gaining 0.5% efficiency in a snippet that might get used a couple times a month and only lasts a few milliseconds anyway. Speed freaking is the most unhealthy thing a programmer can get into.
Years ago I was on a project where one developer pushed and got management approval to implement pooled reusable database connections from the app. He ran some benchmarks showing the connect speed improved from 0.1s to 0.01s and management loved it.

I found several bugs in his code (which admittedly he did address) whilst looking at why some of the queries took 15 minutes, put some proper indices in and had them running in sub 15-seconds. I was branded a trouble maker for complaining about the extra complexity of his code which improved things from 15.1s to 15.01s.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On