...
Full Bio
Today's Technology-Data Science
292 days ago
How to build effective machine learning models?
292 days ago
Why Robotic Process Automation Is Good For Your Business?
292 days ago
IoT-Advantages, Disadvantages, and Future
293 days ago
Look Artificial Intelligence from a career perspective
293 days ago
Every Programmer should strive for reading these 5 books
579924 views
Why you should not become a Programmer or not learn Programming Language?
239874 views
See the Salaries if you are willing to get a Job in Programming Languages without a degree?
152304 views
Have a look of some Top Programming Languages used in PubG
144423 views
Highest Paid Programming Languages With Highest Market Demand
137442 views
The most artistic way of programming
- Read-write and transformations(algorithms) should be separate.
- Use immutable variables. Discourage the use of reassignment statements.
- Discourage side-effects (input/output or changing any variable in-place), every function should ONLY return its expected result.
- Use referentially transparent functions (sometimes it is called pure functions) with no side effects, i.e. if x = y, f(x) and f(y) should be same forever.
- Unit testing is a must for each function.
- One of the main design patterns that should be followed is to use expressions instead of instructions, i.e. it should be declarative in nature. Discourage use of loops like for/while - use recursive statements as shown above to calculate the sum. Tell computers what needs to be done, not how to do it - it reduces error, especially edge cases.
- With the need to control the complexity of the system and the advance design, the design pattern for the functional composition can be made to follow some basic algebraic structures, which in turn becomes more robust.