In this session, our experts shared best practices to improve code readability, re-usability, extendibility, ease of understanding, and maintainability. Learn more: http://bit.ly/2U1AnDX
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
Â
How to make your solution ready for production deployment?
1. How to Make Your
Solution Ready for
Production Deployment
ACADEMY WEBINAR
SANDIP SINGH
Tech Lead
PRAKASH AUTADE
Tech Lead
MAR 28 2019
3:00PM - 3:45PM IST
2. Gaps
Understanding the gaps from
Graduation to being Industry Ready
Recap
• Battling for marks and not for skills
• Confused on where to start from
• Lack of practice
Solutions:
• Practice
• Learn in groups
• Read code
• Participate in coding contests
3. How to approach a problem to develop an enduring solution
Recap
Common Mistakes:
• Misunderstanding the problem
• Jumping directly to code
• Not constructing flows
• Not validating the flows against
requirements
• Not working on multiple approaches
to solve the problem
Process:
• Understand the problem
• Write the solution in simple english
• Break the problem in smaller chunks
• Create flows
• Write test cases
• Validate the tests against the flows
• Write code
• Perform dry run with test cases
4. Why this topic ?
• Do it once. Do it right.
• Don't code for yourself, code
for community.
How to Make Your
Solution Ready for
Production
Deployment
5. • Easy to read
• Easy to reuse
• Easy to extend
• Easy to test
• Easy to debug
When do we call code is
ready for production
deployment (5 eases)
7. Comments help the
code speak for itself
Function name
describes what it does
Variable names describe
type & content
8. Code Reusability
One Item
One
Responsibility
Look for
existing
available
solution
Divide the
problem in
simpler &
smaller chunks
Why is it important
• Reduces the development effort and time
• Already tested and used
13. Code Testability
Divide
and
Conquer
One Item One
Responsibility
Write
simpler and
smaller units
Why is it important
• It should be testable with minimum efforts
• Ensures that code will work as intended.
16. Code Debug-ability
Do extensive
Logging
Identify and write
the logs for life cycle
of the code flow
Why is it important
• Different environments while developing and in production
• Trace execution flow.
• Find the cause of failure
17. Code review tool: PMD
Tools you can use
Logging framework: log4j, log4c
Testing frameworks: Unit testing
frameworks like Junit for Java,
Jasmine for javascript
IDE's: Visual Studio Code,
Eclipse, Net beans
• Head First Java
• Writing Solid Code
• Refactoring - Martin Fowler
• Head First Design Patterns
Books: