Learning to code can be extremely overwhelming for someone who is just starting out
These are three basic tips that every new developer should know:
P R O P E R LY F O R M AT Y O U R C O D E
• Every language has it’s own specific formatting style, rules, and conventions to be followed
• It is likely that seasoned developers will read your code - - don’t be the developer who doesn’t format properly
• Look for the official resources of the language you’re working in
W AT C H W H AT Y O U C A P I TA L I Z E
• In most languages, capitalization completely changes the function of your code (ie: Classes in Ruby)
• The rule of thumb is to avoid capitalization unless you know that it is 100% necessary for the code you’re writing.
• Reminder: stick to conventions
(Image Courtesy of IBM)
C L E A N U P Y O U R C O M M E N T S
• Avoid over-commenting and being afraid of deleting your comments
• As a beginner, it’s important to learn to read code w/o the support of comments
• Comments become outdated very quickly, so it’s important to keep up with them
(Image Courtesy of StackOverflow)