CLEAN WEB 
SEDA YALÇIN & ÖMER TAŞKIN
Outline 
ü About Us 
ü Meaningful Names 
ü Functions 
ü Comments 
ü Formatting 
ü Questions
ABOUT US, ABOUT YOU? 
Seda Yalçın 
Software 
Engineer@GG 
Ömer Taşkın 
Software 
Engineer@GG
Why Clean Web? 
Remembrance 
Just for being in a better Web World 
Just for being a better programmer 
Just for next programmer 
Just for us
What is Clean Code about? 
If (((!about getting artistic points) 
|| 
(!about being a nerd one)) 
&& 
(about a well disciplined programmer)) 
{...}
Meaningful Names 
What is meaningful name? 
Small answer of the big question. 
Small warning of the big danger. 
Not your tongue-twister. 
Not your shopping list. 
Don’t be lazy or shy. 
Show your intent!
Meaningful Names 
Use intention-revealing names
Meaningful Names
Meaningful Names 
VENDETTA!!!
Meaningful Names 
Avoid disinformation
Meaningful Names
Meaningful Names 
Use pronounceable & 
searchable names
Meaningful Names 
Avoid mental mapping
Meaningful Names 
Don’t be cute 
Pick One Word per Concept
Functions 
Small
Functions 
Do one thing 
Keep it small 
Blocks and Indenting
Functions 
Function Arguments
Functions 
Don’t repeat yourself Have No Side Effects
Functions 
ü Don’t return null 
ü Causes dirty null checks! 
ü Forgotten nullchecks causes NullPointerException!
Functions 
ü Don’t return null 
ü Causes dirty null checks! 
ü Forgotten nullchecks causes NullPointerException!
Functions 
Prefer Exceptions
Functions 
Prefer Exceptions
Functions 
Overloading is good but!
Comments 
Do not write comment for bad code! 
Make it clean!
Comments 
Subversion system and IDE will warn you about TODO 
comment 
TODO Comments
Comments 
Journal Comments
Comments 
Commented Out Codes 
if its unnecessary; Don’t fear, delete it!
Comments 
Noise Comment
Formatting 
Formatting 
ü You should have code standards. 
ü IDE’s have formatting tool. 
ü You can define special format on IDE
Code Smells
Wake Up!
Here we are!
References 
Clean 
Code, 
A 
Handbook 
of 
Agile 
Software 
Craftmanship 
Robert 
C. 
Martin 
https://class.stanford.edu/c4x/Engineering/CS144/asset/Naming.pdf

CLEAN WEB