Programming's Ten Commandments
Many years ago, I condensed an article found in 'Inside Visual Basic' by Scott Lewis , you may find it interesting...
Create A Code Blueprint
Outline what it is you are trying to accomplish. Take out a pen, draw some forms, and write some of the major functions and procedures you'll need. (Look to see if you have some of this code already written!) This will speed up your program development and the resulting code will be better organized.
Let Your Editor Help You
Require all variables be declared and assure your editor's other features are enabled.
Establish Naming Conventions
Create a list of naming conventions and use them. Debugging will be much easier.
Comment Your Code
Compilers don't include comments, so programs remain small, but well commented code is much easier to debug and make sense of. Comment on specific lines to assure comprehension. Don't assume the reader will be able to make sense of it, especially if they didn't write it.
Write It Once
Create routines of generic code and call them as required, rather than re-writing the same code again and again. This will also minimize errors and make modifications easy as this will be done only in one place, instead of scattered through out your code. One day you will have a large 'arsenal' of routines at your disposal.
Use 3rd Party Enhancements
If some other software can help, use it. (e.g. HTML Help) Don't be a re-inventor. Usually they specialize in an area you may not be familiar with and... purchased code is cheap, if you include your time and effort!
Check All Resources
Check out Internet sites, books, and sample code. Knowing where to find information can be your greatest asset.
Write for Your User
Don't get carried away with fancy pictures or technology. Users would rather have applications that are fast, make sense and follow common layouts and conventions.
Provide Intuitive Error Messages
Generic message boxes that don't help the user solve the problem are only a source of irritation. The best programs trap all common errors as well as some unexpected ones. They help describe a possible solution as well.
The Resume
The next time you start writing code, ask yourself if you would include this program and it's printed source code as an example of the work you are capable of producing. You'll be doing yourself a favor by writing a combination of functional and clean code.
Conclusion
Learning syntax is essential, but so is learning to program correctly. By following these simple, yet powerful rules, you can take your program development skills to a higher level.
What could one do every day to get him motivated to code ?
Re: What could one do every day to get him motivated to code
- It was too lonely at the top.
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Re: What could one do every day to get him motivated to code
I already knew of those 10 rules, for quite long, even though im not in coding for more than 5 years. But thanks anyways, also never heard of those tips, in such a way.
Re: What could one do every day to get him motivated to code
First I might start by saying I don't program for a living, which is why I'm not often on this forum.
However, I think motivation is a common thread in most industries. In my industry we create motivation by setting a sense of urgency. We first do this by planning what needs to be done. We then schedule the work into the shortest possible time frames to reasonably achieve the milestones set.
Remember firstly that life is short and if you want to get things done you must set goals that may almost seem impossible, however this creates the motivation to get going.
Have regular checks of where you are at in relations to your goals/milestones. Should one milestone fall behind (e.g. had to take a day off for sanity, etc) just adjust the other milestones to suit. There are many applications that can help with this type of task setting and adjustments.
As has been mentioned by other people in this topic, try not to get bogged down in problem areas, particularly if other work areas can be kept advancing. Seek help in the problem areas to get them fixed as soon as possible and keep the momentum going.
Look back at where you have got to every now and then so that you can feel a sense of achievement on how far you have come, then look forward again and put the pressure on to get it finished.
It is also important to remember that the world is not perfect! Do not seek perfection in your work or you will get bogged down! Instead just be satisfied with something that works well enough (i.e. work-arounds where necessary).
I hope this different industry perspective, on a common issue, can help you with your motivation.
However, I think motivation is a common thread in most industries. In my industry we create motivation by setting a sense of urgency. We first do this by planning what needs to be done. We then schedule the work into the shortest possible time frames to reasonably achieve the milestones set.
Remember firstly that life is short and if you want to get things done you must set goals that may almost seem impossible, however this creates the motivation to get going.
Have regular checks of where you are at in relations to your goals/milestones. Should one milestone fall behind (e.g. had to take a day off for sanity, etc) just adjust the other milestones to suit. There are many applications that can help with this type of task setting and adjustments.
As has been mentioned by other people in this topic, try not to get bogged down in problem areas, particularly if other work areas can be kept advancing. Seek help in the problem areas to get them fixed as soon as possible and keep the momentum going.
Look back at where you have got to every now and then so that you can feel a sense of achievement on how far you have come, then look forward again and put the pressure on to get it finished.
It is also important to remember that the world is not perfect! Do not seek perfection in your work or you will get bogged down! Instead just be satisfied with something that works well enough (i.e. work-arounds where necessary).
I hope this different industry perspective, on a common issue, can help you with your motivation.
"What you are is what you have been. What you’ll be is what you do now.” -Buddha
Re: What could one do every day to get him motivated to code
It helps to have so many nice answers, not all really are for the 90% of people, but thanks anyway.
Re: What could one do every day to get him motivated to code
Have you tried drinking? 
