OOPS Programming Languages Tips
Modern OOPs Programming languages require you to put less effort in programming so that you can concentrate on the overall design. Here are some tips on object-oriented programming that you should remember:
Always use nouns for class names
Noun names and phrases help other programmers to correctly associate the classes that you have created. It makes reading and understanding the program easier. Take the example of a class- ‘customer{}’. An object ‘harry’ of class ‘customer’ can be defined as ‘customer harry’.
Use verbs for function/method names
Like noun class names, using verbs for functions makes the whole program fit together. So a class with the name ‘customer{}’ can have functions addcustomer(), deletecustomer(), editcustomer() and so on.
Avoid too many conditional statements
With a lot of conditional statement comes a lot of confusion. Reduce heaps of nested if-else and switch statements with dynamic functions/methods. Comparing 10 integers can generate 100 lines of code. Instead, a 6-liner function can replace those 100 lines of procedural programming.
For more, read here- http://itservicestalk.com/programming-language/5-expert-tips-to-make-oops-programming-languages-easier/













