SlideShare a Scribd company logo
How To Code
Version – 1.0
Rahul Chhangani
Technologist & Full Stack Developer,
Co-Founder Fuzzy Innovation Street
Ex-Asst Professor Lachoo Memorial College of Sci & Tech, Jodhpur
Former Software Engineer Secure Parking, Mumbai.
Experienced with following
Web & Desktop
- Java Swings, FX, RX/TX, JEE, JAVA APIs, MVC, Collections, OpenCV
- PHP, Moodle, CodeIgniter, Wordpress, Drupal (Hands-On), web services, MySQL, Sqlite, MongoDB,
Servers
Apache, Tomcat, Wildfly & Web Logic (beginner)
Mobile
Android application development, Surface API, Barcode, QRCode, Bluetooth
API
REST, JAX-WS, JAX-RS
ABOUT ME
• bestProgram
• Design Idea First
• Programming Tokens
• Way of Writing Code
• Document your statement
• Know your loop
• Eye on bug
• Think Agile
• Decide which programming language
bestProgram = “Hello World”;
main()
{
printf(bestProgram);
}
Design Idea First – Factorial Program With Recursion
First Design
Design Idea First – Factorial Program Contd…
Second Design
Design Idea First – Factorial Program Contd…
Third Design
How To Code
Language Tokens – Variables & Datatypes
Variables that holds your data and Datatypes is just about what type of data variable is
holding.
Variable can be any thing, any name and declared with programming language rule.
Both are tokens and both work together, datatype is just used to let compiler know
what type of data you introduce for further processing.
Variable actually never holds your data, it holds the address of the location where your
data stored and that location is represent with that defined variable.
Way of writing code…. Make it readable
Variable name should be in small and meaningful format
(eg: age, my_age, someone_else_age, extractage)
Constant Variables are always in capital letter (eg: INIT =
10, START=0)
Function name first letter small and second letter first
character capital
(eg: void callMe(), studentAreCalling() )
Class name having first character always capital
(eg: class MyFirstClass{ }, SecondClass{ } )
Recursion….
My mom using this function
public String recursiveCallbyMom(String momTemprature)
{
if(momsTemprature < 30 degree)
{
print(“rahul uth ja…“)
recursiveCallByMom(momTemprature+5 degree)
}
else
{
print(“Mom In Room With Hand Granates…”);
return rahul;
}
}
Write your own
factorial function
with recursion
Document your statement….
Best way to document
/*
* This code is written by me
* This code is used for blacklisting student
*/
public function blackListStudent()
{
//blacklist those student who … bla bla bla
$blacklist_success = …………….”your code”……………….;
//blacklist_success is boolean type of variable
if($blacklist_success)
{
//whatever your statement
}
}
Know your loop…..
Iterative Construct.
How To Code
Eye on bug….
If (you design your idea on paper)
If (you know your variable)
If (you know your loop delivery)
If (you know your function calling)
If (you already know program output)
{
printf(“Code Run Successfully”)
}
else { printf(“semantic bug”); }
else{ printf(“semantic bug”); }
else{ printf(“semantic bug & syntax error”); }
else{ printf(“syntax error”); }
else { printf(“Tere se na ho payega….”); }
Difference B/w Bug and Error
“A mistake in coding is called error ,
error found by tester is called defect,
defect accepted by development
team then it is called bug”
Think Agile – Way of solving problem
Older Way….
Agile Way…
Decide which programming language
C – Something with system
C++ - Something you want with object
Java – Something you want parallel
.NET – Something you want rapidly
Android – You Mobile
Python- Something you want faster with single thread
THANKYOU – 24 Sept- 2016

More Related Content

PDF
Flow or Type - how to React to that?
PDF
PPT
PHP coding tips and review guides
PDF
Clean Code
PDF
Recent Vehicle Recalls That You Should Know About
PPTX
Esercitazione 2
DOCX
Software 1ºf hervert
DOC
Resume0413LinkedIn
Flow or Type - how to React to that?
PHP coding tips and review guides
Clean Code
Recent Vehicle Recalls That You Should Know About
Esercitazione 2
Software 1ºf hervert
Resume0413LinkedIn

Viewers also liked (15)

PDF
Elan Clip-Xenakis Interview-6-15
PDF
20 Cars with least amount of Depreciation
PPTX
Earthquake
PPTX
Ginooooooooooo
PPTX
Actividad pag 29 desarrolla competencias personales
DOCX
Alcohol addiction
DOCX
Transcript
PPTX
Top 7 italian pastries
DOCX
Reflexion modulo 3
PPTX
Presentacion de Jonathan Medina
PPTX
Film ideas
ODP
Question 2
PPSX
Cardiac diseases complicating pregnancy
PPT
Українська література. 8 клас. Роль митця в суспільстві (поезія Т. Шевченка...
PDF
Agile Isn't What You Do (It's What You Think)
Elan Clip-Xenakis Interview-6-15
20 Cars with least amount of Depreciation
Earthquake
Ginooooooooooo
Actividad pag 29 desarrolla competencias personales
Alcohol addiction
Transcript
Top 7 italian pastries
Reflexion modulo 3
Presentacion de Jonathan Medina
Film ideas
Question 2
Cardiac diseases complicating pregnancy
Українська література. 8 клас. Роль митця в суспільстві (поезія Т. Шевченка...
Agile Isn't What You Do (It's What You Think)
Ad

