Python Forum
Approach to coding, good/bad
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Approach to coding, good/bad
#13
(Apr-13-2017, 07:13 PM)Larz60+ Wrote:
Quote:So you should always set out at least a list of goals
I think you missed the point of the overall thread.

This thread advocates having a very good and complete overall plan.
oh, the days of Pearly Spencer, sorry - waterfall
Didn't it work well  Wall . 
But of course it's a folly to write "quick and dirty" - and then redoing it. I try to start writing proper code from the start - including some rudiment comments. Occasionally it turns right  Tongue

But you make - and fix - mistakes. As you go, you realize that things don't work exactly as you planned. Then someone tells you that you misunderstood the requirements - or they were wrong. Then someone changes requirements.
But the cleaner the initial code was - the easier refactoring will be (about a year ago - commit of 400 changed lines Pray in 2 days).
It is important to keep in mind have to understand that occasionally even project developer - when visiting his/her own old code - will have to spend some time to figure out what the hell were the intentions. 
So, again - the cleaner is the code from the start, the easier life will be in the long run

PS Several times in my career as QA Automation Developer I was preached by my managers that they don't care about performance, code quality - I must quickly supply solutions to the problems that the management piles on me. And they did not understand that those solutions eventually turn into problems Angry
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Approach to coding, good/bad - by j.crater - Mar-22-2017, 01:37 PM
RE: Approach to coding, good/bad - by sparkz_alot - Mar-22-2017, 01:56 PM
RE: Approach to coding, good/bad - by micseydel - Mar-22-2017, 05:45 PM
RE: Approach to coding, good/bad - by Larz60+ - Mar-22-2017, 05:54 PM
RE: Approach to coding, good/bad - by Ofnuts - Mar-22-2017, 08:45 PM
RE: Approach to coding, good/bad - by ichabod801 - Mar-22-2017, 09:22 PM
RE: Approach to coding, good/bad - by Ofnuts - Mar-22-2017, 09:34 PM
RE: Approach to coding, good/bad - by nilamo - Mar-22-2017, 09:45 PM
RE: Approach to coding, good/bad - by Larz60+ - Mar-22-2017, 09:46 PM
RE: Approach to coding, good/bad - by wavic - Mar-22-2017, 10:32 PM
RE: Approach to coding, good/bad - by teenspirit - Apr-13-2017, 04:28 PM
RE: Approach to coding, good/bad - by Larz60+ - Apr-13-2017, 07:13 PM
RE: Approach to coding, good/bad - by volcano63 - Apr-19-2017, 09:55 PM
RE: Approach to coding, good/bad - by Ofnuts - Apr-22-2017, 12:34 PM
RE: Approach to coding, good/bad - by volcano63 - Apr-23-2017, 07:16 PM
RE: Approach to coding, good/bad - by Ofnuts - Apr-23-2017, 09:19 PM
RE: Approach to coding, good/bad - by volcano63 - Apr-23-2017, 09:45 PM
RE: Approach to coding, good/bad - by sparkz_alot - Apr-23-2017, 09:53 PM
RE: Approach to coding, good/bad - by ichabod801 - Apr-23-2017, 10:46 PM
RE: Approach to coding, good/bad - by ndc85430 - Apr-28-2017, 06:03 AM
RE: Approach to coding, good/bad - by volcano63 - Apr-28-2017, 02:54 PM
RE: Approach to coding, good/bad - by ichabod801 - Apr-29-2017, 01:06 AM
RE: Approach to coding, good/bad - by Larz60+ - Apr-29-2017, 01:26 AM
RE: Approach to coding, good/bad - by Ofnuts - Apr-29-2017, 06:35 AM
RE: Approach to coding, good/bad - by Larz60+ - Apr-29-2017, 11:54 AM
RE: Approach to coding, good/bad - by Ofnuts - Apr-29-2017, 03:07 PM
RE: Approach to coding, good/bad - by nilamo - Apr-29-2017, 01:47 PM
RE: Approach to coding, good/bad - by ichabod801 - Apr-29-2017, 03:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to approach pyusb application arch m3atwad151 0 768 Nov-10-2022, 06:11 AM
Last Post: m3atwad151

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020