Similar to How To Code (20)

PPTX
Programming Fundamentals
PPSX
Esoft Metro Campus - Certificate in java basics
PPT
Java
PPT
01-ch01-1-println.ppt java introduction one
PPTX
Programming Fundamentals With OOPs Concepts (Java Examples Based)
PDF
Spring into AI presented by Dan Vega 5/14
PPTX
Introduction to Advanced Javascript
PPTX
Functional Programming In Jdk8
PPTX
Day_16_LangChain_HuggingFace_Groq_Sp25.pptx
PPTX
All of javascript
PDF
Introduction To Scala
PDF
Java Interview Questions for 10+ Year Experienced PDF By ScholarHat
PDF
Deep Dive Into Swift
PDF
Selenium web driver | java
PDF
SoTWLG Intro to Code Bootcamps 2016 (Roger Nesbitt)
PDF
When GenAI meets with Java with Quarkus and langchain4j
PDF
Iwt note(module 2)
PPT
Laurens Van Den Oever Xopus Presentation
PDF
Google Interview Questions By Scholarhat
PPTX
PHP in one presentation
Programming Fundamentals
Esoft Metro Campus - Certificate in java basics
Java
01-ch01-1-println.ppt java introduction one
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Spring into AI presented by Dan Vega 5/14
Introduction to Advanced Javascript
Functional Programming In Jdk8
Day_16_LangChain_HuggingFace_Groq_Sp25.pptx
All of javascript
Introduction To Scala
Java Interview Questions for 10+ Year Experienced PDF By ScholarHat
Deep Dive Into Swift
Selenium web driver | java
SoTWLG Intro to Code Bootcamps 2016 (Roger Nesbitt)
When GenAI meets with Java with Quarkus and langchain4j
Iwt note(module 2)
Laurens Van Den Oever Xopus Presentation
Google Interview Questions By Scholarhat
PHP in one presentation
Ad

How To Code

  • 2. Rahul Chhangani Technologist & Full Stack Developer, Co-Founder Fuzzy Innovation Street Ex-Asst Professor Lachoo Memorial College of Sci & Tech, Jodhpur Former Software Engineer Secure Parking, Mumbai. Experienced with following Web & Desktop - Java Swings, FX, RX/TX, JEE, JAVA APIs, MVC, Collections, OpenCV - PHP, Moodle, CodeIgniter, Wordpress, Drupal (Hands-On), web services, MySQL, Sqlite, MongoDB, Servers Apache, Tomcat, Wildfly & Web Logic (beginner) Mobile Android application development, Surface API, Barcode, QRCode, Bluetooth API REST, JAX-WS, JAX-RS ABOUT ME
  • 3. • bestProgram • Design Idea First • Programming Tokens • Way of Writing Code • Document your statement • Know your loop • Eye on bug • Think Agile • Decide which programming language
  • 4. bestProgram = “Hello World”; main() { printf(bestProgram); }
  • 5. Design Idea First – Factorial Program With Recursion First Design
  • 6. Design Idea First – Factorial Program Contd… Second Design
  • 7. Design Idea First – Factorial Program Contd… Third Design
  • 9. Language Tokens – Variables & Datatypes Variables that holds your data and Datatypes is just about what type of data variable is holding. Variable can be any thing, any name and declared with programming language rule. Both are tokens and both work together, datatype is just used to let compiler know what type of data you introduce for further processing. Variable actually never holds your data, it holds the address of the location where your data stored and that location is represent with that defined variable.
  • 10. Way of writing code…. Make it readable Variable name should be in small and meaningful format (eg: age, my_age, someone_else_age, extractage) Constant Variables are always in capital letter (eg: INIT = 10, START=0) Function name first letter small and second letter first character capital (eg: void callMe(), studentAreCalling() ) Class name having first character always capital (eg: class MyFirstClass{ }, SecondClass{ } )
  • 11. Recursion…. My mom using this function public String recursiveCallbyMom(String momTemprature) { if(momsTemprature < 30 degree) { print(“rahul uth ja…“) recursiveCallByMom(momTemprature+5 degree) } else { print(“Mom In Room With Hand Granates…”); return rahul; } }
  • 12. Write your own factorial function with recursion
  • 13. Document your statement…. Best way to document /* * This code is written by me * This code is used for blacklisting student */ public function blackListStudent() { //blacklist those student who … bla bla bla $blacklist_success = …………….”your code”……………….; //blacklist_success is boolean type of variable if($blacklist_success) { //whatever your statement } }
  • 16. Eye on bug…. If (you design your idea on paper) If (you know your variable) If (you know your loop delivery) If (you know your function calling) If (you already know program output) { printf(“Code Run Successfully”) } else { printf(“semantic bug”); } else{ printf(“semantic bug”); } else{ printf(“semantic bug & syntax error”); } else{ printf(“syntax error”); } else { printf(“Tere se na ho payega….”); }
  • 17. Difference B/w Bug and Error “A mistake in coding is called error , error found by tester is called defect, defect accepted by development team then it is called bug”
  • 18. Think Agile – Way of solving problem Older Way….
  • 20. Decide which programming language C – Something with system C++ - Something you want with object Java – Something you want parallel .NET – Something you want rapidly Android – You Mobile Python- Something you want faster with single thread
  • 21. THANKYOU – 24 Sept- 2016